Class ProjectsResource.InstancesResource.DatabasesResource.BackupSchedulesResource
The "backupSchedules" collection of methods.
Inherited Members
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
|
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
|
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.
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
|
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
|
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.
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
|
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.
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
|
Returns
Type | Description |
---|---|
ProjectsResource.InstancesResource.DatabasesResource.BackupSchedulesResource.TestIamPermissionsRequest |