Compute Engine v1 API - Class RegionDisks.RegionDisksBase (2.8.0)

[BindServiceMethod(typeof(RegionDisks), "BindService")]
public abstract class RegionDisks.RegionDisksBase

Reference documentation and code samples for the Compute Engine v1 API class RegionDisks.RegionDisksBase.

Base class for server-side implementations of RegionDisks

Inheritance

object > RegionDisks.RegionDisksBase

Namespace

GoogleCloudGoogle.Cloud.ComputeV1

Assembly

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
NameDescription
requestAddResourcePoliciesRegionDiskRequest

The request received from the client.

contextServerCallContext

The context of the server-side call handler being invoked.

Returns
TypeDescription
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
NameDescription
requestCreateSnapshotRegionDiskRequest

The request received from the client.

contextServerCallContext

The context of the server-side call handler being invoked.

Returns
TypeDescription
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
NameDescription
requestDeleteRegionDiskRequest

The request received from the client.

contextServerCallContext

The context of the server-side call handler being invoked.

Returns
TypeDescription
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
NameDescription
requestGetRegionDiskRequest

The request received from the client.

contextServerCallContext

The context of the server-side call handler being invoked.

Returns
TypeDescription
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
NameDescription
requestGetIamPolicyRegionDiskRequest

The request received from the client.

contextServerCallContext

The context of the server-side call handler being invoked.

Returns
TypeDescription
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
NameDescription
requestInsertRegionDiskRequest

The request received from the client.

contextServerCallContext

The context of the server-side call handler being invoked.

Returns
TypeDescription
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
NameDescription
requestListRegionDisksRequest

The request received from the client.

contextServerCallContext

The context of the server-side call handler being invoked.

Returns
TypeDescription
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
NameDescription
requestRemoveResourcePoliciesRegionDiskRequest

The request received from the client.

contextServerCallContext

The context of the server-side call handler being invoked.

Returns
TypeDescription
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
NameDescription
requestResizeRegionDiskRequest

The request received from the client.

contextServerCallContext

The context of the server-side call handler being invoked.

Returns
TypeDescription
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
NameDescription
requestSetIamPolicyRegionDiskRequest

The request received from the client.

contextServerCallContext

The context of the server-side call handler being invoked.

Returns
TypeDescription
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
NameDescription
requestSetLabelsRegionDiskRequest

The request received from the client.

contextServerCallContext

The context of the server-side call handler being invoked.

Returns
TypeDescription
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
NameDescription
requestTestIamPermissionsRegionDiskRequest

The request received from the client.

contextServerCallContext

The context of the server-side call handler being invoked.

Returns
TypeDescription
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
NameDescription
requestUpdateRegionDiskRequest

The request received from the client.

contextServerCallContext

The context of the server-side call handler being invoked.

Returns
TypeDescription
TaskOperation

The response to send back to the client (wrapped by a task).