Class AutoscalingPolicyService.AutoscalingPolicyServiceClient (3.2.0)

public class AutoscalingPolicyServiceClient : ClientBase<AutoscalingPolicyService.AutoscalingPolicyServiceClient>

Client for AutoscalingPolicyService

Inheritance

Object > ClientBase > ClientBase<AutoscalingPolicyService.AutoscalingPolicyServiceClient> > 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(ClientBase.ClientBaseConfiguration)

protected AutoscalingPolicyServiceClient(ClientBase.ClientBaseConfiguration configuration)

Protected constructor to allow creation of configured clients.

Parameter
NameDescription
configurationClientBase.ClientBaseConfiguration

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, Nullable<DateTime>, CancellationToken)

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

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.

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

The call object.

CreateAutoscalingPolicyAsync(CreateAutoscalingPolicyRequest, Metadata, Nullable<DateTime>, CancellationToken)

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

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.

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

The call object.

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, Nullable<DateTime>, CancellationToken)

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

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.

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

The call object.

DeleteAutoscalingPolicyAsync(DeleteAutoscalingPolicyRequest, Metadata, Nullable<DateTime>, CancellationToken)

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

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.

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

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, Nullable<DateTime>, CancellationToken)

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

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.

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

The call object.

GetAutoscalingPolicyAsync(GetAutoscalingPolicyRequest, Metadata, Nullable<DateTime>, CancellationToken)

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

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.

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

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, Nullable<DateTime>, CancellationToken)

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

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.

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

The call object.

ListAutoscalingPoliciesAsync(ListAutoscalingPoliciesRequest, Metadata, Nullable<DateTime>, CancellationToken)

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

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.

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

The call object.

NewInstance(ClientBase.ClientBaseConfiguration)

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

Creates a new instance of client from given ClientBaseConfiguration.

Parameter
NameDescription
configurationClientBase.ClientBaseConfiguration
Returns
TypeDescription
AutoscalingPolicyService.AutoscalingPolicyServiceClient
Overrides
Grpc.Core.ClientBase<Google.Cloud.Dataproc.V1.AutoscalingPolicyService.AutoscalingPolicyServiceClient>.NewInstance(Grpc.Core.ClientBase.ClientBaseConfiguration)

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, Nullable<DateTime>, CancellationToken)

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

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.

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

The call object.

UpdateAutoscalingPolicyAsync(UpdateAutoscalingPolicyRequest, Metadata, Nullable<DateTime>, CancellationToken)

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

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.

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

The call object.