InstantSnapshots
class InstantSnapshots extends Resource (View source)
The "instantSnapshots" collection of methods.
Typical usage is:
$computeService = new Google\Service\Compute(...);
$instantSnapshots = $computeService->instantSnapshots;
Methods
Retrieves an aggregated list of instantSnapshots. To prevent failure, Google
recommends that you set the returnPartialSuccess
parameter to true
.
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)
Returns the specified InstantSnapshot resource in the specified zone.
Gets the access control policy for a resource. May be empty if no such policy or resource exists. (instantSnapshots.getIamPolicy)
Creates an instant snapshot in the specified zone. (instantSnapshots.insert)
Retrieves the list of InstantSnapshot resources contained within the specified zone. (instantSnapshots.listInstantSnapshots)
Sets the access control policy on the specified resource. Replaces any existing policy. (instantSnapshots.setIamPolicy)
Sets the labels on a instantSnapshot in the given zone. To learn more about labels, read the Labeling Resources documentation.
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)
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)
InstantSnapshot
get(string $project, string $zone, string $instantSnapshot, array $optParams = [])
Returns the specified InstantSnapshot resource in the specified zone.
(instantSnapshots.get)
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)
Operation
insert(string $project, string $zone, InstantSnapshot $postBody, array $optParams = [])
Creates an instant snapshot in the specified zone. (instantSnapshots.insert)
InstantSnapshotList
listInstantSnapshots(string $project, string $zone, array $optParams = [])
Retrieves the list of InstantSnapshot resources contained within the specified zone. (instantSnapshots.listInstantSnapshots)
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)
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)
TestPermissionsResponse
testIamPermissions(string $project, string $zone, string $resource, TestPermissionsRequest $postBody, array $optParams = [])
Returns permissions that a caller has on the specified resource.
(instantSnapshots.testIamPermissions)