public class RegionDiskTypes.RegionDiskTypesClient : ClientBase<RegionDiskTypes.RegionDiskTypesClient>
Reference documentation and code samples for the Compute Engine v1 API class RegionDiskTypes.RegionDiskTypesClient.
Client for RegionDiskTypes
Inheritance
object > ClientBase > ClientBaseRegionDiskTypesRegionDiskTypesClient > RegionDiskTypes.RegionDiskTypesClientNamespace
Google.Cloud.Compute.V1Assembly
Google.Cloud.Compute.V1.dll
Constructors
RegionDiskTypesClient()
protected RegionDiskTypesClient()
Protected parameterless constructor to allow creation of test doubles.
RegionDiskTypesClient(CallInvoker)
public RegionDiskTypesClient(CallInvoker callInvoker)
Creates a new client for RegionDiskTypes that uses a custom CallInvoker
.
Parameter | |
---|---|
Name | Description |
callInvoker |
CallInvoker The callInvoker to use to make remote calls. |
RegionDiskTypesClient(ChannelBase)
public RegionDiskTypesClient(ChannelBase channel)
Creates a new client for RegionDiskTypes
Parameter | |
---|---|
Name | Description |
channel |
ChannelBase The channel to use to make remote calls. |
RegionDiskTypesClient(ClientBaseConfiguration)
protected RegionDiskTypesClient(ClientBase.ClientBaseConfiguration configuration)
Protected constructor to allow creation of configured clients.
Parameter | |
---|---|
Name | Description |
configuration |
ClientBaseClientBaseConfiguration The client configuration. |
Methods
Get(GetRegionDiskTypeRequest, CallOptions)
public virtual DiskType Get(GetRegionDiskTypeRequest request, CallOptions options)
Returns the specified regional disk type.
Parameters | |
---|---|
Name | Description |
request |
GetRegionDiskTypeRequest The request to send to the server. |
options |
CallOptions The options for the call. |
Returns | |
---|---|
Type | Description |
DiskType |
The response received from the server. |
Get(GetRegionDiskTypeRequest, Metadata, DateTime?, CancellationToken)
public virtual DiskType Get(GetRegionDiskTypeRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)
Returns the specified regional disk type.
Parameters | |
---|---|
Name | Description |
request |
GetRegionDiskTypeRequest The request to send to the server. |
headers |
Metadata The initial metadata to send with the call. This parameter is optional. |
deadline |
System.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 |
DiskType |
The response received from the server. |
GetAsync(GetRegionDiskTypeRequest, CallOptions)
public virtual AsyncUnaryCall<DiskType> GetAsync(GetRegionDiskTypeRequest request, CallOptions options)
Returns the specified regional disk type.
Parameters | |
---|---|
Name | Description |
request |
GetRegionDiskTypeRequest The request to send to the server. |
options |
CallOptions The options for the call. |
Returns | |
---|---|
Type | Description |
AsyncUnaryCallDiskType |
The call object. |
GetAsync(GetRegionDiskTypeRequest, Metadata, DateTime?, CancellationToken)
public virtual AsyncUnaryCall<DiskType> GetAsync(GetRegionDiskTypeRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)
Returns the specified regional disk type.
Parameters | |
---|---|
Name | Description |
request |
GetRegionDiskTypeRequest The request to send to the server. |
headers |
Metadata The initial metadata to send with the call. This parameter is optional. |
deadline |
System.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 |
AsyncUnaryCallDiskType |
The call object. |
List(ListRegionDiskTypesRequest, CallOptions)
public virtual RegionDiskTypeList List(ListRegionDiskTypesRequest request, CallOptions options)
Retrieves a list of regional disk types available to the specified project.
Parameters | |
---|---|
Name | Description |
request |
ListRegionDiskTypesRequest The request to send to the server. |
options |
CallOptions The options for the call. |
Returns | |
---|---|
Type | Description |
RegionDiskTypeList |
The response received from the server. |
List(ListRegionDiskTypesRequest, Metadata, DateTime?, CancellationToken)
public virtual RegionDiskTypeList List(ListRegionDiskTypesRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)
Retrieves a list of regional disk types available to the specified project.
Parameters | |
---|---|
Name | Description |
request |
ListRegionDiskTypesRequest The request to send to the server. |
headers |
Metadata The initial metadata to send with the call. This parameter is optional. |
deadline |
System.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 |
RegionDiskTypeList |
The response received from the server. |
ListAsync(ListRegionDiskTypesRequest, CallOptions)
public virtual AsyncUnaryCall<RegionDiskTypeList> ListAsync(ListRegionDiskTypesRequest request, CallOptions options)
Retrieves a list of regional disk types available to the specified project.
Parameters | |
---|---|
Name | Description |
request |
ListRegionDiskTypesRequest The request to send to the server. |
options |
CallOptions The options for the call. |
Returns | |
---|---|
Type | Description |
AsyncUnaryCallRegionDiskTypeList |
The call object. |
ListAsync(ListRegionDiskTypesRequest, Metadata, DateTime?, CancellationToken)
public virtual AsyncUnaryCall<RegionDiskTypeList> ListAsync(ListRegionDiskTypesRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)
Retrieves a list of regional disk types available to the specified project.
Parameters | |
---|---|
Name | Description |
request |
ListRegionDiskTypesRequest The request to send to the server. |
headers |
Metadata The initial metadata to send with the call. This parameter is optional. |
deadline |
System.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 |
AsyncUnaryCallRegionDiskTypeList |
The call object. |
NewInstance(ClientBaseConfiguration)
protected override RegionDiskTypes.RegionDiskTypesClient NewInstance(ClientBase.ClientBaseConfiguration configuration)
Creates a new instance of client from given ClientBaseConfiguration
.
Parameter | |
---|---|
Name | Description |
configuration |
ClientBaseClientBaseConfiguration |
Returns | |
---|---|
Type | Description |
RegionDiskTypesRegionDiskTypesClient |