Google Cloud Dataproc v1 API - Class AutoscalingPolicyService.AutoscalingPolicyServiceBase (5.4.0)

[BindServiceMethod(typeof(AutoscalingPolicyService), "BindService")]
public abstract class AutoscalingPolicyServiceBase

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

Base class for server-side implementations of AutoscalingPolicyService

Inheritance

Object > AutoscalingPolicyService.AutoscalingPolicyServiceBase

Namespace

Google.Cloud.Dataproc.V1

Assembly

Google.Cloud.Dataproc.V1.dll

Methods

CreateAutoscalingPolicy(CreateAutoscalingPolicyRequest, ServerCallContext)

public virtual Task<AutoscalingPolicy> CreateAutoscalingPolicy(CreateAutoscalingPolicyRequest request, ServerCallContext context)

Creates new autoscaling policy.

Parameters
NameDescription
requestCreateAutoscalingPolicyRequest

The request received from the client.

contextServerCallContext

The context of the server-side call handler being invoked.

Returns
TypeDescription
Task<AutoscalingPolicy>

The response to send back to the client (wrapped by a task).

DeleteAutoscalingPolicy(DeleteAutoscalingPolicyRequest, ServerCallContext)

public virtual Task<Empty> DeleteAutoscalingPolicy(DeleteAutoscalingPolicyRequest request, ServerCallContext context)

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 received from the client.

contextServerCallContext

The context of the server-side call handler being invoked.

Returns
TypeDescription
Task<Empty>

The response to send back to the client (wrapped by a task).

GetAutoscalingPolicy(GetAutoscalingPolicyRequest, ServerCallContext)

public virtual Task<AutoscalingPolicy> GetAutoscalingPolicy(GetAutoscalingPolicyRequest request, ServerCallContext context)

Retrieves autoscaling policy.

Parameters
NameDescription
requestGetAutoscalingPolicyRequest

The request received from the client.

contextServerCallContext

The context of the server-side call handler being invoked.

Returns
TypeDescription
Task<AutoscalingPolicy>

The response to send back to the client (wrapped by a task).

ListAutoscalingPolicies(ListAutoscalingPoliciesRequest, ServerCallContext)

public virtual Task<ListAutoscalingPoliciesResponse> ListAutoscalingPolicies(ListAutoscalingPoliciesRequest request, ServerCallContext context)

Lists autoscaling policies in the project.

Parameters
NameDescription
requestListAutoscalingPoliciesRequest

The request received from the client.

contextServerCallContext

The context of the server-side call handler being invoked.

Returns
TypeDescription
Task<ListAutoscalingPoliciesResponse>

The response to send back to the client (wrapped by a task).

UpdateAutoscalingPolicy(UpdateAutoscalingPolicyRequest, ServerCallContext)

public virtual Task<AutoscalingPolicy> UpdateAutoscalingPolicy(UpdateAutoscalingPolicyRequest request, ServerCallContext context)

Updates (replaces) autoscaling policy.

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

Parameters
NameDescription
requestUpdateAutoscalingPolicyRequest

The request received from the client.

contextServerCallContext

The context of the server-side call handler being invoked.

Returns
TypeDescription
Task<AutoscalingPolicy>

The response to send back to the client (wrapped by a task).