[BindServiceMethod(typeof(AutoscalingPolicyService), "BindService")]
public abstract class AutoscalingPolicyServiceBase
Base class for server-side implementations of AutoscalingPolicyService
Namespace
Google.Cloud.Dataproc.V1Assembly
Google.Cloud.Dataproc.V1.dll
Methods
CreateAutoscalingPolicy(CreateAutoscalingPolicyRequest, ServerCallContext)
public virtual Task<AutoscalingPolicy> CreateAutoscalingPolicy(CreateAutoscalingPolicyRequest request, ServerCallContext context)
Creates new autoscaling policy.
Parameters | |
---|---|
Name | Description |
request | CreateAutoscalingPolicyRequest The request received from the client. |
context | ServerCallContext The context of the server-side call handler being invoked. |
Returns | |
---|---|
Type | Description |
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 | |
---|---|
Name | Description |
request | DeleteAutoscalingPolicyRequest The request received from the client. |
context | ServerCallContext The context of the server-side call handler being invoked. |
Returns | |
---|---|
Type | Description |
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 | |
---|---|
Name | Description |
request | GetAutoscalingPolicyRequest The request received from the client. |
context | ServerCallContext The context of the server-side call handler being invoked. |
Returns | |
---|---|
Type | Description |
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 | |
---|---|
Name | Description |
request | ListAutoscalingPoliciesRequest The request received from the client. |
context | ServerCallContext The context of the server-side call handler being invoked. |
Returns | |
---|---|
Type | Description |
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 | |
---|---|
Name | Description |
request | UpdateAutoscalingPolicyRequest The request received from the client. |
context | ServerCallContext The context of the server-side call handler being invoked. |
Returns | |
---|---|
Type | Description |
Task<AutoscalingPolicy> | The response to send back to the client (wrapped by a task). |