Compute Engine v1 API - Class RegionAutoscalers.RegionAutoscalersClient (2.17.0)

public class RegionAutoscalers.RegionAutoscalersClient : ClientBase<RegionAutoscalers.RegionAutoscalersClient>

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

Client for RegionAutoscalers

Inheritance

object > ClientBase > ClientBaseRegionAutoscalersRegionAutoscalersClient > RegionAutoscalers.RegionAutoscalersClient

Namespace

Google.Cloud.Compute.V1

Assembly

Google.Cloud.Compute.V1.dll

Constructors

RegionAutoscalersClient()

protected RegionAutoscalersClient()

Protected parameterless constructor to allow creation of test doubles.

RegionAutoscalersClient(CallInvoker)

public RegionAutoscalersClient(CallInvoker callInvoker)

Creates a new client for RegionAutoscalers that uses a custom CallInvoker.

Parameter
Name Description
callInvoker CallInvoker

The callInvoker to use to make remote calls.

RegionAutoscalersClient(ChannelBase)

public RegionAutoscalersClient(ChannelBase channel)

Creates a new client for RegionAutoscalers

Parameter
Name Description
channel ChannelBase

The channel to use to make remote calls.

RegionAutoscalersClient(ClientBaseConfiguration)

protected RegionAutoscalersClient(ClientBase.ClientBaseConfiguration configuration)

Protected constructor to allow creation of configured clients.

Parameter
Name Description
configuration ClientBaseClientBaseConfiguration

The client configuration.

Methods

CreateOperationsClientForRegionOperations()

public virtual Operations.OperationsClient CreateOperationsClientForRegionOperations()

Creates a new instance of Operations.OperationsClient using the same call invoker as this client, delegating to RegionOperations.

Returns
Type Description
OperationsOperationsClient

A new Operations client for the same target as this client.

Delete(DeleteRegionAutoscalerRequest, CallOptions)

public virtual Operation Delete(DeleteRegionAutoscalerRequest request, CallOptions options)

Deletes the specified autoscaler.

Parameters
Name Description
request DeleteRegionAutoscalerRequest

The request to send to the server.

options CallOptions

The options for the call.

Returns
Type Description
Operation

The response received from the server.

Delete(DeleteRegionAutoscalerRequest, Metadata, DateTime?, CancellationToken)

public virtual Operation Delete(DeleteRegionAutoscalerRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)

Deletes the specified autoscaler.

Parameters
Name Description
request DeleteRegionAutoscalerRequest

The request to send to the server.

headers Metadata

The initial metadata to send with the call. This parameter is optional.

deadline System.DateTime

An optional deadline for the call. The call will be cancelled if deadline is hit.

cancellationToken CancellationToken

An optional token for canceling the call.

Returns
Type Description
Operation

The response received from the server.

DeleteAsync(DeleteRegionAutoscalerRequest, CallOptions)

public virtual AsyncUnaryCall<Operation> DeleteAsync(DeleteRegionAutoscalerRequest request, CallOptions options)

Deletes the specified autoscaler.

Parameters
Name Description
request DeleteRegionAutoscalerRequest

The request to send to the server.

options CallOptions

The options for the call.

Returns
Type Description
AsyncUnaryCallOperation

The call object.

DeleteAsync(DeleteRegionAutoscalerRequest, Metadata, DateTime?, CancellationToken)

public virtual AsyncUnaryCall<Operation> DeleteAsync(DeleteRegionAutoscalerRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)

Deletes the specified autoscaler.

Parameters
Name Description
request DeleteRegionAutoscalerRequest

The request to send to the server.

headers Metadata

The initial metadata to send with the call. This parameter is optional.

deadline System.DateTime

An optional deadline for the call. The call will be cancelled if deadline is hit.

cancellationToken CancellationToken

An optional token for canceling the call.

Returns
Type Description
AsyncUnaryCallOperation

The call object.

Get(GetRegionAutoscalerRequest, CallOptions)

public virtual Autoscaler Get(GetRegionAutoscalerRequest request, CallOptions options)

Returns the specified autoscaler.

Parameters
Name Description
request GetRegionAutoscalerRequest

The request to send to the server.

options CallOptions

The options for the call.

Returns
Type Description
Autoscaler

The response received from the server.

Get(GetRegionAutoscalerRequest, Metadata, DateTime?, CancellationToken)

public virtual Autoscaler Get(GetRegionAutoscalerRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)

Returns the specified autoscaler.

Parameters
Name Description
request GetRegionAutoscalerRequest

The request to send to the server.

headers Metadata

The initial metadata to send with the call. This parameter is optional.

deadline System.DateTime

An optional deadline for the call. The call will be cancelled if deadline is hit.

cancellationToken CancellationToken

An optional token for canceling the call.

Returns
Type Description
Autoscaler

The response received from the server.

GetAsync(GetRegionAutoscalerRequest, CallOptions)

public virtual AsyncUnaryCall<Autoscaler> GetAsync(GetRegionAutoscalerRequest request, CallOptions options)

Returns the specified autoscaler.

Parameters
Name Description
request GetRegionAutoscalerRequest

The request to send to the server.

options CallOptions

The options for the call.

Returns
Type Description
AsyncUnaryCallAutoscaler

The call object.

GetAsync(GetRegionAutoscalerRequest, Metadata, DateTime?, CancellationToken)

public virtual AsyncUnaryCall<Autoscaler> GetAsync(GetRegionAutoscalerRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)

Returns the specified autoscaler.

Parameters
Name Description
request GetRegionAutoscalerRequest

The request to send to the server.

headers Metadata

The initial metadata to send with the call. This parameter is optional.

deadline System.DateTime

An optional deadline for the call. The call will be cancelled if deadline is hit.

cancellationToken CancellationToken

An optional token for canceling the call.

Returns
Type Description
AsyncUnaryCallAutoscaler

The call object.

Insert(InsertRegionAutoscalerRequest, CallOptions)

public virtual Operation Insert(InsertRegionAutoscalerRequest request, CallOptions options)

Creates an autoscaler in the specified project using the data included in the request.

Parameters
Name Description
request InsertRegionAutoscalerRequest

The request to send to the server.

options CallOptions

The options for the call.

Returns
Type Description
Operation

The response received from the server.

Insert(InsertRegionAutoscalerRequest, Metadata, DateTime?, CancellationToken)

public virtual Operation Insert(InsertRegionAutoscalerRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)

Creates an autoscaler in the specified project using the data included in the request.

Parameters
Name Description
request InsertRegionAutoscalerRequest

The request to send to the server.

headers Metadata

The initial metadata to send with the call. This parameter is optional.

deadline System.DateTime

An optional deadline for the call. The call will be cancelled if deadline is hit.

cancellationToken CancellationToken

An optional token for canceling the call.

Returns
Type Description
Operation

The response received from the server.

InsertAsync(InsertRegionAutoscalerRequest, CallOptions)

public virtual AsyncUnaryCall<Operation> InsertAsync(InsertRegionAutoscalerRequest request, CallOptions options)

Creates an autoscaler in the specified project using the data included in the request.

Parameters
Name Description
request InsertRegionAutoscalerRequest

The request to send to the server.

options CallOptions

The options for the call.

Returns
Type Description
AsyncUnaryCallOperation

The call object.

InsertAsync(InsertRegionAutoscalerRequest, Metadata, DateTime?, CancellationToken)

public virtual AsyncUnaryCall<Operation> InsertAsync(InsertRegionAutoscalerRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)

Creates an autoscaler in the specified project using the data included in the request.

Parameters
Name Description
request InsertRegionAutoscalerRequest

The request to send to the server.

headers Metadata

The initial metadata to send with the call. This parameter is optional.

deadline System.DateTime

An optional deadline for the call. The call will be cancelled if deadline is hit.

cancellationToken CancellationToken

An optional token for canceling the call.

Returns
Type Description
AsyncUnaryCallOperation

The call object.

List(ListRegionAutoscalersRequest, CallOptions)

public virtual RegionAutoscalerList List(ListRegionAutoscalersRequest request, CallOptions options)

Retrieves a list of autoscalers contained within the specified region.

Parameters
Name Description
request ListRegionAutoscalersRequest

The request to send to the server.

options CallOptions

The options for the call.

Returns
Type Description
RegionAutoscalerList

The response received from the server.

List(ListRegionAutoscalersRequest, Metadata, DateTime?, CancellationToken)

public virtual RegionAutoscalerList List(ListRegionAutoscalersRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)

Retrieves a list of autoscalers contained within the specified region.

Parameters
Name Description
request ListRegionAutoscalersRequest

The request to send to the server.

headers Metadata

The initial metadata to send with the call. This parameter is optional.

deadline System.DateTime

An optional deadline for the call. The call will be cancelled if deadline is hit.

cancellationToken CancellationToken

An optional token for canceling the call.

Returns
Type Description
RegionAutoscalerList

The response received from the server.

ListAsync(ListRegionAutoscalersRequest, CallOptions)

public virtual AsyncUnaryCall<RegionAutoscalerList> ListAsync(ListRegionAutoscalersRequest request, CallOptions options)

Retrieves a list of autoscalers contained within the specified region.

Parameters
Name Description
request ListRegionAutoscalersRequest

The request to send to the server.

options CallOptions

The options for the call.

Returns
Type Description
AsyncUnaryCallRegionAutoscalerList

The call object.

ListAsync(ListRegionAutoscalersRequest, Metadata, DateTime?, CancellationToken)

public virtual AsyncUnaryCall<RegionAutoscalerList> ListAsync(ListRegionAutoscalersRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)

Retrieves a list of autoscalers contained within the specified region.

Parameters
Name Description
request ListRegionAutoscalersRequest

The request to send to the server.

headers Metadata

The initial metadata to send with the call. This parameter is optional.

deadline System.DateTime

An optional deadline for the call. The call will be cancelled if deadline is hit.

cancellationToken CancellationToken

An optional token for canceling the call.

Returns
Type Description
AsyncUnaryCallRegionAutoscalerList

The call object.

NewInstance(ClientBaseConfiguration)

protected override RegionAutoscalers.RegionAutoscalersClient NewInstance(ClientBase.ClientBaseConfiguration configuration)

Creates a new instance of client from given ClientBaseConfiguration.

Parameter
Name Description
configuration ClientBaseClientBaseConfiguration
Returns
Type Description
RegionAutoscalersRegionAutoscalersClient
Overrides
Grpc.Core.ClientBase<Google.Cloud.Compute.V1.RegionAutoscalers.RegionAutoscalersClient>.NewInstance(Grpc.Core.ClientBase.ClientBaseConfiguration)

Patch(PatchRegionAutoscalerRequest, CallOptions)

public virtual Operation Patch(PatchRegionAutoscalerRequest request, CallOptions options)

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 PatchRegionAutoscalerRequest

The request to send to the server.

options CallOptions

The options for the call.

Returns
Type Description
Operation

The response received from the server.

Patch(PatchRegionAutoscalerRequest, Metadata, DateTime?, CancellationToken)

public virtual Operation Patch(PatchRegionAutoscalerRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)

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 PatchRegionAutoscalerRequest

The request to send to the server.

headers Metadata

The initial metadata to send with the call. This parameter is optional.

deadline System.DateTime

An optional deadline for the call. The call will be cancelled if deadline is hit.

cancellationToken CancellationToken

An optional token for canceling the call.

Returns
Type Description
Operation

The response received from the server.

PatchAsync(PatchRegionAutoscalerRequest, CallOptions)

public virtual AsyncUnaryCall<Operation> PatchAsync(PatchRegionAutoscalerRequest request, CallOptions options)

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 PatchRegionAutoscalerRequest

The request to send to the server.

options CallOptions

The options for the call.

Returns
Type Description
AsyncUnaryCallOperation

The call object.

PatchAsync(PatchRegionAutoscalerRequest, Metadata, DateTime?, CancellationToken)

public virtual AsyncUnaryCall<Operation> PatchAsync(PatchRegionAutoscalerRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)

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 PatchRegionAutoscalerRequest

The request to send to the server.

headers Metadata

The initial metadata to send with the call. This parameter is optional.

deadline System.DateTime

An optional deadline for the call. The call will be cancelled if deadline is hit.

cancellationToken CancellationToken

An optional token for canceling the call.

Returns
Type Description
AsyncUnaryCallOperation

The call object.

Update(UpdateRegionAutoscalerRequest, CallOptions)

public virtual Operation Update(UpdateRegionAutoscalerRequest request, CallOptions options)

Updates an autoscaler in the specified project using the data included in the request.

Parameters
Name Description
request UpdateRegionAutoscalerRequest

The request to send to the server.

options CallOptions

The options for the call.

Returns
Type Description
Operation

The response received from the server.

Update(UpdateRegionAutoscalerRequest, Metadata, DateTime?, CancellationToken)

public virtual Operation Update(UpdateRegionAutoscalerRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)

Updates an autoscaler in the specified project using the data included in the request.

Parameters
Name Description
request UpdateRegionAutoscalerRequest

The request to send to the server.

headers Metadata

The initial metadata to send with the call. This parameter is optional.

deadline System.DateTime

An optional deadline for the call. The call will be cancelled if deadline is hit.

cancellationToken CancellationToken

An optional token for canceling the call.

Returns
Type Description
Operation

The response received from the server.

UpdateAsync(UpdateRegionAutoscalerRequest, CallOptions)

public virtual AsyncUnaryCall<Operation> UpdateAsync(UpdateRegionAutoscalerRequest request, CallOptions options)

Updates an autoscaler in the specified project using the data included in the request.

Parameters
Name Description
request UpdateRegionAutoscalerRequest

The request to send to the server.

options CallOptions

The options for the call.

Returns
Type Description
AsyncUnaryCallOperation

The call object.

UpdateAsync(UpdateRegionAutoscalerRequest, Metadata, DateTime?, CancellationToken)

public virtual AsyncUnaryCall<Operation> UpdateAsync(UpdateRegionAutoscalerRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)

Updates an autoscaler in the specified project using the data included in the request.

Parameters
Name Description
request UpdateRegionAutoscalerRequest

The request to send to the server.

headers Metadata

The initial metadata to send with the call. This parameter is optional.

deadline System.DateTime

An optional deadline for the call. The call will be cancelled if deadline is hit.

cancellationToken CancellationToken

An optional token for canceling the call.

Returns
Type Description
AsyncUnaryCallOperation

The call object.