public class Disks.DisksClient : ClientBase<Disks.DisksClient>
Reference documentation and code samples for the Compute Engine v1 API class Disks.DisksClient.
Client for Disks
Namespace
GoogleCloudGoogle.Cloud.ComputeV1Assembly
Google.Cloud.Compute.V1.dll
Constructors
DisksClient()
protected DisksClient()
Protected parameterless constructor to allow creation of test doubles.
DisksClient(CallInvoker)
public DisksClient(CallInvoker callInvoker)
Creates a new client for Disks that uses a custom CallInvoker
.
Parameter | |
---|---|
Name | Description |
callInvoker | CallInvoker The callInvoker to use to make remote calls. |
DisksClient(ChannelBase)
public DisksClient(ChannelBase channel)
Creates a new client for Disks
Parameter | |
---|---|
Name | Description |
channel | ChannelBase The channel to use to make remote calls. |
DisksClient(ClientBaseConfiguration)
protected DisksClient(ClientBase.ClientBaseConfiguration configuration)
Protected constructor to allow creation of configured clients.
Parameter | |
---|---|
Name | Description |
configuration | ClientBaseClientBaseConfiguration The client configuration. |
Methods
AddResourcePolicies(AddResourcePoliciesDiskRequest, CallOptions)
public virtual Operation AddResourcePolicies(AddResourcePoliciesDiskRequest request, CallOptions options)
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 to send to the server. |
options | CallOptions The options for the call. |
Returns | |
---|---|
Type | Description |
Operation | The response received from the server. |
AddResourcePolicies(AddResourcePoliciesDiskRequest, Metadata, DateTime?, CancellationToken)
public virtual Operation AddResourcePolicies(AddResourcePoliciesDiskRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)
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 to send to the server. |
headers | Metadata The initial metadata to send with the call. This parameter is optional. |
deadline | DateTime An optional deadline for the call. The call will be cancelled if deadline is hit. |
cancellationToken | CancellationToken An optional token for canceling the call. |
Returns | |
---|---|
Type | Description |
Operation | The response received from the server. |
AddResourcePoliciesAsync(AddResourcePoliciesDiskRequest, CallOptions)
public virtual AsyncUnaryCall<Operation> AddResourcePoliciesAsync(AddResourcePoliciesDiskRequest request, CallOptions options)
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 to send to the server. |
options | CallOptions The options for the call. |
Returns | |
---|---|
Type | Description |
AsyncUnaryCallOperation | The call object. |
AddResourcePoliciesAsync(AddResourcePoliciesDiskRequest, Metadata, DateTime?, CancellationToken)
public virtual AsyncUnaryCall<Operation> AddResourcePoliciesAsync(AddResourcePoliciesDiskRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)
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 to send to the server. |
headers | Metadata The initial metadata to send with the call. This parameter is optional. |
deadline | DateTime An optional deadline for the call. The call will be cancelled if deadline is hit. |
cancellationToken | CancellationToken An optional token for canceling the call. |
Returns | |
---|---|
Type | Description |
AsyncUnaryCallOperation | The call object. |
AggregatedList(AggregatedListDisksRequest, CallOptions)
public virtual DiskAggregatedList AggregatedList(AggregatedListDisksRequest request, CallOptions options)
Retrieves an aggregated list of persistent disks.
Parameters | |
---|---|
Name | Description |
request | AggregatedListDisksRequest The request to send to the server. |
options | CallOptions The options for the call. |
Returns | |
---|---|
Type | Description |
DiskAggregatedList | The response received from the server. |
AggregatedList(AggregatedListDisksRequest, Metadata, DateTime?, CancellationToken)
public virtual DiskAggregatedList AggregatedList(AggregatedListDisksRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)
Retrieves an aggregated list of persistent disks.
Parameters | |
---|---|
Name | Description |
request | AggregatedListDisksRequest The request to send to the server. |
headers | Metadata The initial metadata to send with the call. This parameter is optional. |
deadline | DateTime An optional deadline for the call. The call will be cancelled if deadline is hit. |
cancellationToken | CancellationToken An optional token for canceling the call. |
Returns | |
---|---|
Type | Description |
DiskAggregatedList | The response received from the server. |
AggregatedListAsync(AggregatedListDisksRequest, CallOptions)
public virtual AsyncUnaryCall<DiskAggregatedList> AggregatedListAsync(AggregatedListDisksRequest request, CallOptions options)
Retrieves an aggregated list of persistent disks.
Parameters | |
---|---|
Name | Description |
request | AggregatedListDisksRequest The request to send to the server. |
options | CallOptions The options for the call. |
Returns | |
---|---|
Type | Description |
AsyncUnaryCallDiskAggregatedList | The call object. |
AggregatedListAsync(AggregatedListDisksRequest, Metadata, DateTime?, CancellationToken)
public virtual AsyncUnaryCall<DiskAggregatedList> AggregatedListAsync(AggregatedListDisksRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)
Retrieves an aggregated list of persistent disks.
Parameters | |
---|---|
Name | Description |
request | AggregatedListDisksRequest The request to send to the server. |
headers | Metadata The initial metadata to send with the call. This parameter is optional. |
deadline | DateTime An optional deadline for the call. The call will be cancelled if deadline is hit. |
cancellationToken | CancellationToken An optional token for canceling the call. |
Returns | |
---|---|
Type | Description |
AsyncUnaryCallDiskAggregatedList | The call object. |
CreateOperationsClientForZoneOperations()
public virtual Operations.OperationsClient CreateOperationsClientForZoneOperations()
Creates a new instance of Operations.OperationsClient using the same call invoker as this client, delegating to ZoneOperations.
Returns | |
---|---|
Type | Description |
OperationsOperationsClient | A new Operations client for the same target as this client. |
CreateSnapshot(CreateSnapshotDiskRequest, CallOptions)
public virtual Operation CreateSnapshot(CreateSnapshotDiskRequest request, CallOptions options)
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 | CreateSnapshotDiskRequest The request to send to the server. |
options | CallOptions The options for the call. |
Returns | |
---|---|
Type | Description |
Operation | The response received from the server. |
CreateSnapshot(CreateSnapshotDiskRequest, Metadata, DateTime?, CancellationToken)
public virtual Operation CreateSnapshot(CreateSnapshotDiskRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)
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 | CreateSnapshotDiskRequest The request to send to the server. |
headers | Metadata The initial metadata to send with the call. This parameter is optional. |
deadline | DateTime An optional deadline for the call. The call will be cancelled if deadline is hit. |
cancellationToken | CancellationToken An optional token for canceling the call. |
Returns | |
---|---|
Type | Description |
Operation | The response received from the server. |
CreateSnapshotAsync(CreateSnapshotDiskRequest, CallOptions)
public virtual AsyncUnaryCall<Operation> CreateSnapshotAsync(CreateSnapshotDiskRequest request, CallOptions options)
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 | CreateSnapshotDiskRequest The request to send to the server. |
options | CallOptions The options for the call. |
Returns | |
---|---|
Type | Description |
AsyncUnaryCallOperation | The call object. |
CreateSnapshotAsync(CreateSnapshotDiskRequest, Metadata, DateTime?, CancellationToken)
public virtual AsyncUnaryCall<Operation> CreateSnapshotAsync(CreateSnapshotDiskRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)
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 | CreateSnapshotDiskRequest The request to send to the server. |
headers | Metadata The initial metadata to send with the call. This parameter is optional. |
deadline | DateTime An optional deadline for the call. The call will be cancelled if deadline is hit. |
cancellationToken | CancellationToken An optional token for canceling the call. |
Returns | |
---|---|
Type | Description |
AsyncUnaryCallOperation | The call object. |
Delete(DeleteDiskRequest, CallOptions)
public virtual Operation Delete(DeleteDiskRequest request, CallOptions options)
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 to send to the server. |
options | CallOptions The options for the call. |
Returns | |
---|---|
Type | Description |
Operation | The response received from the server. |
Delete(DeleteDiskRequest, Metadata, DateTime?, CancellationToken)
public virtual Operation Delete(DeleteDiskRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)
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 to send to the server. |
headers | Metadata The initial metadata to send with the call. This parameter is optional. |
deadline | DateTime An optional deadline for the call. The call will be cancelled if deadline is hit. |
cancellationToken | CancellationToken An optional token for canceling the call. |
Returns | |
---|---|
Type | Description |
Operation | The response received from the server. |
DeleteAsync(DeleteDiskRequest, CallOptions)
public virtual AsyncUnaryCall<Operation> DeleteAsync(DeleteDiskRequest request, CallOptions options)
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 to send to the server. |
options | CallOptions The options for the call. |
Returns | |
---|---|
Type | Description |
AsyncUnaryCallOperation | The call object. |
DeleteAsync(DeleteDiskRequest, Metadata, DateTime?, CancellationToken)
public virtual AsyncUnaryCall<Operation> DeleteAsync(DeleteDiskRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)
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 to send to the server. |
headers | Metadata The initial metadata to send with the call. This parameter is optional. |
deadline | DateTime An optional deadline for the call. The call will be cancelled if deadline is hit. |
cancellationToken | CancellationToken An optional token for canceling the call. |
Returns | |
---|---|
Type | Description |
AsyncUnaryCallOperation | The call object. |
Get(GetDiskRequest, CallOptions)
public virtual Disk Get(GetDiskRequest request, CallOptions options)
Returns a specified persistent disk. Gets a list of available persistent disks by making a list() request.
Parameters | |
---|---|
Name | Description |
request | GetDiskRequest The request to send to the server. |
options | CallOptions The options for the call. |
Returns | |
---|---|
Type | Description |
Disk | The response received from the server. |
Get(GetDiskRequest, Metadata, DateTime?, CancellationToken)
public virtual Disk Get(GetDiskRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)
Returns a specified persistent disk. Gets a list of available persistent disks by making a list() request.
Parameters | |
---|---|
Name | Description |
request | GetDiskRequest The request to send to the server. |
headers | Metadata The initial metadata to send with the call. This parameter is optional. |
deadline | DateTime An optional deadline for the call. The call will be cancelled if deadline is hit. |
cancellationToken | CancellationToken An optional token for canceling the call. |
Returns | |
---|---|
Type | Description |
Disk | The response received from the server. |
GetAsync(GetDiskRequest, CallOptions)
public virtual AsyncUnaryCall<Disk> GetAsync(GetDiskRequest request, CallOptions options)
Returns a specified persistent disk. Gets a list of available persistent disks by making a list() request.
Parameters | |
---|---|
Name | Description |
request | GetDiskRequest The request to send to the server. |
options | CallOptions The options for the call. |
Returns | |
---|---|
Type | Description |
AsyncUnaryCallDisk | The call object. |
GetAsync(GetDiskRequest, Metadata, DateTime?, CancellationToken)
public virtual AsyncUnaryCall<Disk> GetAsync(GetDiskRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)
Returns a specified persistent disk. Gets a list of available persistent disks by making a list() request.
Parameters | |
---|---|
Name | Description |
request | GetDiskRequest The request to send to the server. |
headers | Metadata The initial metadata to send with the call. This parameter is optional. |
deadline | DateTime An optional deadline for the call. The call will be cancelled if deadline is hit. |
cancellationToken | CancellationToken An optional token for canceling the call. |
Returns | |
---|---|
Type | Description |
AsyncUnaryCallDisk | The call object. |
GetIamPolicy(GetIamPolicyDiskRequest, CallOptions)
public virtual Policy GetIamPolicy(GetIamPolicyDiskRequest request, CallOptions options)
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 to send to the server. |
options | CallOptions The options for the call. |
Returns | |
---|---|
Type | Description |
Policy | The response received from the server. |
GetIamPolicy(GetIamPolicyDiskRequest, Metadata, DateTime?, CancellationToken)
public virtual Policy GetIamPolicy(GetIamPolicyDiskRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)
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 to send to the server. |
headers | Metadata The initial metadata to send with the call. This parameter is optional. |
deadline | DateTime An optional deadline for the call. The call will be cancelled if deadline is hit. |
cancellationToken | CancellationToken An optional token for canceling the call. |
Returns | |
---|---|
Type | Description |
Policy | The response received from the server. |
GetIamPolicyAsync(GetIamPolicyDiskRequest, CallOptions)
public virtual AsyncUnaryCall<Policy> GetIamPolicyAsync(GetIamPolicyDiskRequest request, CallOptions options)
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 to send to the server. |
options | CallOptions The options for the call. |
Returns | |
---|---|
Type | Description |
AsyncUnaryCallPolicy | The call object. |
GetIamPolicyAsync(GetIamPolicyDiskRequest, Metadata, DateTime?, CancellationToken)
public virtual AsyncUnaryCall<Policy> GetIamPolicyAsync(GetIamPolicyDiskRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)
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 to send to the server. |
headers | Metadata The initial metadata to send with the call. This parameter is optional. |
deadline | DateTime An optional deadline for the call. The call will be cancelled if deadline is hit. |
cancellationToken | CancellationToken An optional token for canceling the call. |
Returns | |
---|---|
Type | Description |
AsyncUnaryCallPolicy | The call object. |
Insert(InsertDiskRequest, CallOptions)
public virtual Operation Insert(InsertDiskRequest request, CallOptions options)
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 to send to the server. |
options | CallOptions The options for the call. |
Returns | |
---|---|
Type | Description |
Operation | The response received from the server. |
Insert(InsertDiskRequest, Metadata, DateTime?, CancellationToken)
public virtual Operation Insert(InsertDiskRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)
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 to send to the server. |
headers | Metadata The initial metadata to send with the call. This parameter is optional. |
deadline | DateTime An optional deadline for the call. The call will be cancelled if deadline is hit. |
cancellationToken | CancellationToken An optional token for canceling the call. |
Returns | |
---|---|
Type | Description |
Operation | The response received from the server. |
InsertAsync(InsertDiskRequest, CallOptions)
public virtual AsyncUnaryCall<Operation> InsertAsync(InsertDiskRequest request, CallOptions options)
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 to send to the server. |
options | CallOptions The options for the call. |
Returns | |
---|---|
Type | Description |
AsyncUnaryCallOperation | The call object. |
InsertAsync(InsertDiskRequest, Metadata, DateTime?, CancellationToken)
public virtual AsyncUnaryCall<Operation> InsertAsync(InsertDiskRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)
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 to send to the server. |
headers | Metadata The initial metadata to send with the call. This parameter is optional. |
deadline | DateTime An optional deadline for the call. The call will be cancelled if deadline is hit. |
cancellationToken | CancellationToken An optional token for canceling the call. |
Returns | |
---|---|
Type | Description |
AsyncUnaryCallOperation | The call object. |
List(ListDisksRequest, CallOptions)
public virtual DiskList List(ListDisksRequest request, CallOptions options)
Retrieves a list of persistent disks contained within the specified zone.
Parameters | |
---|---|
Name | Description |
request | ListDisksRequest The request to send to the server. |
options | CallOptions The options for the call. |
Returns | |
---|---|
Type | Description |
DiskList | The response received from the server. |
List(ListDisksRequest, Metadata, DateTime?, CancellationToken)
public virtual DiskList List(ListDisksRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)
Retrieves a list of persistent disks contained within the specified zone.
Parameters | |
---|---|
Name | Description |
request | ListDisksRequest The request to send to the server. |
headers | Metadata The initial metadata to send with the call. This parameter is optional. |
deadline | DateTime An optional deadline for the call. The call will be cancelled if deadline is hit. |
cancellationToken | CancellationToken An optional token for canceling the call. |
Returns | |
---|---|
Type | Description |
DiskList | The response received from the server. |
ListAsync(ListDisksRequest, CallOptions)
public virtual AsyncUnaryCall<DiskList> ListAsync(ListDisksRequest request, CallOptions options)
Retrieves a list of persistent disks contained within the specified zone.
Parameters | |
---|---|
Name | Description |
request | ListDisksRequest The request to send to the server. |
options | CallOptions The options for the call. |
Returns | |
---|---|
Type | Description |
AsyncUnaryCallDiskList | The call object. |
ListAsync(ListDisksRequest, Metadata, DateTime?, CancellationToken)
public virtual AsyncUnaryCall<DiskList> ListAsync(ListDisksRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)
Retrieves a list of persistent disks contained within the specified zone.
Parameters | |
---|---|
Name | Description |
request | ListDisksRequest The request to send to the server. |
headers | Metadata The initial metadata to send with the call. This parameter is optional. |
deadline | DateTime An optional deadline for the call. The call will be cancelled if deadline is hit. |
cancellationToken | CancellationToken An optional token for canceling the call. |
Returns | |
---|---|
Type | Description |
AsyncUnaryCallDiskList | The call object. |
NewInstance(ClientBaseConfiguration)
protected override Disks.DisksClient NewInstance(ClientBase.ClientBaseConfiguration configuration)
Creates a new instance of client from given ClientBaseConfiguration
.
Parameter | |
---|---|
Name | Description |
configuration | ClientBaseClientBaseConfiguration |
Returns | |
---|---|
Type | Description |
DisksDisksClient |
RemoveResourcePolicies(RemoveResourcePoliciesDiskRequest, CallOptions)
public virtual Operation RemoveResourcePolicies(RemoveResourcePoliciesDiskRequest request, CallOptions options)
Removes resource policies from a disk.
Parameters | |
---|---|
Name | Description |
request | RemoveResourcePoliciesDiskRequest The request to send to the server. |
options | CallOptions The options for the call. |
Returns | |
---|---|
Type | Description |
Operation | The response received from the server. |
RemoveResourcePolicies(RemoveResourcePoliciesDiskRequest, Metadata, DateTime?, CancellationToken)
public virtual Operation RemoveResourcePolicies(RemoveResourcePoliciesDiskRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)
Removes resource policies from a disk.
Parameters | |
---|---|
Name | Description |
request | RemoveResourcePoliciesDiskRequest The request to send to the server. |
headers | Metadata The initial metadata to send with the call. This parameter is optional. |
deadline | DateTime An optional deadline for the call. The call will be cancelled if deadline is hit. |
cancellationToken | CancellationToken An optional token for canceling the call. |
Returns | |
---|---|
Type | Description |
Operation | The response received from the server. |
RemoveResourcePoliciesAsync(RemoveResourcePoliciesDiskRequest, CallOptions)
public virtual AsyncUnaryCall<Operation> RemoveResourcePoliciesAsync(RemoveResourcePoliciesDiskRequest request, CallOptions options)
Removes resource policies from a disk.
Parameters | |
---|---|
Name | Description |
request | RemoveResourcePoliciesDiskRequest The request to send to the server. |
options | CallOptions The options for the call. |
Returns | |
---|---|
Type | Description |
AsyncUnaryCallOperation | The call object. |
RemoveResourcePoliciesAsync(RemoveResourcePoliciesDiskRequest, Metadata, DateTime?, CancellationToken)
public virtual AsyncUnaryCall<Operation> RemoveResourcePoliciesAsync(RemoveResourcePoliciesDiskRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)
Removes resource policies from a disk.
Parameters | |
---|---|
Name | Description |
request | RemoveResourcePoliciesDiskRequest The request to send to the server. |
headers | Metadata The initial metadata to send with the call. This parameter is optional. |
deadline | DateTime An optional deadline for the call. The call will be cancelled if deadline is hit. |
cancellationToken | CancellationToken An optional token for canceling the call. |
Returns | |
---|---|
Type | Description |
AsyncUnaryCallOperation | The call object. |
Resize(ResizeDiskRequest, CallOptions)
public virtual Operation Resize(ResizeDiskRequest request, CallOptions options)
Resizes the specified persistent disk. You can only increase the size of the disk.
Parameters | |
---|---|
Name | Description |
request | ResizeDiskRequest The request to send to the server. |
options | CallOptions The options for the call. |
Returns | |
---|---|
Type | Description |
Operation | The response received from the server. |
Resize(ResizeDiskRequest, Metadata, DateTime?, CancellationToken)
public virtual Operation Resize(ResizeDiskRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)
Resizes the specified persistent disk. You can only increase the size of the disk.
Parameters | |
---|---|
Name | Description |
request | ResizeDiskRequest The request to send to the server. |
headers | Metadata The initial metadata to send with the call. This parameter is optional. |
deadline | DateTime An optional deadline for the call. The call will be cancelled if deadline is hit. |
cancellationToken | CancellationToken An optional token for canceling the call. |
Returns | |
---|---|
Type | Description |
Operation | The response received from the server. |
ResizeAsync(ResizeDiskRequest, CallOptions)
public virtual AsyncUnaryCall<Operation> ResizeAsync(ResizeDiskRequest request, CallOptions options)
Resizes the specified persistent disk. You can only increase the size of the disk.
Parameters | |
---|---|
Name | Description |
request | ResizeDiskRequest The request to send to the server. |
options | CallOptions The options for the call. |
Returns | |
---|---|
Type | Description |
AsyncUnaryCallOperation | The call object. |
ResizeAsync(ResizeDiskRequest, Metadata, DateTime?, CancellationToken)
public virtual AsyncUnaryCall<Operation> ResizeAsync(ResizeDiskRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)
Resizes the specified persistent disk. You can only increase the size of the disk.
Parameters | |
---|---|
Name | Description |
request | ResizeDiskRequest The request to send to the server. |
headers | Metadata The initial metadata to send with the call. This parameter is optional. |
deadline | DateTime An optional deadline for the call. The call will be cancelled if deadline is hit. |
cancellationToken | CancellationToken An optional token for canceling the call. |
Returns | |
---|---|
Type | Description |
AsyncUnaryCallOperation | The call object. |
SetIamPolicy(SetIamPolicyDiskRequest, CallOptions)
public virtual Policy SetIamPolicy(SetIamPolicyDiskRequest request, CallOptions options)
Sets the access control policy on the specified resource. Replaces any existing policy.
Parameters | |
---|---|
Name | Description |
request | SetIamPolicyDiskRequest The request to send to the server. |
options | CallOptions The options for the call. |
Returns | |
---|---|
Type | Description |
Policy | The response received from the server. |
SetIamPolicy(SetIamPolicyDiskRequest, Metadata, DateTime?, CancellationToken)
public virtual Policy SetIamPolicy(SetIamPolicyDiskRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)
Sets the access control policy on the specified resource. Replaces any existing policy.
Parameters | |
---|---|
Name | Description |
request | SetIamPolicyDiskRequest The request to send to the server. |
headers | Metadata The initial metadata to send with the call. This parameter is optional. |
deadline | DateTime An optional deadline for the call. The call will be cancelled if deadline is hit. |
cancellationToken | CancellationToken An optional token for canceling the call. |
Returns | |
---|---|
Type | Description |
Policy | The response received from the server. |
SetIamPolicyAsync(SetIamPolicyDiskRequest, CallOptions)
public virtual AsyncUnaryCall<Policy> SetIamPolicyAsync(SetIamPolicyDiskRequest request, CallOptions options)
Sets the access control policy on the specified resource. Replaces any existing policy.
Parameters | |
---|---|
Name | Description |
request | SetIamPolicyDiskRequest The request to send to the server. |
options | CallOptions The options for the call. |
Returns | |
---|---|
Type | Description |
AsyncUnaryCallPolicy | The call object. |
SetIamPolicyAsync(SetIamPolicyDiskRequest, Metadata, DateTime?, CancellationToken)
public virtual AsyncUnaryCall<Policy> SetIamPolicyAsync(SetIamPolicyDiskRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)
Sets the access control policy on the specified resource. Replaces any existing policy.
Parameters | |
---|---|
Name | Description |
request | SetIamPolicyDiskRequest The request to send to the server. |
headers | Metadata The initial metadata to send with the call. This parameter is optional. |
deadline | DateTime An optional deadline for the call. The call will be cancelled if deadline is hit. |
cancellationToken | CancellationToken An optional token for canceling the call. |
Returns | |
---|---|
Type | Description |
AsyncUnaryCallPolicy | The call object. |
SetLabels(SetLabelsDiskRequest, CallOptions)
public virtual Operation SetLabels(SetLabelsDiskRequest request, CallOptions options)
Sets the labels on a disk. To learn more about labels, read the Labeling Resources documentation.
Parameters | |
---|---|
Name | Description |
request | SetLabelsDiskRequest The request to send to the server. |
options | CallOptions The options for the call. |
Returns | |
---|---|
Type | Description |
Operation | The response received from the server. |
SetLabels(SetLabelsDiskRequest, Metadata, DateTime?, CancellationToken)
public virtual Operation SetLabels(SetLabelsDiskRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)
Sets the labels on a disk. To learn more about labels, read the Labeling Resources documentation.
Parameters | |
---|---|
Name | Description |
request | SetLabelsDiskRequest The request to send to the server. |
headers | Metadata The initial metadata to send with the call. This parameter is optional. |
deadline | DateTime An optional deadline for the call. The call will be cancelled if deadline is hit. |
cancellationToken | CancellationToken An optional token for canceling the call. |
Returns | |
---|---|
Type | Description |
Operation | The response received from the server. |
SetLabelsAsync(SetLabelsDiskRequest, CallOptions)
public virtual AsyncUnaryCall<Operation> SetLabelsAsync(SetLabelsDiskRequest request, CallOptions options)
Sets the labels on a disk. To learn more about labels, read the Labeling Resources documentation.
Parameters | |
---|---|
Name | Description |
request | SetLabelsDiskRequest The request to send to the server. |
options | CallOptions The options for the call. |
Returns | |
---|---|
Type | Description |
AsyncUnaryCallOperation | The call object. |
SetLabelsAsync(SetLabelsDiskRequest, Metadata, DateTime?, CancellationToken)
public virtual AsyncUnaryCall<Operation> SetLabelsAsync(SetLabelsDiskRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)
Sets the labels on a disk. To learn more about labels, read the Labeling Resources documentation.
Parameters | |
---|---|
Name | Description |
request | SetLabelsDiskRequest The request to send to the server. |
headers | Metadata The initial metadata to send with the call. This parameter is optional. |
deadline | DateTime An optional deadline for the call. The call will be cancelled if deadline is hit. |
cancellationToken | CancellationToken An optional token for canceling the call. |
Returns | |
---|---|
Type | Description |
AsyncUnaryCallOperation | The call object. |
TestIamPermissions(TestIamPermissionsDiskRequest, CallOptions)
public virtual TestPermissionsResponse TestIamPermissions(TestIamPermissionsDiskRequest request, CallOptions options)
Returns permissions that a caller has on the specified resource.
Parameters | |
---|---|
Name | Description |
request | TestIamPermissionsDiskRequest The request to send to the server. |
options | CallOptions The options for the call. |
Returns | |
---|---|
Type | Description |
TestPermissionsResponse | The response received from the server. |
TestIamPermissions(TestIamPermissionsDiskRequest, Metadata, DateTime?, CancellationToken)
public virtual TestPermissionsResponse TestIamPermissions(TestIamPermissionsDiskRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)
Returns permissions that a caller has on the specified resource.
Parameters | |
---|---|
Name | Description |
request | TestIamPermissionsDiskRequest The request to send to the server. |
headers | Metadata The initial metadata to send with the call. This parameter is optional. |
deadline | DateTime An optional deadline for the call. The call will be cancelled if deadline is hit. |
cancellationToken | CancellationToken An optional token for canceling the call. |
Returns | |
---|---|
Type | Description |
TestPermissionsResponse | The response received from the server. |
TestIamPermissionsAsync(TestIamPermissionsDiskRequest, CallOptions)
public virtual AsyncUnaryCall<TestPermissionsResponse> TestIamPermissionsAsync(TestIamPermissionsDiskRequest request, CallOptions options)
Returns permissions that a caller has on the specified resource.
Parameters | |
---|---|
Name | Description |
request | TestIamPermissionsDiskRequest The request to send to the server. |
options | CallOptions The options for the call. |
Returns | |
---|---|
Type | Description |
AsyncUnaryCallTestPermissionsResponse | The call object. |
TestIamPermissionsAsync(TestIamPermissionsDiskRequest, Metadata, DateTime?, CancellationToken)
public virtual AsyncUnaryCall<TestPermissionsResponse> TestIamPermissionsAsync(TestIamPermissionsDiskRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)
Returns permissions that a caller has on the specified resource.
Parameters | |
---|---|
Name | Description |
request | TestIamPermissionsDiskRequest The request to send to the server. |
headers | Metadata The initial metadata to send with the call. This parameter is optional. |
deadline | DateTime An optional deadline for the call. The call will be cancelled if deadline is hit. |
cancellationToken | CancellationToken An optional token for canceling the call. |
Returns | |
---|---|
Type | Description |
AsyncUnaryCallTestPermissionsResponse | The call object. |