Class RegionInPlaceSnapshotsResource
The "regionInPlaceSnapshots" collection of methods.
Inheritance
Inherited Members
Namespace: Google.Apis.Compute.alpha
Assembly: Google.Apis.Compute.alpha.dll
Syntax
public class RegionInPlaceSnapshotsResource
Constructors
RegionInPlaceSnapshotsResource(IClientService)
Constructs a new resource.
Declaration
public RegionInPlaceSnapshotsResource(IClientService service)
Parameters
| Type | Name | Description |
|---|---|---|
| IClientService | service |
Methods
Delete(String, String, String)
Deletes the specified InPlaceSnapshot resource. Keep in mind that deleting a single inPlaceSnapshot might not necessarily delete all the data on that inPlaceSnapshot. If any data on the inPlaceSnapshot that is marked for deletion is needed for subsequent inPlaceSnapshots, the data will be moved to the next corresponding inPlaceSnapshot. For more information, see Deleting inPlaceSnapshots.
Declaration
public virtual RegionInPlaceSnapshotsResource.DeleteRequest Delete(string project, string region, string inPlaceSnapshot)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | project | Project ID for this request. |
| System.String | region | The name of the region for this request. |
| System.String | inPlaceSnapshot | Name of the InPlaceSnapshot resource to delete. |
Returns
| Type | Description |
|---|---|
| RegionInPlaceSnapshotsResource.DeleteRequest |
Get(String, String, String)
Returns the specified InPlaceSnapshot resource in the specified region.
Declaration
public virtual RegionInPlaceSnapshotsResource.GetRequest Get(string project, string region, string inPlaceSnapshot)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | project | Project ID for this request. |
| System.String | region | The name of the region for this request. |
| System.String | inPlaceSnapshot | Name of the InPlaceSnapshot resource to return. |
Returns
| Type | Description |
|---|---|
| RegionInPlaceSnapshotsResource.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 RegionInPlaceSnapshotsResource.GetIamPolicyRequest GetIamPolicy(string project, string region, string resource)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | project | Project ID for this request. |
| System.String | region | The name of the region for this request. |
| System.String | resource | Name or id of the resource for this request. |
Returns
| Type | Description |
|---|---|
| RegionInPlaceSnapshotsResource.GetIamPolicyRequest |
Insert(InPlaceSnapshot, String, String)
Creates an in-place snapshot in the specified region.
Declaration
public virtual RegionInPlaceSnapshotsResource.InsertRequest Insert(InPlaceSnapshot body, string project, string region)
Parameters
| Type | Name | Description |
|---|---|---|
| InPlaceSnapshot | body | The body of the request. |
| System.String | project | Project ID for this request. |
| System.String | region | Name of the region for this request. |
Returns
| Type | Description |
|---|---|
| RegionInPlaceSnapshotsResource.InsertRequest |
List(String, String)
Retrieves the list of InPlaceSnapshot resources contained within the specified region.
Declaration
public virtual RegionInPlaceSnapshotsResource.ListRequest List(string project, string region)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | project | Project ID for this request. |
| System.String | region | The name of the region for this request. |
Returns
| Type | Description |
|---|---|
| RegionInPlaceSnapshotsResource.ListRequest |
SetIamPolicy(RegionSetPolicyRequest, String, String, String)
Sets the access control policy on the specified resource. Replaces any existing policy.
Declaration
public virtual RegionInPlaceSnapshotsResource.SetIamPolicyRequest SetIamPolicy(RegionSetPolicyRequest body, string project, string region, string resource)
Parameters
| Type | Name | Description |
|---|---|---|
| RegionSetPolicyRequest | body | The body of the request. |
| System.String | project | Project ID for this request. |
| System.String | region | The name of the region for this request. |
| System.String | resource | Name or id of the resource for this request. |
Returns
| Type | Description |
|---|---|
| RegionInPlaceSnapshotsResource.SetIamPolicyRequest |
SetLabels(RegionSetLabelsRequest, String, String, String)
Sets the labels on a inPlaceSnapshot in the given region. To learn more about labels, read the Labeling Resources documentation.
Declaration
public virtual RegionInPlaceSnapshotsResource.SetLabelsRequest SetLabels(RegionSetLabelsRequest body, string project, string region, string resource)
Parameters
| Type | Name | Description |
|---|---|---|
| RegionSetLabelsRequest | body | The body of the request. |
| System.String | project | Project ID for this request. |
| System.String | region | The region for this request. |
| System.String | resource | Name or id of the resource for this request. |
Returns
| Type | Description |
|---|---|
| RegionInPlaceSnapshotsResource.SetLabelsRequest |
TestIamPermissions(TestPermissionsRequest, String, String, String)
Returns permissions that a caller has on the specified resource.
Declaration
public virtual RegionInPlaceSnapshotsResource.TestIamPermissionsRequest TestIamPermissions(TestPermissionsRequest body, string project, string region, string resource)
Parameters
| Type | Name | Description |
|---|---|---|
| TestPermissionsRequest | body | The body of the request. |
| System.String | project | Project ID for this request. |
| System.String | region | The name of the region for this request. |
| System.String | resource | Name or id of the resource for this request. |
Returns
| Type | Description |
|---|---|
| RegionInPlaceSnapshotsResource.TestIamPermissionsRequest |