class ProjectsLocationsBackups extends Resource (View source)

The "backups" collection of methods.

Typical usage is:

 $fileService = new Google\Service\CloudFilestore(...);
 $backups = $fileService->projects_locations_backups;

Methods

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

Creates a backup. (backups.create)

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

Deletes a backup. (backups.delete)

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

Gets the details of a specific backup. (backups.get)

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

Lists all backups in a project for either a specified location or for all locations. (backups.listProjectsLocationsBackups)

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

Updates the settings of a specific backup. (backups.patch)

Details

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

Creates a backup. (backups.create)

Parameters

string $parent

Required. The backup's project and location, in the format projects/{project_number}/locations/{location}. In Filestore, backup locations map to Google Cloud regions, for example us-west1.

Backup $postBody
array $optParams

Optional parameters.

Return Value

Operation

Exceptions

Exception

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

Deletes a backup. (backups.delete)

Parameters

string $name

Required. The backup resource name, in the format projects/{project_number}/locations/{location}/backups/{backup_id}

array $optParams

Optional parameters.

Return Value

Operation

Exceptions

Exception

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

Gets the details of a specific backup. (backups.get)

Parameters

string $name

Required. The backup resource name, in the format projects/{project_number}/locations/{location}/backups/{backup_id}.

array $optParams

Optional parameters.

Return Value

Backup

Exceptions

Exception

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

Lists all backups in a project for either a specified location or for all locations. (backups.listProjectsLocationsBackups)

Parameters

string $parent

Required. The project and location for which to retrieve backup information, in the format projects/{project_number}/locations/{location}. In Filestore, backup locations map to Google Cloud regions, for example us-west1. To retrieve backup information 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 specific backup. (backups.patch)

Parameters

string $name

Output only. The resource name of the backup, in the format projects/{project_number}/locations/{location_id}/backups/{backup_id}.

Backup $postBody
array $optParams

Optional parameters.

Return Value

Operation

Exceptions

Exception