public class RegionDiskTypesClient : ClientBase<RegionDiskTypes.RegionDiskTypesClient>
Client for RegionDiskTypes
Inheritance
Object > ClientBase > ClientBase<RegionDiskTypes.RegionDiskTypesClient> > 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(ClientBase.ClientBaseConfiguration)
protected RegionDiskTypesClient(ClientBase.ClientBaseConfiguration configuration)
Protected constructor to allow creation of configured clients.
Parameter | |
---|---|
Name | Description |
configuration | ClientBase.ClientBaseConfiguration The client configuration. |
Methods
Get(GetRegionDiskTypeRequest, CallOptions)
public virtual DiskType Get(GetRegionDiskTypeRequest request, CallOptions options)
Returns the specified regional disk type. Gets a list of available disk types by making a list() request.
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, Nullable<DateTime>, CancellationToken)
public virtual DiskType Get(GetRegionDiskTypeRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default(CancellationToken))
Returns the specified regional disk type. Gets a list of available disk types by making a list() request.
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 | Nullable<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. Gets a list of available disk types by making a list() request.
Parameters | |
---|---|
Name | Description |
request | GetRegionDiskTypeRequest The request to send to the server. |
options | CallOptions The options for the call. |
Returns | |
---|---|
Type | Description |
AsyncUnaryCall<DiskType> | The call object. |
GetAsync(GetRegionDiskTypeRequest, Metadata, Nullable<DateTime>, CancellationToken)
public virtual AsyncUnaryCall<DiskType> GetAsync(GetRegionDiskTypeRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default(CancellationToken))
Returns the specified regional disk type. Gets a list of available disk types by making a list() request.
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 | Nullable<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 |
AsyncUnaryCall<DiskType> | 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, Nullable<DateTime>, CancellationToken)
public virtual RegionDiskTypeList List(ListRegionDiskTypesRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default(CancellationToken))
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 | Nullable<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 |
AsyncUnaryCall<RegionDiskTypeList> | The call object. |
ListAsync(ListRegionDiskTypesRequest, Metadata, Nullable<DateTime>, CancellationToken)
public virtual AsyncUnaryCall<RegionDiskTypeList> ListAsync(ListRegionDiskTypesRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default(CancellationToken))
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 | Nullable<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 |
AsyncUnaryCall<RegionDiskTypeList> | The call object. |
NewInstance(ClientBase.ClientBaseConfiguration)
protected override RegionDiskTypes.RegionDiskTypesClient NewInstance(ClientBase.ClientBaseConfiguration configuration)
Creates a new instance of client from given ClientBaseConfiguration
.
Parameter | |
---|---|
Name | Description |
configuration | ClientBase.ClientBaseConfiguration |
Returns | |
---|---|
Type | Description |
RegionDiskTypes.RegionDiskTypesClient |