class ProjectsLocationsInstancesSnapshots extends Resource (View source)

The "snapshots" collection of methods.

Typical usage is:

 $fileService = new Google\Service\CloudFilestore(...);
 $snapshots = $fileService->projects_locations_instances_snapshots;

Methods

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

Creates a snapshot. (snapshots.create)

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

Deletes a snapshot. (snapshots.delete)

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

Gets the details of a specific snapshot. (snapshots.get)

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

Lists all snapshots in a project for either a specified location or for all locations. (snapshots.listProjectsLocationsInstancesSnapshots)

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

Updates the settings of a specific snapshot. (snapshots.patch)

Details

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

Creates a snapshot. (snapshots.create)

Parameters

string $parent

Required. The Filestore Instance to create the snapshots of, in the format projects/{project_id}/locations/{location}/instances/{instance_id}

Snapshot $postBody
array $optParams

Optional parameters.

Return Value

Operation

Exceptions

Exception

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

Deletes a snapshot. (snapshots.delete)

Parameters

string $name

Required. The snapshot resource name, in the format proj ects/{project_id}/locations/{location}/instances/{instance_id}/snapshots/{sna pshot_id}

array $optParams

Optional parameters.

Return Value

Operation

Exceptions

Exception

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

Gets the details of a specific snapshot. (snapshots.get)

Parameters

string $name

Required. The snapshot resource name, in the format proj ects/{project_id}/locations/{location}/instances/{instance_id}/snapshots/{sna pshot_id}

array $optParams

Optional parameters.

Return Value

Snapshot

Exceptions

Exception

ListSnapshotsResponse listProjectsLocationsInstancesSnapshots(string $parent, array $optParams = [])

Lists all snapshots in a project for either a specified location or for all locations. (snapshots.listProjectsLocationsInstancesSnapshots)

Parameters

string $parent

Required. The instance for which to retrieve snapshot information, in the format projects/{project_id}/locations/{location}/instances/{instance_id}.

array $optParams

Optional parameters.

Return Value

ListSnapshotsResponse

Exceptions

Exception

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

Updates the settings of a specific snapshot. (snapshots.patch)

Parameters

string $name

Output only. The resource name of the snapshot, in the format projects/{project_id}/locations/{location_id}/instances/{instance_id} /snapshots/{snapshot_id}.

Snapshot $postBody
array $optParams

Optional parameters.

Return Value

Operation

Exceptions

Exception