Class AutoscalingPolicyServiceGrpc.AutoscalingPolicyServiceImplBase (4.3.0)

public abstract static class AutoscalingPolicyServiceGrpc.AutoscalingPolicyServiceImplBase implements BindableService

The API interface for managing autoscaling policies in the Dataproc API.

Inheritance

java.lang.Object > AutoscalingPolicyServiceGrpc.AutoscalingPolicyServiceImplBase

Implements

io.grpc.BindableService

Constructors

AutoscalingPolicyServiceImplBase()

public AutoscalingPolicyServiceImplBase()

Methods

bindService()

public final ServerServiceDefinition bindService()
Returns
TypeDescription
io.grpc.ServerServiceDefinition

createAutoscalingPolicy(CreateAutoscalingPolicyRequest request, StreamObserver<AutoscalingPolicy> responseObserver)

public void createAutoscalingPolicy(CreateAutoscalingPolicyRequest request, StreamObserver<AutoscalingPolicy> responseObserver)

Creates new autoscaling policy.

Parameters
NameDescription
requestCreateAutoscalingPolicyRequest
responseObserverio.grpc.stub.StreamObserver<AutoscalingPolicy>

deleteAutoscalingPolicy(DeleteAutoscalingPolicyRequest request, StreamObserver<Empty> responseObserver)

public void deleteAutoscalingPolicy(DeleteAutoscalingPolicyRequest request, StreamObserver<Empty> responseObserver)

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
responseObserverio.grpc.stub.StreamObserver<Empty>

getAutoscalingPolicy(GetAutoscalingPolicyRequest request, StreamObserver<AutoscalingPolicy> responseObserver)

public void getAutoscalingPolicy(GetAutoscalingPolicyRequest request, StreamObserver<AutoscalingPolicy> responseObserver)

Retrieves autoscaling policy.

Parameters
NameDescription
requestGetAutoscalingPolicyRequest
responseObserverio.grpc.stub.StreamObserver<AutoscalingPolicy>

listAutoscalingPolicies(ListAutoscalingPoliciesRequest request, StreamObserver<ListAutoscalingPoliciesResponse> responseObserver)

public void listAutoscalingPolicies(ListAutoscalingPoliciesRequest request, StreamObserver<ListAutoscalingPoliciesResponse> responseObserver)

Lists autoscaling policies in the project.

Parameters
NameDescription
requestListAutoscalingPoliciesRequest
responseObserverio.grpc.stub.StreamObserver<ListAutoscalingPoliciesResponse>

updateAutoscalingPolicy(UpdateAutoscalingPolicyRequest request, StreamObserver<AutoscalingPolicy> responseObserver)

public void updateAutoscalingPolicy(UpdateAutoscalingPolicyRequest request, StreamObserver<AutoscalingPolicy> responseObserver)

Updates (replaces) autoscaling policy. Disabled check for update_mask, because all updates will be full replacements.

Parameters
NameDescription
requestUpdateAutoscalingPolicyRequest
responseObserverio.grpc.stub.StreamObserver<AutoscalingPolicy>