ProjectsInstancesDatabasesBackupSchedules
class ProjectsInstancesDatabasesBackupSchedules extends Resource (View source)
The "backupSchedules" collection of methods.
Typical usage is:
$spannerService = new Google\Service\Spanner(...);
$backupSchedules = $spannerService->projects_instances_databases_backupSchedules;
Methods
Creates a new backup schedule. (backupSchedules.create)
Deletes a backup schedule. (backupSchedules.delete)
Gets backup schedule for the input schedule name. (backupSchedules.get)
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.
Lists all the backup schedules for the database.
Updates a backup schedule. (backupSchedules.patch)
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.
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. (backupSchedules.testIamPermissions)
Details
BackupSchedule
create(string $parent, BackupSchedule $postBody, array $optParams = [])
Creates a new backup schedule. (backupSchedules.create)
SpannerEmpty
delete(string $name, array $optParams = [])
Deletes a backup schedule. (backupSchedules.delete)
BackupSchedule
get(string $name, array $optParams = [])
Gets backup schedule for the input schedule name. (backupSchedules.get)
Policy
getIamPolicy(string $resource, GetIamPolicyRequest $postBody, array $optParams = [])
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. (backupSchedules.getIamPolicy)
ListBackupSchedulesResponse
listProjectsInstancesDatabasesBackupSchedules(string $parent, array $optParams = [])
Lists all the backup schedules for the database.
(backupSchedules.listProjectsInstancesDatabasesBackupSchedules)
BackupSchedule
patch(string $name, BackupSchedule $postBody, array $optParams = [])
Updates a backup schedule. (backupSchedules.patch)
Policy
setIamPolicy(string $resource, SetIamPolicyRequest $postBody, array $optParams = [])
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.
(backupSchedules.setIamPolicy)
TestIamPermissionsResponse
testIamPermissions(string $resource, TestIamPermissionsRequest $postBody, array $optParams = [])
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. (backupSchedules.testIamPermissions)