Class RegionDiskTypes.RegionDiskTypesClient (1.1.0)

public class RegionDiskTypesClient : ClientBase<RegionDiskTypes.RegionDiskTypesClient>

Client for RegionDiskTypes

Inheritance

Object > ClientBase > ClientBase<RegionDiskTypes.RegionDiskTypesClient> > 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(ClientBase.ClientBaseConfiguration)

protected RegionDiskTypesClient(ClientBase.ClientBaseConfiguration configuration)

Protected constructor to allow creation of configured clients.

Parameter
NameDescription
configurationClientBase.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
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, Nullable<DateTime>, CancellationToken)

public virtual DiskType Get(GetRegionDiskTypeRequest request, Metadata headers = null, DateTime? deadline = default(DateTime? ), CancellationToken cancellationToken = default(CancellationToken))

Returns the specified regional disk type. Gets a list of available disk types by making a list() request.

Parameters
NameDescription
requestGetRegionDiskTypeRequest

The request to send to the server.

headersMetadata

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

deadlineNullable<DateTime>

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. Gets a list of available disk types by making a list() request.

Parameters
NameDescription
requestGetRegionDiskTypeRequest

The request to send to the server.

optionsCallOptions

The options for the call.

Returns
TypeDescription
AsyncUnaryCall<DiskType>

The call object.

GetAsync(GetRegionDiskTypeRequest, Metadata, Nullable<DateTime>, CancellationToken)

public virtual AsyncUnaryCall<DiskType> GetAsync(GetRegionDiskTypeRequest request, Metadata headers = null, DateTime? deadline = default(DateTime? ), CancellationToken cancellationToken = default(CancellationToken))

Returns the specified regional disk type. Gets a list of available disk types by making a list() request.

Parameters
NameDescription
requestGetRegionDiskTypeRequest

The request to send to the server.

headersMetadata

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

deadlineNullable<DateTime>

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
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
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, Nullable<DateTime>, CancellationToken)

public virtual RegionDiskTypeList List(ListRegionDiskTypesRequest request, Metadata headers = null, DateTime? deadline = default(DateTime? ), CancellationToken cancellationToken = default(CancellationToken))

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.

deadlineNullable<DateTime>

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
AsyncUnaryCall<RegionDiskTypeList>

The call object.

ListAsync(ListRegionDiskTypesRequest, Metadata, Nullable<DateTime>, CancellationToken)

public virtual AsyncUnaryCall<RegionDiskTypeList> ListAsync(ListRegionDiskTypesRequest request, Metadata headers = null, DateTime? deadline = default(DateTime? ), CancellationToken cancellationToken = default(CancellationToken))

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.

deadlineNullable<DateTime>

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
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
NameDescription
configurationClientBase.ClientBaseConfiguration
Returns
TypeDescription
RegionDiskTypes.RegionDiskTypesClient
Overrides
Grpc.Core.ClientBase<Google.Cloud.Compute.V1.RegionDiskTypes.RegionDiskTypesClient>.NewInstance(Grpc.Core.ClientBase.ClientBaseConfiguration)