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 |
Returns the schema of a Cloud Spanner database as a list of formatted DDL statements. This method does not show pending schema updates, those may be queried using the Operations API.
See: Cloud Spanner API Reference for spanner.projects.instances.databases.getDdl
.
Synopsis
- type ProjectsInstancesDatabasesGetDdlResource = "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 :> Get '[JSON] GetDatabaseDdlResponse))))))))
- projectsInstancesDatabasesGetDdl :: Text -> ProjectsInstancesDatabasesGetDdl
- data ProjectsInstancesDatabasesGetDdl
- pidgdXgafv :: Lens' ProjectsInstancesDatabasesGetDdl (Maybe Xgafv)
- pidgdUploadProtocol :: Lens' ProjectsInstancesDatabasesGetDdl (Maybe Text)
- pidgdDatabase :: Lens' ProjectsInstancesDatabasesGetDdl Text
- pidgdAccessToken :: Lens' ProjectsInstancesDatabasesGetDdl (Maybe Text)
- pidgdUploadType :: Lens' ProjectsInstancesDatabasesGetDdl (Maybe Text)
- pidgdCallback :: Lens' ProjectsInstancesDatabasesGetDdl (Maybe Text)
REST Resource
type ProjectsInstancesDatabasesGetDdlResource = "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 :> Get '[JSON] GetDatabaseDdlResponse)))))))) Source #
A resource alias for spanner.projects.instances.databases.getDdl
method which the
ProjectsInstancesDatabasesGetDdl
request conforms to.
Creating a Request
projectsInstancesDatabasesGetDdl Source #
Creates a value of ProjectsInstancesDatabasesGetDdl
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
data ProjectsInstancesDatabasesGetDdl Source #
Returns the schema of a Cloud Spanner database as a list of formatted DDL statements. This method does not show pending schema updates, those may be queried using the Operations API.
See: projectsInstancesDatabasesGetDdl
smart constructor.
Instances
Request Lenses
pidgdXgafv :: Lens' ProjectsInstancesDatabasesGetDdl (Maybe Xgafv) Source #
V1 error format.
pidgdUploadProtocol :: Lens' ProjectsInstancesDatabasesGetDdl (Maybe Text) Source #
Upload protocol for media (e.g. "raw", "multipart").
pidgdDatabase :: Lens' ProjectsInstancesDatabasesGetDdl Text Source #
Required. The database whose schema we wish to get.
pidgdAccessToken :: Lens' ProjectsInstancesDatabasesGetDdl (Maybe Text) Source #
OAuth access token.
pidgdUploadType :: Lens' ProjectsInstancesDatabasesGetDdl (Maybe Text) Source #
Legacy upload protocol for media (e.g. "media", "multipart").