Class RegionDisks.RegionDisksBase (2.1.0)

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

Base class for server-side implementations of RegionDisks

Inheritance

Object > RegionDisks.RegionDisksBase

Namespace

Google.Cloud.Compute.V1

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
Task<Operation>

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
Task<Operation>

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
Task<Operation>

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
Task<Disk>

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
Task<Policy>

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
Task<Operation>

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
Task<DiskList>

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
Task<Operation>

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
Task<Operation>

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
Task<Policy>

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
Task<Operation>

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
Task<TestPermissionsResponse>

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