ProjectsInstancesDatabasesResourceApi class

Constructors

ProjectsInstancesDatabasesResourceApi(ApiRequester client)

Properties

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

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. [...]
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 resource. Returns an empty policy if a database exists but does not have a policy set. [...]
list(String parent, { String pageToken int pageSize, String $fields }) → Future<ListDatabasesResponse>
Lists Cloud Spanner databases. [...]
setIamPolicy(SetIamPolicyRequest request, String resource, { String $fields }) → Future<Policy>
Sets the access control policy on a database resource. Replaces any existing policy. [...]
testIamPermissions(TestIamPermissionsRequest request, String resource, { String $fields }) → Future<TestIamPermissionsResponse>
Returns permissions that the caller has on the specified database resource. [...]
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. [...]
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed.
inherited
toString() → String
Returns a string representation of this object.
inherited

Operators

operator ==(dynamic other) → bool
The equality operator.
inherited