Class ProjectsResource.LocationsResource.BackupVaultsResource.DataSourcesResource.BackupsResource
The "backups" collection of methods.
Inheritance
Inherited Members
Namespace: Google.Apis.Backupdr.v1
Assembly: Google.Apis.Backupdr.v1.dll
Syntax
public class ProjectsResource.LocationsResource.BackupVaultsResource.DataSourcesResource.BackupsResource
Constructors
BackupsResource(IClientService)
Constructs a new resource.
Declaration
public BackupsResource(IClientService service)
Parameters
Type | Name | Description |
---|---|---|
IClientService | service |
Methods
Delete(string)
Deletes a Backup.
Declaration
public virtual ProjectsResource.LocationsResource.BackupVaultsResource.DataSourcesResource.BackupsResource.DeleteRequest Delete(string name)
Parameters
Type | Name | Description |
---|---|---|
string | name | Required. Name of the resource. |
Returns
Type | Description |
---|---|
ProjectsResource.LocationsResource.BackupVaultsResource.DataSourcesResource.BackupsResource.DeleteRequest |
Get(string)
Gets details of a Backup.
Declaration
public virtual ProjectsResource.LocationsResource.BackupVaultsResource.DataSourcesResource.BackupsResource.GetRequest Get(string name)
Parameters
Type | Name | Description |
---|---|---|
string | name | Required. Name of the data source resource name, in the format 'projects/{project_id}/locations/{location}/backupVaults/{backupVault}/dataSources/{datasource}/backups/{backup}' |
Returns
Type | Description |
---|---|
ProjectsResource.LocationsResource.BackupVaultsResource.DataSourcesResource.BackupsResource.GetRequest |
List(string)
Lists Backups in a given project and location.
Declaration
public virtual ProjectsResource.LocationsResource.BackupVaultsResource.DataSourcesResource.BackupsResource.ListRequest List(string parent)
Parameters
Type | Name | Description |
---|---|---|
string | parent | Required. The project and location for which to retrieve backup information, in the format 'projects/{project_id}/locations/{location}'. In Cloud Backup and DR, locations map to Google Cloud regions, for example us-central1. To retrieve data sources for all locations, use "-" for the '{location}' value. |
Returns
Type | Description |
---|---|
ProjectsResource.LocationsResource.BackupVaultsResource.DataSourcesResource.BackupsResource.ListRequest |
Patch(Backup, string)
Updates the settings of a Backup.
Declaration
public virtual ProjectsResource.LocationsResource.BackupVaultsResource.DataSourcesResource.BackupsResource.PatchRequest Patch(Backup body, string name)
Parameters
Type | Name | Description |
---|---|---|
Backup | body | The body of the request. |
string | name | Output only. Identifier. Name of the backup to create. It must have the
format |
Returns
Type | Description |
---|---|
ProjectsResource.LocationsResource.BackupVaultsResource.DataSourcesResource.BackupsResource.PatchRequest |
Restore(RestoreBackupRequest, string)
Restore from a Backup
Declaration
public virtual ProjectsResource.LocationsResource.BackupVaultsResource.DataSourcesResource.BackupsResource.RestoreRequest Restore(RestoreBackupRequest body, string name)
Parameters
Type | Name | Description |
---|---|---|
RestoreBackupRequest | body | The body of the request. |
string | name | Required. The resource name of the Backup instance, in the format 'projects//locations//backupVaults//dataSources//backups/'. |
Returns
Type | Description |
---|---|
ProjectsResource.LocationsResource.BackupVaultsResource.DataSourcesResource.BackupsResource.RestoreRequest |