public sealed class AutoscalingPolicyServiceClientImpl : AutoscalingPolicyServiceClient
Reference documentation and code samples for the Google Cloud Dataproc v1 API class AutoscalingPolicyServiceClientImpl.
AutoscalingPolicyService client wrapper implementation, for convenient use.
Namespace
Google.Cloud.Dataproc.V1Assembly
Google.Cloud.Dataproc.V1.dll
Remarks
The API interface for managing autoscaling policies in the Dataproc API.
Constructors
AutoscalingPolicyServiceClientImpl(AutoscalingPolicyServiceClient, AutoscalingPolicyServiceSettings, ILogger)
public AutoscalingPolicyServiceClientImpl(AutoscalingPolicyService.AutoscalingPolicyServiceClient grpcClient, AutoscalingPolicyServiceSettings settings, ILogger logger)
Constructs a client wrapper for the AutoscalingPolicyService service, with the specified gRPC client and settings.
Parameters | |
---|---|
Name | Description |
grpcClient | AutoscalingPolicyServiceAutoscalingPolicyServiceClient The underlying gRPC client. |
settings | AutoscalingPolicyServiceSettings The base AutoscalingPolicyServiceSettings used within this client. |
logger | ILogger Optional ILogger to use within this client. |
Properties
GrpcClient
public override AutoscalingPolicyService.AutoscalingPolicyServiceClient GrpcClient { get; }
The underlying gRPC AutoscalingPolicyService client
Property Value | |
---|---|
Type | Description |
AutoscalingPolicyServiceAutoscalingPolicyServiceClient |
IAMPolicyClient
public override IAMPolicyClient IAMPolicyClient { get; }
The IAMPolicyClient associated with this client.
Property Value | |
---|---|
Type | Description |
IAMPolicyClient |
Methods
CreateAutoscalingPolicy(CreateAutoscalingPolicyRequest, CallSettings)
public override AutoscalingPolicy CreateAutoscalingPolicy(CreateAutoscalingPolicyRequest request, CallSettings callSettings = null)
Creates new autoscaling policy.
Parameters | |
---|---|
Name | Description |
request | CreateAutoscalingPolicyRequest The request object containing all of the parameters for the API call. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
AutoscalingPolicy | The RPC response. |
CreateAutoscalingPolicyAsync(CreateAutoscalingPolicyRequest, CallSettings)
public override Task<AutoscalingPolicy> CreateAutoscalingPolicyAsync(CreateAutoscalingPolicyRequest request, CallSettings callSettings = null)
Creates new autoscaling policy.
Parameters | |
---|---|
Name | Description |
request | CreateAutoscalingPolicyRequest The request object containing all of the parameters for the API call. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
TaskAutoscalingPolicy | A Task containing the RPC response. |
DeleteAutoscalingPolicy(DeleteAutoscalingPolicyRequest, CallSettings)
public override void DeleteAutoscalingPolicy(DeleteAutoscalingPolicyRequest request, CallSettings callSettings = null)
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 object containing all of the parameters for the API call. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
DeleteAutoscalingPolicyAsync(DeleteAutoscalingPolicyRequest, CallSettings)
public override Task DeleteAutoscalingPolicyAsync(DeleteAutoscalingPolicyRequest request, CallSettings callSettings = null)
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 object containing all of the parameters for the API call. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Task | A Task containing the RPC response. |
GetAutoscalingPolicy(GetAutoscalingPolicyRequest, CallSettings)
public override AutoscalingPolicy GetAutoscalingPolicy(GetAutoscalingPolicyRequest request, CallSettings callSettings = null)
Retrieves autoscaling policy.
Parameters | |
---|---|
Name | Description |
request | GetAutoscalingPolicyRequest The request object containing all of the parameters for the API call. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
AutoscalingPolicy | The RPC response. |
GetAutoscalingPolicyAsync(GetAutoscalingPolicyRequest, CallSettings)
public override Task<AutoscalingPolicy> GetAutoscalingPolicyAsync(GetAutoscalingPolicyRequest request, CallSettings callSettings = null)
Retrieves autoscaling policy.
Parameters | |
---|---|
Name | Description |
request | GetAutoscalingPolicyRequest The request object containing all of the parameters for the API call. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
TaskAutoscalingPolicy | A Task containing the RPC response. |
ListAutoscalingPolicies(ListAutoscalingPoliciesRequest, CallSettings)
public override PagedEnumerable<ListAutoscalingPoliciesResponse, AutoscalingPolicy> ListAutoscalingPolicies(ListAutoscalingPoliciesRequest request, CallSettings callSettings = null)
Lists autoscaling policies in the project.
Parameters | |
---|---|
Name | Description |
request | ListAutoscalingPoliciesRequest The request object containing all of the parameters for the API call. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
PagedEnumerableListAutoscalingPoliciesResponseAutoscalingPolicy | A pageable sequence of AutoscalingPolicy resources. |
ListAutoscalingPoliciesAsync(ListAutoscalingPoliciesRequest, CallSettings)
public override PagedAsyncEnumerable<ListAutoscalingPoliciesResponse, AutoscalingPolicy> ListAutoscalingPoliciesAsync(ListAutoscalingPoliciesRequest request, CallSettings callSettings = null)
Lists autoscaling policies in the project.
Parameters | |
---|---|
Name | Description |
request | ListAutoscalingPoliciesRequest The request object containing all of the parameters for the API call. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
PagedAsyncEnumerableListAutoscalingPoliciesResponseAutoscalingPolicy | A pageable asynchronous sequence of AutoscalingPolicy resources. |
UpdateAutoscalingPolicy(UpdateAutoscalingPolicyRequest, CallSettings)
public override AutoscalingPolicy UpdateAutoscalingPolicy(UpdateAutoscalingPolicyRequest request, CallSettings callSettings = null)
Updates (replaces) autoscaling policy.
Disabled check for update_mask, because all updates will be full replacements.
Parameters | |
---|---|
Name | Description |
request | UpdateAutoscalingPolicyRequest The request object containing all of the parameters for the API call. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
AutoscalingPolicy | The RPC response. |
UpdateAutoscalingPolicyAsync(UpdateAutoscalingPolicyRequest, CallSettings)
public override Task<AutoscalingPolicy> UpdateAutoscalingPolicyAsync(UpdateAutoscalingPolicyRequest request, CallSettings callSettings = null)
Updates (replaces) autoscaling policy.
Disabled check for update_mask, because all updates will be full replacements.
Parameters | |
---|---|
Name | Description |
request | UpdateAutoscalingPolicyRequest The request object containing all of the parameters for the API call. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
TaskAutoscalingPolicy | A Task containing the RPC response. |