class RegionInstantSnapshots extends Resource (View source)

The "regionInstantSnapshots" collection of methods.

Typical usage is:

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

Methods

delete(string $project, string $region, 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. (regionInstantSnapshots.delete)

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

Returns the specified InstantSnapshot resource in the specified region.

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

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

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

Creates an instant snapshot in the specified region.

listRegionInstantSnapshots(string $project, string $region, array $optParams = [])

Retrieves the list of InstantSnapshot resources contained within the specified region. (regionInstantSnapshots.listRegionInstantSnapshots)

setIamPolicy(string $project, string $region, string $resource, RegionSetPolicyRequest $postBody, array $optParams = [])

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

setLabels(string $project, string $region, string $resource, RegionSetLabelsRequest $postBody, array $optParams = [])

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

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

Returns permissions that a caller has on the specified resource.

Details

Operation delete(string $project, string $region, 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. (regionInstantSnapshots.delete)

Parameters

string $project

Project ID for this request.

string $region

The name of the region 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 $region, string $instantSnapshot, array $optParams = [])

Returns the specified InstantSnapshot resource in the specified region.

(regionInstantSnapshots.get)

Parameters

string $project

Project ID for this request.

string $region

The name of the region 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 $region, string $resource, array $optParams = [])

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

Parameters

string $project

Project ID for this request.

string $region

The name of the region 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 $region, InstantSnapshot $postBody, array $optParams = [])

Creates an instant snapshot in the specified region.

(regionInstantSnapshots.insert)

Parameters

string $project

Project ID for this request.

string $region

Name of the region for this request.

InstantSnapshot $postBody
array $optParams

Optional parameters.

Return Value

Operation

Exceptions

Exception

InstantSnapshotList listRegionInstantSnapshots(string $project, string $region, array $optParams = [])

Retrieves the list of InstantSnapshot resources contained within the specified region. (regionInstantSnapshots.listRegionInstantSnapshots)

Parameters

string $project

Project ID for this request.

string $region

The name of the region for this request.

array $optParams

Optional parameters.

Return Value

InstantSnapshotList

Exceptions

Exception

Policy setIamPolicy(string $project, string $region, string $resource, RegionSetPolicyRequest $postBody, array $optParams = [])

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

Parameters

string $project

Project ID for this request.

string $region

The name of the region for this request.

string $resource

Name or id of the resource for this request.

RegionSetPolicyRequest $postBody
array $optParams

Optional parameters.

Return Value

Policy

Exceptions

Exception

Operation setLabels(string $project, string $region, string $resource, RegionSetLabelsRequest $postBody, array $optParams = [])

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

(regionInstantSnapshots.setLabels)

Parameters

string $project

Project ID for this request.

string $region

The region for this request.

string $resource

Name or id of the resource for this request.

RegionSetLabelsRequest $postBody
array $optParams

Optional parameters.

Return Value

Operation

Exceptions

Exception

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

Returns permissions that a caller has on the specified resource.

(regionInstantSnapshots.testIamPermissions)

Parameters

string $project

Project ID for this request.

string $region

The name of the region 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