Show / Hide Table of Contents

Class InstantSnapshotsResource

The "instantSnapshots" collection of methods.

Inheritance
object
InstantSnapshotsResource
Inherited Members
object.Equals(object)
object.Equals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
object.ReferenceEquals(object, object)
object.ToString()
Namespace: Google.Apis.Compute.v1
Assembly: Google.Apis.Compute.v1.dll
Syntax
public class InstantSnapshotsResource

Constructors

InstantSnapshotsResource(IClientService)

Constructs a new resource.

Declaration
public InstantSnapshotsResource(IClientService service)
Parameters
Type Name Description
IClientService service

Methods

AggregatedList(string)

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

Declaration
public virtual InstantSnapshotsResource.AggregatedListRequest AggregatedList(string project)
Parameters
Type Name Description
string project

Project ID for this request.

Returns
Type Description
InstantSnapshotsResource.AggregatedListRequest

Delete(string, string, string)

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.

Declaration
public virtual InstantSnapshotsResource.DeleteRequest Delete(string project, string zone, string instantSnapshot)
Parameters
Type Name Description
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.

Returns
Type Description
InstantSnapshotsResource.DeleteRequest

Get(string, string, string)

Returns the specified InstantSnapshot resource in the specified zone.

Declaration
public virtual InstantSnapshotsResource.GetRequest Get(string project, string zone, string instantSnapshot)
Parameters
Type Name Description
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.

Returns
Type Description
InstantSnapshotsResource.GetRequest

GetIamPolicy(string, string, string)

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

Declaration
public virtual InstantSnapshotsResource.GetIamPolicyRequest GetIamPolicy(string project, string zone, string resource)
Parameters
Type Name Description
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.

Returns
Type Description
InstantSnapshotsResource.GetIamPolicyRequest

Insert(InstantSnapshot, string, string)

Creates an instant snapshot in the specified zone.

Declaration
public virtual InstantSnapshotsResource.InsertRequest Insert(InstantSnapshot body, string project, string zone)
Parameters
Type Name Description
InstantSnapshot body

The body of the request.

string project

Project ID for this request.

string zone

Name of the zone for this request.

Returns
Type Description
InstantSnapshotsResource.InsertRequest

List(string, string)

Retrieves the list of InstantSnapshot resources contained within the specified zone.

Declaration
public virtual InstantSnapshotsResource.ListRequest List(string project, string zone)
Parameters
Type Name Description
string project

Project ID for this request.

string zone

The name of the zone for this request.

Returns
Type Description
InstantSnapshotsResource.ListRequest

SetIamPolicy(ZoneSetPolicyRequest, string, string, string)

Sets the access control policy on the specified resource. Replaces any existing policy.

Declaration
public virtual InstantSnapshotsResource.SetIamPolicyRequest SetIamPolicy(ZoneSetPolicyRequest body, string project, string zone, string resource)
Parameters
Type Name Description
ZoneSetPolicyRequest body

The body of the request.

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.

Returns
Type Description
InstantSnapshotsResource.SetIamPolicyRequest

SetLabels(ZoneSetLabelsRequest, string, string, string)

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

Declaration
public virtual InstantSnapshotsResource.SetLabelsRequest SetLabels(ZoneSetLabelsRequest body, string project, string zone, string resource)
Parameters
Type Name Description
ZoneSetLabelsRequest body

The body of the request.

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.

Returns
Type Description
InstantSnapshotsResource.SetLabelsRequest

TestIamPermissions(TestPermissionsRequest, string, string, string)

Returns permissions that a caller has on the specified resource.

Declaration
public virtual InstantSnapshotsResource.TestIamPermissionsRequest TestIamPermissions(TestPermissionsRequest body, string project, string zone, string resource)
Parameters
Type Name Description
TestPermissionsRequest body

The body of the request.

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.

Returns
Type Description
InstantSnapshotsResource.TestIamPermissionsRequest
In this article
Back to top Generated by DocFX