ProjectsInstancesDatabasesResourceApi class

Constructors

ProjectsInstancesDatabasesResourceApi(ApiRequester client)

Properties

hashCode int
The hash code for this object. [...]
read-only, inherited
operations ProjectsInstancesDatabasesOperationsResourceApi
read-only
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited
sessions ProjectsInstancesDatabasesSessionsResourceApi
read-only

Methods

create(CreateDatabaseRequest request, String parent, {String $fields}) Future<Operation>
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 <database_name>/operations/<operation_id> and can be used to track preparation of the database. The metadata field type is CreateDatabaseMetadata. The response field type is Database, if successful. [...]
dropDatabase(String database, {String $fields}) Future<Empty>
Drops (aka deletes) a Cloud Spanner database. Completed backups for the database will be retained according to their expire_time. [...]
get(String name, {String $fields}) Future<Database>
Gets the state of a Cloud Spanner database. [...]
getDdl(String database, {String $fields}) Future<GetDatabaseDdlResponse>
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. [...]
getIamPolicy(GetIamPolicyRequest request, String resource, {String $fields}) Future<Policy>
Gets the access control policy for a database or backup resource. Returns an empty policy if a database or backup exists but does not have a policy set. [...]
list(String parent, {String pageToken, int pageSize, String $fields}) Future<ListDatabasesResponse>
Lists Cloud Spanner databases. [...]
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
inherited
restore(RestoreDatabaseRequest request, String parent, {String $fields}) Future<Operation>
Create a new database by restoring from a completed backup. The new database must be in the same project and in an instance with the same instance configuration as the instance containing the backup. The returned database long-running operation has a name of the format projects/<project>/instances/<instance>/databases/<database>/operations/<operation_id>, and can be used to track the progress of the operation, and to cancel it. The metadata field type is RestoreDatabaseMetadata. The response type is Database, if successful. Cancelling the returned operation will stop the restore and delete the database. There can be only one database being restored into an instance at a time. Once the restore operation completes, a new restore operation can be initiated, without waiting for the optimize operation associated with the first restore to complete. [...]
setIamPolicy(SetIamPolicyRequest request, String resource, {String $fields}) Future<Policy>
Sets the access control policy on a database or backup resource. Replaces any existing policy. [...]
testIamPermissions(TestIamPermissionsRequest request, String resource, {String $fields}) Future<TestIamPermissionsResponse>
Returns permissions that the caller has on the specified database or backup resource. [...]
toString() String
Returns a string representation of this object.
inherited
updateDdl(UpdateDatabaseDdlRequest request, String database, {String $fields}) Future<Operation>
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 <database_name>/operations/<operation_id> and can be used to track execution of the schema change(s). The metadata field type is UpdateDatabaseDdlMetadata. The operation has no response. [...]

Operators

operator ==(dynamic other) bool
The equality operator. [...]
inherited