Compute Engine v1 API - Class RegionDiskTypes.RegionDiskTypesClient (2.15.0)

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.RegionDiskTypesClient

Namespace

Google.Cloud.Compute.V1

Assembly

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
NameDescription
callInvokerCallInvoker

The callInvoker to use to make remote calls.

RegionDiskTypesClient(ChannelBase)

public RegionDiskTypesClient(ChannelBase channel)

Creates a new client for RegionDiskTypes

Parameter
NameDescription
channelChannelBase

The channel to use to make remote calls.

RegionDiskTypesClient(ClientBaseConfiguration)

protected RegionDiskTypesClient(ClientBase.ClientBaseConfiguration configuration)

Protected constructor to allow creation of configured clients.

Parameter
NameDescription
configurationClientBaseClientBaseConfiguration

The client configuration.

Methods

Get(GetRegionDiskTypeRequest, CallOptions)

public virtual DiskType Get(GetRegionDiskTypeRequest request, CallOptions options)

Returns the specified regional disk type.

Parameters
NameDescription
requestGetRegionDiskTypeRequest

The request to send to the server.

optionsCallOptions

The options for the call.

Returns
TypeDescription
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
NameDescription
requestGetRegionDiskTypeRequest

The request to send to the server.

headersMetadata

The initial metadata to send with the call. This parameter is optional.

deadlineDateTime

An optional deadline for the call. The call will be cancelled if deadline is hit.

cancellationTokenCancellationToken

An optional token for canceling the call.

Returns
TypeDescription
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
NameDescription
requestGetRegionDiskTypeRequest

The request to send to the server.

optionsCallOptions

The options for the call.

Returns
TypeDescription
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
NameDescription
requestGetRegionDiskTypeRequest

The request to send to the server.

headersMetadata

The initial metadata to send with the call. This parameter is optional.

deadlineDateTime

An optional deadline for the call. The call will be cancelled if deadline is hit.

cancellationTokenCancellationToken

An optional token for canceling the call.

Returns
TypeDescription
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
NameDescription
requestListRegionDiskTypesRequest

The request to send to the server.

optionsCallOptions

The options for the call.

Returns
TypeDescription
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
NameDescription
requestListRegionDiskTypesRequest

The request to send to the server.

headersMetadata

The initial metadata to send with the call. This parameter is optional.

deadlineDateTime

An optional deadline for the call. The call will be cancelled if deadline is hit.

cancellationTokenCancellationToken

An optional token for canceling the call.

Returns
TypeDescription
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
NameDescription
requestListRegionDiskTypesRequest

The request to send to the server.

optionsCallOptions

The options for the call.

Returns
TypeDescription
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
NameDescription
requestListRegionDiskTypesRequest

The request to send to the server.

headersMetadata

The initial metadata to send with the call. This parameter is optional.

deadlineDateTime

An optional deadline for the call. The call will be cancelled if deadline is hit.

cancellationTokenCancellationToken

An optional token for canceling the call.

Returns
TypeDescription
AsyncUnaryCallRegionDiskTypeList

The call object.

NewInstance(ClientBaseConfiguration)

protected override RegionDiskTypes.RegionDiskTypesClient NewInstance(ClientBase.ClientBaseConfiguration configuration)

Creates a new instance of client from given ClientBaseConfiguration.

Parameter
NameDescription
configurationClientBaseClientBaseConfiguration
Returns
TypeDescription
RegionDiskTypesRegionDiskTypesClient
Overrides