Class Disks.DisksBase (1.3.0)

[BindServiceMethod(typeof(Disks), "BindService")]
public abstract class DisksBase

Base class for server-side implementations of Disks

Inheritance

Object > Disks.DisksBase

Namespace

Google.Cloud.Compute.V1

Assembly

Google.Cloud.Compute.V1.dll

Methods

AddResourcePolicies(AddResourcePoliciesDiskRequest, ServerCallContext)

public virtual Task<Operation> AddResourcePolicies(AddResourcePoliciesDiskRequest request, ServerCallContext context)

Adds existing resource policies to a disk. You can only add one policy which will be applied to this disk for scheduling snapshot creation.

Parameters
NameDescription
requestAddResourcePoliciesDiskRequest

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).

AggregatedList(AggregatedListDisksRequest, ServerCallContext)

public virtual Task<DiskAggregatedList> AggregatedList(AggregatedListDisksRequest request, ServerCallContext context)

Retrieves an aggregated list of persistent disks.

Parameters
NameDescription
requestAggregatedListDisksRequest

The request received from the client.

contextServerCallContext

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

Returns
TypeDescription
Task<DiskAggregatedList>

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

CreateSnapshot(CreateSnapshotDiskRequest, ServerCallContext)

public virtual Task<Operation> CreateSnapshot(CreateSnapshotDiskRequest 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
requestCreateSnapshotDiskRequest

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(DeleteDiskRequest, ServerCallContext)

public virtual Task<Operation> Delete(DeleteDiskRequest request, ServerCallContext context)

Deletes the specified persistent disk. Deleting a disk removes 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
requestDeleteDiskRequest

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(GetDiskRequest, ServerCallContext)

public virtual Task<Disk> Get(GetDiskRequest request, ServerCallContext context)

Returns a specified persistent disk. Gets a list of available persistent disks by making a list() request.

Parameters
NameDescription
requestGetDiskRequest

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(GetIamPolicyDiskRequest, ServerCallContext)

public virtual Task<Policy> GetIamPolicy(GetIamPolicyDiskRequest request, ServerCallContext context)

Gets the access control policy for a resource. May be empty if no such policy or resource exists.

Parameters
NameDescription
requestGetIamPolicyDiskRequest

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(InsertDiskRequest, ServerCallContext)

public virtual Task<Operation> Insert(InsertDiskRequest request, ServerCallContext context)

Creates a persistent disk in the specified project using the data in the request. You can create a disk from a source (sourceImage, sourceSnapshot, or sourceDisk) or create an empty 500 GB data disk by omitting all properties. You can also create a disk that is larger than the default size by specifying the sizeGb property.

Parameters
NameDescription
requestInsertDiskRequest

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(ListDisksRequest, ServerCallContext)

public virtual Task<DiskList> List(ListDisksRequest request, ServerCallContext context)

Retrieves a list of persistent disks contained within the specified zone.

Parameters
NameDescription
requestListDisksRequest

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(RemoveResourcePoliciesDiskRequest, ServerCallContext)

public virtual Task<Operation> RemoveResourcePolicies(RemoveResourcePoliciesDiskRequest request, ServerCallContext context)

Removes resource policies from a disk.

Parameters
NameDescription
requestRemoveResourcePoliciesDiskRequest

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(ResizeDiskRequest, ServerCallContext)

public virtual Task<Operation> Resize(ResizeDiskRequest request, ServerCallContext context)

Resizes the specified persistent disk. You can only increase the size of the disk.

Parameters
NameDescription
requestResizeDiskRequest

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(SetIamPolicyDiskRequest, ServerCallContext)

public virtual Task<Policy> SetIamPolicy(SetIamPolicyDiskRequest request, ServerCallContext context)

Sets the access control policy on the specified resource. Replaces any existing policy.

Parameters
NameDescription
requestSetIamPolicyDiskRequest

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(SetLabelsDiskRequest, ServerCallContext)

public virtual Task<Operation> SetLabels(SetLabelsDiskRequest request, ServerCallContext context)

Sets the labels on a disk. To learn more about labels, read the Labeling Resources documentation.

Parameters
NameDescription
requestSetLabelsDiskRequest

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(TestIamPermissionsDiskRequest, ServerCallContext)

public virtual Task<TestPermissionsResponse> TestIamPermissions(TestIamPermissionsDiskRequest request, ServerCallContext context)

Returns permissions that a caller has on the specified resource.

Parameters
NameDescription
requestTestIamPermissionsDiskRequest

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).