public sealed class ReservationsClientImpl : ReservationsClientReference documentation and code samples for the Compute Engine v1 API class ReservationsClientImpl.
Reservations client wrapper implementation, for convenient use.
Namespace
Google.Cloud.Compute.V1Assembly
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 | |
|---|---|
| Name | Description |
grpcClient |
ReservationsReservationsClientThe underlying gRPC client. |
settings |
ReservationsSettingsThe base ReservationsSettings used within this client. |
logger |
ILoggerOptional ILogger to use within this client. |
Properties
DeleteOperationsClient
public override OperationsClient DeleteOperationsClient { get; }The long-running operations client for Delete.
| Property Value | |
|---|---|
| Type | Description |
OperationsClient |
|
GrpcClient
public override Reservations.ReservationsClient GrpcClient { get; }The underlying gRPC Reservations client
| Property Value | |
|---|---|
| Type | Description |
ReservationsReservationsClient |
|
InsertOperationsClient
public override OperationsClient InsertOperationsClient { get; }The long-running operations client for Insert.
| Property Value | |
|---|---|
| Type | Description |
OperationsClient |
|
PerformMaintenanceOperationsClient
public override OperationsClient PerformMaintenanceOperationsClient { get; }The long-running operations client for PerformMaintenance.
| Property Value | |
|---|---|
| Type | Description |
OperationsClient |
|
ResizeOperationsClient
public override OperationsClient ResizeOperationsClient { get; }The long-running operations client for Resize.
| Property Value | |
|---|---|
| Type | Description |
OperationsClient |
|
UpdateOperationsClient
public override OperationsClient UpdateOperationsClient { get; }The long-running operations client for Update.
| Property Value | |
|---|---|
| Type | Description |
OperationsClient |
|
Methods
AggregatedList(AggregatedListReservationsRequest, CallSettings)
public override PagedEnumerable<ReservationAggregatedList, KeyValuePair<string, ReservationsScopedList>> AggregatedList(AggregatedListReservationsRequest request, CallSettings callSettings = null)Retrieves an aggregated list of reservations. To prevent failure, Google recommends that you set the returnPartialSuccess parameter to true.
| Parameters | |
|---|---|
| Name | Description |
request |
AggregatedListReservationsRequestThe request object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
PagedEnumerableReservationAggregatedListKeyValuePairstringReservationsScopedList |
A pageable sequence of KeyValuePair<TKey, TValue> resources. |
AggregatedListAsync(AggregatedListReservationsRequest, CallSettings)
public override PagedAsyncEnumerable<ReservationAggregatedList, KeyValuePair<string, ReservationsScopedList>> AggregatedListAsync(AggregatedListReservationsRequest request, CallSettings callSettings = null)Retrieves an aggregated list of reservations. To prevent failure, Google recommends that you set the returnPartialSuccess parameter to true.
| Parameters | |
|---|---|
| Name | Description |
request |
AggregatedListReservationsRequestThe request object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
PagedAsyncEnumerableReservationAggregatedListKeyValuePairstringReservationsScopedList |
A pageable asynchronous sequence of KeyValuePair<TKey, TValue> resources. |
Delete(DeleteReservationRequest, CallSettings)
public override Operation<Operation, Operation> Delete(DeleteReservationRequest request, CallSettings callSettings = null)Deletes the specified reservation.
| Parameters | |
|---|---|
| Name | Description |
request |
DeleteReservationRequestThe request object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
OperationOperationOperation |
The RPC response. |
DeleteAsync(DeleteReservationRequest, CallSettings)
public override Task<Operation<Operation, Operation>> DeleteAsync(DeleteReservationRequest request, CallSettings callSettings = null)Deletes the specified reservation.
| Parameters | |
|---|---|
| Name | Description |
request |
DeleteReservationRequestThe request object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
TaskOperationOperationOperation |
A Task containing the RPC response. |
Get(GetReservationRequest, CallSettings)
public override Reservation Get(GetReservationRequest request, CallSettings callSettings = null)Retrieves information about the specified reservation.
| Parameters | |
|---|---|
| Name | Description |
request |
GetReservationRequestThe request object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
Reservation |
The RPC response. |
GetAsync(GetReservationRequest, CallSettings)
public override Task<Reservation> GetAsync(GetReservationRequest request, CallSettings callSettings = null)Retrieves information about the specified reservation.
| Parameters | |
|---|---|
| Name | Description |
request |
GetReservationRequestThe request object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
TaskReservation |
A Task containing the RPC response. |
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 | |
|---|---|
| Name | Description |
request |
GetIamPolicyReservationRequestThe request object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
Policy |
The RPC response. |
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 | |
|---|---|
| Name | Description |
request |
GetIamPolicyReservationRequestThe request object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
TaskPolicy |
A Task containing the RPC response. |
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 | |
|---|---|
| Name | Description |
request |
InsertReservationRequestThe request object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
OperationOperationOperation |
The RPC response. |
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 | |
|---|---|
| Name | Description |
request |
InsertReservationRequestThe request object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
TaskOperationOperationOperation |
A Task containing the RPC response. |
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 | |
|---|---|
| Name | Description |
request |
ListReservationsRequestThe request object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
PagedEnumerableReservationListReservation |
A pageable sequence of Reservation resources. |
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 | |
|---|---|
| Name | Description |
request |
ListReservationsRequestThe request object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
PagedAsyncEnumerableReservationListReservation |
A pageable asynchronous sequence of Reservation resources. |
PerformMaintenance(PerformMaintenanceReservationRequest, CallSettings)
public override Operation<Operation, Operation> PerformMaintenance(PerformMaintenanceReservationRequest request, CallSettings callSettings = null)Perform maintenance on an extended reservation
| Parameters | |
|---|---|
| Name | Description |
request |
PerformMaintenanceReservationRequestThe request object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
OperationOperationOperation |
The RPC response. |
PerformMaintenanceAsync(PerformMaintenanceReservationRequest, CallSettings)
public override Task<Operation<Operation, Operation>> PerformMaintenanceAsync(PerformMaintenanceReservationRequest request, CallSettings callSettings = null)Perform maintenance on an extended reservation
| Parameters | |
|---|---|
| Name | Description |
request |
PerformMaintenanceReservationRequestThe request object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
TaskOperationOperationOperation |
A Task containing the RPC response. |
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 | |
|---|---|
| Name | Description |
request |
ResizeReservationRequestThe request object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
OperationOperationOperation |
The RPC response. |
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 | |
|---|---|
| Name | Description |
request |
ResizeReservationRequestThe request object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
TaskOperationOperationOperation |
A Task containing the RPC response. |
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 | |
|---|---|
| Name | Description |
request |
SetIamPolicyReservationRequestThe request object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
Policy |
The RPC response. |
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 | |
|---|---|
| Name | Description |
request |
SetIamPolicyReservationRequestThe request object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
TaskPolicy |
A Task containing the RPC response. |
TestIamPermissions(TestIamPermissionsReservationRequest, CallSettings)
public override TestPermissionsResponse TestIamPermissions(TestIamPermissionsReservationRequest request, CallSettings callSettings = null)Returns permissions that a caller has on the specified resource.
| Parameters | |
|---|---|
| Name | Description |
request |
TestIamPermissionsReservationRequestThe request object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
TestPermissionsResponse |
The RPC response. |
TestIamPermissionsAsync(TestIamPermissionsReservationRequest, CallSettings)
public override Task<TestPermissionsResponse> TestIamPermissionsAsync(TestIamPermissionsReservationRequest request, CallSettings callSettings = null)Returns permissions that a caller has on the specified resource.
| Parameters | |
|---|---|
| Name | Description |
request |
TestIamPermissionsReservationRequestThe request object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
TaskTestPermissionsResponse |
A Task containing the RPC response. |
Update(UpdateReservationRequest, CallSettings)
public override Operation<Operation, Operation> Update(UpdateReservationRequest request, CallSettings callSettings = null)Update share settings of the reservation.
| Parameters | |
|---|---|
| Name | Description |
request |
UpdateReservationRequestThe request object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
OperationOperationOperation |
The RPC response. |
UpdateAsync(UpdateReservationRequest, CallSettings)
public override Task<Operation<Operation, Operation>> UpdateAsync(UpdateReservationRequest request, CallSettings callSettings = null)Update share settings of the reservation.
| Parameters | |
|---|---|
| Name | Description |
request |
UpdateReservationRequestThe request object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
TaskOperationOperationOperation |
A Task containing the RPC response. |