Class BackupRunsResource
The "backupRuns" collection of methods.
Inherited Members
Namespace: Google.Apis.SQLAdmin.v1
Assembly: Google.Apis.SQLAdmin.v1.dll
Syntax
public class BackupRunsResource
Constructors
BackupRunsResource(IClientService)
Constructs a new resource.
Declaration
public BackupRunsResource(IClientService service)
Parameters
Type | Name | Description |
---|---|---|
IClientService | service |
Methods
Delete(string, string, long)
Deletes the backup taken by a backup run.
Declaration
public virtual BackupRunsResource.DeleteRequest Delete(string project, string instance, long id)
Parameters
Type | Name | Description |
---|---|---|
string | project | Project ID of the project that contains the instance. |
string | instance | Cloud SQL instance ID. This does not include the project ID. |
long | id | The ID of the backup run to delete. To find a backup run ID, use the list method. |
Returns
Type | Description |
---|---|
BackupRunsResource.DeleteRequest |
Get(string, string, long)
Retrieves a resource containing information about a backup run.
Declaration
public virtual BackupRunsResource.GetRequest Get(string project, string instance, long id)
Parameters
Type | Name | Description |
---|---|---|
string | project | Project ID of the project that contains the instance. |
string | instance | Cloud SQL instance ID. This does not include the project ID. |
long | id | The ID of this backup run. |
Returns
Type | Description |
---|---|
BackupRunsResource.GetRequest |
Insert(BackupRun, string, string)
Creates a new backup run on demand.
Declaration
public virtual BackupRunsResource.InsertRequest Insert(BackupRun body, string project, string instance)
Parameters
Type | Name | Description |
---|---|---|
BackupRun | body | The body of the request. |
string | project | Project ID of the project that contains the instance. |
string | instance | Cloud SQL instance ID. This does not include the project ID. |
Returns
Type | Description |
---|---|
BackupRunsResource.InsertRequest |
List(string, string)
Lists all backup runs associated with the project or a given instance and configuration in the reverse chronological order of the backup initiation time.
Declaration
public virtual BackupRunsResource.ListRequest List(string project, string instance)
Parameters
Type | Name | Description |
---|---|---|
string | project | Project ID of the project that contains the instance. |
string | instance | Cloud SQL instance ID, or "-" for all instances. This does not include the project ID. |
Returns
Type | Description |
---|---|
BackupRunsResource.ListRequest |