class ProjectsLocationsBackupPlanAssociations extends Resource (View source)

The "backupPlanAssociations" collection of methods.

Typical usage is:

 $backupdrService = new Google\Service\Backupdr(...);
 $backupPlanAssociations = $backupdrService->projects_locations_backupPlanAssociations;

Methods

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

Create a BackupPlanAssociation (backupPlanAssociations.create)

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

Deletes a single BackupPlanAssociation. (backupPlanAssociations.delete)

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

Gets details of a single BackupPlanAssociation. (backupPlanAssociations.get)

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

Lists BackupPlanAssociations in a given project and location.

triggerBackup(string $name, TriggerBackupRequest $postBody, array $optParams = [])

Triggers a new Backup. (backupPlanAssociations.triggerBackup)

Details

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

Create a BackupPlanAssociation (backupPlanAssociations.create)

Parameters

string $parent

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

BackupPlanAssociation $postBody
array $optParams

Optional parameters.

Return Value

Operation

Exceptions

Exception

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

Deletes a single BackupPlanAssociation. (backupPlanAssociations.delete)

Parameters

string $name

Required. Name of the backup plan association resource, in the format projects/{project}/locations/{location}/backupPlanAssociations /{backupPlanAssociationId}

array $optParams

Optional parameters.

Return Value

Operation

Exceptions

Exception

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

Gets details of a single BackupPlanAssociation. (backupPlanAssociations.get)

Parameters

string $name

Required. Name of the backup plan association resource, in the format projects/{project}/locations/{location}/backupPlanAssociations /{backupPlanAssociationId}

array $optParams

Optional parameters.

Return Value

BackupPlanAssociation

Exceptions

Exception

ListBackupPlanAssociationsResponse listProjectsLocationsBackupPlanAssociations(string $parent, array $optParams = [])

Lists BackupPlanAssociations in a given project and location.

(backupPlanAssociations.listProjectsLocationsBackupPlanAssociations)

Parameters

string $parent

Required. The project and location for which to retrieve backup Plan Associations information, in the format projects/{project_id}/locations/{location}. In Cloud BackupDR, locations map to GCP regions, for example us-central1. To retrieve backup plan associations for all locations, use "-" for the {location} value.

array $optParams

Optional parameters.

Return Value

ListBackupPlanAssociationsResponse

Exceptions

Exception

Operation triggerBackup(string $name, TriggerBackupRequest $postBody, array $optParams = [])

Triggers a new Backup. (backupPlanAssociations.triggerBackup)

Parameters

string $name

Required. Name of the backup plan association resource, in the format projects/{project}/locations/{location}/backupPlanAssociations /{backupPlanAssociationId}

TriggerBackupRequest $postBody
array $optParams

Optional parameters.

Return Value

Operation

Exceptions

Exception