Class RecoverableSnapshotsResource
The "recoverableSnapshots" collection of methods.
Inherited Members
Namespace: Google.Apis.Compute.alpha
Assembly: Google.Apis.Compute.alpha.dll
Syntax
public class RecoverableSnapshotsResource
Constructors
RecoverableSnapshotsResource(IClientService)
Constructs a new resource.
Declaration
public RecoverableSnapshotsResource(IClientService service)
Parameters
| Type | Name | Description |
|---|---|---|
| IClientService | service |
Methods
AggregatedList(string)
Retrieves an aggregated list of all of the RecoverableSnapshots in your project across all regions and global scope.
Declaration
public virtual RecoverableSnapshotsResource.AggregatedListRequest AggregatedList(string project)
Parameters
| Type | Name | Description |
|---|---|---|
| string | project | Project ID for this request. |
Returns
| Type | Description |
|---|---|
| RecoverableSnapshotsResource.AggregatedListRequest |
Delete(string, string)
Deletes the specified RecoverableSnapshot. Deleting a recoverable snapshot will delete the underlying PD snapshot and is irreversible.
Declaration
public virtual RecoverableSnapshotsResource.DeleteRequest Delete(string project, string recoverableSnapshot)
Parameters
| Type | Name | Description |
|---|---|---|
| string | project | Project ID for this request. |
| string | recoverableSnapshot | Name of the recoverable Snapshot resource to delete. |
Returns
| Type | Description |
|---|---|
| RecoverableSnapshotsResource.DeleteRequest |
Get(string, string)
Returns the specified RecoverableSnapshot resource.
Declaration
public virtual RecoverableSnapshotsResource.GetRequest Get(string project, string recoverableSnapshot)
Parameters
| Type | Name | Description |
|---|---|---|
| string | project | Project ID for this request. |
| string | recoverableSnapshot | Name of the Snapshot resource to return. |
Returns
| Type | Description |
|---|---|
| RecoverableSnapshotsResource.GetRequest |
GetIamPolicy(string, string)
Gets the access control policy for a resource. May be empty if no such policy or resource exists.
Declaration
public virtual RecoverableSnapshotsResource.GetIamPolicyRequest GetIamPolicy(string project, string resource)
Parameters
| Type | Name | Description |
|---|---|---|
| string | project | Project ID for this request. |
| string | resource | Name or id of the resource for this request. |
Returns
| Type | Description |
|---|---|
| RecoverableSnapshotsResource.GetIamPolicyRequest |
List(string)
Retrieves a list of all of the RecoverableSnapshots in your project.
Declaration
public virtual RecoverableSnapshotsResource.ListRequest List(string project)
Parameters
| Type | Name | Description |
|---|---|---|
| string | project | Project ID for this request. |
Returns
| Type | Description |
|---|---|
| RecoverableSnapshotsResource.ListRequest |
Recover(string, string)
Recovers the specified RecoverableSnapshot.
Declaration
public virtual RecoverableSnapshotsResource.RecoverRequest Recover(string project, string recoverableSnapshot)
Parameters
| Type | Name | Description |
|---|---|---|
| string | project | Project Id of the request |
| string | recoverableSnapshot | Name of the recoverable resource to recover |
Returns
| Type | Description |
|---|---|
| RecoverableSnapshotsResource.RecoverRequest |
SetIamPolicy(GlobalSetPolicyRequest, string, string)
Sets the access control policy on the specified resource. Replaces any existing policy.
Declaration
public virtual RecoverableSnapshotsResource.SetIamPolicyRequest SetIamPolicy(GlobalSetPolicyRequest body, string project, string resource)
Parameters
| Type | Name | Description |
|---|---|---|
| GlobalSetPolicyRequest | body | The body of the request. |
| string | project | Project ID for this request. |
| string | resource | Name or id of the resource for this request. |
Returns
| Type | Description |
|---|---|
| RecoverableSnapshotsResource.SetIamPolicyRequest |
TestIamPermissions(TestPermissionsRequest, string, string)
Returns permissions that a caller has on the specified resource.
Declaration
public virtual RecoverableSnapshotsResource.TestIamPermissionsRequest TestIamPermissions(TestPermissionsRequest body, string project, string resource)
Parameters
| Type | Name | Description |
|---|---|---|
| TestPermissionsRequest | body | The body of the request. |
| string | project | Project ID for this request. |
| string | resource | Name or id of the resource for this request. |
Returns
| Type | Description |
|---|---|
| RecoverableSnapshotsResource.TestIamPermissionsRequest |