Class RegionDisksResource
The "regionDisks" collection of methods.
Inheritance
Inherited Members
Namespace: Google.Apis.Compute.v1
Assembly: Google.Apis.Compute.v1.dll
Syntax
public class RegionDisksResource
Constructors
RegionDisksResource(IClientService)
Constructs a new resource.
Declaration
public RegionDisksResource(IClientService service)
Parameters
| Type | Name | Description |
|---|---|---|
| IClientService | service |
Methods
AddResourcePolicies(RegionDisksAddResourcePoliciesRequest, String, String, String)
Adds existing resource policies to a regional disk. You can only add one policy which will be applied to this disk for scheduling snapshot creation.
Declaration
public virtual RegionDisksResource.AddResourcePoliciesRequest AddResourcePolicies(RegionDisksAddResourcePoliciesRequest body, string project, string region, string disk)
Parameters
| Type | Name | Description |
|---|---|---|
| RegionDisksAddResourcePoliciesRequest | 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 | disk | The disk name for this request. |
Returns
| Type | Description |
|---|---|
| RegionDisksResource.AddResourcePoliciesRequest |
CreateSnapshot(Snapshot, String, String, String)
Creates a snapshot of this regional disk.
Declaration
public virtual RegionDisksResource.CreateSnapshotRequest CreateSnapshot(Snapshot body, string project, string region, string disk)
Parameters
| Type | Name | Description |
|---|---|---|
| Snapshot | body | The body of the request. |
| System.String | project | Project ID for this request. |
| System.String | region | Name of the region for this request. |
| System.String | disk | Name of the regional persistent disk to snapshot. |
Returns
| Type | Description |
|---|---|
| RegionDisksResource.CreateSnapshotRequest |
Delete(String, String, String)
Deletes the specified regional persistent disk. Deleting a regional disk removes all the replicas of its data permanently and is irreversible. However, deleting a disk does not delete any snapshots previously made from the disk. You must separately delete snapshots.
Declaration
public virtual RegionDisksResource.DeleteRequest Delete(string project, string region, string disk)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | project | Project ID for this request. |
| System.String | region | Name of the region for this request. |
| System.String | disk | Name of the regional persistent disk to delete. |
Returns
| Type | Description |
|---|---|
| RegionDisksResource.DeleteRequest |
Get(String, String, String)
Returns a specified regional persistent disk.
Declaration
public virtual RegionDisksResource.GetRequest Get(string project, string region, string disk)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | project | Project ID for this request. |
| System.String | region | Name of the region for this request. |
| System.String | disk | Name of the regional persistent disk to return. |
Returns
| Type | Description |
|---|---|
| RegionDisksResource.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 RegionDisksResource.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 |
|---|---|
| RegionDisksResource.GetIamPolicyRequest |
Insert(Disk, String, String)
Creates a persistent regional disk in the specified project using the data included in the request.
Declaration
public virtual RegionDisksResource.InsertRequest Insert(Disk body, string project, string region)
Parameters
| Type | Name | Description |
|---|---|---|
| Disk | 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 |
|---|---|
| RegionDisksResource.InsertRequest |
List(String, String)
Retrieves the list of persistent disks contained within the specified region.
Declaration
public virtual RegionDisksResource.ListRequest List(string project, string region)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | project | Project ID for this request. |
| System.String | region | Name of the region for this request. |
Returns
| Type | Description |
|---|---|
| RegionDisksResource.ListRequest |
RemoveResourcePolicies(RegionDisksRemoveResourcePoliciesRequest, String, String, String)
Removes resource policies from a regional disk.
Declaration
public virtual RegionDisksResource.RemoveResourcePoliciesRequest RemoveResourcePolicies(RegionDisksRemoveResourcePoliciesRequest body, string project, string region, string disk)
Parameters
| Type | Name | Description |
|---|---|---|
| RegionDisksRemoveResourcePoliciesRequest | 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 | disk | The disk name for this request. |
Returns
| Type | Description |
|---|---|
| RegionDisksResource.RemoveResourcePoliciesRequest |
Resize(RegionDisksResizeRequest, String, String, String)
Resizes the specified regional persistent disk.
Declaration
public virtual RegionDisksResource.ResizeRequest Resize(RegionDisksResizeRequest body, string project, string region, string disk)
Parameters
| Type | Name | Description |
|---|---|---|
| RegionDisksResizeRequest | body | The body of the request. |
| System.String | project | The project ID for this request. |
| System.String | region | Name of the region for this request. |
| System.String | disk | Name of the regional persistent disk. |
Returns
| Type | Description |
|---|---|
| RegionDisksResource.ResizeRequest |
SetIamPolicy(RegionSetPolicyRequest, String, String, String)
Sets the access control policy on the specified resource. Replaces any existing policy.
Declaration
public virtual RegionDisksResource.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 |
|---|---|
| RegionDisksResource.SetIamPolicyRequest |
SetLabels(RegionSetLabelsRequest, String, String, String)
Sets the labels on the target regional disk.
Declaration
public virtual RegionDisksResource.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 |
|---|---|
| RegionDisksResource.SetLabelsRequest |
TestIamPermissions(TestPermissionsRequest, String, String, String)
Returns permissions that a caller has on the specified resource.
Declaration
public virtual RegionDisksResource.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 |
|---|---|
| RegionDisksResource.TestIamPermissionsRequest |