Class Autoscalers.AutoscalersClient (2.1.0)

public class AutoscalersClient : ClientBase<Autoscalers.AutoscalersClient>

Client for Autoscalers

Inheritance

Object > ClientBase > ClientBase<Autoscalers.AutoscalersClient> > Autoscalers.AutoscalersClient

Namespace

Google.Cloud.Compute.V1

Assembly

Google.Cloud.Compute.V1.dll

Constructors

AutoscalersClient()

protected AutoscalersClient()

Protected parameterless constructor to allow creation of test doubles.

AutoscalersClient(CallInvoker)

public AutoscalersClient(CallInvoker callInvoker)

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

Parameter
NameDescription
callInvokerCallInvoker

The callInvoker to use to make remote calls.

AutoscalersClient(ChannelBase)

public AutoscalersClient(ChannelBase channel)

Creates a new client for Autoscalers

Parameter
NameDescription
channelChannelBase

The channel to use to make remote calls.

AutoscalersClient(ClientBase.ClientBaseConfiguration)

protected AutoscalersClient(ClientBase.ClientBaseConfiguration configuration)

Protected constructor to allow creation of configured clients.

Parameter
NameDescription
configurationClientBase.ClientBaseConfiguration

The client configuration.

Methods

AggregatedList(AggregatedListAutoscalersRequest, CallOptions)

public virtual AutoscalerAggregatedList AggregatedList(AggregatedListAutoscalersRequest request, CallOptions options)

Retrieves an aggregated list of autoscalers.

Parameters
NameDescription
requestAggregatedListAutoscalersRequest

The request to send to the server.

optionsCallOptions

The options for the call.

Returns
TypeDescription
AutoscalerAggregatedList

The response received from the server.

AggregatedList(AggregatedListAutoscalersRequest, Metadata, Nullable<DateTime>, CancellationToken)

public virtual AutoscalerAggregatedList AggregatedList(AggregatedListAutoscalersRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default(CancellationToken))

Retrieves an aggregated list of autoscalers.

Parameters
NameDescription
requestAggregatedListAutoscalersRequest

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
AutoscalerAggregatedList

The response received from the server.

AggregatedListAsync(AggregatedListAutoscalersRequest, CallOptions)

public virtual AsyncUnaryCall<AutoscalerAggregatedList> AggregatedListAsync(AggregatedListAutoscalersRequest request, CallOptions options)

Retrieves an aggregated list of autoscalers.

Parameters
NameDescription
requestAggregatedListAutoscalersRequest

The request to send to the server.

optionsCallOptions

The options for the call.

Returns
TypeDescription
AsyncUnaryCall<AutoscalerAggregatedList>

The call object.

AggregatedListAsync(AggregatedListAutoscalersRequest, Metadata, Nullable<DateTime>, CancellationToken)

public virtual AsyncUnaryCall<AutoscalerAggregatedList> AggregatedListAsync(AggregatedListAutoscalersRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default(CancellationToken))

Retrieves an aggregated list of autoscalers.

Parameters
NameDescription
requestAggregatedListAutoscalersRequest

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<AutoscalerAggregatedList>

The call object.

CreateOperationsClientForZoneOperations()

public virtual Operations.OperationsClient CreateOperationsClientForZoneOperations()

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

Returns
TypeDescription
Operations.OperationsClient

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

Delete(DeleteAutoscalerRequest, CallOptions)

public virtual Operation Delete(DeleteAutoscalerRequest request, CallOptions options)

Deletes the specified autoscaler.

Parameters
NameDescription
requestDeleteAutoscalerRequest

The request to send to the server.

optionsCallOptions

The options for the call.

Returns
TypeDescription
Operation

The response received from the server.

Delete(DeleteAutoscalerRequest, Metadata, Nullable<DateTime>, CancellationToken)

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

Deletes the specified autoscaler.

Parameters
NameDescription
requestDeleteAutoscalerRequest

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(DeleteAutoscalerRequest, CallOptions)

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

Deletes the specified autoscaler.

Parameters
NameDescription
requestDeleteAutoscalerRequest

The request to send to the server.

optionsCallOptions

The options for the call.

Returns
TypeDescription
AsyncUnaryCall<Operation>

The call object.

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

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

Deletes the specified autoscaler.

Parameters
NameDescription
requestDeleteAutoscalerRequest

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(GetAutoscalerRequest, CallOptions)

public virtual Autoscaler Get(GetAutoscalerRequest request, CallOptions options)

Returns the specified autoscaler resource. Gets a list of available autoscalers by making a list() request.

Parameters
NameDescription
requestGetAutoscalerRequest

The request to send to the server.

optionsCallOptions

The options for the call.

Returns
TypeDescription
Autoscaler

The response received from the server.

Get(GetAutoscalerRequest, Metadata, Nullable<DateTime>, CancellationToken)

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

Returns the specified autoscaler resource. Gets a list of available autoscalers by making a list() request.

Parameters
NameDescription
requestGetAutoscalerRequest

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(GetAutoscalerRequest, CallOptions)

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

Returns the specified autoscaler resource. Gets a list of available autoscalers by making a list() request.

Parameters
NameDescription
requestGetAutoscalerRequest

The request to send to the server.

optionsCallOptions

The options for the call.

Returns
TypeDescription
AsyncUnaryCall<Autoscaler>

The call object.

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

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

Returns the specified autoscaler resource. Gets a list of available autoscalers by making a list() request.

Parameters
NameDescription
requestGetAutoscalerRequest

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(InsertAutoscalerRequest, CallOptions)

public virtual Operation Insert(InsertAutoscalerRequest request, CallOptions options)

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

Parameters
NameDescription
requestInsertAutoscalerRequest

The request to send to the server.

optionsCallOptions

The options for the call.

Returns
TypeDescription
Operation

The response received from the server.

Insert(InsertAutoscalerRequest, Metadata, Nullable<DateTime>, CancellationToken)

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

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

Parameters
NameDescription
requestInsertAutoscalerRequest

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(InsertAutoscalerRequest, CallOptions)

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

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

Parameters
NameDescription
requestInsertAutoscalerRequest

The request to send to the server.

optionsCallOptions

The options for the call.

Returns
TypeDescription
AsyncUnaryCall<Operation>

The call object.

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

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

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

Parameters
NameDescription
requestInsertAutoscalerRequest

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(ListAutoscalersRequest, CallOptions)

public virtual AutoscalerList List(ListAutoscalersRequest request, CallOptions options)

Retrieves a list of autoscalers contained within the specified zone.

Parameters
NameDescription
requestListAutoscalersRequest

The request to send to the server.

optionsCallOptions

The options for the call.

Returns
TypeDescription
AutoscalerList

The response received from the server.

List(ListAutoscalersRequest, Metadata, Nullable<DateTime>, CancellationToken)

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

Retrieves a list of autoscalers contained within the specified zone.

Parameters
NameDescription
requestListAutoscalersRequest

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
AutoscalerList

The response received from the server.

ListAsync(ListAutoscalersRequest, CallOptions)

public virtual AsyncUnaryCall<AutoscalerList> ListAsync(ListAutoscalersRequest request, CallOptions options)

Retrieves a list of autoscalers contained within the specified zone.

Parameters
NameDescription
requestListAutoscalersRequest

The request to send to the server.

optionsCallOptions

The options for the call.

Returns
TypeDescription
AsyncUnaryCall<AutoscalerList>

The call object.

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

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

Retrieves a list of autoscalers contained within the specified zone.

Parameters
NameDescription
requestListAutoscalersRequest

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<AutoscalerList>

The call object.

NewInstance(ClientBase.ClientBaseConfiguration)

protected override Autoscalers.AutoscalersClient NewInstance(ClientBase.ClientBaseConfiguration configuration)

Creates a new instance of client from given ClientBaseConfiguration.

Parameter
NameDescription
configurationClientBase.ClientBaseConfiguration
Returns
TypeDescription
Autoscalers.AutoscalersClient
Overrides
Grpc.Core.ClientBase<Google.Cloud.Compute.V1.Autoscalers.AutoscalersClient>.NewInstance(Grpc.Core.ClientBase.ClientBaseConfiguration)

Patch(PatchAutoscalerRequest, CallOptions)

public virtual Operation Patch(PatchAutoscalerRequest 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
requestPatchAutoscalerRequest

The request to send to the server.

optionsCallOptions

The options for the call.

Returns
TypeDescription
Operation

The response received from the server.

Patch(PatchAutoscalerRequest, Metadata, Nullable<DateTime>, CancellationToken)

public virtual Operation Patch(PatchAutoscalerRequest request, Metadata headers = null, DateTime? deadline = null, 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
requestPatchAutoscalerRequest

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(PatchAutoscalerRequest, CallOptions)

public virtual AsyncUnaryCall<Operation> PatchAsync(PatchAutoscalerRequest 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
requestPatchAutoscalerRequest

The request to send to the server.

optionsCallOptions

The options for the call.

Returns
TypeDescription
AsyncUnaryCall<Operation>

The call object.

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

public virtual AsyncUnaryCall<Operation> PatchAsync(PatchAutoscalerRequest request, Metadata headers = null, DateTime? deadline = null, 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
requestPatchAutoscalerRequest

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(UpdateAutoscalerRequest, CallOptions)

public virtual Operation Update(UpdateAutoscalerRequest request, CallOptions options)

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

Parameters
NameDescription
requestUpdateAutoscalerRequest

The request to send to the server.

optionsCallOptions

The options for the call.

Returns
TypeDescription
Operation

The response received from the server.

Update(UpdateAutoscalerRequest, Metadata, Nullable<DateTime>, CancellationToken)

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

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

Parameters
NameDescription
requestUpdateAutoscalerRequest

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(UpdateAutoscalerRequest, CallOptions)

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

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

Parameters
NameDescription
requestUpdateAutoscalerRequest

The request to send to the server.

optionsCallOptions

The options for the call.

Returns
TypeDescription
AsyncUnaryCall<Operation>

The call object.

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

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

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

Parameters
NameDescription
requestUpdateAutoscalerRequest

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.