public class AutoscalingPolicyServiceClient : ClientBase<AutoscalingPolicyService.AutoscalingPolicyServiceClient>
Reference documentation and code samples for the Google Cloud Dataproc v1 API class AutoscalingPolicyService.AutoscalingPolicyServiceClient.
Client for AutoscalingPolicyService
Inheritance
Object > ClientBase > ClientBase<AutoscalingPolicyService.AutoscalingPolicyServiceClient> > AutoscalingPolicyService.AutoscalingPolicyServiceClientNamespace
Google.Cloud.Dataproc.V1Assembly
Google.Cloud.Dataproc.V1.dll
Constructors
AutoscalingPolicyServiceClient()
protected AutoscalingPolicyServiceClient()
Protected parameterless constructor to allow creation of test doubles.
AutoscalingPolicyServiceClient(CallInvoker)
public AutoscalingPolicyServiceClient(CallInvoker callInvoker)
Creates a new client for AutoscalingPolicyService that uses a custom CallInvoker
.
Parameter | |
---|---|
Name | Description |
callInvoker | CallInvoker The callInvoker to use to make remote calls. |
AutoscalingPolicyServiceClient(ChannelBase)
public AutoscalingPolicyServiceClient(ChannelBase channel)
Creates a new client for AutoscalingPolicyService
Parameter | |
---|---|
Name | Description |
channel | ChannelBase The channel to use to make remote calls. |
AutoscalingPolicyServiceClient(ClientBase.ClientBaseConfiguration)
protected AutoscalingPolicyServiceClient(ClientBase.ClientBaseConfiguration configuration)
Protected constructor to allow creation of configured clients.
Parameter | |
---|---|
Name | Description |
configuration | ClientBase.ClientBaseConfiguration The client configuration. |
Methods
CreateAutoscalingPolicy(CreateAutoscalingPolicyRequest, CallOptions)
public virtual AutoscalingPolicy CreateAutoscalingPolicy(CreateAutoscalingPolicyRequest request, CallOptions options)
Creates new autoscaling policy.
Parameters | |
---|---|
Name | Description |
request | CreateAutoscalingPolicyRequest The request to send to the server. |
options | CallOptions The options for the call. |
Returns | |
---|---|
Type | Description |
AutoscalingPolicy | The response received from the server. |
CreateAutoscalingPolicy(CreateAutoscalingPolicyRequest, Metadata, Nullable<DateTime>, CancellationToken)
public virtual AutoscalingPolicy CreateAutoscalingPolicy(CreateAutoscalingPolicyRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default(CancellationToken))
Creates new autoscaling policy.
Parameters | |
---|---|
Name | Description |
request | CreateAutoscalingPolicyRequest The request to send to the server. |
headers | Metadata The initial metadata to send with the call. This parameter is optional. |
deadline | Nullable<DateTime> An optional deadline for the call. The call will be cancelled if deadline is hit. |
cancellationToken | CancellationToken An optional token for canceling the call. |
Returns | |
---|---|
Type | Description |
AutoscalingPolicy | The response received from the server. |
CreateAutoscalingPolicyAsync(CreateAutoscalingPolicyRequest, CallOptions)
public virtual AsyncUnaryCall<AutoscalingPolicy> CreateAutoscalingPolicyAsync(CreateAutoscalingPolicyRequest request, CallOptions options)
Creates new autoscaling policy.
Parameters | |
---|---|
Name | Description |
request | CreateAutoscalingPolicyRequest The request to send to the server. |
options | CallOptions The options for the call. |
Returns | |
---|---|
Type | Description |
AsyncUnaryCall<AutoscalingPolicy> | The call object. |
CreateAutoscalingPolicyAsync(CreateAutoscalingPolicyRequest, Metadata, Nullable<DateTime>, CancellationToken)
public virtual AsyncUnaryCall<AutoscalingPolicy> CreateAutoscalingPolicyAsync(CreateAutoscalingPolicyRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default(CancellationToken))
Creates new autoscaling policy.
Parameters | |
---|---|
Name | Description |
request | CreateAutoscalingPolicyRequest The request to send to the server. |
headers | Metadata The initial metadata to send with the call. This parameter is optional. |
deadline | Nullable<DateTime> An optional deadline for the call. The call will be cancelled if deadline is hit. |
cancellationToken | CancellationToken An optional token for canceling the call. |
Returns | |
---|---|
Type | Description |
AsyncUnaryCall<AutoscalingPolicy> | The call object. |
DeleteAutoscalingPolicy(DeleteAutoscalingPolicyRequest, CallOptions)
public virtual Empty DeleteAutoscalingPolicy(DeleteAutoscalingPolicyRequest request, CallOptions options)
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 to send to the server. |
options | CallOptions The options for the call. |
Returns | |
---|---|
Type | Description |
Empty | The response received from the server. |
DeleteAutoscalingPolicy(DeleteAutoscalingPolicyRequest, Metadata, Nullable<DateTime>, CancellationToken)
public virtual Empty DeleteAutoscalingPolicy(DeleteAutoscalingPolicyRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default(CancellationToken))
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 to send to the server. |
headers | Metadata The initial metadata to send with the call. This parameter is optional. |
deadline | Nullable<DateTime> An optional deadline for the call. The call will be cancelled if deadline is hit. |
cancellationToken | CancellationToken An optional token for canceling the call. |
Returns | |
---|---|
Type | Description |
Empty | The response received from the server. |
DeleteAutoscalingPolicyAsync(DeleteAutoscalingPolicyRequest, CallOptions)
public virtual AsyncUnaryCall<Empty> DeleteAutoscalingPolicyAsync(DeleteAutoscalingPolicyRequest request, CallOptions options)
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 to send to the server. |
options | CallOptions The options for the call. |
Returns | |
---|---|
Type | Description |
AsyncUnaryCall<Empty> | The call object. |
DeleteAutoscalingPolicyAsync(DeleteAutoscalingPolicyRequest, Metadata, Nullable<DateTime>, CancellationToken)
public virtual AsyncUnaryCall<Empty> DeleteAutoscalingPolicyAsync(DeleteAutoscalingPolicyRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default(CancellationToken))
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 to send to the server. |
headers | Metadata The initial metadata to send with the call. This parameter is optional. |
deadline | Nullable<DateTime> An optional deadline for the call. The call will be cancelled if deadline is hit. |
cancellationToken | CancellationToken An optional token for canceling the call. |
Returns | |
---|---|
Type | Description |
AsyncUnaryCall<Empty> | The call object. |
GetAutoscalingPolicy(GetAutoscalingPolicyRequest, CallOptions)
public virtual AutoscalingPolicy GetAutoscalingPolicy(GetAutoscalingPolicyRequest request, CallOptions options)
Retrieves autoscaling policy.
Parameters | |
---|---|
Name | Description |
request | GetAutoscalingPolicyRequest The request to send to the server. |
options | CallOptions The options for the call. |
Returns | |
---|---|
Type | Description |
AutoscalingPolicy | The response received from the server. |
GetAutoscalingPolicy(GetAutoscalingPolicyRequest, Metadata, Nullable<DateTime>, CancellationToken)
public virtual AutoscalingPolicy GetAutoscalingPolicy(GetAutoscalingPolicyRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default(CancellationToken))
Retrieves autoscaling policy.
Parameters | |
---|---|
Name | Description |
request | GetAutoscalingPolicyRequest The request to send to the server. |
headers | Metadata The initial metadata to send with the call. This parameter is optional. |
deadline | Nullable<DateTime> An optional deadline for the call. The call will be cancelled if deadline is hit. |
cancellationToken | CancellationToken An optional token for canceling the call. |
Returns | |
---|---|
Type | Description |
AutoscalingPolicy | The response received from the server. |
GetAutoscalingPolicyAsync(GetAutoscalingPolicyRequest, CallOptions)
public virtual AsyncUnaryCall<AutoscalingPolicy> GetAutoscalingPolicyAsync(GetAutoscalingPolicyRequest request, CallOptions options)
Retrieves autoscaling policy.
Parameters | |
---|---|
Name | Description |
request | GetAutoscalingPolicyRequest The request to send to the server. |
options | CallOptions The options for the call. |
Returns | |
---|---|
Type | Description |
AsyncUnaryCall<AutoscalingPolicy> | The call object. |
GetAutoscalingPolicyAsync(GetAutoscalingPolicyRequest, Metadata, Nullable<DateTime>, CancellationToken)
public virtual AsyncUnaryCall<AutoscalingPolicy> GetAutoscalingPolicyAsync(GetAutoscalingPolicyRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default(CancellationToken))
Retrieves autoscaling policy.
Parameters | |
---|---|
Name | Description |
request | GetAutoscalingPolicyRequest The request to send to the server. |
headers | Metadata The initial metadata to send with the call. This parameter is optional. |
deadline | Nullable<DateTime> An optional deadline for the call. The call will be cancelled if deadline is hit. |
cancellationToken | CancellationToken An optional token for canceling the call. |
Returns | |
---|---|
Type | Description |
AsyncUnaryCall<AutoscalingPolicy> | The call object. |
ListAutoscalingPolicies(ListAutoscalingPoliciesRequest, CallOptions)
public virtual ListAutoscalingPoliciesResponse ListAutoscalingPolicies(ListAutoscalingPoliciesRequest request, CallOptions options)
Lists autoscaling policies in the project.
Parameters | |
---|---|
Name | Description |
request | ListAutoscalingPoliciesRequest The request to send to the server. |
options | CallOptions The options for the call. |
Returns | |
---|---|
Type | Description |
ListAutoscalingPoliciesResponse | The response received from the server. |
ListAutoscalingPolicies(ListAutoscalingPoliciesRequest, Metadata, Nullable<DateTime>, CancellationToken)
public virtual ListAutoscalingPoliciesResponse ListAutoscalingPolicies(ListAutoscalingPoliciesRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default(CancellationToken))
Lists autoscaling policies in the project.
Parameters | |
---|---|
Name | Description |
request | ListAutoscalingPoliciesRequest The request to send to the server. |
headers | Metadata The initial metadata to send with the call. This parameter is optional. |
deadline | Nullable<DateTime> An optional deadline for the call. The call will be cancelled if deadline is hit. |
cancellationToken | CancellationToken An optional token for canceling the call. |
Returns | |
---|---|
Type | Description |
ListAutoscalingPoliciesResponse | The response received from the server. |
ListAutoscalingPoliciesAsync(ListAutoscalingPoliciesRequest, CallOptions)
public virtual AsyncUnaryCall<ListAutoscalingPoliciesResponse> ListAutoscalingPoliciesAsync(ListAutoscalingPoliciesRequest request, CallOptions options)
Lists autoscaling policies in the project.
Parameters | |
---|---|
Name | Description |
request | ListAutoscalingPoliciesRequest The request to send to the server. |
options | CallOptions The options for the call. |
Returns | |
---|---|
Type | Description |
AsyncUnaryCall<ListAutoscalingPoliciesResponse> | The call object. |
ListAutoscalingPoliciesAsync(ListAutoscalingPoliciesRequest, Metadata, Nullable<DateTime>, CancellationToken)
public virtual AsyncUnaryCall<ListAutoscalingPoliciesResponse> ListAutoscalingPoliciesAsync(ListAutoscalingPoliciesRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default(CancellationToken))
Lists autoscaling policies in the project.
Parameters | |
---|---|
Name | Description |
request | ListAutoscalingPoliciesRequest The request to send to the server. |
headers | Metadata The initial metadata to send with the call. This parameter is optional. |
deadline | Nullable<DateTime> An optional deadline for the call. The call will be cancelled if deadline is hit. |
cancellationToken | CancellationToken An optional token for canceling the call. |
Returns | |
---|---|
Type | Description |
AsyncUnaryCall<ListAutoscalingPoliciesResponse> | The call object. |
NewInstance(ClientBase.ClientBaseConfiguration)
protected override AutoscalingPolicyService.AutoscalingPolicyServiceClient NewInstance(ClientBase.ClientBaseConfiguration configuration)
Creates a new instance of client from given ClientBaseConfiguration
.
Parameter | |
---|---|
Name | Description |
configuration | ClientBase.ClientBaseConfiguration |
Returns | |
---|---|
Type | Description |
AutoscalingPolicyService.AutoscalingPolicyServiceClient |
UpdateAutoscalingPolicy(UpdateAutoscalingPolicyRequest, CallOptions)
public virtual AutoscalingPolicy UpdateAutoscalingPolicy(UpdateAutoscalingPolicyRequest request, CallOptions options)
Updates (replaces) autoscaling policy.
Disabled check for update_mask, because all updates will be full replacements.
Parameters | |
---|---|
Name | Description |
request | UpdateAutoscalingPolicyRequest The request to send to the server. |
options | CallOptions The options for the call. |
Returns | |
---|---|
Type | Description |
AutoscalingPolicy | The response received from the server. |
UpdateAutoscalingPolicy(UpdateAutoscalingPolicyRequest, Metadata, Nullable<DateTime>, CancellationToken)
public virtual AutoscalingPolicy UpdateAutoscalingPolicy(UpdateAutoscalingPolicyRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default(CancellationToken))
Updates (replaces) autoscaling policy.
Disabled check for update_mask, because all updates will be full replacements.
Parameters | |
---|---|
Name | Description |
request | UpdateAutoscalingPolicyRequest The request to send to the server. |
headers | Metadata The initial metadata to send with the call. This parameter is optional. |
deadline | Nullable<DateTime> An optional deadline for the call. The call will be cancelled if deadline is hit. |
cancellationToken | CancellationToken An optional token for canceling the call. |
Returns | |
---|---|
Type | Description |
AutoscalingPolicy | The response received from the server. |
UpdateAutoscalingPolicyAsync(UpdateAutoscalingPolicyRequest, CallOptions)
public virtual AsyncUnaryCall<AutoscalingPolicy> UpdateAutoscalingPolicyAsync(UpdateAutoscalingPolicyRequest request, CallOptions options)
Updates (replaces) autoscaling policy.
Disabled check for update_mask, because all updates will be full replacements.
Parameters | |
---|---|
Name | Description |
request | UpdateAutoscalingPolicyRequest The request to send to the server. |
options | CallOptions The options for the call. |
Returns | |
---|---|
Type | Description |
AsyncUnaryCall<AutoscalingPolicy> | The call object. |
UpdateAutoscalingPolicyAsync(UpdateAutoscalingPolicyRequest, Metadata, Nullable<DateTime>, CancellationToken)
public virtual AsyncUnaryCall<AutoscalingPolicy> UpdateAutoscalingPolicyAsync(UpdateAutoscalingPolicyRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default(CancellationToken))
Updates (replaces) autoscaling policy.
Disabled check for update_mask, because all updates will be full replacements.
Parameters | |
---|---|
Name | Description |
request | UpdateAutoscalingPolicyRequest The request to send to the server. |
headers | Metadata The initial metadata to send with the call. This parameter is optional. |
deadline | Nullable<DateTime> An optional deadline for the call. The call will be cancelled if deadline is hit. |
cancellationToken | CancellationToken An optional token for canceling the call. |
Returns | |
---|---|
Type | Description |
AsyncUnaryCall<AutoscalingPolicy> | The call object. |