Compute Engine v1 API - Class ReservationsClientImpl (2.7.0)

public sealed class ReservationsClientImpl : ReservationsClient

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

Reservations client wrapper implementation, for convenient use.

Inheritance

object > ReservationsClient > ReservationsClientImpl

Namespace

GoogleCloudGoogle.Cloud.ComputeV1

Assembly

Google.Cloud.Compute.V1.dll

Remarks

The Reservations API.

Constructors

ReservationsClientImpl(ReservationsClient, ReservationsSettings, ILogger)

public ReservationsClientImpl(Reservations.ReservationsClient grpcClient, ReservationsSettings settings, ILogger logger)

Constructs a client wrapper for the Reservations service, with the specified gRPC client and settings.

Parameters
NameDescription
grpcClientReservationsReservationsClient

The underlying gRPC client.

settingsReservationsSettings

The base ReservationsSettings used within this client.

loggerILogger

Optional ILogger to use within this client.

Properties

DeleteOperationsClient

public override OperationsClient DeleteOperationsClient { get; }

The long-running operations client for Delete.

Property Value
TypeDescription
OperationsClient
Overrides

GrpcClient

public override Reservations.ReservationsClient GrpcClient { get; }

The underlying gRPC Reservations client

Property Value
TypeDescription
ReservationsReservationsClient
Overrides

InsertOperationsClient

public override OperationsClient InsertOperationsClient { get; }

The long-running operations client for Insert.

Property Value
TypeDescription
OperationsClient
Overrides

ResizeOperationsClient

public override OperationsClient ResizeOperationsClient { get; }

The long-running operations client for Resize.

Property Value
TypeDescription
OperationsClient
Overrides

UpdateOperationsClient

public override OperationsClient UpdateOperationsClient { get; }

The long-running operations client for Update.

Property Value
TypeDescription
OperationsClient
Overrides

Methods

AggregatedList(AggregatedListReservationsRequest, CallSettings)

public override PagedEnumerable<ReservationAggregatedList, KeyValuePair<string, ReservationsScopedList>> AggregatedList(AggregatedListReservationsRequest request, CallSettings callSettings = null)

Retrieves an aggregated list of reservations.

Parameters
NameDescription
requestAggregatedListReservationsRequest

The request object containing all of the parameters for the API call.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
PagedEnumerableReservationAggregatedListKeyValuePairstringReservationsScopedList

A pageable sequence of KeyValuePair<TKey,TValue> resources.

Overrides

AggregatedListAsync(AggregatedListReservationsRequest, CallSettings)

public override PagedAsyncEnumerable<ReservationAggregatedList, KeyValuePair<string, ReservationsScopedList>> AggregatedListAsync(AggregatedListReservationsRequest request, CallSettings callSettings = null)

Retrieves an aggregated list of reservations.

Parameters
NameDescription
requestAggregatedListReservationsRequest

The request object containing all of the parameters for the API call.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
PagedAsyncEnumerableReservationAggregatedListKeyValuePairstringReservationsScopedList

A pageable asynchronous sequence of KeyValuePair<TKey,TValue> resources.

Overrides

Delete(DeleteReservationRequest, CallSettings)

public override Operation<Operation, Operation> Delete(DeleteReservationRequest request, CallSettings callSettings = null)

Deletes the specified reservation.

Parameters
NameDescription
requestDeleteReservationRequest

The request object containing all of the parameters for the API call.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
OperationOperationOperation

The RPC response.

Overrides

DeleteAsync(DeleteReservationRequest, CallSettings)

public override Task<Operation<Operation, Operation>> DeleteAsync(DeleteReservationRequest request, CallSettings callSettings = null)

Deletes the specified reservation.

Parameters
NameDescription
requestDeleteReservationRequest

The request object containing all of the parameters for the API call.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
TaskOperationOperationOperation

A Task containing the RPC response.

Overrides

Get(GetReservationRequest, CallSettings)

public override Reservation Get(GetReservationRequest request, CallSettings callSettings = null)

Retrieves information about the specified reservation.

Parameters
NameDescription
requestGetReservationRequest

The request object containing all of the parameters for the API call.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Reservation

The RPC response.

Overrides

GetAsync(GetReservationRequest, CallSettings)

public override Task<Reservation> GetAsync(GetReservationRequest request, CallSettings callSettings = null)

Retrieves information about the specified reservation.

Parameters
NameDescription
requestGetReservationRequest

The request object containing all of the parameters for the API call.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
TaskReservation

A Task containing the RPC response.

Overrides

GetIamPolicy(GetIamPolicyReservationRequest, CallSettings)

public override Policy GetIamPolicy(GetIamPolicyReservationRequest request, CallSettings callSettings = null)

Gets the access control policy for a resource. May be empty if no such policy or resource exists.

Parameters
NameDescription
requestGetIamPolicyReservationRequest

The request object containing all of the parameters for the API call.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Policy

The RPC response.

Overrides

GetIamPolicyAsync(GetIamPolicyReservationRequest, CallSettings)

public override Task<Policy> GetIamPolicyAsync(GetIamPolicyReservationRequest request, CallSettings callSettings = null)

Gets the access control policy for a resource. May be empty if no such policy or resource exists.

Parameters
NameDescription
requestGetIamPolicyReservationRequest

The request object containing all of the parameters for the API call.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
TaskPolicy

A Task containing the RPC response.

Overrides

Insert(InsertReservationRequest, CallSettings)

public override Operation<Operation, Operation> Insert(InsertReservationRequest request, CallSettings callSettings = null)

Creates a new reservation. For more information, read Reserving zonal resources.

Parameters
NameDescription
requestInsertReservationRequest

The request object containing all of the parameters for the API call.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
OperationOperationOperation

The RPC response.

Overrides

InsertAsync(InsertReservationRequest, CallSettings)

public override Task<Operation<Operation, Operation>> InsertAsync(InsertReservationRequest request, CallSettings callSettings = null)

Creates a new reservation. For more information, read Reserving zonal resources.

Parameters
NameDescription
requestInsertReservationRequest

The request object containing all of the parameters for the API call.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
TaskOperationOperationOperation

A Task containing the RPC response.

Overrides

List(ListReservationsRequest, CallSettings)

public override PagedEnumerable<ReservationList, Reservation> List(ListReservationsRequest request, CallSettings callSettings = null)

A list of all the reservations that have been configured for the specified project in specified zone.

Parameters
NameDescription
requestListReservationsRequest

The request object containing all of the parameters for the API call.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
PagedEnumerableReservationListReservation

A pageable sequence of Reservation resources.

Overrides

ListAsync(ListReservationsRequest, CallSettings)

public override PagedAsyncEnumerable<ReservationList, Reservation> ListAsync(ListReservationsRequest request, CallSettings callSettings = null)

A list of all the reservations that have been configured for the specified project in specified zone.

Parameters
NameDescription
requestListReservationsRequest

The request object containing all of the parameters for the API call.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
PagedAsyncEnumerableReservationListReservation

A pageable asynchronous sequence of Reservation resources.

Overrides

Resize(ResizeReservationRequest, CallSettings)

public override Operation<Operation, Operation> Resize(ResizeReservationRequest request, CallSettings callSettings = null)

Resizes the reservation (applicable to standalone reservations only). For more information, read Modifying reservations.

Parameters
NameDescription
requestResizeReservationRequest

The request object containing all of the parameters for the API call.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
OperationOperationOperation

The RPC response.

Overrides

ResizeAsync(ResizeReservationRequest, CallSettings)

public override Task<Operation<Operation, Operation>> ResizeAsync(ResizeReservationRequest request, CallSettings callSettings = null)

Resizes the reservation (applicable to standalone reservations only). For more information, read Modifying reservations.

Parameters
NameDescription
requestResizeReservationRequest

The request object containing all of the parameters for the API call.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
TaskOperationOperationOperation

A Task containing the RPC response.

Overrides

SetIamPolicy(SetIamPolicyReservationRequest, CallSettings)

public override Policy SetIamPolicy(SetIamPolicyReservationRequest request, CallSettings callSettings = null)

Sets the access control policy on the specified resource. Replaces any existing policy.

Parameters
NameDescription
requestSetIamPolicyReservationRequest

The request object containing all of the parameters for the API call.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Policy

The RPC response.

Overrides

SetIamPolicyAsync(SetIamPolicyReservationRequest, CallSettings)

public override Task<Policy> SetIamPolicyAsync(SetIamPolicyReservationRequest request, CallSettings callSettings = null)

Sets the access control policy on the specified resource. Replaces any existing policy.

Parameters
NameDescription
requestSetIamPolicyReservationRequest

The request object containing all of the parameters for the API call.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
TaskPolicy

A Task containing the RPC response.

Overrides

TestIamPermissions(TestIamPermissionsReservationRequest, CallSettings)

public override TestPermissionsResponse TestIamPermissions(TestIamPermissionsReservationRequest request, CallSettings callSettings = null)

Returns permissions that a caller has on the specified resource.

Parameters
NameDescription
requestTestIamPermissionsReservationRequest

The request object containing all of the parameters for the API call.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
TestPermissionsResponse

The RPC response.

Overrides

TestIamPermissionsAsync(TestIamPermissionsReservationRequest, CallSettings)

public override Task<TestPermissionsResponse> TestIamPermissionsAsync(TestIamPermissionsReservationRequest request, CallSettings callSettings = null)

Returns permissions that a caller has on the specified resource.

Parameters
NameDescription
requestTestIamPermissionsReservationRequest

The request object containing all of the parameters for the API call.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
TaskTestPermissionsResponse

A Task containing the RPC response.

Overrides

Update(UpdateReservationRequest, CallSettings)

public override Operation<Operation, Operation> Update(UpdateReservationRequest request, CallSettings callSettings = null)

Update share settings of the reservation.

Parameters
NameDescription
requestUpdateReservationRequest

The request object containing all of the parameters for the API call.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
OperationOperationOperation

The RPC response.

Overrides

UpdateAsync(UpdateReservationRequest, CallSettings)

public override Task<Operation<Operation, Operation>> UpdateAsync(UpdateReservationRequest request, CallSettings callSettings = null)

Update share settings of the reservation.

Parameters
NameDescription
requestUpdateReservationRequest

The request object containing all of the parameters for the API call.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
TaskOperationOperationOperation

A Task containing the RPC response.

Overrides