Copyright | (c) 2015-2016 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay <brendan.g.hay@gmail.com> |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | None |
Language | Haskell2010 |
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
- 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)))))))))
- projectsInstancesDatabasesCreate :: Text -> CreateDatabaseRequest -> ProjectsInstancesDatabasesCreate
- data ProjectsInstancesDatabasesCreate
- pidcParent :: Lens' ProjectsInstancesDatabasesCreate Text
- pidcXgafv :: Lens' ProjectsInstancesDatabasesCreate (Maybe Xgafv)
- pidcUploadProtocol :: Lens' ProjectsInstancesDatabasesCreate (Maybe Text)
- pidcAccessToken :: Lens' ProjectsInstancesDatabasesCreate (Maybe Text)
- pidcUploadType :: Lens' ProjectsInstancesDatabasesCreate (Maybe Text)
- pidcPayload :: Lens' ProjectsInstancesDatabasesCreate CreateDatabaseRequest
- pidcCallback :: Lens' ProjectsInstancesDatabasesCreate (Maybe Text)
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
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").
pidcAccessToken :: Lens' ProjectsInstancesDatabasesCreate (Maybe Text) Source #
OAuth access token.
pidcUploadType :: Lens' ProjectsInstancesDatabasesCreate (Maybe Text) Source #
Legacy upload protocol for media (e.g. "media", "multipart").
pidcPayload :: Lens' ProjectsInstancesDatabasesCreate CreateDatabaseRequest Source #
Multipart request metadata.