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.
Name | Description |
rpcImpl |
$protobuf.RPCImpl
RPC implementation |
requestDelimited |
boolean
Whether requests are length-delimited |
responseDelimited |
boolean
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.
Name | Description |
rpcImpl |
$protobuf.RPCImpl
RPC implementation |
requestDelimited |
boolean
Whether requests are length-delimited |
responseDelimited |
boolean
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.
Name | Description |
request |
google.cloud.dataproc.v1beta2.ICreateAutoscalingPolicyRequest
CreateAutoscalingPolicyRequest message or plain object |
callback |
google.cloud.dataproc.v1beta2.AutoscalingPolicyService.CreateAutoscalingPolicyCallback
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.
Name | Description |
request |
google.cloud.dataproc.v1beta2.ICreateAutoscalingPolicyRequest
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.
Name | Description |
request |
IDeleteAutoscalingPolicyRequest
DeleteAutoscalingPolicyRequest message or plain object |
callback |
google.cloud.dataproc.v1beta2.AutoscalingPolicyService.DeleteAutoscalingPolicyCallback
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.
Name | Description |
request |
IDeleteAutoscalingPolicyRequest
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.
Name | Description |
request |
IGetAutoscalingPolicyRequest
GetAutoscalingPolicyRequest message or plain object |
callback |
google.cloud.dataproc.v1beta2.AutoscalingPolicyService.GetAutoscalingPolicyCallback
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.
Name | Description |
request |
IGetAutoscalingPolicyRequest
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.
Name | Description |
request |
IListAutoscalingPoliciesRequest
ListAutoscalingPoliciesRequest message or plain object |
callback |
google.cloud.dataproc.v1beta2.AutoscalingPolicyService.ListAutoscalingPoliciesCallback
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.
Name | Description |
request |
IListAutoscalingPoliciesRequest
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.
Name | Description |
request |
IUpdateAutoscalingPolicyRequest
UpdateAutoscalingPolicyRequest message or plain object |
callback |
google.cloud.dataproc.v1beta2.AutoscalingPolicyService.UpdateAutoscalingPolicyCallback
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.
Name | Description |
request |
IUpdateAutoscalingPolicyRequest
UpdateAutoscalingPolicyRequest message or plain object |
Type | Description |
Promise<google.cloud.dataproc.v1beta2.AutoscalingPolicy> | Promise |