public class RegionAutoscalersClient : ClientBase<RegionAutoscalers.RegionAutoscalersClient>
Client for RegionAutoscalers
Inheritance
Object > ClientBase > ClientBase<RegionAutoscalers.RegionAutoscalersClient> > RegionAutoscalers.RegionAutoscalersClientNamespace
Google.Cloud.Compute.V1Assembly
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(ClientBase.ClientBaseConfiguration)
protected RegionAutoscalersClient(ClientBase.ClientBaseConfiguration configuration)
Protected constructor to allow creation of configured clients.
Parameter | |
---|---|
Name | Description |
configuration | ClientBase.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 | |
---|---|
Type | Description |
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 | |
---|---|
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, 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 | |
---|---|
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 | 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(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 |
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 | |
---|---|
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 | 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(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, 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 | |
---|---|
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 | 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(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 |
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 | |
---|---|
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 | 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(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, 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 | |
---|---|
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 | 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(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 |
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 | |
---|---|
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 | 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(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, 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 | |
---|---|
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 | 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 |
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 |
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 | |
---|---|
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 | 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<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 | |
---|---|
Name | Description |
configuration | ClientBase.ClientBaseConfiguration |
Returns | |
---|---|
Type | Description |
RegionAutoscalers.RegionAutoscalersClient |
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, 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 | |
---|---|
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 | 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(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 |
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 | |
---|---|
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 | 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(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, 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 | |
---|---|
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 | 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(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 |
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 | |
---|---|
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 | 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. |