Compute Engine v1 API - Class ReservationSubBlocks.ReservationSubBlocksClient (3.10.0)

public class ReservationSubBlocks.ReservationSubBlocksClient : ClientBase<ReservationSubBlocks.ReservationSubBlocksClient>

Reference documentation and code samples for the Compute Engine v1 API class ReservationSubBlocks.ReservationSubBlocksClient.

Client for ReservationSubBlocks

Inheritance

object > ClientBase > ClientBaseReservationSubBlocksReservationSubBlocksClient > ReservationSubBlocks.ReservationSubBlocksClient

Namespace

Google.Cloud.Compute.V1

Assembly

Google.Cloud.Compute.V1.dll

Constructors

ReservationSubBlocksClient()

protected ReservationSubBlocksClient()

Protected parameterless constructor to allow creation of test doubles.

ReservationSubBlocksClient(CallInvoker)

public ReservationSubBlocksClient(CallInvoker callInvoker)

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

Parameter
Name Description
callInvoker CallInvoker

The callInvoker to use to make remote calls.

ReservationSubBlocksClient(ChannelBase)

public ReservationSubBlocksClient(ChannelBase channel)

Creates a new client for ReservationSubBlocks

Parameter
Name Description
channel ChannelBase

The channel to use to make remote calls.

ReservationSubBlocksClient(ClientBaseConfiguration)

protected ReservationSubBlocksClient(ClientBase.ClientBaseConfiguration configuration)

Protected constructor to allow creation of configured clients.

Parameter
Name Description
configuration ClientBaseClientBaseConfiguration

The client configuration.

Methods

CreateOperationsClientForZoneOperations()

public virtual Operations.OperationsClient CreateOperationsClientForZoneOperations()

Creates a new instance of Operations.OperationsClient using the same call invoker as this client, delegating to ZoneOperations.

Returns
Type Description
OperationsOperationsClient

A new Operations client for the same target as this client.

Get(GetReservationSubBlockRequest, CallOptions)

public virtual ReservationSubBlocksGetResponse Get(GetReservationSubBlockRequest request, CallOptions options)

Retrieves information about the specified reservation subBlock.

Parameters
Name Description
request GetReservationSubBlockRequest

The request to send to the server.

options CallOptions

The options for the call.

Returns
Type Description
ReservationSubBlocksGetResponse

The response received from the server.

Get(GetReservationSubBlockRequest, Metadata, DateTime?, CancellationToken)

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

Retrieves information about the specified reservation subBlock.

Parameters
Name Description
request GetReservationSubBlockRequest

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
ReservationSubBlocksGetResponse

The response received from the server.

GetAsync(GetReservationSubBlockRequest, CallOptions)

public virtual AsyncUnaryCall<ReservationSubBlocksGetResponse> GetAsync(GetReservationSubBlockRequest request, CallOptions options)

Retrieves information about the specified reservation subBlock.

Parameters
Name Description
request GetReservationSubBlockRequest

The request to send to the server.

options CallOptions

The options for the call.

Returns
Type Description
AsyncUnaryCallReservationSubBlocksGetResponse

The call object.

GetAsync(GetReservationSubBlockRequest, Metadata, DateTime?, CancellationToken)

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

Retrieves information about the specified reservation subBlock.

Parameters
Name Description
request GetReservationSubBlockRequest

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
AsyncUnaryCallReservationSubBlocksGetResponse

The call object.

List(ListReservationSubBlocksRequest, CallOptions)

public virtual ReservationSubBlocksListResponse List(ListReservationSubBlocksRequest request, CallOptions options)

Retrieves a list of reservation subBlocks under a single reservation.

Parameters
Name Description
request ListReservationSubBlocksRequest

The request to send to the server.

options CallOptions

The options for the call.

Returns
Type Description
ReservationSubBlocksListResponse

The response received from the server.

List(ListReservationSubBlocksRequest, Metadata, DateTime?, CancellationToken)

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

Retrieves a list of reservation subBlocks under a single reservation.

Parameters
Name Description
request ListReservationSubBlocksRequest

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
ReservationSubBlocksListResponse

The response received from the server.

ListAsync(ListReservationSubBlocksRequest, CallOptions)

public virtual AsyncUnaryCall<ReservationSubBlocksListResponse> ListAsync(ListReservationSubBlocksRequest request, CallOptions options)

Retrieves a list of reservation subBlocks under a single reservation.

Parameters
Name Description
request ListReservationSubBlocksRequest

The request to send to the server.

options CallOptions

The options for the call.

Returns
Type Description
AsyncUnaryCallReservationSubBlocksListResponse

The call object.

ListAsync(ListReservationSubBlocksRequest, Metadata, DateTime?, CancellationToken)

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

Retrieves a list of reservation subBlocks under a single reservation.

Parameters
Name Description
request ListReservationSubBlocksRequest

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
AsyncUnaryCallReservationSubBlocksListResponse

The call object.

NewInstance(ClientBaseConfiguration)

protected override ReservationSubBlocks.ReservationSubBlocksClient NewInstance(ClientBase.ClientBaseConfiguration configuration)

Creates a new instance of client from given ClientBaseConfiguration.

Parameter
Name Description
configuration ClientBaseClientBaseConfiguration
Returns
Type Description
ReservationSubBlocksReservationSubBlocksClient
Overrides
Grpc.Core.ClientBase<Google.Cloud.Compute.V1.ReservationSubBlocks.ReservationSubBlocksClient>.NewInstance(Grpc.Core.ClientBase.ClientBaseConfiguration)

PerformMaintenance(PerformMaintenanceReservationSubBlockRequest, CallOptions)

public virtual Operation PerformMaintenance(PerformMaintenanceReservationSubBlockRequest request, CallOptions options)

Allows customers to perform maintenance on a reservation subBlock

Parameters
Name Description
request PerformMaintenanceReservationSubBlockRequest

The request to send to the server.

options CallOptions

The options for the call.

Returns
Type Description
Operation

The response received from the server.

PerformMaintenance(PerformMaintenanceReservationSubBlockRequest, Metadata, DateTime?, CancellationToken)

public virtual Operation PerformMaintenance(PerformMaintenanceReservationSubBlockRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)

Allows customers to perform maintenance on a reservation subBlock

Parameters
Name Description
request PerformMaintenanceReservationSubBlockRequest

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
Operation

The response received from the server.

PerformMaintenanceAsync(PerformMaintenanceReservationSubBlockRequest, CallOptions)

public virtual AsyncUnaryCall<Operation> PerformMaintenanceAsync(PerformMaintenanceReservationSubBlockRequest request, CallOptions options)

Allows customers to perform maintenance on a reservation subBlock

Parameters
Name Description
request PerformMaintenanceReservationSubBlockRequest

The request to send to the server.

options CallOptions

The options for the call.

Returns
Type Description
AsyncUnaryCallOperation

The call object.

PerformMaintenanceAsync(PerformMaintenanceReservationSubBlockRequest, Metadata, DateTime?, CancellationToken)

public virtual AsyncUnaryCall<Operation> PerformMaintenanceAsync(PerformMaintenanceReservationSubBlockRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)

Allows customers to perform maintenance on a reservation subBlock

Parameters
Name Description
request PerformMaintenanceReservationSubBlockRequest

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
AsyncUnaryCallOperation

The call object.