[BindServiceMethod(typeof(RegionDisks), "BindService")]
public abstract class RegionDisks.RegionDisksBaseReference documentation and code samples for the Compute Engine v1 API class RegionDisks.RegionDisksBase.
Base class for server-side implementations of RegionDisks
Namespace
Google.Cloud.Compute.V1Assembly
Google.Cloud.Compute.V1.dll
Methods
AddResourcePolicies(AddResourcePoliciesRegionDiskRequest, ServerCallContext)
public virtual Task<Operation> AddResourcePolicies(AddResourcePoliciesRegionDiskRequest request, ServerCallContext context)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.
| Parameters | |
|---|---|
| Name | Description |
request |
AddResourcePoliciesRegionDiskRequestThe request received from the client. |
context |
ServerCallContextThe context of the server-side call handler being invoked. |
| Returns | |
|---|---|
| Type | Description |
TaskOperation |
The response to send back to the client (wrapped by a task). |
BulkInsert(BulkInsertRegionDiskRequest, ServerCallContext)
public virtual Task<Operation> BulkInsert(BulkInsertRegionDiskRequest request, ServerCallContext context)Bulk create a set of disks.
| Parameters | |
|---|---|
| Name | Description |
request |
BulkInsertRegionDiskRequestThe request received from the client. |
context |
ServerCallContextThe context of the server-side call handler being invoked. |
| Returns | |
|---|---|
| Type | Description |
TaskOperation |
The response to send back to the client (wrapped by a task). |
CreateSnapshot(CreateSnapshotRegionDiskRequest, ServerCallContext)
public virtual Task<Operation> CreateSnapshot(CreateSnapshotRegionDiskRequest request, ServerCallContext context)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.
| Parameters | |
|---|---|
| Name | Description |
request |
CreateSnapshotRegionDiskRequestThe request received from the client. |
context |
ServerCallContextThe context of the server-side call handler being invoked. |
| Returns | |
|---|---|
| Type | Description |
TaskOperation |
The response to send back to the client (wrapped by a task). |
Delete(DeleteRegionDiskRequest, ServerCallContext)
public virtual Task<Operation> Delete(DeleteRegionDiskRequest request, ServerCallContext context)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.
| Parameters | |
|---|---|
| Name | Description |
request |
DeleteRegionDiskRequestThe request received from the client. |
context |
ServerCallContextThe context of the server-side call handler being invoked. |
| Returns | |
|---|---|
| Type | Description |
TaskOperation |
The response to send back to the client (wrapped by a task). |
Get(GetRegionDiskRequest, ServerCallContext)
public virtual Task<Disk> Get(GetRegionDiskRequest request, ServerCallContext context)Returns a specified regional persistent disk.
| Parameters | |
|---|---|
| Name | Description |
request |
GetRegionDiskRequestThe request received from the client. |
context |
ServerCallContextThe context of the server-side call handler being invoked. |
| Returns | |
|---|---|
| Type | Description |
TaskDisk |
The response to send back to the client (wrapped by a task). |
GetIamPolicy(GetIamPolicyRegionDiskRequest, ServerCallContext)
public virtual Task<Policy> GetIamPolicy(GetIamPolicyRegionDiskRequest request, ServerCallContext context)Gets the access control policy for a resource. May be empty if no such policy or resource exists.
| Parameters | |
|---|---|
| Name | Description |
request |
GetIamPolicyRegionDiskRequestThe request received from the client. |
context |
ServerCallContextThe context of the server-side call handler being invoked. |
| Returns | |
|---|---|
| Type | Description |
TaskPolicy |
The response to send back to the client (wrapped by a task). |
Insert(InsertRegionDiskRequest, ServerCallContext)
public virtual Task<Operation> Insert(InsertRegionDiskRequest request, ServerCallContext context)Creates a persistent regional disk in the specified project using the data included in the request.
| Parameters | |
|---|---|
| Name | Description |
request |
InsertRegionDiskRequestThe request received from the client. |
context |
ServerCallContextThe context of the server-side call handler being invoked. |
| Returns | |
|---|---|
| Type | Description |
TaskOperation |
The response to send back to the client (wrapped by a task). |
List(ListRegionDisksRequest, ServerCallContext)
public virtual Task<DiskList> List(ListRegionDisksRequest request, ServerCallContext context)Retrieves the list of persistent disks contained within the specified region.
| Parameters | |
|---|---|
| Name | Description |
request |
ListRegionDisksRequestThe request received from the client. |
context |
ServerCallContextThe context of the server-side call handler being invoked. |
| Returns | |
|---|---|
| Type | Description |
TaskDiskList |
The response to send back to the client (wrapped by a task). |
RemoveResourcePolicies(RemoveResourcePoliciesRegionDiskRequest, ServerCallContext)
public virtual Task<Operation> RemoveResourcePolicies(RemoveResourcePoliciesRegionDiskRequest request, ServerCallContext context)Removes resource policies from a regional disk.
| Parameters | |
|---|---|
| Name | Description |
request |
RemoveResourcePoliciesRegionDiskRequestThe request received from the client. |
context |
ServerCallContextThe context of the server-side call handler being invoked. |
| Returns | |
|---|---|
| Type | Description |
TaskOperation |
The response to send back to the client (wrapped by a task). |
Resize(ResizeRegionDiskRequest, ServerCallContext)
public virtual Task<Operation> Resize(ResizeRegionDiskRequest request, ServerCallContext context)Resizes the specified regional persistent disk.
| Parameters | |
|---|---|
| Name | Description |
request |
ResizeRegionDiskRequestThe request received from the client. |
context |
ServerCallContextThe context of the server-side call handler being invoked. |
| Returns | |
|---|---|
| Type | Description |
TaskOperation |
The response to send back to the client (wrapped by a task). |
SetIamPolicy(SetIamPolicyRegionDiskRequest, ServerCallContext)
public virtual Task<Policy> SetIamPolicy(SetIamPolicyRegionDiskRequest request, ServerCallContext context)Sets the access control policy on the specified resource. Replaces any existing policy.
| Parameters | |
|---|---|
| Name | Description |
request |
SetIamPolicyRegionDiskRequestThe request received from the client. |
context |
ServerCallContextThe context of the server-side call handler being invoked. |
| Returns | |
|---|---|
| Type | Description |
TaskPolicy |
The response to send back to the client (wrapped by a task). |
SetLabels(SetLabelsRegionDiskRequest, ServerCallContext)
public virtual Task<Operation> SetLabels(SetLabelsRegionDiskRequest request, ServerCallContext context)Sets the labels on the target regional disk.
| Parameters | |
|---|---|
| Name | Description |
request |
SetLabelsRegionDiskRequestThe request received from the client. |
context |
ServerCallContextThe context of the server-side call handler being invoked. |
| Returns | |
|---|---|
| Type | Description |
TaskOperation |
The response to send back to the client (wrapped by a task). |
StartAsyncReplication(StartAsyncReplicationRegionDiskRequest, ServerCallContext)
public virtual Task<Operation> StartAsyncReplication(StartAsyncReplicationRegionDiskRequest request, ServerCallContext context)Starts asynchronous replication. Must be invoked on the primary disk.
| Parameters | |
|---|---|
| Name | Description |
request |
StartAsyncReplicationRegionDiskRequestThe request received from the client. |
context |
ServerCallContextThe context of the server-side call handler being invoked. |
| Returns | |
|---|---|
| Type | Description |
TaskOperation |
The response to send back to the client (wrapped by a task). |
StopAsyncReplication(StopAsyncReplicationRegionDiskRequest, ServerCallContext)
public virtual Task<Operation> StopAsyncReplication(StopAsyncReplicationRegionDiskRequest request, ServerCallContext context)Stops asynchronous replication. Can be invoked either on the primary or on the secondary disk.
| Parameters | |
|---|---|
| Name | Description |
request |
StopAsyncReplicationRegionDiskRequestThe request received from the client. |
context |
ServerCallContextThe context of the server-side call handler being invoked. |
| Returns | |
|---|---|
| Type | Description |
TaskOperation |
The response to send back to the client (wrapped by a task). |
StopGroupAsyncReplication(StopGroupAsyncReplicationRegionDiskRequest, ServerCallContext)
public virtual Task<Operation> StopGroupAsyncReplication(StopGroupAsyncReplicationRegionDiskRequest request, ServerCallContext context)Stops asynchronous replication for a consistency group of disks. Can be invoked either in the primary or secondary scope.
| Parameters | |
|---|---|
| Name | Description |
request |
StopGroupAsyncReplicationRegionDiskRequestThe request received from the client. |
context |
ServerCallContextThe context of the server-side call handler being invoked. |
| Returns | |
|---|---|
| Type | Description |
TaskOperation |
The response to send back to the client (wrapped by a task). |
TestIamPermissions(TestIamPermissionsRegionDiskRequest, ServerCallContext)
public virtual Task<TestPermissionsResponse> TestIamPermissions(TestIamPermissionsRegionDiskRequest request, ServerCallContext context)Returns permissions that a caller has on the specified resource.
| Parameters | |
|---|---|
| Name | Description |
request |
TestIamPermissionsRegionDiskRequestThe request received from the client. |
context |
ServerCallContextThe context of the server-side call handler being invoked. |
| Returns | |
|---|---|
| Type | Description |
TaskTestPermissionsResponse |
The response to send back to the client (wrapped by a task). |
Update(UpdateRegionDiskRequest, ServerCallContext)
public virtual Task<Operation> Update(UpdateRegionDiskRequest request, ServerCallContext context)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.
| Parameters | |
|---|---|
| Name | Description |
request |
UpdateRegionDiskRequestThe request received from the client. |
context |
ServerCallContextThe context of the server-side call handler being invoked. |
| Returns | |
|---|---|
| Type | Description |
TaskOperation |
The response to send back to the client (wrapped by a task). |