Class AutoscalingPolicyServiceClientImpl (3.1.0)

public sealed class AutoscalingPolicyServiceClientImpl : AutoscalingPolicyServiceClient

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(AutoscalingPolicyService.AutoscalingPolicyServiceClient, AutoscalingPolicyServiceSettings)

public AutoscalingPolicyServiceClientImpl(AutoscalingPolicyService.AutoscalingPolicyServiceClient grpcClient, AutoscalingPolicyServiceSettings settings)

Constructs a client wrapper for the AutoscalingPolicyService service, with the specified gRPC client and settings.

Parameters
NameDescription
grpcClientAutoscalingPolicyService.AutoscalingPolicyServiceClient

The underlying gRPC client.

settingsAutoscalingPolicyServiceSettings

The base AutoscalingPolicyServiceSettings used within this client.

Properties

GrpcClient

public override AutoscalingPolicyService.AutoscalingPolicyServiceClient GrpcClient { get; }

The underlying gRPC AutoscalingPolicyService client

Property Value
TypeDescription
AutoscalingPolicyService.AutoscalingPolicyServiceClient
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
Task<AutoscalingPolicy>

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
Task<AutoscalingPolicy>

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
PagedEnumerable<ListAutoscalingPoliciesResponse, AutoscalingPolicy>

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
PagedAsyncEnumerable<ListAutoscalingPoliciesResponse, AutoscalingPolicy>

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
Task<AutoscalingPolicy>

A Task containing the RPC response.

Overrides