ProjectsInstancesBackupsResourceApi class


ProjectsInstancesBackupsResourceApi(ApiRequester client)


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


create(Backup request, String parent, {String backupId, String $fields}) → Future<Operation>
Starts creating a new Cloud Spanner Backup. The returned backup long-running operation will have a name of the format projects//instances//backups//operations/ and can be used to track creation of the backup. The metadata field type is CreateBackupMetadata. The response field type is Backup, if successful. Cancelling the returned operation will stop the creation and delete the backup. There can be only one pending backup creation per database. Backup creation of different databases can run concurrently. [...]
delete(String name, {String $fields}) → Future<Empty>
Deletes a pending or completed Backup. [...]
get(String name, {String $fields}) → Future<Backup>
Gets metadata on a pending or completed Backup. [...]
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. Authorization requires spanner.databases.getIamPolicy permission on resource. For backups, authorization requires spanner.backups.getIamPolicy permission on resource. [...]
list(String parent, {String pageToken, String filter, int pageSize, String $fields}) → Future<ListBackupsResponse>
Lists completed and pending backups. Backups returned are ordered by create_time in descending order, starting from the most recent create_time. [...]
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
patch(Backup request, String name, {String updateMask, String $fields}) → Future<Backup>
Updates a pending or completed Backup. [...]
setIamPolicy(SetIamPolicyRequest request, String resource, {String $fields}) → Future<Policy>
Sets the access control policy on a database or backup resource. Replaces any existing policy. Authorization requires spanner.databases.setIamPolicy permission on resource. For backups, authorization requires spanner.backups.setIamPolicy permission on resource. [...]
testIamPermissions(TestIamPermissionsRequest request, String resource, {String $fields}) → Future<TestIamPermissionsResponse>
Returns permissions that the caller has on the specified database or backup resource. Attempting this RPC on a non-existent Cloud Spanner database will result in a NOT_FOUND error if the user has spanner.databases.list permission on the containing Cloud Spanner instance. Otherwise returns an empty set of permissions. Calling this method on a backup that does not exist will result in a NOT_FOUND error if the user has spanner.backups.list permission on the containing instance. [...]
toString() → String
Returns a string representation of this object.


operator ==(Object other) → bool
The equality operator. [...]