class ProjectsLocationsServicesBackups extends Resource (View source)

The "backups" collection of methods.

Typical usage is:

 $metastoreService = new Google\Service\DataprocMetastore(...);
 $backups = $metastoreService->projects_locations_services_backups;

Methods

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

Creates a new backup in a given project and location. (backups.create)

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

Deletes a single backup. (backups.delete)

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

Gets details of a single backup. (backups.get)

getIamPolicy(string $resource, array $optParams = [])

Gets the access control policy for a resource. Returns an empty policy if the resource exists and does not have a policy set. (backups.getIamPolicy)

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

Lists backups in a service. (backups.listProjectsLocationsServicesBackups)

setIamPolicy(string $resource, SetIamPolicyRequest $postBody, array $optParams = [])

Sets the access control policy on the specified resource. Replaces any existing policy.Can return NOT_FOUND, INVALID_ARGUMENT, and PERMISSION_DENIED errors. (backups.setIamPolicy)

Details

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

Creates a new backup in a given project and location. (backups.create)

Parameters

string $parent

Required. The relative resource name of the service in which to create a backup of the following form:projects/{project_number}/locations/{location_id}/services/{service_id}.

Backup $postBody
array $optParams

Optional parameters.

Return Value

Operation

Exceptions

Exception

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

Deletes a single backup. (backups.delete)

Parameters

string $name

Required. The relative resource name of the backup to delete, in the following form:projects/{project_number}/locations/{location_i d}/services/{service_id}/backups/{backup_id}.

array $optParams

Optional parameters.

Return Value

Operation

Exceptions

Exception

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

Gets details of a single backup. (backups.get)

Parameters

string $name

Required. The relative resource name of the backup to retrieve, in the following form:projects/{project_number}/locations/{location _id}/services/{service_id}/backups/{backup_id}.

array $optParams

Optional parameters.

Return Value

Backup

Exceptions

Exception

Policy getIamPolicy(string $resource, array $optParams = [])

Gets the access control policy for a resource. Returns an empty policy if the resource exists and does not have a policy set. (backups.getIamPolicy)

Parameters

string $resource

REQUIRED: The resource for which the policy is being requested. See Resource names (https://cloud.google.com/apis/design/resource_names) for the appropriate value for this field.

array $optParams

Optional parameters.

Return Value

Policy

Exceptions

Exception

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

Lists backups in a service. (backups.listProjectsLocationsServicesBackups)

Parameters

string $parent

Required. The relative resource name of the service whose backups to list, in the following form:projects/{project_number}/locati ons/{location_id}/services/{service_id}/backups.

array $optParams

Optional parameters.

Return Value

ListBackupsResponse

Exceptions

Exception

Policy setIamPolicy(string $resource, SetIamPolicyRequest $postBody, array $optParams = [])

Sets the access control policy on the specified resource. Replaces any existing policy.Can return NOT_FOUND, INVALID_ARGUMENT, and PERMISSION_DENIED errors. (backups.setIamPolicy)

Parameters

string $resource

REQUIRED: The resource for which the policy is being specified. See Resource names (https://cloud.google.com/apis/design/resource_names) for the appropriate value for this field.

SetIamPolicyRequest $postBody
array $optParams

Optional parameters.

Return Value

Policy

Exceptions

Exception