class ProjectsLocationsBackupPlans extends Resource (View source)

The "backupPlans" collection of methods.

Typical usage is:

 $backupdrService = new Google\Service\Backupdr(...);
 $backupPlans = $backupdrService->projects_locations_backupPlans;

Methods

create(string $parent, BackupPlan $postBody, array $optParams = [])

Create a BackupPlan (backupPlans.create)

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

Deletes a single BackupPlan. (backupPlans.delete)

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

Gets details of a single BackupPlan. (backupPlans.get)

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

Lists BackupPlans in a given project and location.

Details

Operation create(string $parent, BackupPlan $postBody, array $optParams = [])

Create a BackupPlan (backupPlans.create)

Parameters

string $parent

Required. The BackupPlan project and location in the format projects/{project}/locations/{location}. In Cloud BackupDR locations map to GCP regions, for example us-central1.

BackupPlan $postBody
array $optParams

Optional parameters.

Return Value

Operation

Exceptions

Exception

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

Deletes a single BackupPlan. (backupPlans.delete)

Parameters

string $name

Required. The resource name of the BackupPlan to delete. Format: projects/{project}/locations/{location}/backupPlans/{backup_plan}

array $optParams

Optional parameters.

Return Value

Operation

Exceptions

Exception

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

Gets details of a single BackupPlan. (backupPlans.get)

Parameters

string $name

Required. The resource name of the BackupPlan to retrieve. Format: projects/{project}/locations/{location}/backupPlans/{backup_plan}

array $optParams

Optional parameters.

Return Value

BackupPlan

Exceptions

Exception

ListBackupPlansResponse listProjectsLocationsBackupPlans(string $parent, array $optParams = [])

Lists BackupPlans in a given project and location.

(backupPlans.listProjectsLocationsBackupPlans)

Parameters

string $parent

Required. The project and location for which to retrieve BackupPlans information. Format: projects/{project}/locations/{location}. In Cloud BackupDR, locations map to GCP regions, for e.g. us-central1. To retrieve backup plans for all locations, use "-" for the {location} value.

array $optParams

Optional parameters.

Return Value

ListBackupPlansResponse

Exceptions

Exception