Class RegionInstantSnapshotsResource
The "regionInstantSnapshots" collection of methods.
Inherited Members
Namespace: Google.Apis.Compute.alpha
Assembly: Google.Apis.Compute.alpha.dll
Syntax
public class RegionInstantSnapshotsResource
Constructors
RegionInstantSnapshotsResource(IClientService)
Constructs a new resource.
Declaration
public RegionInstantSnapshotsResource(IClientService service)
Parameters
Type | Name | Description |
---|---|---|
IClientService | service |
Methods
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 RegionInstantSnapshotsResource.DeleteRequest Delete(string project, string region, string instantSnapshot)
Parameters
Type | Name | Description |
---|---|---|
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. |
Returns
Type | Description |
---|---|
RegionInstantSnapshotsResource.DeleteRequest |
Get(string, string, string)
Returns the specified InstantSnapshot resource in the specified region.
Declaration
public virtual RegionInstantSnapshotsResource.GetRequest Get(string project, string region, string instantSnapshot)
Parameters
Type | Name | Description |
---|---|---|
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. |
Returns
Type | Description |
---|---|
RegionInstantSnapshotsResource.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 RegionInstantSnapshotsResource.GetIamPolicyRequest GetIamPolicy(string project, string region, string resource)
Parameters
Type | Name | Description |
---|---|---|
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. |
Returns
Type | Description |
---|---|
RegionInstantSnapshotsResource.GetIamPolicyRequest |
Insert(InstantSnapshot, string, string)
Creates an instant snapshot in the specified region.
Declaration
public virtual RegionInstantSnapshotsResource.InsertRequest Insert(InstantSnapshot body, string project, string region)
Parameters
Type | Name | Description |
---|---|---|
InstantSnapshot | body | The body of the request. |
string | project | Project ID for this request. |
string | region | Name of the region for this request. |
Returns
Type | Description |
---|---|
RegionInstantSnapshotsResource.InsertRequest |
List(string, string)
Retrieves the list of InstantSnapshot resources contained within the specified region.
Declaration
public virtual RegionInstantSnapshotsResource.ListRequest List(string project, string region)
Parameters
Type | Name | Description |
---|---|---|
string | project | Project ID for this request. |
string | region | The name of the region for this request. |
Returns
Type | Description |
---|---|
RegionInstantSnapshotsResource.ListRequest |
SetIamPolicy(RegionSetPolicyRequest, string, string, string)
Sets the access control policy on the specified resource. Replaces any existing policy.
Declaration
public virtual RegionInstantSnapshotsResource.SetIamPolicyRequest SetIamPolicy(RegionSetPolicyRequest body, string project, string region, string resource)
Parameters
Type | Name | Description |
---|---|---|
RegionSetPolicyRequest | body | The body of the request. |
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. |
Returns
Type | Description |
---|---|
RegionInstantSnapshotsResource.SetIamPolicyRequest |
SetLabels(RegionSetLabelsRequest, string, string, string)
Sets the labels on a instantSnapshot in the given region. To learn more about labels, read the Labeling Resources documentation.
Declaration
public virtual RegionInstantSnapshotsResource.SetLabelsRequest SetLabels(RegionSetLabelsRequest body, string project, string region, string resource)
Parameters
Type | Name | Description |
---|---|---|
RegionSetLabelsRequest | body | The body of the request. |
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. |
Returns
Type | Description |
---|---|
RegionInstantSnapshotsResource.SetLabelsRequest |
TestIamPermissions(TestPermissionsRequest, string, string, string)
Returns permissions that a caller has on the specified resource.
Declaration
public virtual RegionInstantSnapshotsResource.TestIamPermissionsRequest TestIamPermissions(TestPermissionsRequest body, string project, string region, string resource)
Parameters
Type | Name | Description |
---|---|---|
TestPermissionsRequest | body | The body of the request. |
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. |
Returns
Type | Description |
---|---|
RegionInstantSnapshotsResource.TestIamPermissionsRequest |