gogol-spanner-0.4.0: Google Cloud Spanner SDK.

Copyright(c) 2015-2016 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay <brendan.g.hay@gmail.com>
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellNone
LanguageHaskell2010

Network.Google.Resource.Spanner.Projects.Instances.Databases.UpdateDdl

Contents

Description

Updates the schema of a Cloud Spanner database by creating/altering/dropping tables, columns, indexes, etc. The returned long-running operation will have a name of the format `/operations/` and can be used to track execution of the schema change(s). The metadata field type is UpdateDatabaseDdlMetadata. The operation has no response.

See: Cloud Spanner API Reference for spanner.projects.instances.databases.updateDdl.

Synopsis

REST Resource

type ProjectsInstancesDatabasesUpdateDdlResource = "v1" :> (Capture "database" Text :> ("ddl" :> (QueryParam "$.xgafv" Xgafv :> (QueryParam "upload_protocol" Text :> (QueryParam "access_token" Text :> (QueryParam "uploadType" Text :> (QueryParam "callback" Text :> (QueryParam "alt" AltJSON :> (ReqBody '[JSON] UpdateDatabaseDdlRequest :> Patch '[JSON] Operation))))))))) Source #

A resource alias for spanner.projects.instances.databases.updateDdl method which the ProjectsInstancesDatabasesUpdateDdl request conforms to.

Creating a Request

data ProjectsInstancesDatabasesUpdateDdl Source #

Updates the schema of a Cloud Spanner database by creating/altering/dropping tables, columns, indexes, etc. The returned long-running operation will have a name of the format `/operations/` and can be used to track execution of the schema change(s). The metadata field type is UpdateDatabaseDdlMetadata. The operation has no response.

See: projectsInstancesDatabasesUpdateDdl smart constructor.

Instances
Eq ProjectsInstancesDatabasesUpdateDdl Source # 
Instance details

Defined in Network.Google.Resource.Spanner.Projects.Instances.Databases.UpdateDdl

Data ProjectsInstancesDatabasesUpdateDdl Source # 
Instance details

Defined in Network.Google.Resource.Spanner.Projects.Instances.Databases.UpdateDdl

Methods

gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> ProjectsInstancesDatabasesUpdateDdl -> c ProjectsInstancesDatabasesUpdateDdl #

gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c ProjectsInstancesDatabasesUpdateDdl #

toConstr :: ProjectsInstancesDatabasesUpdateDdl -> Constr #

dataTypeOf :: ProjectsInstancesDatabasesUpdateDdl -> DataType #

dataCast1 :: Typeable t => (forall d. Data d => c (t d)) -> Maybe (c ProjectsInstancesDatabasesUpdateDdl) #

dataCast2 :: Typeable t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c ProjectsInstancesDatabasesUpdateDdl) #

gmapT :: (forall b. Data b => b -> b) -> ProjectsInstancesDatabasesUpdateDdl -> ProjectsInstancesDatabasesUpdateDdl #

gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> ProjectsInstancesDatabasesUpdateDdl -> r #

gmapQr :: (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> ProjectsInstancesDatabasesUpdateDdl -> r #

gmapQ :: (forall d. Data d => d -> u) -> ProjectsInstancesDatabasesUpdateDdl -> [u] #

gmapQi :: Int -> (forall d. Data d => d -> u) -> ProjectsInstancesDatabasesUpdateDdl -> u #

gmapM :: Monad m => (forall d. Data d => d -> m d) -> ProjectsInstancesDatabasesUpdateDdl -> m ProjectsInstancesDatabasesUpdateDdl #

gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> ProjectsInstancesDatabasesUpdateDdl -> m ProjectsInstancesDatabasesUpdateDdl #

gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> ProjectsInstancesDatabasesUpdateDdl -> m ProjectsInstancesDatabasesUpdateDdl #

Show ProjectsInstancesDatabasesUpdateDdl Source # 
Instance details

Defined in Network.Google.Resource.Spanner.Projects.Instances.Databases.UpdateDdl

Generic ProjectsInstancesDatabasesUpdateDdl Source # 
Instance details

Defined in Network.Google.Resource.Spanner.Projects.Instances.Databases.UpdateDdl

GoogleRequest ProjectsInstancesDatabasesUpdateDdl Source # 
Instance details

Defined in Network.Google.Resource.Spanner.Projects.Instances.Databases.UpdateDdl

type Rep ProjectsInstancesDatabasesUpdateDdl Source # 
Instance details

Defined in Network.Google.Resource.Spanner.Projects.Instances.Databases.UpdateDdl

type Rep ProjectsInstancesDatabasesUpdateDdl = D1 (MetaData "ProjectsInstancesDatabasesUpdateDdl" "Network.Google.Resource.Spanner.Projects.Instances.Databases.UpdateDdl" "gogol-spanner-0.4.0-Gx6Dlj0rchWGrfXCDHk4fo" False) (C1 (MetaCons "ProjectsInstancesDatabasesUpdateDdl'" PrefixI True) ((S1 (MetaSel (Just "_pidudXgafv") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Xgafv)) :*: (S1 (MetaSel (Just "_pidudUploadProtocol") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)) :*: S1 (MetaSel (Just "_pidudDatabase") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text))) :*: ((S1 (MetaSel (Just "_pidudAccessToken") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)) :*: S1 (MetaSel (Just "_pidudUploadType") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text))) :*: (S1 (MetaSel (Just "_pidudPayload") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 UpdateDatabaseDdlRequest) :*: S1 (MetaSel (Just "_pidudCallback") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text))))))
type Scopes ProjectsInstancesDatabasesUpdateDdl Source # 
Instance details

Defined in Network.Google.Resource.Spanner.Projects.Instances.Databases.UpdateDdl

type Scopes ProjectsInstancesDatabasesUpdateDdl = "https://www.googleapis.com/auth/cloud-platform" ': ("https://www.googleapis.com/auth/spanner.admin" ': ([] :: [Symbol]))
type Rs ProjectsInstancesDatabasesUpdateDdl Source # 
Instance details

Defined in Network.Google.Resource.Spanner.Projects.Instances.Databases.UpdateDdl

Request Lenses

pidudUploadProtocol :: Lens' ProjectsInstancesDatabasesUpdateDdl (Maybe Text) Source #

Upload protocol for media (e.g. "raw", "multipart").

pidudUploadType :: Lens' ProjectsInstancesDatabasesUpdateDdl (Maybe Text) Source #

Legacy upload protocol for media (e.g. "media", "multipart").