class ProjectsLocationsBackupVaultsDataSourcesBackups extends Resource (View source)

The "backups" collection of methods.

Typical usage is:

 $backupdrService = new Google\Service\Backupdr(...);
 $backups = $backupdrService->projects_locations_backupVaults_dataSources_backups;

Methods

delete(string $name, array $optParams = [])

Deletes a Backup. (backups.delete)

get(string $name, array $optParams = [])

Gets details of a Backup. (backups.get)

listProjectsLocationsBackupVaultsDataSourcesBackups(string $parent, array $optParams = [])

Lists Backups in a given project and location.

patch(string $name, Backup $postBody, array $optParams = [])

Updates the settings of a Backup. (backups.patch)

restore(string $name, RestoreBackupRequest $postBody, array $optParams = [])

Restore from a Backup (backups.restore)

Details

Operation delete(string $name, array $optParams = [])

Deletes a Backup. (backups.delete)

Parameters

string $name

Required. Name of the resource.

array $optParams

Optional parameters.

Return Value

Operation

Exceptions

Exception

Backup get(string $name, array $optParams = [])

Gets details of a Backup. (backups.get)

Parameters

string $name

Required. Name of the data source resource name, in the format 'projects/{project_id}/locations/{location}/backupVaults/{backupVault} /dataSources/{datasource}/backups/{backup}'

array $optParams

Optional parameters.

Return Value

Backup

Exceptions

Exception

ListBackupsResponse listProjectsLocationsBackupVaultsDataSourcesBackups(string $parent, array $optParams = [])

Lists Backups in a given project and location.

(backups.listProjectsLocationsBackupVaultsDataSourcesBackups)

Parameters

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.

array $optParams

Optional parameters.

Return Value

ListBackupsResponse

Exceptions

Exception

Operation patch(string $name, Backup $postBody, array $optParams = [])

Updates the settings of a Backup. (backups.patch)

Parameters

string $name

Output only. Identifier. Name of the resource.

Backup $postBody
array $optParams

Optional parameters.

Return Value

Operation

Exceptions

Exception

Operation restore(string $name, RestoreBackupRequest $postBody, array $optParams = [])

Restore from a Backup (backups.restore)

Parameters

string $name

Required. The resource name of the Backup instance, in the format 'projects/locations/backupVaults/dataSources/backups/'.

RestoreBackupRequest $postBody
array $optParams

Optional parameters.

Return Value

Operation

Exceptions

Exception