Show / Hide Table of Contents

Class ProjectsResource.InstancesResource.DatabasesResource.BackupSchedulesResource

The "backupSchedules" collection of methods.

Inheritance
object
ProjectsResource.InstancesResource.DatabasesResource.BackupSchedulesResource
Inherited Members
object.Equals(object)
object.Equals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
object.ReferenceEquals(object, object)
object.ToString()
Namespace: Google.Apis.Spanner.v1
Assembly: Google.Apis.Spanner.v1.dll
Syntax
public class ProjectsResource.InstancesResource.DatabasesResource.BackupSchedulesResource

Constructors

BackupSchedulesResource(IClientService)

Constructs a new resource.

Declaration
public BackupSchedulesResource(IClientService service)
Parameters
Type Name Description
IClientService service

Methods

Create(BackupSchedule, string)

Creates a new backup schedule.

Declaration
public virtual ProjectsResource.InstancesResource.DatabasesResource.BackupSchedulesResource.CreateRequest Create(BackupSchedule body, string parent)
Parameters
Type Name Description
BackupSchedule body

The body of the request.

string parent

Required. The name of the database that this backup schedule applies to.

Returns
Type Description
ProjectsResource.InstancesResource.DatabasesResource.BackupSchedulesResource.CreateRequest

Delete(string)

Deletes a backup schedule.

Declaration
public virtual ProjectsResource.InstancesResource.DatabasesResource.BackupSchedulesResource.DeleteRequest Delete(string name)
Parameters
Type Name Description
string name

Required. The name of the schedule to delete. Values are of the form projects//instances//databases//backupSchedules/.

Returns
Type Description
ProjectsResource.InstancesResource.DatabasesResource.BackupSchedulesResource.DeleteRequest

Get(string)

Gets backup schedule for the input schedule name.

Declaration
public virtual ProjectsResource.InstancesResource.DatabasesResource.BackupSchedulesResource.GetRequest Get(string name)
Parameters
Type Name Description
string name

Required. The name of the schedule to retrieve. Values are of the form projects//instances//databases//backupSchedules/.

Returns
Type Description
ProjectsResource.InstancesResource.DatabasesResource.BackupSchedulesResource.GetRequest

GetIamPolicy(GetIamPolicyRequest, string)

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. For backup schedules, authorization requires spanner.backupSchedules.getIamPolicy permission on resource.

Declaration
public virtual ProjectsResource.InstancesResource.DatabasesResource.BackupSchedulesResource.GetIamPolicyRequest GetIamPolicy(GetIamPolicyRequest body, string resource)
Parameters
Type Name Description
GetIamPolicyRequest body

The body of the request.

string resource

REQUIRED: The Cloud Spanner resource for which the policy is being retrieved. The format is projects//instances/ for instance resources and projects//instances//databases/ for database resources.

Returns
Type Description
ProjectsResource.InstancesResource.DatabasesResource.BackupSchedulesResource.GetIamPolicyRequest

List(string)

Lists all the backup schedules for the database.

Declaration
public virtual ProjectsResource.InstancesResource.DatabasesResource.BackupSchedulesResource.ListRequest List(string parent)
Parameters
Type Name Description
string parent

Required. Database is the parent resource whose backup schedules should be listed. Values are of the form projects//instances//databases/

Returns
Type Description
ProjectsResource.InstancesResource.DatabasesResource.BackupSchedulesResource.ListRequest

Patch(BackupSchedule, string)

Updates a backup schedule.

Declaration
public virtual ProjectsResource.InstancesResource.DatabasesResource.BackupSchedulesResource.PatchRequest Patch(BackupSchedule body, string name)
Parameters
Type Name Description
BackupSchedule body

The body of the request.

string name

Identifier. Output only for the CreateBackupSchedule operation. Required for the UpdateBackupSchedule operation. A globally unique identifier for the backup schedule which cannot be changed. Values are of the form projects//instances//databases//backupSchedules/a-z*[a-z0-9] The final segment of the name must be between 2 and 60 characters in length.

Returns
Type Description
ProjectsResource.InstancesResource.DatabasesResource.BackupSchedulesResource.PatchRequest

SetIamPolicy(SetIamPolicyRequest, string)

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. For backup schedules, authorization requires spanner.backupSchedules.setIamPolicy permission on resource.

Declaration
public virtual ProjectsResource.InstancesResource.DatabasesResource.BackupSchedulesResource.SetIamPolicyRequest SetIamPolicy(SetIamPolicyRequest body, string resource)
Parameters
Type Name Description
SetIamPolicyRequest body

The body of the request.

string resource

REQUIRED: The Cloud Spanner resource for which the policy is being set. The format is projects//instances/ for instance resources and projects//instances//databases/ for databases resources.

Returns
Type Description
ProjectsResource.InstancesResource.DatabasesResource.BackupSchedulesResource.SetIamPolicyRequest

TestIamPermissions(TestIamPermissionsRequest, string)

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. Calling this method on a backup schedule that does not exist will result in a NOT_FOUND error if the user has spanner.backupSchedules.list permission on the containing database.

Declaration
public virtual ProjectsResource.InstancesResource.DatabasesResource.BackupSchedulesResource.TestIamPermissionsRequest TestIamPermissions(TestIamPermissionsRequest body, string resource)
Parameters
Type Name Description
TestIamPermissionsRequest body

The body of the request.

string resource

REQUIRED: The Cloud Spanner resource for which permissions are being tested. The format is projects//instances/ for instance resources and projects//instances//databases/ for database resources.

Returns
Type Description
ProjectsResource.InstancesResource.DatabasesResource.BackupSchedulesResource.TestIamPermissionsRequest
In this article
Back to top Generated by DocFX