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