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.Create

Contents

Description

Creates a new Cloud Spanner database and starts to prepare it for serving. The returned long-running operation will have a name of the format `/operations/` and can be used to track preparation of the database. The metadata field type is CreateDatabaseMetadata. The response field type is Database, if successful.

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

Synopsis

REST Resource

type ProjectsInstancesDatabasesCreateResource = "v1" :> (Capture "parent" Text :> ("databases" :> (QueryParam "$.xgafv" Xgafv :> (QueryParam "upload_protocol" Text :> (QueryParam "access_token" Text :> (QueryParam "uploadType" Text :> (QueryParam "callback" Text :> (QueryParam "alt" AltJSON :> (ReqBody '[JSON] CreateDatabaseRequest :> Post '[JSON] Operation))))))))) Source #

A resource alias for spanner.projects.instances.databases.create method which the ProjectsInstancesDatabasesCreate request conforms to.

Creating a Request

projectsInstancesDatabasesCreate Source #

Creates a value of ProjectsInstancesDatabasesCreate with the minimum fields required to make a request.

Use one of the following lenses to modify other fields as desired:

data ProjectsInstancesDatabasesCreate Source #

Creates a new Cloud Spanner database and starts to prepare it for serving. The returned long-running operation will have a name of the format `/operations/` and can be used to track preparation of the database. The metadata field type is CreateDatabaseMetadata. The response field type is Database, if successful.

See: projectsInstancesDatabasesCreate smart constructor.

Instances
Eq ProjectsInstancesDatabasesCreate Source # 
Instance details

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

Data ProjectsInstancesDatabasesCreate Source # 
Instance details

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

Methods

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

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

toConstr :: ProjectsInstancesDatabasesCreate -> Constr #

dataTypeOf :: ProjectsInstancesDatabasesCreate -> DataType #

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

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

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

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

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

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

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

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

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

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

Show ProjectsInstancesDatabasesCreate Source # 
Instance details

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

Generic ProjectsInstancesDatabasesCreate Source # 
Instance details

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

Associated Types

type Rep ProjectsInstancesDatabasesCreate :: Type -> Type #

GoogleRequest ProjectsInstancesDatabasesCreate Source # 
Instance details

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

type Rep ProjectsInstancesDatabasesCreate Source # 
Instance details

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

type Rep ProjectsInstancesDatabasesCreate = D1 (MetaData "ProjectsInstancesDatabasesCreate" "Network.Google.Resource.Spanner.Projects.Instances.Databases.Create" "gogol-spanner-0.4.0-Gx6Dlj0rchWGrfXCDHk4fo" False) (C1 (MetaCons "ProjectsInstancesDatabasesCreate'" PrefixI True) ((S1 (MetaSel (Just "_pidcParent") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text) :*: (S1 (MetaSel (Just "_pidcXgafv") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Xgafv)) :*: S1 (MetaSel (Just "_pidcUploadProtocol") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)))) :*: ((S1 (MetaSel (Just "_pidcAccessToken") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)) :*: S1 (MetaSel (Just "_pidcUploadType") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text))) :*: (S1 (MetaSel (Just "_pidcPayload") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 CreateDatabaseRequest) :*: S1 (MetaSel (Just "_pidcCallback") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text))))))
type Scopes ProjectsInstancesDatabasesCreate Source # 
Instance details

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

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

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

Request Lenses

pidcParent :: Lens' ProjectsInstancesDatabasesCreate Text Source #

Required. The name of the instance that will serve the new database. Values are of the form `projects//instances/`.

pidcUploadProtocol :: Lens' ProjectsInstancesDatabasesCreate (Maybe Text) Source #

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

pidcUploadType :: Lens' ProjectsInstancesDatabasesCreate (Maybe Text) Source #

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