public class AutoscalersClient : ClientBase<Autoscalers.AutoscalersClient>
Reference documentation and code samples for the Compute Engine v1 API class Autoscalers.AutoscalersClient.
Client for Autoscalers
Inheritance
Object > ClientBase > ClientBase<Autoscalers.AutoscalersClient> > Autoscalers.AutoscalersClientNamespace
Google.Cloud.Compute.V1Assembly
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 | |
---|---|
Name | Description |
callInvoker | CallInvoker The callInvoker to use to make remote calls. |
AutoscalersClient(ChannelBase)
public AutoscalersClient(ChannelBase channel)
Creates a new client for Autoscalers
Parameter | |
---|---|
Name | Description |
channel | ChannelBase 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 | |
---|---|
Name | Description |
configuration | ClientBase.ClientBaseConfiguration The client configuration. |
Methods
AggregatedList(AggregatedListAutoscalersRequest, CallOptions)
public virtual AutoscalerAggregatedList AggregatedList(AggregatedListAutoscalersRequest request, CallOptions options)
Retrieves an aggregated list of autoscalers.
Parameters | |
---|---|
Name | Description |
request | AggregatedListAutoscalersRequest The request to send to the server. |
options | CallOptions The options for the call. |
Returns | |
---|---|
Type | Description |
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 | |
---|---|
Name | Description |
request | AggregatedListAutoscalersRequest The request to send to the server. |
headers | Metadata The initial metadata to send with the call. This parameter is optional. |
deadline | Nullable<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 |
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 | |
---|---|
Name | Description |
request | AggregatedListAutoscalersRequest The request to send to the server. |
options | CallOptions The options for the call. |
Returns | |
---|---|
Type | Description |
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 | |
---|---|
Name | Description |
request | AggregatedListAutoscalersRequest The request to send to the server. |
headers | Metadata The initial metadata to send with the call. This parameter is optional. |
deadline | Nullable<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 |
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 | |
---|---|
Type | Description |
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 | |
---|---|
Name | Description |
request | DeleteAutoscalerRequest 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(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 | |
---|---|
Name | Description |
request | DeleteAutoscalerRequest The request to send to the server. |
headers | Metadata The initial metadata to send with the call. This parameter is optional. |
deadline | Nullable<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(DeleteAutoscalerRequest, CallOptions)
public virtual AsyncUnaryCall<Operation> DeleteAsync(DeleteAutoscalerRequest request, CallOptions options)
Deletes the specified autoscaler.
Parameters | |
---|---|
Name | Description |
request | DeleteAutoscalerRequest The request to send to the server. |
options | CallOptions The options for the call. |
Returns | |
---|---|
Type | Description |
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 | |
---|---|
Name | Description |
request | DeleteAutoscalerRequest The request to send to the server. |
headers | Metadata The initial metadata to send with the call. This parameter is optional. |
deadline | Nullable<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 |
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 | |
---|---|
Name | Description |
request | GetAutoscalerRequest 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(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 | |
---|---|
Name | Description |
request | GetAutoscalerRequest The request to send to the server. |
headers | Metadata The initial metadata to send with the call. This parameter is optional. |
deadline | Nullable<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(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 | |
---|---|
Name | Description |
request | GetAutoscalerRequest The request to send to the server. |
options | CallOptions The options for the call. |
Returns | |
---|---|
Type | Description |
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 | |
---|---|
Name | Description |
request | GetAutoscalerRequest The request to send to the server. |
headers | Metadata The initial metadata to send with the call. This parameter is optional. |
deadline | Nullable<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 |
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 | |
---|---|
Name | Description |
request | InsertAutoscalerRequest 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(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 | |
---|---|
Name | Description |
request | InsertAutoscalerRequest The request to send to the server. |
headers | Metadata The initial metadata to send with the call. This parameter is optional. |
deadline | Nullable<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(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 | |
---|---|
Name | Description |
request | InsertAutoscalerRequest The request to send to the server. |
options | CallOptions The options for the call. |
Returns | |
---|---|
Type | Description |
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 | |
---|---|
Name | Description |
request | InsertAutoscalerRequest The request to send to the server. |
headers | Metadata The initial metadata to send with the call. This parameter is optional. |
deadline | Nullable<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 |
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 | |
---|---|
Name | Description |
request | ListAutoscalersRequest The request to send to the server. |
options | CallOptions The options for the call. |
Returns | |
---|---|
Type | Description |
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 | |
---|---|
Name | Description |
request | ListAutoscalersRequest The request to send to the server. |
headers | Metadata The initial metadata to send with the call. This parameter is optional. |
deadline | Nullable<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 |
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 | |
---|---|
Name | Description |
request | ListAutoscalersRequest The request to send to the server. |
options | CallOptions The options for the call. |
Returns | |
---|---|
Type | Description |
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 | |
---|---|
Name | Description |
request | ListAutoscalersRequest The request to send to the server. |
headers | Metadata The initial metadata to send with the call. This parameter is optional. |
deadline | Nullable<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 |
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 | |
---|---|
Name | Description |
configuration | ClientBase.ClientBaseConfiguration |
Returns | |
---|---|
Type | Description |
Autoscalers.AutoscalersClient |
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 | |
---|---|
Name | Description |
request | PatchAutoscalerRequest 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(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 | |
---|---|
Name | Description |
request | PatchAutoscalerRequest The request to send to the server. |
headers | Metadata The initial metadata to send with the call. This parameter is optional. |
deadline | Nullable<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(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 | |
---|---|
Name | Description |
request | PatchAutoscalerRequest The request to send to the server. |
options | CallOptions The options for the call. |
Returns | |
---|---|
Type | Description |
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 | |
---|---|
Name | Description |
request | PatchAutoscalerRequest The request to send to the server. |
headers | Metadata The initial metadata to send with the call. This parameter is optional. |
deadline | Nullable<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 |
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 | |
---|---|
Name | Description |
request | UpdateAutoscalerRequest 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(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 | |
---|---|
Name | Description |
request | UpdateAutoscalerRequest The request to send to the server. |
headers | Metadata The initial metadata to send with the call. This parameter is optional. |
deadline | Nullable<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(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 | |
---|---|
Name | Description |
request | UpdateAutoscalerRequest The request to send to the server. |
options | CallOptions The options for the call. |
Returns | |
---|---|
Type | Description |
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 | |
---|---|
Name | Description |
request | UpdateAutoscalerRequest The request to send to the server. |
headers | Metadata The initial metadata to send with the call. This parameter is optional. |
deadline | Nullable<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 |
AsyncUnaryCall<Operation> | The call object. |