Google Cloud Dataproc v1 API - Class AutoscalingPolicyServiceClientImpl (5.6.0)

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.

Inheritance

object > AutoscalingPolicyServiceClient > AutoscalingPolicyServiceClientImpl

Namespace

Google.Cloud.Dataproc.V1

Assembly

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
NameDescription
grpcClientAutoscalingPolicyServiceAutoscalingPolicyServiceClient

The underlying gRPC client.

settingsAutoscalingPolicyServiceSettings

The base AutoscalingPolicyServiceSettings used within this client.

loggerILogger

Optional ILogger to use within this client.

Properties

GrpcClient

public override AutoscalingPolicyService.AutoscalingPolicyServiceClient GrpcClient { get; }

The underlying gRPC AutoscalingPolicyService client

Property Value
TypeDescription
AutoscalingPolicyServiceAutoscalingPolicyServiceClient
Overrides

IAMPolicyClient

public override IAMPolicyClient IAMPolicyClient { get; }

The IAMPolicyClient associated with this client.

Property Value
TypeDescription
IAMPolicyClient
Overrides

Methods

CreateAutoscalingPolicy(CreateAutoscalingPolicyRequest, CallSettings)

public override AutoscalingPolicy CreateAutoscalingPolicy(CreateAutoscalingPolicyRequest request, CallSettings callSettings = null)

Creates new autoscaling policy.

Parameters
NameDescription
requestCreateAutoscalingPolicyRequest

The request object containing all of the parameters for the API call.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
AutoscalingPolicy

The RPC response.

Overrides

CreateAutoscalingPolicyAsync(CreateAutoscalingPolicyRequest, CallSettings)

public override Task<AutoscalingPolicy> CreateAutoscalingPolicyAsync(CreateAutoscalingPolicyRequest request, CallSettings callSettings = null)

Creates new autoscaling policy.

Parameters
NameDescription
requestCreateAutoscalingPolicyRequest

The request object containing all of the parameters for the API call.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
TaskAutoscalingPolicy

A Task containing the RPC response.

Overrides

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
NameDescription
requestDeleteAutoscalingPolicyRequest

The request object containing all of the parameters for the API call.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Overrides

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
NameDescription
requestDeleteAutoscalingPolicyRequest

The request object containing all of the parameters for the API call.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Task

A Task containing the RPC response.

Overrides

GetAutoscalingPolicy(GetAutoscalingPolicyRequest, CallSettings)

public override AutoscalingPolicy GetAutoscalingPolicy(GetAutoscalingPolicyRequest request, CallSettings callSettings = null)

Retrieves autoscaling policy.

Parameters
NameDescription
requestGetAutoscalingPolicyRequest

The request object containing all of the parameters for the API call.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
AutoscalingPolicy

The RPC response.

Overrides

GetAutoscalingPolicyAsync(GetAutoscalingPolicyRequest, CallSettings)

public override Task<AutoscalingPolicy> GetAutoscalingPolicyAsync(GetAutoscalingPolicyRequest request, CallSettings callSettings = null)

Retrieves autoscaling policy.

Parameters
NameDescription
requestGetAutoscalingPolicyRequest

The request object containing all of the parameters for the API call.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
TaskAutoscalingPolicy

A Task containing the RPC response.

Overrides

ListAutoscalingPolicies(ListAutoscalingPoliciesRequest, CallSettings)

public override PagedEnumerable<ListAutoscalingPoliciesResponse, AutoscalingPolicy> ListAutoscalingPolicies(ListAutoscalingPoliciesRequest request, CallSettings callSettings = null)

Lists autoscaling policies in the project.

Parameters
NameDescription
requestListAutoscalingPoliciesRequest

The request object containing all of the parameters for the API call.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
PagedEnumerableListAutoscalingPoliciesResponseAutoscalingPolicy

A pageable sequence of AutoscalingPolicy resources.

Overrides

ListAutoscalingPoliciesAsync(ListAutoscalingPoliciesRequest, CallSettings)

public override PagedAsyncEnumerable<ListAutoscalingPoliciesResponse, AutoscalingPolicy> ListAutoscalingPoliciesAsync(ListAutoscalingPoliciesRequest request, CallSettings callSettings = null)

Lists autoscaling policies in the project.

Parameters
NameDescription
requestListAutoscalingPoliciesRequest

The request object containing all of the parameters for the API call.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
PagedAsyncEnumerableListAutoscalingPoliciesResponseAutoscalingPolicy

A pageable asynchronous sequence of AutoscalingPolicy resources.

Overrides

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
NameDescription
requestUpdateAutoscalingPolicyRequest

The request object containing all of the parameters for the API call.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
AutoscalingPolicy

The RPC response.

Overrides

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
NameDescription
requestUpdateAutoscalingPolicyRequest

The request object containing all of the parameters for the API call.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
TaskAutoscalingPolicy

A Task containing the RPC response.

Overrides