Represents an AutoscalingPolicyService
Inheritance
$protobuf.rpc.Service > protos.google.cloud.dataproc.v1beta2.AutoscalingPolicyServicePackage
@google-cloud/dataproc!Constructors
(constructor)(rpcImpl, requestDelimited, responseDelimited)
constructor(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean);
Constructs a new AutoscalingPolicyService service.
Type | Name | Description |
---|---|---|
$protobuf.RPCImpl | rpcImpl |
RPC implementation |
boolean | requestDelimited |
Whether requests are length-delimited |
boolean | responseDelimited |
Whether responses are length-delimited |
Methods
create(rpcImpl, requestDelimited, responseDelimited)
public static create(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean): AutoscalingPolicyService;
Creates new AutoscalingPolicyService service using the specified rpc implementation.
Type | Name | Description |
---|---|---|
$protobuf.RPCImpl | rpcImpl |
RPC implementation |
boolean | requestDelimited |
Whether requests are length-delimited |
boolean | responseDelimited |
Whether responses are length-delimited |
Type | Description |
---|---|
AutoscalingPolicyService | RPC service. Useful where requests and/or responses are streamed. |
createAutoscalingPolicy(request, callback)
public createAutoscalingPolicy(request: google.cloud.dataproc.v1beta2.ICreateAutoscalingPolicyRequest, callback: google.cloud.dataproc.v1beta2.AutoscalingPolicyService.CreateAutoscalingPolicyCallback): void;
Calls CreateAutoscalingPolicy.
Type | Name | Description |
---|---|---|
google.cloud.dataproc.v1beta2.ICreateAutoscalingPolicyRequest | request |
CreateAutoscalingPolicyRequest message or plain object |
google.cloud.dataproc.v1beta2.AutoscalingPolicyService.CreateAutoscalingPolicyCallback | callback |
Node-style callback called with the error, if any, and AutoscalingPolicy |
Type | Description |
---|---|
void |
createAutoscalingPolicy(request)
public createAutoscalingPolicy(request: google.cloud.dataproc.v1beta2.ICreateAutoscalingPolicyRequest): Promise<google.cloud.dataproc.v1beta2.AutoscalingPolicy>;
Calls CreateAutoscalingPolicy.
Type | Name | Description |
---|---|---|
google.cloud.dataproc.v1beta2.ICreateAutoscalingPolicyRequest | request |
CreateAutoscalingPolicyRequest message or plain object |
Type | Description |
---|---|
Promise<google.cloud.dataproc.v1beta2.AutoscalingPolicy> | Promise |
deleteAutoscalingPolicy(request, callback)
public deleteAutoscalingPolicy(request: google.cloud.dataproc.v1beta2.IDeleteAutoscalingPolicyRequest, callback: google.cloud.dataproc.v1beta2.AutoscalingPolicyService.DeleteAutoscalingPolicyCallback): void;
Calls DeleteAutoscalingPolicy.
Type | Name | Description |
---|---|---|
IDeleteAutoscalingPolicyRequest | request |
DeleteAutoscalingPolicyRequest message or plain object |
google.cloud.dataproc.v1beta2.AutoscalingPolicyService.DeleteAutoscalingPolicyCallback | callback |
Node-style callback called with the error, if any, and Empty |
Type | Description |
---|---|
void |
deleteAutoscalingPolicy(request)
public deleteAutoscalingPolicy(request: google.cloud.dataproc.v1beta2.IDeleteAutoscalingPolicyRequest): Promise<google.protobuf.Empty>;
Calls DeleteAutoscalingPolicy.
Type | Name | Description |
---|---|---|
IDeleteAutoscalingPolicyRequest | request |
DeleteAutoscalingPolicyRequest message or plain object |
Type | Description |
---|---|
Promise<google.protobuf.Empty> | Promise |
getAutoscalingPolicy(request, callback)
public getAutoscalingPolicy(request: google.cloud.dataproc.v1beta2.IGetAutoscalingPolicyRequest, callback: google.cloud.dataproc.v1beta2.AutoscalingPolicyService.GetAutoscalingPolicyCallback): void;
Calls GetAutoscalingPolicy.
Type | Name | Description |
---|---|---|
google.cloud.dataproc.v1beta2.IGetAutoscalingPolicyRequest | request |
GetAutoscalingPolicyRequest message or plain object |
google.cloud.dataproc.v1beta2.AutoscalingPolicyService.GetAutoscalingPolicyCallback | callback |
Node-style callback called with the error, if any, and AutoscalingPolicy |
Type | Description |
---|---|
void |
getAutoscalingPolicy(request)
public getAutoscalingPolicy(request: google.cloud.dataproc.v1beta2.IGetAutoscalingPolicyRequest): Promise<google.cloud.dataproc.v1beta2.AutoscalingPolicy>;
Calls GetAutoscalingPolicy.
Type | Name | Description |
---|---|---|
google.cloud.dataproc.v1beta2.IGetAutoscalingPolicyRequest | request |
GetAutoscalingPolicyRequest message or plain object |
Type | Description |
---|---|
Promise<google.cloud.dataproc.v1beta2.AutoscalingPolicy> | Promise |
listAutoscalingPolicies(request, callback)
public listAutoscalingPolicies(request: google.cloud.dataproc.v1beta2.IListAutoscalingPoliciesRequest, callback: google.cloud.dataproc.v1beta2.AutoscalingPolicyService.ListAutoscalingPoliciesCallback): void;
Calls ListAutoscalingPolicies.
Type | Name | Description |
---|---|---|
google.cloud.dataproc.v1beta2.IListAutoscalingPoliciesRequest | request |
ListAutoscalingPoliciesRequest message or plain object |
google.cloud.dataproc.v1beta2.AutoscalingPolicyService.ListAutoscalingPoliciesCallback | callback |
Node-style callback called with the error, if any, and ListAutoscalingPoliciesResponse |
Type | Description |
---|---|
void |
listAutoscalingPolicies(request)
public listAutoscalingPolicies(request: google.cloud.dataproc.v1beta2.IListAutoscalingPoliciesRequest): Promise<google.cloud.dataproc.v1beta2.ListAutoscalingPoliciesResponse>;
Calls ListAutoscalingPolicies.
Type | Name | Description |
---|---|---|
google.cloud.dataproc.v1beta2.IListAutoscalingPoliciesRequest | request |
ListAutoscalingPoliciesRequest message or plain object |
Type | Description |
---|---|
Promise<google.cloud.dataproc.v1beta2.ListAutoscalingPoliciesResponse> | Promise |
updateAutoscalingPolicy(request, callback)
public updateAutoscalingPolicy(request: google.cloud.dataproc.v1beta2.IUpdateAutoscalingPolicyRequest, callback: google.cloud.dataproc.v1beta2.AutoscalingPolicyService.UpdateAutoscalingPolicyCallback): void;
Calls UpdateAutoscalingPolicy.
Type | Name | Description |
---|---|---|
IUpdateAutoscalingPolicyRequest | request |
UpdateAutoscalingPolicyRequest message or plain object |
google.cloud.dataproc.v1beta2.AutoscalingPolicyService.UpdateAutoscalingPolicyCallback | callback |
Node-style callback called with the error, if any, and AutoscalingPolicy |
Type | Description |
---|---|
void |
updateAutoscalingPolicy(request)
public updateAutoscalingPolicy(request: google.cloud.dataproc.v1beta2.IUpdateAutoscalingPolicyRequest): Promise<google.cloud.dataproc.v1beta2.AutoscalingPolicy>;
Calls UpdateAutoscalingPolicy.
Type | Name | Description |
---|---|---|
IUpdateAutoscalingPolicyRequest | request |
UpdateAutoscalingPolicyRequest message or plain object |
Type | Description |
---|---|
Promise<google.cloud.dataproc.v1beta2.AutoscalingPolicy> | Promise |