class InstantSnapshots extends Resource (View source)

The "instantSnapshots" collection of methods.

Typical usage is:

 $computeService = new Google\Service\Compute(...);
 $instantSnapshots = $computeService->instantSnapshots;

Methods

aggregatedList(string $project, array $optParams = [])

Retrieves an aggregated list of instantSnapshots. To prevent failure, Google recommends that you set the returnPartialSuccess parameter to true.

delete(string $project, string $zone, string $instantSnapshot, array $optParams = [])

Deletes the specified InstantSnapshot resource. Keep in mind that deleting a single instantSnapshot might not necessarily delete all the data on that instantSnapshot. If any data on the instantSnapshot that is marked for deletion is needed for subsequent instantSnapshots, the data will be moved to the next corresponding instantSnapshot. For more information, see Deleting instantSnapshots. (instantSnapshots.delete)

get(string $project, string $zone, string $instantSnapshot, array $optParams = [])

Returns the specified InstantSnapshot resource in the specified zone.

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

Gets the access control policy for a resource. May be empty if no such policy or resource exists. (instantSnapshots.getIamPolicy)

insert(string $project, string $zone, InstantSnapshot $postBody, array $optParams = [])

Creates an instant snapshot in the specified zone. (instantSnapshots.insert)

listInstantSnapshots(string $project, string $zone, array $optParams = [])

Retrieves the list of InstantSnapshot resources contained within the specified zone. (instantSnapshots.listInstantSnapshots)

setIamPolicy(string $project, string $zone, string $resource, ZoneSetPolicyRequest $postBody, array $optParams = [])

Sets the access control policy on the specified resource. Replaces any existing policy. (instantSnapshots.setIamPolicy)

setLabels(string $project, string $zone, string $resource, ZoneSetLabelsRequest $postBody, array $optParams = [])

Sets the labels on a instantSnapshot in the given zone. To learn more about labels, read the Labeling Resources documentation.

testIamPermissions(string $project, string $zone, string $resource, TestPermissionsRequest $postBody, array $optParams = [])

Returns permissions that a caller has on the specified resource.

Details

InstantSnapshotAggregatedList aggregatedList(string $project, array $optParams = [])

Retrieves an aggregated list of instantSnapshots. To prevent failure, Google recommends that you set the returnPartialSuccess parameter to true.

(instantSnapshots.aggregatedList)

Parameters

string $project

Project ID for this request.

array $optParams

Optional parameters.

Return Value

InstantSnapshotAggregatedList

Exceptions

Exception

Operation delete(string $project, string $zone, string $instantSnapshot, array $optParams = [])

Deletes the specified InstantSnapshot resource. Keep in mind that deleting a single instantSnapshot might not necessarily delete all the data on that instantSnapshot. If any data on the instantSnapshot that is marked for deletion is needed for subsequent instantSnapshots, the data will be moved to the next corresponding instantSnapshot. For more information, see Deleting instantSnapshots. (instantSnapshots.delete)

Parameters

string $project

Project ID for this request.

string $zone

The name of the zone for this request.

string $instantSnapshot

Name of the InstantSnapshot resource to delete.

array $optParams

Optional parameters.

Return Value

Operation

Exceptions

Exception

InstantSnapshot get(string $project, string $zone, string $instantSnapshot, array $optParams = [])

Returns the specified InstantSnapshot resource in the specified zone.

(instantSnapshots.get)

Parameters

string $project

Project ID for this request.

string $zone

The name of the zone for this request.

string $instantSnapshot

Name of the InstantSnapshot resource to return.

array $optParams

Optional parameters.

Return Value

InstantSnapshot

Exceptions

Exception

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

Gets the access control policy for a resource. May be empty if no such policy or resource exists. (instantSnapshots.getIamPolicy)

Parameters

string $project

Project ID for this request.

string $zone

The name of the zone for this request.

string $resource

Name or id of the resource for this request.

array $optParams

Optional parameters.

Return Value

Policy

Exceptions

Exception

Operation insert(string $project, string $zone, InstantSnapshot $postBody, array $optParams = [])

Creates an instant snapshot in the specified zone. (instantSnapshots.insert)

Parameters

string $project

Project ID for this request.

string $zone

Name of the zone for this request.

InstantSnapshot $postBody
array $optParams

Optional parameters.

Return Value

Operation

Exceptions

Exception

InstantSnapshotList listInstantSnapshots(string $project, string $zone, array $optParams = [])

Retrieves the list of InstantSnapshot resources contained within the specified zone. (instantSnapshots.listInstantSnapshots)

Parameters

string $project

Project ID for this request.

string $zone

The name of the zone for this request.

array $optParams

Optional parameters.

Return Value

InstantSnapshotList

Exceptions

Exception

Policy setIamPolicy(string $project, string $zone, string $resource, ZoneSetPolicyRequest $postBody, array $optParams = [])

Sets the access control policy on the specified resource. Replaces any existing policy. (instantSnapshots.setIamPolicy)

Parameters

string $project

Project ID for this request.

string $zone

The name of the zone for this request.

string $resource

Name or id of the resource for this request.

ZoneSetPolicyRequest $postBody
array $optParams

Optional parameters.

Return Value

Policy

Exceptions

Exception

Operation setLabels(string $project, string $zone, string $resource, ZoneSetLabelsRequest $postBody, array $optParams = [])

Sets the labels on a instantSnapshot in the given zone. To learn more about labels, read the Labeling Resources documentation.

(instantSnapshots.setLabels)

Parameters

string $project

Project ID for this request.

string $zone

The name of the zone for this request.

string $resource

Name or id of the resource for this request.

ZoneSetLabelsRequest $postBody
array $optParams

Optional parameters.

Return Value

Operation

Exceptions

Exception

TestPermissionsResponse testIamPermissions(string $project, string $zone, string $resource, TestPermissionsRequest $postBody, array $optParams = [])

Returns permissions that a caller has on the specified resource.

(instantSnapshots.testIamPermissions)

Parameters

string $project

Project ID for this request.

string $zone

The name of the zone for this request.

string $resource

Name or id of the resource for this request.

TestPermissionsRequest $postBody
array $optParams

Optional parameters.

Return Value

TestPermissionsResponse

Exceptions

Exception