Compute Engine v1 API - Class RegionAutoscalers.RegionAutoscalersClient (2.8.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

GoogleCloudGoogle.Cloud.ComputeV1

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
NameDescription
callInvokerCallInvoker

The callInvoker to use to make remote calls.

RegionAutoscalersClient(ChannelBase)

public RegionAutoscalersClient(ChannelBase channel)

Creates a new client for RegionAutoscalers

Parameter
NameDescription
channelChannelBase

The channel to use to make remote calls.

RegionAutoscalersClient(ClientBaseConfiguration)

protected RegionAutoscalersClient(ClientBase.ClientBaseConfiguration configuration)

Protected constructor to allow creation of configured clients.

Parameter
NameDescription
configurationClientBaseClientBaseConfiguration

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
TypeDescription
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
NameDescription
requestDeleteRegionAutoscalerRequest

The request to send to the server.

optionsCallOptions

The options for the call.

Returns
TypeDescription
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
NameDescription
requestDeleteRegionAutoscalerRequest

The request to send to the server.

headersMetadata

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

deadlineDateTime

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

cancellationTokenCancellationToken

An optional token for canceling the call.

Returns
TypeDescription
Operation

The response received from the server.

DeleteAsync(DeleteRegionAutoscalerRequest, CallOptions)

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

Deletes the specified autoscaler.

Parameters
NameDescription
requestDeleteRegionAutoscalerRequest

The request to send to the server.

optionsCallOptions

The options for the call.

Returns
TypeDescription
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
NameDescription
requestDeleteRegionAutoscalerRequest

The request to send to the server.

headersMetadata

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

deadlineDateTime

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

cancellationTokenCancellationToken

An optional token for canceling the call.

Returns
TypeDescription
AsyncUnaryCallOperation

The call object.

Get(GetRegionAutoscalerRequest, CallOptions)

public virtual Autoscaler Get(GetRegionAutoscalerRequest request, CallOptions options)

Returns the specified autoscaler.

Parameters
NameDescription
requestGetRegionAutoscalerRequest

The request to send to the server.

optionsCallOptions

The options for the call.

Returns
TypeDescription
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
NameDescription
requestGetRegionAutoscalerRequest

The request to send to the server.

headersMetadata

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

deadlineDateTime

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

cancellationTokenCancellationToken

An optional token for canceling the call.

Returns
TypeDescription
Autoscaler

The response received from the server.

GetAsync(GetRegionAutoscalerRequest, CallOptions)

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

Returns the specified autoscaler.

Parameters
NameDescription
requestGetRegionAutoscalerRequest

The request to send to the server.

optionsCallOptions

The options for the call.

Returns
TypeDescription
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
NameDescription
requestGetRegionAutoscalerRequest

The request to send to the server.

headersMetadata

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

deadlineDateTime

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

cancellationTokenCancellationToken

An optional token for canceling the call.

Returns
TypeDescription
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
NameDescription
requestInsertRegionAutoscalerRequest

The request to send to the server.

optionsCallOptions

The options for the call.

Returns
TypeDescription
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
NameDescription
requestInsertRegionAutoscalerRequest

The request to send to the server.

headersMetadata

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

deadlineDateTime

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

cancellationTokenCancellationToken

An optional token for canceling the call.

Returns
TypeDescription
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
NameDescription
requestInsertRegionAutoscalerRequest

The request to send to the server.

optionsCallOptions

The options for the call.

Returns
TypeDescription
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
NameDescription
requestInsertRegionAutoscalerRequest

The request to send to the server.

headersMetadata

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

deadlineDateTime

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

cancellationTokenCancellationToken

An optional token for canceling the call.

Returns
TypeDescription
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
NameDescription
requestListRegionAutoscalersRequest

The request to send to the server.

optionsCallOptions

The options for the call.

Returns
TypeDescription
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
NameDescription
requestListRegionAutoscalersRequest

The request to send to the server.

headersMetadata

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

deadlineDateTime

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

cancellationTokenCancellationToken

An optional token for canceling the call.

Returns
TypeDescription
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
NameDescription
requestListRegionAutoscalersRequest

The request to send to the server.

optionsCallOptions

The options for the call.

Returns
TypeDescription
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
NameDescription
requestListRegionAutoscalersRequest

The request to send to the server.

headersMetadata

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

deadlineDateTime

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

cancellationTokenCancellationToken

An optional token for canceling the call.

Returns
TypeDescription
AsyncUnaryCallRegionAutoscalerList

The call object.

NewInstance(ClientBaseConfiguration)

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

Creates a new instance of client from given ClientBaseConfiguration.

Parameter
NameDescription
configurationClientBaseClientBaseConfiguration
Returns
TypeDescription
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
NameDescription
requestPatchRegionAutoscalerRequest

The request to send to the server.

optionsCallOptions

The options for the call.

Returns
TypeDescription
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
NameDescription
requestPatchRegionAutoscalerRequest

The request to send to the server.

headersMetadata

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

deadlineDateTime

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

cancellationTokenCancellationToken

An optional token for canceling the call.

Returns
TypeDescription
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
NameDescription
requestPatchRegionAutoscalerRequest

The request to send to the server.

optionsCallOptions

The options for the call.

Returns
TypeDescription
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
NameDescription
requestPatchRegionAutoscalerRequest

The request to send to the server.

headersMetadata

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

deadlineDateTime

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

cancellationTokenCancellationToken

An optional token for canceling the call.

Returns
TypeDescription
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
NameDescription
requestUpdateRegionAutoscalerRequest

The request to send to the server.

optionsCallOptions

The options for the call.

Returns
TypeDescription
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
NameDescription
requestUpdateRegionAutoscalerRequest

The request to send to the server.

headersMetadata

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

deadlineDateTime

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

cancellationTokenCancellationToken

An optional token for canceling the call.

Returns
TypeDescription
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
NameDescription
requestUpdateRegionAutoscalerRequest

The request to send to the server.

optionsCallOptions

The options for the call.

Returns
TypeDescription
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
NameDescription
requestUpdateRegionAutoscalerRequest

The request to send to the server.

headersMetadata

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

deadlineDateTime

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

cancellationTokenCancellationToken

An optional token for canceling the call.

Returns
TypeDescription
AsyncUnaryCallOperation

The call object.