public sealed class DisksClientImpl : DisksClient
Disks client wrapper implementation, for convenient use.
Namespace
Google.Cloud.Compute.V1Assembly
Google.Cloud.Compute.V1.dll
Remarks
The Disks API.
Constructors
DisksClientImpl(Disks.DisksClient, DisksSettings)
public DisksClientImpl(Disks.DisksClient grpcClient, DisksSettings settings)
Constructs a client wrapper for the Disks service, with the specified gRPC client and settings.
Parameters | |
---|---|
Name | Description |
grpcClient | Disks.DisksClient The underlying gRPC client. |
settings | DisksSettings The base DisksSettings used within this client. |
Properties
AddResourcePoliciesOperationsClient
public override OperationsClient AddResourcePoliciesOperationsClient { get; }
The long-running operations client for AddResourcePolicies
.
Property Value | |
---|---|
Type | Description |
OperationsClient |
CreateSnapshotOperationsClient
public override OperationsClient CreateSnapshotOperationsClient { get; }
The long-running operations client for CreateSnapshot
.
Property Value | |
---|---|
Type | Description |
OperationsClient |
DeleteOperationsClient
public override OperationsClient DeleteOperationsClient { get; }
The long-running operations client for Delete
.
Property Value | |
---|---|
Type | Description |
OperationsClient |
GrpcClient
public override Disks.DisksClient GrpcClient { get; }
The underlying gRPC Disks client
Property Value | |
---|---|
Type | Description |
Disks.DisksClient |
InsertOperationsClient
public override OperationsClient InsertOperationsClient { get; }
The long-running operations client for Insert
.
Property Value | |
---|---|
Type | Description |
OperationsClient |
RemoveResourcePoliciesOperationsClient
public override OperationsClient RemoveResourcePoliciesOperationsClient { get; }
The long-running operations client for RemoveResourcePolicies
.
Property Value | |
---|---|
Type | Description |
OperationsClient |
ResizeOperationsClient
public override OperationsClient ResizeOperationsClient { get; }
The long-running operations client for Resize
.
Property Value | |
---|---|
Type | Description |
OperationsClient |
SetLabelsOperationsClient
public override OperationsClient SetLabelsOperationsClient { get; }
The long-running operations client for SetLabels
.
Property Value | |
---|---|
Type | Description |
OperationsClient |
Methods
AddResourcePolicies(AddResourcePoliciesDiskRequest, CallSettings)
public override Operation<Operation, Operation> AddResourcePolicies(AddResourcePoliciesDiskRequest request, CallSettings callSettings = null)
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 object containing all of the parameters for the API call. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Operation<Operation, Operation> | The RPC response. |
AddResourcePoliciesAsync(AddResourcePoliciesDiskRequest, CallSettings)
public override Task<Operation<Operation, Operation>> AddResourcePoliciesAsync(AddResourcePoliciesDiskRequest request, CallSettings callSettings = null)
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 object containing all of the parameters for the API call. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Task<Operation<Operation, Operation>> | A Task containing the RPC response. |
AggregatedList(AggregatedListDisksRequest, CallSettings)
public override PagedEnumerable<DiskAggregatedList, KeyValuePair<string, DisksScopedList>> AggregatedList(AggregatedListDisksRequest request, CallSettings callSettings = null)
Retrieves an aggregated list of persistent disks.
Parameters | |
---|---|
Name | Description |
request | AggregatedListDisksRequest The request object containing all of the parameters for the API call. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
PagedEnumerable<DiskAggregatedList, KeyValuePair<String, DisksScopedList>> | A pageable sequence of KeyValuePair<TKey,TValue> resources. |
AggregatedListAsync(AggregatedListDisksRequest, CallSettings)
public override PagedAsyncEnumerable<DiskAggregatedList, KeyValuePair<string, DisksScopedList>> AggregatedListAsync(AggregatedListDisksRequest request, CallSettings callSettings = null)
Retrieves an aggregated list of persistent disks.
Parameters | |
---|---|
Name | Description |
request | AggregatedListDisksRequest The request object containing all of the parameters for the API call. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
PagedAsyncEnumerable<DiskAggregatedList, KeyValuePair<String, DisksScopedList>> | A pageable asynchronous sequence of KeyValuePair<TKey,TValue> resources. |
CreateSnapshot(CreateSnapshotDiskRequest, CallSettings)
public override Operation<Operation, Operation> CreateSnapshot(CreateSnapshotDiskRequest request, CallSettings callSettings = null)
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 object containing all of the parameters for the API call. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Operation<Operation, Operation> | The RPC response. |
CreateSnapshotAsync(CreateSnapshotDiskRequest, CallSettings)
public override Task<Operation<Operation, Operation>> CreateSnapshotAsync(CreateSnapshotDiskRequest request, CallSettings callSettings = null)
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 object containing all of the parameters for the API call. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Task<Operation<Operation, Operation>> | A Task containing the RPC response. |
Delete(DeleteDiskRequest, CallSettings)
public override Operation<Operation, Operation> Delete(DeleteDiskRequest request, CallSettings callSettings = null)
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 object containing all of the parameters for the API call. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Operation<Operation, Operation> | The RPC response. |
DeleteAsync(DeleteDiskRequest, CallSettings)
public override Task<Operation<Operation, Operation>> DeleteAsync(DeleteDiskRequest request, CallSettings callSettings = null)
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 object containing all of the parameters for the API call. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Task<Operation<Operation, Operation>> | A Task containing the RPC response. |
Get(GetDiskRequest, CallSettings)
public override Disk Get(GetDiskRequest request, CallSettings callSettings = null)
Returns a specified persistent disk. Gets a list of available persistent disks by making a list() request.
Parameters | |
---|---|
Name | Description |
request | GetDiskRequest The request object containing all of the parameters for the API call. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Disk | The RPC response. |
GetAsync(GetDiskRequest, CallSettings)
public override Task<Disk> GetAsync(GetDiskRequest request, CallSettings callSettings = null)
Returns a specified persistent disk. Gets a list of available persistent disks by making a list() request.
Parameters | |
---|---|
Name | Description |
request | GetDiskRequest The request object containing all of the parameters for the API call. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Task<Disk> | A Task containing the RPC response. |
GetIamPolicy(GetIamPolicyDiskRequest, CallSettings)
public override Policy GetIamPolicy(GetIamPolicyDiskRequest request, CallSettings callSettings = null)
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 object containing all of the parameters for the API call. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Policy | The RPC response. |
GetIamPolicyAsync(GetIamPolicyDiskRequest, CallSettings)
public override Task<Policy> GetIamPolicyAsync(GetIamPolicyDiskRequest request, CallSettings callSettings = null)
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 object containing all of the parameters for the API call. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Task<Policy> | A Task containing the RPC response. |
Insert(InsertDiskRequest, CallSettings)
public override Operation<Operation, Operation> Insert(InsertDiskRequest request, CallSettings callSettings = null)
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 object containing all of the parameters for the API call. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Operation<Operation, Operation> | The RPC response. |
InsertAsync(InsertDiskRequest, CallSettings)
public override Task<Operation<Operation, Operation>> InsertAsync(InsertDiskRequest request, CallSettings callSettings = null)
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 object containing all of the parameters for the API call. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Task<Operation<Operation, Operation>> | A Task containing the RPC response. |
List(ListDisksRequest, CallSettings)
public override PagedEnumerable<DiskList, Disk> List(ListDisksRequest request, CallSettings callSettings = null)
Retrieves a list of persistent disks contained within the specified zone.
Parameters | |
---|---|
Name | Description |
request | ListDisksRequest The request object containing all of the parameters for the API call. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
PagedEnumerable<DiskList, Disk> | A pageable sequence of Disk resources. |
ListAsync(ListDisksRequest, CallSettings)
public override PagedAsyncEnumerable<DiskList, Disk> ListAsync(ListDisksRequest request, CallSettings callSettings = null)
Retrieves a list of persistent disks contained within the specified zone.
Parameters | |
---|---|
Name | Description |
request | ListDisksRequest The request object containing all of the parameters for the API call. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
PagedAsyncEnumerable<DiskList, Disk> | A pageable asynchronous sequence of Disk resources. |
RemoveResourcePolicies(RemoveResourcePoliciesDiskRequest, CallSettings)
public override Operation<Operation, Operation> RemoveResourcePolicies(RemoveResourcePoliciesDiskRequest request, CallSettings callSettings = null)
Removes resource policies from a disk.
Parameters | |
---|---|
Name | Description |
request | RemoveResourcePoliciesDiskRequest The request object containing all of the parameters for the API call. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Operation<Operation, Operation> | The RPC response. |
RemoveResourcePoliciesAsync(RemoveResourcePoliciesDiskRequest, CallSettings)
public override Task<Operation<Operation, Operation>> RemoveResourcePoliciesAsync(RemoveResourcePoliciesDiskRequest request, CallSettings callSettings = null)
Removes resource policies from a disk.
Parameters | |
---|---|
Name | Description |
request | RemoveResourcePoliciesDiskRequest The request object containing all of the parameters for the API call. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Task<Operation<Operation, Operation>> | A Task containing the RPC response. |
Resize(ResizeDiskRequest, CallSettings)
public override Operation<Operation, Operation> Resize(ResizeDiskRequest request, CallSettings callSettings = null)
Resizes the specified persistent disk. You can only increase the size of the disk.
Parameters | |
---|---|
Name | Description |
request | ResizeDiskRequest The request object containing all of the parameters for the API call. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Operation<Operation, Operation> | The RPC response. |
ResizeAsync(ResizeDiskRequest, CallSettings)
public override Task<Operation<Operation, Operation>> ResizeAsync(ResizeDiskRequest request, CallSettings callSettings = null)
Resizes the specified persistent disk. You can only increase the size of the disk.
Parameters | |
---|---|
Name | Description |
request | ResizeDiskRequest The request object containing all of the parameters for the API call. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Task<Operation<Operation, Operation>> | A Task containing the RPC response. |
SetIamPolicy(SetIamPolicyDiskRequest, CallSettings)
public override Policy SetIamPolicy(SetIamPolicyDiskRequest request, CallSettings callSettings = null)
Sets the access control policy on the specified resource. Replaces any existing policy.
Parameters | |
---|---|
Name | Description |
request | SetIamPolicyDiskRequest The request object containing all of the parameters for the API call. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Policy | The RPC response. |
SetIamPolicyAsync(SetIamPolicyDiskRequest, CallSettings)
public override Task<Policy> SetIamPolicyAsync(SetIamPolicyDiskRequest request, CallSettings callSettings = null)
Sets the access control policy on the specified resource. Replaces any existing policy.
Parameters | |
---|---|
Name | Description |
request | SetIamPolicyDiskRequest The request object containing all of the parameters for the API call. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Task<Policy> | A Task containing the RPC response. |
SetLabels(SetLabelsDiskRequest, CallSettings)
public override Operation<Operation, Operation> SetLabels(SetLabelsDiskRequest request, CallSettings callSettings = null)
Sets the labels on a disk. To learn more about labels, read the Labeling Resources documentation.
Parameters | |
---|---|
Name | Description |
request | SetLabelsDiskRequest The request object containing all of the parameters for the API call. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Operation<Operation, Operation> | The RPC response. |
SetLabelsAsync(SetLabelsDiskRequest, CallSettings)
public override Task<Operation<Operation, Operation>> SetLabelsAsync(SetLabelsDiskRequest request, CallSettings callSettings = null)
Sets the labels on a disk. To learn more about labels, read the Labeling Resources documentation.
Parameters | |
---|---|
Name | Description |
request | SetLabelsDiskRequest The request object containing all of the parameters for the API call. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Task<Operation<Operation, Operation>> | A Task containing the RPC response. |
TestIamPermissions(TestIamPermissionsDiskRequest, CallSettings)
public override TestPermissionsResponse TestIamPermissions(TestIamPermissionsDiskRequest request, CallSettings callSettings = null)
Returns permissions that a caller has on the specified resource.
Parameters | |
---|---|
Name | Description |
request | TestIamPermissionsDiskRequest The request object containing all of the parameters for the API call. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
TestPermissionsResponse | The RPC response. |
TestIamPermissionsAsync(TestIamPermissionsDiskRequest, CallSettings)
public override Task<TestPermissionsResponse> TestIamPermissionsAsync(TestIamPermissionsDiskRequest request, CallSettings callSettings = null)
Returns permissions that a caller has on the specified resource.
Parameters | |
---|---|
Name | Description |
request | TestIamPermissionsDiskRequest The request object containing all of the parameters for the API call. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Task<TestPermissionsResponse> | A Task containing the RPC response. |