Google Cloud Dataproc v1 API - Class AutoscalingPolicyService.AutoscalingPolicyServiceClient (5.11.0)

public class AutoscalingPolicyService.AutoscalingPolicyServiceClient : ClientBase<AutoscalingPolicyService.AutoscalingPolicyServiceClient>

Reference documentation and code samples for the Google Cloud Dataproc v1 API class AutoscalingPolicyService.AutoscalingPolicyServiceClient.

Client for AutoscalingPolicyService

Inheritance

object > ClientBase > ClientBaseAutoscalingPolicyServiceAutoscalingPolicyServiceClient > AutoscalingPolicyService.AutoscalingPolicyServiceClient

Namespace

Google.Cloud.Dataproc.V1

Assembly

Google.Cloud.Dataproc.V1.dll

Constructors

AutoscalingPolicyServiceClient()

protected AutoscalingPolicyServiceClient()

Protected parameterless constructor to allow creation of test doubles.

AutoscalingPolicyServiceClient(CallInvoker)

public AutoscalingPolicyServiceClient(CallInvoker callInvoker)

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

Parameter
Name Description
callInvoker CallInvoker

The callInvoker to use to make remote calls.

AutoscalingPolicyServiceClient(ChannelBase)

public AutoscalingPolicyServiceClient(ChannelBase channel)

Creates a new client for AutoscalingPolicyService

Parameter
Name Description
channel ChannelBase

The channel to use to make remote calls.

AutoscalingPolicyServiceClient(ClientBaseConfiguration)

protected AutoscalingPolicyServiceClient(ClientBase.ClientBaseConfiguration configuration)

Protected constructor to allow creation of configured clients.

Parameter
Name Description
configuration ClientBaseClientBaseConfiguration

The client configuration.

Methods

CreateAutoscalingPolicy(CreateAutoscalingPolicyRequest, CallOptions)

public virtual AutoscalingPolicy CreateAutoscalingPolicy(CreateAutoscalingPolicyRequest request, CallOptions options)

Creates new autoscaling policy.

Parameters
Name Description
request CreateAutoscalingPolicyRequest

The request to send to the server.

options CallOptions

The options for the call.

Returns
Type Description
AutoscalingPolicy

The response received from the server.

CreateAutoscalingPolicy(CreateAutoscalingPolicyRequest, Metadata, DateTime?, CancellationToken)

public virtual AutoscalingPolicy CreateAutoscalingPolicy(CreateAutoscalingPolicyRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)

Creates new autoscaling policy.

Parameters
Name Description
request CreateAutoscalingPolicyRequest

The request to send to the server.

headers Metadata

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

deadline 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
AutoscalingPolicy

The response received from the server.

CreateAutoscalingPolicyAsync(CreateAutoscalingPolicyRequest, CallOptions)

public virtual AsyncUnaryCall<AutoscalingPolicy> CreateAutoscalingPolicyAsync(CreateAutoscalingPolicyRequest request, CallOptions options)

Creates new autoscaling policy.

Parameters
Name Description
request CreateAutoscalingPolicyRequest

The request to send to the server.

options CallOptions

The options for the call.

Returns
Type Description
AsyncUnaryCallAutoscalingPolicy

The call object.

CreateAutoscalingPolicyAsync(CreateAutoscalingPolicyRequest, Metadata, DateTime?, CancellationToken)

public virtual AsyncUnaryCall<AutoscalingPolicy> CreateAutoscalingPolicyAsync(CreateAutoscalingPolicyRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)

Creates new autoscaling policy.

Parameters
Name Description
request CreateAutoscalingPolicyRequest

The request to send to the server.

headers Metadata

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

deadline 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
AsyncUnaryCallAutoscalingPolicy

The call object.

CreateIAMPolicyClient()

public virtual IAMPolicy.IAMPolicyClient CreateIAMPolicyClient()

Creates a new instance of IAMPolicy.IAMPolicyClient using the same call invoker as this client.

Returns
Type Description
IAMPolicyIAMPolicyClient

A new IAMPolicy.IAMPolicyClient for the same target as this client.

DeleteAutoscalingPolicy(DeleteAutoscalingPolicyRequest, CallOptions)

public virtual Empty DeleteAutoscalingPolicy(DeleteAutoscalingPolicyRequest request, CallOptions options)

Deletes an autoscaling policy. It is an error to delete an autoscaling policy that is in use by one or more clusters.

Parameters
Name Description
request DeleteAutoscalingPolicyRequest

The request to send to the server.

options CallOptions

The options for the call.

Returns
Type Description
Empty

The response received from the server.

DeleteAutoscalingPolicy(DeleteAutoscalingPolicyRequest, Metadata, DateTime?, CancellationToken)

public virtual Empty DeleteAutoscalingPolicy(DeleteAutoscalingPolicyRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)

Deletes an autoscaling policy. It is an error to delete an autoscaling policy that is in use by one or more clusters.

Parameters
Name Description
request DeleteAutoscalingPolicyRequest

The request to send to the server.

headers Metadata

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

deadline 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
Empty

The response received from the server.

DeleteAutoscalingPolicyAsync(DeleteAutoscalingPolicyRequest, CallOptions)

public virtual AsyncUnaryCall<Empty> DeleteAutoscalingPolicyAsync(DeleteAutoscalingPolicyRequest request, CallOptions options)

Deletes an autoscaling policy. It is an error to delete an autoscaling policy that is in use by one or more clusters.

Parameters
Name Description
request DeleteAutoscalingPolicyRequest

The request to send to the server.

options CallOptions

The options for the call.

Returns
Type Description
AsyncUnaryCallEmpty

The call object.

DeleteAutoscalingPolicyAsync(DeleteAutoscalingPolicyRequest, Metadata, DateTime?, CancellationToken)

public virtual AsyncUnaryCall<Empty> DeleteAutoscalingPolicyAsync(DeleteAutoscalingPolicyRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)

Deletes an autoscaling policy. It is an error to delete an autoscaling policy that is in use by one or more clusters.

Parameters
Name Description
request DeleteAutoscalingPolicyRequest

The request to send to the server.

headers Metadata

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

deadline 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
AsyncUnaryCallEmpty

The call object.

GetAutoscalingPolicy(GetAutoscalingPolicyRequest, CallOptions)

public virtual AutoscalingPolicy GetAutoscalingPolicy(GetAutoscalingPolicyRequest request, CallOptions options)

Retrieves autoscaling policy.

Parameters
Name Description
request GetAutoscalingPolicyRequest

The request to send to the server.

options CallOptions

The options for the call.

Returns
Type Description
AutoscalingPolicy

The response received from the server.

GetAutoscalingPolicy(GetAutoscalingPolicyRequest, Metadata, DateTime?, CancellationToken)

public virtual AutoscalingPolicy GetAutoscalingPolicy(GetAutoscalingPolicyRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)

Retrieves autoscaling policy.

Parameters
Name Description
request GetAutoscalingPolicyRequest

The request to send to the server.

headers Metadata

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

deadline 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
AutoscalingPolicy

The response received from the server.

GetAutoscalingPolicyAsync(GetAutoscalingPolicyRequest, CallOptions)

public virtual AsyncUnaryCall<AutoscalingPolicy> GetAutoscalingPolicyAsync(GetAutoscalingPolicyRequest request, CallOptions options)

Retrieves autoscaling policy.

Parameters
Name Description
request GetAutoscalingPolicyRequest

The request to send to the server.

options CallOptions

The options for the call.

Returns
Type Description
AsyncUnaryCallAutoscalingPolicy

The call object.

GetAutoscalingPolicyAsync(GetAutoscalingPolicyRequest, Metadata, DateTime?, CancellationToken)

public virtual AsyncUnaryCall<AutoscalingPolicy> GetAutoscalingPolicyAsync(GetAutoscalingPolicyRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)

Retrieves autoscaling policy.

Parameters
Name Description
request GetAutoscalingPolicyRequest

The request to send to the server.

headers Metadata

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

deadline 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
AsyncUnaryCallAutoscalingPolicy

The call object.

ListAutoscalingPolicies(ListAutoscalingPoliciesRequest, CallOptions)

public virtual ListAutoscalingPoliciesResponse ListAutoscalingPolicies(ListAutoscalingPoliciesRequest request, CallOptions options)

Lists autoscaling policies in the project.

Parameters
Name Description
request ListAutoscalingPoliciesRequest

The request to send to the server.

options CallOptions

The options for the call.

Returns
Type Description
ListAutoscalingPoliciesResponse

The response received from the server.

ListAutoscalingPolicies(ListAutoscalingPoliciesRequest, Metadata, DateTime?, CancellationToken)

public virtual ListAutoscalingPoliciesResponse ListAutoscalingPolicies(ListAutoscalingPoliciesRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)

Lists autoscaling policies in the project.

Parameters
Name Description
request ListAutoscalingPoliciesRequest

The request to send to the server.

headers Metadata

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

deadline 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
ListAutoscalingPoliciesResponse

The response received from the server.

ListAutoscalingPoliciesAsync(ListAutoscalingPoliciesRequest, CallOptions)

public virtual AsyncUnaryCall<ListAutoscalingPoliciesResponse> ListAutoscalingPoliciesAsync(ListAutoscalingPoliciesRequest request, CallOptions options)

Lists autoscaling policies in the project.

Parameters
Name Description
request ListAutoscalingPoliciesRequest

The request to send to the server.

options CallOptions

The options for the call.

Returns
Type Description
AsyncUnaryCallListAutoscalingPoliciesResponse

The call object.

ListAutoscalingPoliciesAsync(ListAutoscalingPoliciesRequest, Metadata, DateTime?, CancellationToken)

public virtual AsyncUnaryCall<ListAutoscalingPoliciesResponse> ListAutoscalingPoliciesAsync(ListAutoscalingPoliciesRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)

Lists autoscaling policies in the project.

Parameters
Name Description
request ListAutoscalingPoliciesRequest

The request to send to the server.

headers Metadata

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

deadline 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
AsyncUnaryCallListAutoscalingPoliciesResponse

The call object.

NewInstance(ClientBaseConfiguration)

protected override AutoscalingPolicyService.AutoscalingPolicyServiceClient NewInstance(ClientBase.ClientBaseConfiguration configuration)

Creates a new instance of client from given ClientBaseConfiguration.

Parameter
Name Description
configuration ClientBaseClientBaseConfiguration
Returns
Type Description
AutoscalingPolicyServiceAutoscalingPolicyServiceClient
Overrides

UpdateAutoscalingPolicy(UpdateAutoscalingPolicyRequest, CallOptions)

public virtual AutoscalingPolicy UpdateAutoscalingPolicy(UpdateAutoscalingPolicyRequest request, CallOptions options)

Updates (replaces) autoscaling policy.

Disabled check for update_mask, because all updates will be full replacements.

Parameters
Name Description
request UpdateAutoscalingPolicyRequest

The request to send to the server.

options CallOptions

The options for the call.

Returns
Type Description
AutoscalingPolicy

The response received from the server.

UpdateAutoscalingPolicy(UpdateAutoscalingPolicyRequest, Metadata, DateTime?, CancellationToken)

public virtual AutoscalingPolicy UpdateAutoscalingPolicy(UpdateAutoscalingPolicyRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)

Updates (replaces) autoscaling policy.

Disabled check for update_mask, because all updates will be full replacements.

Parameters
Name Description
request UpdateAutoscalingPolicyRequest

The request to send to the server.

headers Metadata

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

deadline 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
AutoscalingPolicy

The response received from the server.

UpdateAutoscalingPolicyAsync(UpdateAutoscalingPolicyRequest, CallOptions)

public virtual AsyncUnaryCall<AutoscalingPolicy> UpdateAutoscalingPolicyAsync(UpdateAutoscalingPolicyRequest request, CallOptions options)

Updates (replaces) autoscaling policy.

Disabled check for update_mask, because all updates will be full replacements.

Parameters
Name Description
request UpdateAutoscalingPolicyRequest

The request to send to the server.

options CallOptions

The options for the call.

Returns
Type Description
AsyncUnaryCallAutoscalingPolicy

The call object.

UpdateAutoscalingPolicyAsync(UpdateAutoscalingPolicyRequest, Metadata, DateTime?, CancellationToken)

public virtual AsyncUnaryCall<AutoscalingPolicy> UpdateAutoscalingPolicyAsync(UpdateAutoscalingPolicyRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)

Updates (replaces) autoscaling policy.

Disabled check for update_mask, because all updates will be full replacements.

Parameters
Name Description
request UpdateAutoscalingPolicyRequest

The request to send to the server.

headers Metadata

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

deadline 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
AsyncUnaryCallAutoscalingPolicy

The call object.