Compute Engine v1 API - Class ReservationSlots.ReservationSlotsClient (3.25.0)

public class ReservationSlots.ReservationSlotsClient : ClientBase<ReservationSlots.ReservationSlotsClient>

Reference documentation and code samples for the Compute Engine v1 API class ReservationSlots.ReservationSlotsClient.

Client for ReservationSlots

Inheritance

object > ClientBase > ClientBaseReservationSlotsReservationSlotsClient > ReservationSlots.ReservationSlotsClient

Namespace

Google.Cloud.Compute.V1

Assembly

Google.Cloud.Compute.V1.dll

Constructors

ReservationSlotsClient()

protected ReservationSlotsClient()

Protected parameterless constructor to allow creation of test doubles.

ReservationSlotsClient(CallInvoker)

public ReservationSlotsClient(CallInvoker callInvoker)

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

Parameter
Name Description
callInvoker CallInvoker

The callInvoker to use to make remote calls.

ReservationSlotsClient(ChannelBase)

public ReservationSlotsClient(ChannelBase channel)

Creates a new client for ReservationSlots

Parameter
Name Description
channel ChannelBase

The channel to use to make remote calls.

ReservationSlotsClient(ClientBaseConfiguration)

protected ReservationSlotsClient(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(GetReservationSlotRequest, CallOptions)

public virtual ReservationSlotsGetResponse Get(GetReservationSlotRequest request, CallOptions options)

Retrieves information about the specified reservation slot.

Parameters
Name Description
request GetReservationSlotRequest

The request to send to the server.

options CallOptions

The options for the call.

Returns
Type Description
ReservationSlotsGetResponse

The response received from the server.

Get(GetReservationSlotRequest, Metadata, DateTime?, CancellationToken)

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

Retrieves information about the specified reservation slot.

Parameters
Name Description
request GetReservationSlotRequest

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
ReservationSlotsGetResponse

The response received from the server.

GetAsync(GetReservationSlotRequest, CallOptions)

public virtual AsyncUnaryCall<ReservationSlotsGetResponse> GetAsync(GetReservationSlotRequest request, CallOptions options)

Retrieves information about the specified reservation slot.

Parameters
Name Description
request GetReservationSlotRequest

The request to send to the server.

options CallOptions

The options for the call.

Returns
Type Description
AsyncUnaryCallReservationSlotsGetResponse

The call object.

GetAsync(GetReservationSlotRequest, Metadata, DateTime?, CancellationToken)

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

Retrieves information about the specified reservation slot.

Parameters
Name Description
request GetReservationSlotRequest

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
AsyncUnaryCallReservationSlotsGetResponse

The call object.

List(ListReservationSlotsRequest, CallOptions)

public virtual ReservationSlotsListResponse List(ListReservationSlotsRequest request, CallOptions options)

Retrieves a list of reservation slots under a single reservation.

Parameters
Name Description
request ListReservationSlotsRequest

The request to send to the server.

options CallOptions

The options for the call.

Returns
Type Description
ReservationSlotsListResponse

The response received from the server.

List(ListReservationSlotsRequest, Metadata, DateTime?, CancellationToken)

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

Retrieves a list of reservation slots under a single reservation.

Parameters
Name Description
request ListReservationSlotsRequest

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
ReservationSlotsListResponse

The response received from the server.

ListAsync(ListReservationSlotsRequest, CallOptions)

public virtual AsyncUnaryCall<ReservationSlotsListResponse> ListAsync(ListReservationSlotsRequest request, CallOptions options)

Retrieves a list of reservation slots under a single reservation.

Parameters
Name Description
request ListReservationSlotsRequest

The request to send to the server.

options CallOptions

The options for the call.

Returns
Type Description
AsyncUnaryCallReservationSlotsListResponse

The call object.

ListAsync(ListReservationSlotsRequest, Metadata, DateTime?, CancellationToken)

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

Retrieves a list of reservation slots under a single reservation.

Parameters
Name Description
request ListReservationSlotsRequest

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
AsyncUnaryCallReservationSlotsListResponse

The call object.

NewInstance(ClientBaseConfiguration)

protected override ReservationSlots.ReservationSlotsClient NewInstance(ClientBase.ClientBaseConfiguration configuration)

Creates a new instance of client from given ClientBaseConfiguration.

Parameter
Name Description
configuration ClientBaseClientBaseConfiguration
Returns
Type Description
ReservationSlotsReservationSlotsClient
Overrides
Grpc.Core.ClientBase<Google.Cloud.Compute.V1.ReservationSlots.ReservationSlotsClient>.NewInstance(Grpc.Core.ClientBase.ClientBaseConfiguration)

Update(UpdateReservationSlotRequest, CallOptions)

public virtual Operation Update(UpdateReservationSlotRequest request, CallOptions options)

Update a reservation slot in the specified sub-block.

Parameters
Name Description
request UpdateReservationSlotRequest

The request to send to the server.

options CallOptions

The options for the call.

Returns
Type Description
Operation

The response received from the server.

Update(UpdateReservationSlotRequest, Metadata, DateTime?, CancellationToken)

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

Update a reservation slot in the specified sub-block.

Parameters
Name Description
request UpdateReservationSlotRequest

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.

UpdateAsync(UpdateReservationSlotRequest, CallOptions)

public virtual AsyncUnaryCall<Operation> UpdateAsync(UpdateReservationSlotRequest request, CallOptions options)

Update a reservation slot in the specified sub-block.

Parameters
Name Description
request UpdateReservationSlotRequest

The request to send to the server.

options CallOptions

The options for the call.

Returns
Type Description
AsyncUnaryCallOperation

The call object.

UpdateAsync(UpdateReservationSlotRequest, Metadata, DateTime?, CancellationToken)

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

Update a reservation slot in the specified sub-block.

Parameters
Name Description
request UpdateReservationSlotRequest

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.