Compute Engine v1 API - Class AutoscalersClientImpl (2.16.0)

public sealed class AutoscalersClientImpl : AutoscalersClient

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

Autoscalers client wrapper implementation, for convenient use.

Inheritance

object > AutoscalersClient > AutoscalersClientImpl

Namespace

Google.Cloud.Compute.V1

Assembly

Google.Cloud.Compute.V1.dll

Remarks

The Autoscalers API.

Constructors

AutoscalersClientImpl(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 AutoscalersAutoscalersClient

The underlying gRPC client.

settings AutoscalersSettings

The base AutoscalersSettings used within this client.

logger ILogger

Optional 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
Overrides

GrpcClient

public override Autoscalers.AutoscalersClient GrpcClient { get; }

The underlying gRPC Autoscalers client

Property Value
Type Description
AutoscalersAutoscalersClient
Overrides

InsertOperationsClient

public override OperationsClient InsertOperationsClient { get; }

The long-running operations client for Insert.

Property Value
Type Description
OperationsClient
Overrides

PatchOperationsClient

public override OperationsClient PatchOperationsClient { get; }

The long-running operations client for Patch.

Property Value
Type Description
OperationsClient
Overrides

UpdateOperationsClient

public override OperationsClient UpdateOperationsClient { get; }

The long-running operations client for Update.

Property Value
Type Description
OperationsClient
Overrides

Methods

AggregatedList(AggregatedListAutoscalersRequest, CallSettings)

public override PagedEnumerable<AutoscalerAggregatedList, KeyValuePair<string, AutoscalersScopedList>> AggregatedList(AggregatedListAutoscalersRequest request, CallSettings callSettings = null)

Retrieves an aggregated list of autoscalers. To prevent failure, Google recommends that you set the returnPartialSuccess parameter to true.

Parameters
Name Description
request AggregatedListAutoscalersRequest

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

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
PagedEnumerableAutoscalerAggregatedListKeyValuePairstringAutoscalersScopedList

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

Overrides

AggregatedListAsync(AggregatedListAutoscalersRequest, CallSettings)

public override PagedAsyncEnumerable<AutoscalerAggregatedList, KeyValuePair<string, AutoscalersScopedList>> AggregatedListAsync(AggregatedListAutoscalersRequest request, CallSettings callSettings = null)

Retrieves an aggregated list of autoscalers. To prevent failure, Google recommends that you set the returnPartialSuccess parameter to true.

Parameters
Name Description
request AggregatedListAutoscalersRequest

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

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
PagedAsyncEnumerableAutoscalerAggregatedListKeyValuePairstringAutoscalersScopedList

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

Overrides

Delete(DeleteAutoscalerRequest, CallSettings)

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

Deletes the specified autoscaler.

Parameters
Name Description
request DeleteAutoscalerRequest

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

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
OperationOperationOperation

The RPC response.

Overrides

DeleteAsync(DeleteAutoscalerRequest, CallSettings)

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

Deletes the specified autoscaler.

Parameters
Name Description
request DeleteAutoscalerRequest

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

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskOperationOperationOperation

A Task containing the RPC response.

Overrides

Get(GetAutoscalerRequest, CallSettings)

public override Autoscaler Get(GetAutoscalerRequest request, CallSettings callSettings = null)

Returns the specified autoscaler resource.

Parameters
Name Description
request GetAutoscalerRequest

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

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
Autoscaler

The RPC response.

Overrides

GetAsync(GetAutoscalerRequest, CallSettings)

public override Task<Autoscaler> GetAsync(GetAutoscalerRequest request, CallSettings callSettings = null)

Returns the specified autoscaler resource.

Parameters
Name Description
request GetAutoscalerRequest

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

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskAutoscaler

A Task containing the RPC response.

Overrides

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 InsertAutoscalerRequest

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

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
OperationOperationOperation

The RPC response.

Overrides

InsertAsync(InsertAutoscalerRequest, CallSettings)

public override 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 InsertAutoscalerRequest

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

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskOperationOperationOperation

A Task containing the RPC response.

Overrides

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 ListAutoscalersRequest

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

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
PagedEnumerableAutoscalerListAutoscaler

A pageable sequence of Autoscaler resources.

Overrides

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 ListAutoscalersRequest

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

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
PagedAsyncEnumerableAutoscalerListAutoscaler

A pageable asynchronous sequence of Autoscaler resources.

Overrides

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 PatchAutoscalerRequest

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

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
OperationOperationOperation

The RPC response.

Overrides

PatchAsync(PatchAutoscalerRequest, CallSettings)

public override 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 PatchAutoscalerRequest

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

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskOperationOperationOperation

A Task containing the RPC response.

Overrides

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 UpdateAutoscalerRequest

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

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
OperationOperationOperation

The RPC response.

Overrides

UpdateAsync(UpdateAutoscalerRequest, CallSettings)

public override 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 UpdateAutoscalerRequest

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

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskOperationOperationOperation

A Task containing the RPC response.

Overrides