Class BackupsResource
The "Backups" collection of methods.
Inherited Members
Namespace: Google.Apis.SQLAdmin.v1
Assembly: Google.Apis.SQLAdmin.v1.dll
Syntax
public class BackupsResource
Constructors
BackupsResource(IClientService)
Constructs a new resource.
Declaration
public BackupsResource(IClientService service)
Parameters
Type | Name | Description |
---|---|---|
IClientService | service |
Methods
CreateBackup(Backup, string)
Creates a backup for a Cloud SQL instance. This API can be used only to create on-demand backups.
Declaration
public virtual BackupsResource.CreateBackupRequest CreateBackup(Backup body, string parent)
Parameters
Type | Name | Description |
---|---|---|
Backup | body | The body of the request. |
string | parent | Required. The parent resource where this backup is created. Format: projects/{project} |
Returns
Type | Description |
---|---|
BackupsResource.CreateBackupRequest |
DeleteBackup(string)
Deletes the backup.
Declaration
public virtual BackupsResource.DeleteBackupRequest DeleteBackup(string name)
Parameters
Type | Name | Description |
---|---|---|
string | name | Required. The name of the backup to delete. Format: projects/{project}/backups/{backup} |
Returns
Type | Description |
---|---|
BackupsResource.DeleteBackupRequest |
GetBackup(string)
Retrieves a resource containing information about a backup.
Declaration
public virtual BackupsResource.GetBackupRequest GetBackup(string name)
Parameters
Type | Name | Description |
---|---|---|
string | name | Required. The name of the backup to retrieve. Format: projects/{project}/backups/{backup} |
Returns
Type | Description |
---|---|
BackupsResource.GetBackupRequest |
ListBackups(string)
Lists all backups associated with the project.
Declaration
public virtual BackupsResource.ListBackupsRequest ListBackups(string parent)
Parameters
Type | Name | Description |
---|---|---|
string | parent | Required. The parent that owns this collection of backups. Format: projects/{project} |
Returns
Type | Description |
---|---|
BackupsResource.ListBackupsRequest |
UpdateBackup(Backup, string)
Updates the retention period and description of the backup. You can use this API to update final backups only.
Declaration
public virtual BackupsResource.UpdateBackupRequest UpdateBackup(Backup body, string name)
Parameters
Type | Name | Description |
---|---|---|
Backup | body | The body of the request. |
string | name | Output only. The resource name of the backup. Format: projects/{project}/backups/{backup}. |
Returns
Type | Description |
---|---|
BackupsResource.UpdateBackupRequest |