Class DiskTypes.DiskTypesClient (1.1.0)

public class DiskTypesClient : ClientBase<DiskTypes.DiskTypesClient>

Client for DiskTypes

Inheritance

Object > ClientBase > ClientBase<DiskTypes.DiskTypesClient> > DiskTypes.DiskTypesClient

Namespace

Google.Cloud.Compute.V1

Assembly

Google.Cloud.Compute.V1.dll

Constructors

DiskTypesClient()

protected DiskTypesClient()

Protected parameterless constructor to allow creation of test doubles.

DiskTypesClient(CallInvoker)

public DiskTypesClient(CallInvoker callInvoker)

Creates a new client for DiskTypes that uses a custom CallInvoker.

Parameter
NameDescription
callInvokerCallInvoker

The callInvoker to use to make remote calls.

DiskTypesClient(ChannelBase)

public DiskTypesClient(ChannelBase channel)

Creates a new client for DiskTypes

Parameter
NameDescription
channelChannelBase

The channel to use to make remote calls.

DiskTypesClient(ClientBase.ClientBaseConfiguration)

protected DiskTypesClient(ClientBase.ClientBaseConfiguration configuration)

Protected constructor to allow creation of configured clients.

Parameter
NameDescription
configurationClientBase.ClientBaseConfiguration

The client configuration.

Methods

AggregatedList(AggregatedListDiskTypesRequest, CallOptions)

public virtual DiskTypeAggregatedList AggregatedList(AggregatedListDiskTypesRequest request, CallOptions options)

Retrieves an aggregated list of disk types.

Parameters
NameDescription
requestAggregatedListDiskTypesRequest

The request to send to the server.

optionsCallOptions

The options for the call.

Returns
TypeDescription
DiskTypeAggregatedList

The response received from the server.

AggregatedList(AggregatedListDiskTypesRequest, Metadata, Nullable<DateTime>, CancellationToken)

public virtual DiskTypeAggregatedList AggregatedList(AggregatedListDiskTypesRequest request, Metadata headers = null, DateTime? deadline = default(DateTime? ), CancellationToken cancellationToken = default(CancellationToken))

Retrieves an aggregated list of disk types.

Parameters
NameDescription
requestAggregatedListDiskTypesRequest

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
DiskTypeAggregatedList

The response received from the server.

AggregatedListAsync(AggregatedListDiskTypesRequest, CallOptions)

public virtual AsyncUnaryCall<DiskTypeAggregatedList> AggregatedListAsync(AggregatedListDiskTypesRequest request, CallOptions options)

Retrieves an aggregated list of disk types.

Parameters
NameDescription
requestAggregatedListDiskTypesRequest

The request to send to the server.

optionsCallOptions

The options for the call.

Returns
TypeDescription
AsyncUnaryCall<DiskTypeAggregatedList>

The call object.

AggregatedListAsync(AggregatedListDiskTypesRequest, Metadata, Nullable<DateTime>, CancellationToken)

public virtual AsyncUnaryCall<DiskTypeAggregatedList> AggregatedListAsync(AggregatedListDiskTypesRequest request, Metadata headers = null, DateTime? deadline = default(DateTime? ), CancellationToken cancellationToken = default(CancellationToken))

Retrieves an aggregated list of disk types.

Parameters
NameDescription
requestAggregatedListDiskTypesRequest

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<DiskTypeAggregatedList>

The call object.

Get(GetDiskTypeRequest, CallOptions)

public virtual DiskType Get(GetDiskTypeRequest request, CallOptions options)

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

Parameters
NameDescription
requestGetDiskTypeRequest

The request to send to the server.

optionsCallOptions

The options for the call.

Returns
TypeDescription
DiskType

The response received from the server.

Get(GetDiskTypeRequest, Metadata, Nullable<DateTime>, CancellationToken)

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

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

Parameters
NameDescription
requestGetDiskTypeRequest

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(GetDiskTypeRequest, CallOptions)

public virtual AsyncUnaryCall<DiskType> GetAsync(GetDiskTypeRequest request, CallOptions options)

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

Parameters
NameDescription
requestGetDiskTypeRequest

The request to send to the server.

optionsCallOptions

The options for the call.

Returns
TypeDescription
AsyncUnaryCall<DiskType>

The call object.

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

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

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

Parameters
NameDescription
requestGetDiskTypeRequest

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(ListDiskTypesRequest, CallOptions)

public virtual DiskTypeList List(ListDiskTypesRequest request, CallOptions options)

Retrieves a list of disk types available to the specified project.

Parameters
NameDescription
requestListDiskTypesRequest

The request to send to the server.

optionsCallOptions

The options for the call.

Returns
TypeDescription
DiskTypeList

The response received from the server.

List(ListDiskTypesRequest, Metadata, Nullable<DateTime>, CancellationToken)

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

Retrieves a list of disk types available to the specified project.

Parameters
NameDescription
requestListDiskTypesRequest

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
DiskTypeList

The response received from the server.

ListAsync(ListDiskTypesRequest, CallOptions)

public virtual AsyncUnaryCall<DiskTypeList> ListAsync(ListDiskTypesRequest request, CallOptions options)

Retrieves a list of disk types available to the specified project.

Parameters
NameDescription
requestListDiskTypesRequest

The request to send to the server.

optionsCallOptions

The options for the call.

Returns
TypeDescription
AsyncUnaryCall<DiskTypeList>

The call object.

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

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

Retrieves a list of disk types available to the specified project.

Parameters
NameDescription
requestListDiskTypesRequest

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<DiskTypeList>

The call object.

NewInstance(ClientBase.ClientBaseConfiguration)

protected override DiskTypes.DiskTypesClient NewInstance(ClientBase.ClientBaseConfiguration configuration)

Creates a new instance of client from given ClientBaseConfiguration.

Parameter
NameDescription
configurationClientBase.ClientBaseConfiguration
Returns
TypeDescription
DiskTypes.DiskTypesClient
Overrides
Grpc.Core.ClientBase<Google.Cloud.Compute.V1.DiskTypes.DiskTypesClient>.NewInstance(Grpc.Core.ClientBase.ClientBaseConfiguration)