Google Cloud Dataproc v1 API - Class AutoscalingPolicyService.AutoscalingPolicyServiceClient (5.9.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
NameDescription
callInvokerCallInvoker

The callInvoker to use to make remote calls.

AutoscalingPolicyServiceClient(ChannelBase)

public AutoscalingPolicyServiceClient(ChannelBase channel)

Creates a new client for AutoscalingPolicyService

Parameter
NameDescription
channelChannelBase

The channel to use to make remote calls.

AutoscalingPolicyServiceClient(ClientBaseConfiguration)

protected AutoscalingPolicyServiceClient(ClientBase.ClientBaseConfiguration configuration)

Protected constructor to allow creation of configured clients.

Parameter
NameDescription
configurationClientBaseClientBaseConfiguration

The client configuration.

Methods

CreateAutoscalingPolicy(CreateAutoscalingPolicyRequest, CallOptions)

public virtual AutoscalingPolicy CreateAutoscalingPolicy(CreateAutoscalingPolicyRequest request, CallOptions options)

Creates new autoscaling policy.

Parameters
NameDescription
requestCreateAutoscalingPolicyRequest

The request to send to the server.

optionsCallOptions

The options for the call.

Returns
TypeDescription
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
NameDescription
requestCreateAutoscalingPolicyRequest

The request to send to the server.

headersMetadata

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

deadlineDateTime

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
AutoscalingPolicy

The response received from the server.

CreateAutoscalingPolicyAsync(CreateAutoscalingPolicyRequest, CallOptions)

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

Creates new autoscaling policy.

Parameters
NameDescription
requestCreateAutoscalingPolicyRequest

The request to send to the server.

optionsCallOptions

The options for the call.

Returns
TypeDescription
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
NameDescription
requestCreateAutoscalingPolicyRequest

The request to send to the server.

headersMetadata

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

deadlineDateTime

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
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
TypeDescription
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
NameDescription
requestDeleteAutoscalingPolicyRequest

The request to send to the server.

optionsCallOptions

The options for the call.

Returns
TypeDescription
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
NameDescription
requestDeleteAutoscalingPolicyRequest

The request to send to the server.

headersMetadata

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

deadlineDateTime

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
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
NameDescription
requestDeleteAutoscalingPolicyRequest

The request to send to the server.

optionsCallOptions

The options for the call.

Returns
TypeDescription
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
NameDescription
requestDeleteAutoscalingPolicyRequest

The request to send to the server.

headersMetadata

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

deadlineDateTime

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
AsyncUnaryCallEmpty

The call object.

GetAutoscalingPolicy(GetAutoscalingPolicyRequest, CallOptions)

public virtual AutoscalingPolicy GetAutoscalingPolicy(GetAutoscalingPolicyRequest request, CallOptions options)

Retrieves autoscaling policy.

Parameters
NameDescription
requestGetAutoscalingPolicyRequest

The request to send to the server.

optionsCallOptions

The options for the call.

Returns
TypeDescription
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
NameDescription
requestGetAutoscalingPolicyRequest

The request to send to the server.

headersMetadata

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

deadlineDateTime

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
AutoscalingPolicy

The response received from the server.

GetAutoscalingPolicyAsync(GetAutoscalingPolicyRequest, CallOptions)

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

Retrieves autoscaling policy.

Parameters
NameDescription
requestGetAutoscalingPolicyRequest

The request to send to the server.

optionsCallOptions

The options for the call.

Returns
TypeDescription
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
NameDescription
requestGetAutoscalingPolicyRequest

The request to send to the server.

headersMetadata

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

deadlineDateTime

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
AsyncUnaryCallAutoscalingPolicy

The call object.

ListAutoscalingPolicies(ListAutoscalingPoliciesRequest, CallOptions)

public virtual ListAutoscalingPoliciesResponse ListAutoscalingPolicies(ListAutoscalingPoliciesRequest request, CallOptions options)

Lists autoscaling policies in the project.

Parameters
NameDescription
requestListAutoscalingPoliciesRequest

The request to send to the server.

optionsCallOptions

The options for the call.

Returns
TypeDescription
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
NameDescription
requestListAutoscalingPoliciesRequest

The request to send to the server.

headersMetadata

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

deadlineDateTime

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
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
NameDescription
requestListAutoscalingPoliciesRequest

The request to send to the server.

optionsCallOptions

The options for the call.

Returns
TypeDescription
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
NameDescription
requestListAutoscalingPoliciesRequest

The request to send to the server.

headersMetadata

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

deadlineDateTime

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
AsyncUnaryCallListAutoscalingPoliciesResponse

The call object.

NewInstance(ClientBaseConfiguration)

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

Creates a new instance of client from given ClientBaseConfiguration.

Parameter
NameDescription
configurationClientBaseClientBaseConfiguration
Returns
TypeDescription
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
NameDescription
requestUpdateAutoscalingPolicyRequest

The request to send to the server.

optionsCallOptions

The options for the call.

Returns
TypeDescription
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
NameDescription
requestUpdateAutoscalingPolicyRequest

The request to send to the server.

headersMetadata

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

deadlineDateTime

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
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
NameDescription
requestUpdateAutoscalingPolicyRequest

The request to send to the server.

optionsCallOptions

The options for the call.

Returns
TypeDescription
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
NameDescription
requestUpdateAutoscalingPolicyRequest

The request to send to the server.

headersMetadata

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

deadlineDateTime

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
AsyncUnaryCallAutoscalingPolicy

The call object.