public sealed class AutoscalersClientImpl : AutoscalersClientReference documentation and code samples for the Compute Engine v1 API class AutoscalersClientImpl.
Autoscalers client wrapper implementation, for convenient use.
Namespace
Google.Cloud.Compute.V1Assembly
Google.Cloud.Compute.V1.dll
Remarks
The Autoscalers API.
Constructors
AutoscalersClientImpl(Autoscalers.AutoscalersClient, AutoscalersSettings, ILogger)
public AutoscalersClientImpl(Autoscalers.AutoscalersClient grpcClient, AutoscalersSettings settings, ILogger logger)Constructs a client wrapper for the Autoscalers service, with the specified gRPC client and settings.
| Parameters | |
|---|---|
| Name | Description |
grpcClient |
Autoscalers.AutoscalersClientThe underlying gRPC client. |
settings |
AutoscalersSettingsThe base AutoscalersSettings 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 Autoscalers.AutoscalersClient GrpcClient { get; }The underlying gRPC Autoscalers client
| Property Value | |
|---|---|
| Type | Description |
Autoscalers.AutoscalersClient |
|
InsertOperationsClient
public override OperationsClient InsertOperationsClient { get; }The long-running operations client for Insert.
| Property Value | |
|---|---|
| Type | Description |
OperationsClient |
|
PatchOperationsClient
public override OperationsClient PatchOperationsClient { get; }The long-running operations client for Patch.
| 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(AggregatedListAutoscalersRequest, CallSettings)
public override PagedEnumerable<AutoscalerAggregatedList, KeyValuePair<string, AutoscalersScopedList>> AggregatedList(AggregatedListAutoscalersRequest request, CallSettings callSettings = null)Retrieves an aggregated list of autoscalers.
| Parameters | |
|---|---|
| Name | Description |
request |
AggregatedListAutoscalersRequestThe request object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
PagedEnumerable<AutoscalerAggregatedList, KeyValuePair<String, AutoscalersScopedList>> |
A pageable sequence of KeyValuePair<TKey,TValue> resources. |
AggregatedListAsync(AggregatedListAutoscalersRequest, CallSettings)
public override PagedAsyncEnumerable<AutoscalerAggregatedList, KeyValuePair<string, AutoscalersScopedList>> AggregatedListAsync(AggregatedListAutoscalersRequest request, CallSettings callSettings = null)Retrieves an aggregated list of autoscalers.
| Parameters | |
|---|---|
| Name | Description |
request |
AggregatedListAutoscalersRequestThe request object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
PagedAsyncEnumerable<AutoscalerAggregatedList, KeyValuePair<String, AutoscalersScopedList>> |
A pageable asynchronous sequence of KeyValuePair<TKey,TValue> resources. |
Delete(DeleteAutoscalerRequest, CallSettings)
public override Operation<Operation, Operation> Delete(DeleteAutoscalerRequest request, CallSettings callSettings = null)Deletes the specified autoscaler.
| Parameters | |
|---|---|
| Name | Description |
request |
DeleteAutoscalerRequestThe request object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
Operation<Operation, Operation> |
The RPC response. |
DeleteAsync(DeleteAutoscalerRequest, CallSettings)
public override async Task<Operation<Operation, Operation>> DeleteAsync(DeleteAutoscalerRequest request, CallSettings callSettings = null)Deletes the specified autoscaler.
| Parameters | |
|---|---|
| Name | Description |
request |
DeleteAutoscalerRequestThe request object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
Task<Operation<Operation, Operation>> |
A Task containing the RPC response. |
Get(GetAutoscalerRequest, CallSettings)
public override Autoscaler Get(GetAutoscalerRequest request, CallSettings callSettings = null)Returns the specified autoscaler resource. Gets a list of available autoscalers by making a list() request.
| Parameters | |
|---|---|
| Name | Description |
request |
GetAutoscalerRequestThe request object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
Autoscaler |
The RPC response. |
GetAsync(GetAutoscalerRequest, CallSettings)
public override Task<Autoscaler> GetAsync(GetAutoscalerRequest request, CallSettings callSettings = null)Returns the specified autoscaler resource. Gets a list of available autoscalers by making a list() request.
| Parameters | |
|---|---|
| Name | Description |
request |
GetAutoscalerRequestThe request object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
Task<Autoscaler> |
A Task containing the RPC response. |
Insert(InsertAutoscalerRequest, CallSettings)
public override Operation<Operation, Operation> Insert(InsertAutoscalerRequest request, CallSettings callSettings = null)Creates an autoscaler in the specified project using the data included in the request.
| Parameters | |
|---|---|
| Name | Description |
request |
InsertAutoscalerRequestThe request object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
Operation<Operation, Operation> |
The RPC response. |
InsertAsync(InsertAutoscalerRequest, CallSettings)
public override async Task<Operation<Operation, Operation>> InsertAsync(InsertAutoscalerRequest request, CallSettings callSettings = null)Creates an autoscaler in the specified project using the data included in the request.
| Parameters | |
|---|---|
| Name | Description |
request |
InsertAutoscalerRequestThe request object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
Task<Operation<Operation, Operation>> |
A Task containing the RPC response. |
List(ListAutoscalersRequest, CallSettings)
public override PagedEnumerable<AutoscalerList, Autoscaler> List(ListAutoscalersRequest request, CallSettings callSettings = null)Retrieves a list of autoscalers contained within the specified zone.
| Parameters | |
|---|---|
| Name | Description |
request |
ListAutoscalersRequestThe request object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
PagedEnumerable<AutoscalerList, Autoscaler> |
A pageable sequence of Autoscaler resources. |
ListAsync(ListAutoscalersRequest, CallSettings)
public override PagedAsyncEnumerable<AutoscalerList, Autoscaler> ListAsync(ListAutoscalersRequest request, CallSettings callSettings = null)Retrieves a list of autoscalers contained within the specified zone.
| Parameters | |
|---|---|
| Name | Description |
request |
ListAutoscalersRequestThe request object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
PagedAsyncEnumerable<AutoscalerList, Autoscaler> |
A pageable asynchronous sequence of Autoscaler resources. |
Patch(PatchAutoscalerRequest, CallSettings)
public override Operation<Operation, Operation> Patch(PatchAutoscalerRequest request, CallSettings callSettings = null)Updates an autoscaler in the specified project using the data included in the request. This method supports PATCH semantics and uses the JSON merge patch format and processing rules.
| Parameters | |
|---|---|
| Name | Description |
request |
PatchAutoscalerRequestThe request object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
Operation<Operation, Operation> |
The RPC response. |
PatchAsync(PatchAutoscalerRequest, CallSettings)
public override async Task<Operation<Operation, Operation>> PatchAsync(PatchAutoscalerRequest request, CallSettings callSettings = null)Updates an autoscaler in the specified project using the data included in the request. This method supports PATCH semantics and uses the JSON merge patch format and processing rules.
| Parameters | |
|---|---|
| Name | Description |
request |
PatchAutoscalerRequestThe request object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
Task<Operation<Operation, Operation>> |
A Task containing the RPC response. |
Update(UpdateAutoscalerRequest, CallSettings)
public override Operation<Operation, Operation> Update(UpdateAutoscalerRequest request, CallSettings callSettings = null)Updates an autoscaler in the specified project using the data included in the request.
| Parameters | |
|---|---|
| Name | Description |
request |
UpdateAutoscalerRequestThe request object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
Operation<Operation, Operation> |
The RPC response. |
UpdateAsync(UpdateAutoscalerRequest, CallSettings)
public override async Task<Operation<Operation, Operation>> UpdateAsync(UpdateAutoscalerRequest request, CallSettings callSettings = null)Updates an autoscaler in the specified project using the data included in the request.
| Parameters | |
|---|---|
| Name | Description |
request |
UpdateAutoscalerRequestThe request object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
Task<Operation<Operation, Operation>> |
A Task containing the RPC response. |