Class AutoscalingPolicyServiceGrpc.AutoscalingPolicyServiceStub (4.50.0)

public static final class AutoscalingPolicyServiceGrpc.AutoscalingPolicyServiceStub extends AbstractAsyncStub<AutoscalingPolicyServiceGrpc.AutoscalingPolicyServiceStub>

A stub to allow clients to do asynchronous rpc calls to service AutoscalingPolicyService.

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

Inheritance

java.lang.Object > io.grpc.stub.AbstractStub > io.grpc.stub.AbstractAsyncStub > AutoscalingPolicyServiceGrpc.AutoscalingPolicyServiceStub

Methods

build(Channel channel, CallOptions callOptions)

protected AutoscalingPolicyServiceGrpc.AutoscalingPolicyServiceStub build(Channel channel, CallOptions callOptions)
Parameters
Name Description
channel io.grpc.Channel
callOptions io.grpc.CallOptions
Returns
Type Description
AutoscalingPolicyServiceGrpc.AutoscalingPolicyServiceStub
Overrides
io.grpc.stub.AbstractStub.build(io.grpc.Channel,io.grpc.CallOptions)

createAutoscalingPolicy(CreateAutoscalingPolicyRequest request, StreamObserver<AutoscalingPolicy> responseObserver)

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

Creates new autoscaling policy.

Parameters
Name Description
request CreateAutoscalingPolicyRequest
responseObserver io.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
Name Description
request DeleteAutoscalingPolicyRequest
responseObserver io.grpc.stub.StreamObserver<Empty>

getAutoscalingPolicy(GetAutoscalingPolicyRequest request, StreamObserver<AutoscalingPolicy> responseObserver)

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

Retrieves autoscaling policy.

Parameters
Name Description
request GetAutoscalingPolicyRequest
responseObserver io.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
Name Description
request ListAutoscalingPoliciesRequest
responseObserver io.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
Name Description
request UpdateAutoscalingPolicyRequest
responseObserver io.grpc.stub.StreamObserver<AutoscalingPolicy>