Class RegionAutoscalers.RegionAutoscalersClient (1.1.0)

public class RegionAutoscalersClient : ClientBase<RegionAutoscalers.RegionAutoscalersClient>

Client for RegionAutoscalers

Inheritance

Object > ClientBase > ClientBase<RegionAutoscalers.RegionAutoscalersClient> > 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
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(ClientBase.ClientBaseConfiguration)

protected RegionAutoscalersClient(ClientBase.ClientBaseConfiguration configuration)

Protected constructor to allow creation of configured clients.

Parameter
NameDescription
configurationClientBase.ClientBaseConfiguration

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
Operations.OperationsClient

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, Nullable<DateTime>, CancellationToken)

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

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.

deadlineNullable<DateTime>

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
AsyncUnaryCall<Operation>

The call object.

DeleteAsync(DeleteRegionAutoscalerRequest, Metadata, Nullable<DateTime>, CancellationToken)

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

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.

deadlineNullable<DateTime>

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
AsyncUnaryCall<Operation>

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, Nullable<DateTime>, CancellationToken)

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

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.

deadlineNullable<DateTime>

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
AsyncUnaryCall<Autoscaler>

The call object.

GetAsync(GetRegionAutoscalerRequest, Metadata, Nullable<DateTime>, CancellationToken)

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

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.

deadlineNullable<DateTime>

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
AsyncUnaryCall<Autoscaler>

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, Nullable<DateTime>, CancellationToken)

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

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.

deadlineNullable<DateTime>

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
AsyncUnaryCall<Operation>

The call object.

InsertAsync(InsertRegionAutoscalerRequest, Metadata, Nullable<DateTime>, CancellationToken)

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

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.

deadlineNullable<DateTime>

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
AsyncUnaryCall<Operation>

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, Nullable<DateTime>, CancellationToken)

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

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.

deadlineNullable<DateTime>

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
AsyncUnaryCall<RegionAutoscalerList>

The call object.

ListAsync(ListRegionAutoscalersRequest, Metadata, Nullable<DateTime>, CancellationToken)

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

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.

deadlineNullable<DateTime>

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
AsyncUnaryCall<RegionAutoscalerList>

The call object.

NewInstance(ClientBase.ClientBaseConfiguration)

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

Creates a new instance of client from given ClientBaseConfiguration.

Parameter
NameDescription
configurationClientBase.ClientBaseConfiguration
Returns
TypeDescription
RegionAutoscalers.RegionAutoscalersClient
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, Nullable<DateTime>, CancellationToken)

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

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.

deadlineNullable<DateTime>

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
AsyncUnaryCall<Operation>

The call object.

PatchAsync(PatchRegionAutoscalerRequest, Metadata, Nullable<DateTime>, CancellationToken)

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

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.

deadlineNullable<DateTime>

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
AsyncUnaryCall<Operation>

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, Nullable<DateTime>, CancellationToken)

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

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.

deadlineNullable<DateTime>

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
AsyncUnaryCall<Operation>

The call object.

UpdateAsync(UpdateRegionAutoscalerRequest, Metadata, Nullable<DateTime>, CancellationToken)

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

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.

deadlineNullable<DateTime>

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
AsyncUnaryCall<Operation>

The call object.