[BindServiceMethod(typeof(Disks), "BindService")]
public abstract class DisksBase
Base class for server-side implementations of Disks
Namespace
Google.Cloud.Compute.V1Assembly
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 | |
---|---|
Name | Description |
request | AddResourcePoliciesDiskRequest The request received from the client. |
context | ServerCallContext The context of the server-side call handler being invoked. |
Returns | |
---|---|
Type | Description |
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 | |
---|---|
Name | Description |
request | AggregatedListDisksRequest The request received from the client. |
context | ServerCallContext The context of the server-side call handler being invoked. |
Returns | |
---|---|
Type | Description |
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.
Parameters | |
---|---|
Name | Description |
request | CreateSnapshotDiskRequest The request received from the client. |
context | ServerCallContext The context of the server-side call handler being invoked. |
Returns | |
---|---|
Type | Description |
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 | |
---|---|
Name | Description |
request | DeleteDiskRequest The request received from the client. |
context | ServerCallContext The context of the server-side call handler being invoked. |
Returns | |
---|---|
Type | Description |
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 | |
---|---|
Name | Description |
request | GetDiskRequest The request received from the client. |
context | ServerCallContext The context of the server-side call handler being invoked. |
Returns | |
---|---|
Type | Description |
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 | |
---|---|
Name | Description |
request | GetIamPolicyDiskRequest The request received from the client. |
context | ServerCallContext The context of the server-side call handler being invoked. |
Returns | |
---|---|
Type | Description |
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 | |
---|---|
Name | Description |
request | InsertDiskRequest The request received from the client. |
context | ServerCallContext The context of the server-side call handler being invoked. |
Returns | |
---|---|
Type | Description |
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 | |
---|---|
Name | Description |
request | ListDisksRequest The request received from the client. |
context | ServerCallContext The context of the server-side call handler being invoked. |
Returns | |
---|---|
Type | Description |
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 | |
---|---|
Name | Description |
request | RemoveResourcePoliciesDiskRequest The request received from the client. |
context | ServerCallContext The context of the server-side call handler being invoked. |
Returns | |
---|---|
Type | Description |
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 | |
---|---|
Name | Description |
request | ResizeDiskRequest The request received from the client. |
context | ServerCallContext The context of the server-side call handler being invoked. |
Returns | |
---|---|
Type | Description |
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 | |
---|---|
Name | Description |
request | SetIamPolicyDiskRequest The request received from the client. |
context | ServerCallContext The context of the server-side call handler being invoked. |
Returns | |
---|---|
Type | Description |
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 | |
---|---|
Name | Description |
request | SetLabelsDiskRequest The request received from the client. |
context | ServerCallContext The context of the server-side call handler being invoked. |
Returns | |
---|---|
Type | Description |
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 | |
---|---|
Name | Description |
request | TestIamPermissionsDiskRequest The request received from the client. |
context | ServerCallContext The context of the server-side call handler being invoked. |
Returns | |
---|---|
Type | Description |
Task<TestPermissionsResponse> | The response to send back to the client (wrapped by a task). |