- 3.25.0 (latest)
- 3.24.0
- 3.23.0
- 3.22.0
- 3.21.0
- 3.20.0
- 3.19.0
- 3.18.0
- 3.17.0
- 3.16.0
- 3.15.0
- 3.14.0
- 3.13.0
- 3.12.0
- 3.11.0
- 3.10.0
- 3.9.0
- 3.8.0
- 3.7.0
- 3.6.0
- 3.5.0
- 3.4.0
- 3.3.0
- 3.2.0
- 3.1.0
- 3.0.0
- 2.17.0
- 2.16.0
- 2.15.0
- 2.14.0
- 2.13.0
- 2.12.0
- 2.11.0
- 2.10.0
- 2.9.0
- 2.8.0
- 2.7.0
- 2.6.0
- 2.5.0
- 2.4.0
- 2.3.0
- 2.2.0
- 2.1.0
- 2.0.0
- 1.4.0
- 1.3.0
- 1.2.0
- 1.1.0
- 1.0.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.ReservationSlotsClientNamespace
Google.Cloud.Compute.V1Assembly
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 |
CallInvokerThe callInvoker to use to make remote calls. |
ReservationSlotsClient(ChannelBase)
public ReservationSlotsClient(ChannelBase channel)Creates a new client for ReservationSlots
| Parameter | |
|---|---|
| Name | Description |
channel |
ChannelBaseThe 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 |
ClientBaseClientBaseConfigurationThe 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 |
GetReservationSlotRequestThe request to send to the server. |
options |
CallOptionsThe 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 |
GetReservationSlotRequestThe request to send to the server. |
headers |
MetadataThe initial metadata to send with the call. This parameter is optional. |
deadline |
System.DateTimeAn optional deadline for the call. The call will be cancelled if deadline is hit. |
cancellationToken |
CancellationTokenAn 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 |
GetReservationSlotRequestThe request to send to the server. |
options |
CallOptionsThe 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 |
GetReservationSlotRequestThe request to send to the server. |
headers |
MetadataThe initial metadata to send with the call. This parameter is optional. |
deadline |
System.DateTimeAn optional deadline for the call. The call will be cancelled if deadline is hit. |
cancellationToken |
CancellationTokenAn 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 |
ListReservationSlotsRequestThe request to send to the server. |
options |
CallOptionsThe 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 |
ListReservationSlotsRequestThe request to send to the server. |
headers |
MetadataThe initial metadata to send with the call. This parameter is optional. |
deadline |
System.DateTimeAn optional deadline for the call. The call will be cancelled if deadline is hit. |
cancellationToken |
CancellationTokenAn 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 |
ListReservationSlotsRequestThe request to send to the server. |
options |
CallOptionsThe 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 |
ListReservationSlotsRequestThe request to send to the server. |
headers |
MetadataThe initial metadata to send with the call. This parameter is optional. |
deadline |
System.DateTimeAn optional deadline for the call. The call will be cancelled if deadline is hit. |
cancellationToken |
CancellationTokenAn 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 |
|
Update(UpdateReservationSlotRequest, CallOptions)
public virtual Operation Update(UpdateReservationSlotRequest request, CallOptions options)Update a reservation slot in the specified sub-block.
| Parameters | |
|---|---|
| Name | Description |
request |
UpdateReservationSlotRequestThe request to send to the server. |
options |
CallOptionsThe 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 |
UpdateReservationSlotRequestThe request to send to the server. |
headers |
MetadataThe initial metadata to send with the call. This parameter is optional. |
deadline |
System.DateTimeAn optional deadline for the call. The call will be cancelled if deadline is hit. |
cancellationToken |
CancellationTokenAn 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 |
UpdateReservationSlotRequestThe request to send to the server. |
options |
CallOptionsThe 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 |
UpdateReservationSlotRequestThe request to send to the server. |
headers |
MetadataThe initial metadata to send with the call. This parameter is optional. |
deadline |
System.DateTimeAn optional deadline for the call. The call will be cancelled if deadline is hit. |
cancellationToken |
CancellationTokenAn optional token for canceling the call. |
| Returns | |
|---|---|
| Type | Description |
AsyncUnaryCallOperation |
The call object. |