Class RegionDisksResource
The "regionDisks" collection of methods.
Inherited Members
Namespace: Google.Apis.Compute.alpha
Assembly: Google.Apis.Compute.alpha.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. |
string | project | Project ID for this request. |
string | region | The name of the region for this request. |
string | disk | The disk name for this request. |
Returns
Type | Description |
---|---|
RegionDisksResource.AddResourcePoliciesRequest |
BulkInsert(BulkInsertDiskResource, string, string)
Bulk create a set of disks.
Declaration
public virtual RegionDisksResource.BulkInsertRequest BulkInsert(BulkInsertDiskResource body, string project, string region)
Parameters
Type | Name | Description |
---|---|---|
BulkInsertDiskResource | body | The body of the request. |
string | project | Project ID for this request. |
string | region | The name of the region for this request. |
Returns
Type | Description |
---|---|
RegionDisksResource.BulkInsertRequest |
CreateSnapshot(Snapshot, string, string, string)
Creates a snapshot of a specified persistent disk. For regular snapshot creation, consider using snapshots.insert instead, as that method supports more features, such as creating snapshots in a project different from the source disk project.
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. |
string | project | Project ID for this request. |
string | region | Name of the region for this request. |
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 |
---|---|---|
string | project | Project ID for this request. |
string | region | Name of the region for this request. |
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 |
---|---|---|
string | project | Project ID for this request. |
string | region | Name of the region for this request. |
string | disk | Name of the regional persistent disk to return. |
Returns
Type | Description |
---|---|
RegionDisksResource.GetRequest |
GetAsyncReplicationStatus(string, string, string)
Gets the status of current async replication for a given device.
Declaration
public virtual RegionDisksResource.GetAsyncReplicationStatusRequest GetAsyncReplicationStatus(string project, string region, string disk)
Parameters
Type | Name | Description |
---|---|---|
string | project | Project ID for this request. |
string | region | The name of the zone for this request. |
string | disk | Name of the Disk resource whose Async replication details are requested. Name should conform to RFC1035 or be an unsigned long integer. |
Returns
Type | Description |
---|---|
RegionDisksResource.GetAsyncReplicationStatusRequest |
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 |
---|---|---|
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 |
---|---|
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. |
string | project | Project ID for this request. |
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 |
---|---|---|
string | project | Project ID for this request. |
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. |
string | project | Project ID for this request. |
string | region | The name of the region for this request. |
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. |
string | project | The project ID for this request. |
string | region | Name of the region for this request. |
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. |
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 |
---|---|
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. |
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 |
---|---|
RegionDisksResource.SetLabelsRequest |
StartAsyncReplication(RegionDisksStartAsyncReplicationRequest, string, string, string)
Starts asynchronous replication. Must be invoked on the primary disk.
Declaration
public virtual RegionDisksResource.StartAsyncReplicationRequest StartAsyncReplication(RegionDisksStartAsyncReplicationRequest body, string project, string region, string disk)
Parameters
Type | Name | Description |
---|---|---|
RegionDisksStartAsyncReplicationRequest | body | The body of the request. |
string | project | Project ID for this request. |
string | region | The name of the region for this request. |
string | disk | The name of the persistent disk. |
Returns
Type | Description |
---|---|
RegionDisksResource.StartAsyncReplicationRequest |
StopAsyncReplication(string, string, string)
Stops asynchronous replication. Can be invoked either on the primary or on the secondary disk.
Declaration
public virtual RegionDisksResource.StopAsyncReplicationRequest StopAsyncReplication(string project, string region, string disk)
Parameters
Type | Name | Description |
---|---|---|
string | project | Project ID for this request. |
string | region | The name of the region for this request. |
string | disk | The name of the persistent disk. |
Returns
Type | Description |
---|---|
RegionDisksResource.StopAsyncReplicationRequest |
StopGroupAsyncReplication(DisksStopGroupAsyncReplicationResource, string, string)
Stops asynchronous replication for a consistency group of disks. Can be invoked either in the primary or secondary scope.
Declaration
public virtual RegionDisksResource.StopGroupAsyncReplicationRequest StopGroupAsyncReplication(DisksStopGroupAsyncReplicationResource body, string project, string region)
Parameters
Type | Name | Description |
---|---|---|
DisksStopGroupAsyncReplicationResource | body | The body of the request. |
string | project | Project ID for this request. |
string | region | The name of the region for this request. This must be the region of the primary or secondary disks in the consistency group. |
Returns
Type | Description |
---|---|
RegionDisksResource.StopGroupAsyncReplicationRequest |
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. |
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 |
---|---|
RegionDisksResource.TestIamPermissionsRequest |
Update(Disk, string, string, string)
Update the specified disk with the data included in the request. Update is performed only on selected fields included as part of update-mask. Only the following fields can be modified: user_license.
Declaration
public virtual RegionDisksResource.UpdateRequest Update(Disk body, string project, string region, string disk)
Parameters
Type | Name | Description |
---|---|---|
Disk | body | The body of the request. |
string | project | Project ID for this request. |
string | region | The name of the region for this request. |
string | disk | The disk name for this request. |
Returns
Type | Description |
---|---|
RegionDisksResource.UpdateRequest |
WaitForReplicationCatchUp(RegionWaitForReplicationCatchUpRequest, string, string, string)
Wait for replication to catch up on the secondary disk.
Declaration
public virtual RegionDisksResource.WaitForReplicationCatchUpRequest WaitForReplicationCatchUp(RegionWaitForReplicationCatchUpRequest body, string project, string region, string disk)
Parameters
Type | Name | Description |
---|---|---|
RegionWaitForReplicationCatchUpRequest | body | The body of the request. |
string | project | Project ID for this request. |
string | region | Name of the region for this request. |
string | disk | The name of the persistent disk. Name should conform to RFC1035 or be an unsigned long integer. |
Returns
Type | Description |
---|---|
RegionDisksResource.WaitForReplicationCatchUpRequest |