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 |
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
- 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)))))))))
- projectsInstancesDatabasesUpdateDdl :: Text -> UpdateDatabaseDdlRequest -> ProjectsInstancesDatabasesUpdateDdl
- data ProjectsInstancesDatabasesUpdateDdl
- pidudXgafv :: Lens' ProjectsInstancesDatabasesUpdateDdl (Maybe Xgafv)
- pidudUploadProtocol :: Lens' ProjectsInstancesDatabasesUpdateDdl (Maybe Text)
- pidudDatabase :: Lens' ProjectsInstancesDatabasesUpdateDdl Text
- pidudAccessToken :: Lens' ProjectsInstancesDatabasesUpdateDdl (Maybe Text)
- pidudUploadType :: Lens' ProjectsInstancesDatabasesUpdateDdl (Maybe Text)
- pidudPayload :: Lens' ProjectsInstancesDatabasesUpdateDdl UpdateDatabaseDdlRequest
- pidudCallback :: Lens' ProjectsInstancesDatabasesUpdateDdl (Maybe Text)
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
projectsInstancesDatabasesUpdateDdl Source #
Creates a value of ProjectsInstancesDatabasesUpdateDdl
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
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
Request Lenses
pidudXgafv :: Lens' ProjectsInstancesDatabasesUpdateDdl (Maybe Xgafv) Source #
V1 error format.
pidudUploadProtocol :: Lens' ProjectsInstancesDatabasesUpdateDdl (Maybe Text) Source #
Upload protocol for media (e.g. "raw", "multipart").
pidudDatabase :: Lens' ProjectsInstancesDatabasesUpdateDdl Text Source #
Required. The database to update.
pidudAccessToken :: Lens' ProjectsInstancesDatabasesUpdateDdl (Maybe Text) Source #
OAuth access token.
pidudUploadType :: Lens' ProjectsInstancesDatabasesUpdateDdl (Maybe Text) Source #
Legacy upload protocol for media (e.g. "media", "multipart").
pidudPayload :: Lens' ProjectsInstancesDatabasesUpdateDdl UpdateDatabaseDdlRequest Source #
Multipart request metadata.