Constructor
new AutoscalingPolicyService(rpcImpl, requestDelimitedopt, responseDelimitedopt)
Constructs a new AutoscalingPolicyService service.
Parameters:
Name | Type | Attributes | Default | Description |
---|---|---|---|---|
rpcImpl |
$protobuf.RPCImpl |
RPC implementation |
||
requestDelimited |
boolean |
<optional> |
false |
Whether requests are length-delimited |
responseDelimited |
boolean |
<optional> |
false |
Whether responses are length-delimited |
Extends
- $protobuf.rpc.Service
Methods
createAutoscalingPolicy(request, callback) → {undefined}
Calls CreateAutoscalingPolicy.
Parameters:
Name | Type | Description |
---|---|---|
request |
google.cloud.dataproc.v1.ICreateAutoscalingPolicyRequest |
CreateAutoscalingPolicyRequest message or plain object |
callback |
google.cloud.dataproc.v1.AutoscalingPolicyService.CreateAutoscalingPolicyCallback |
Node-style callback called with the error, if any, and AutoscalingPolicy |
Returns:
Type | Description |
---|---|
undefined |
createAutoscalingPolicy(request) → {Promise.<google.cloud.dataproc.v1.AutoscalingPolicy>}
Calls CreateAutoscalingPolicy.
Parameters:
Name | Type | Description |
---|---|---|
request |
google.cloud.dataproc.v1.ICreateAutoscalingPolicyRequest |
CreateAutoscalingPolicyRequest message or plain object |
Returns:
Type | Description |
---|---|
Promise.<google.cloud.dataproc.v1.AutoscalingPolicy> |
Promise |
deleteAutoscalingPolicy(request, callback) → {undefined}
Calls DeleteAutoscalingPolicy.
Parameters:
Name | Type | Description |
---|---|---|
request |
google.cloud.dataproc.v1.IDeleteAutoscalingPolicyRequest |
DeleteAutoscalingPolicyRequest message or plain object |
callback |
google.cloud.dataproc.v1.AutoscalingPolicyService.DeleteAutoscalingPolicyCallback |
Node-style callback called with the error, if any, and Empty |
Returns:
Type | Description |
---|---|
undefined |
deleteAutoscalingPolicy(request) → {Promise.<google.protobuf.Empty>}
Calls DeleteAutoscalingPolicy.
Parameters:
Name | Type | Description |
---|---|---|
request |
google.cloud.dataproc.v1.IDeleteAutoscalingPolicyRequest |
DeleteAutoscalingPolicyRequest message or plain object |
Returns:
Type | Description |
---|---|
Promise.<google.protobuf.Empty> |
Promise |
getAutoscalingPolicy(request, callback) → {undefined}
Calls GetAutoscalingPolicy.
Parameters:
Name | Type | Description |
---|---|---|
request |
google.cloud.dataproc.v1.IGetAutoscalingPolicyRequest |
GetAutoscalingPolicyRequest message or plain object |
callback |
google.cloud.dataproc.v1.AutoscalingPolicyService.GetAutoscalingPolicyCallback |
Node-style callback called with the error, if any, and AutoscalingPolicy |
Returns:
Type | Description |
---|---|
undefined |
getAutoscalingPolicy(request) → {Promise.<google.cloud.dataproc.v1.AutoscalingPolicy>}
Calls GetAutoscalingPolicy.
Parameters:
Name | Type | Description |
---|---|---|
request |
google.cloud.dataproc.v1.IGetAutoscalingPolicyRequest |
GetAutoscalingPolicyRequest message or plain object |
Returns:
Type | Description |
---|---|
Promise.<google.cloud.dataproc.v1.AutoscalingPolicy> |
Promise |
listAutoscalingPolicies(request, callback) → {undefined}
Calls ListAutoscalingPolicies.
Parameters:
Name | Type | Description |
---|---|---|
request |
google.cloud.dataproc.v1.IListAutoscalingPoliciesRequest |
ListAutoscalingPoliciesRequest message or plain object |
callback |
google.cloud.dataproc.v1.AutoscalingPolicyService.ListAutoscalingPoliciesCallback |
Node-style callback called with the error, if any, and ListAutoscalingPoliciesResponse |
Returns:
Type | Description |
---|---|
undefined |
listAutoscalingPolicies(request) → {Promise.<google.cloud.dataproc.v1.ListAutoscalingPoliciesResponse>}
Calls ListAutoscalingPolicies.
Parameters:
Name | Type | Description |
---|---|---|
request |
google.cloud.dataproc.v1.IListAutoscalingPoliciesRequest |
ListAutoscalingPoliciesRequest message or plain object |
Returns:
Type | Description |
---|---|
Promise.<google.cloud.dataproc.v1.ListAutoscalingPoliciesResponse> |
Promise |
updateAutoscalingPolicy(request, callback) → {undefined}
Calls UpdateAutoscalingPolicy.
Parameters:
Name | Type | Description |
---|---|---|
request |
google.cloud.dataproc.v1.IUpdateAutoscalingPolicyRequest |
UpdateAutoscalingPolicyRequest message or plain object |
callback |
google.cloud.dataproc.v1.AutoscalingPolicyService.UpdateAutoscalingPolicyCallback |
Node-style callback called with the error, if any, and AutoscalingPolicy |
Returns:
Type | Description |
---|---|
undefined |
updateAutoscalingPolicy(request) → {Promise.<google.cloud.dataproc.v1.AutoscalingPolicy>}
Calls UpdateAutoscalingPolicy.
Parameters:
Name | Type | Description |
---|---|---|
request |
google.cloud.dataproc.v1.IUpdateAutoscalingPolicyRequest |
UpdateAutoscalingPolicyRequest message or plain object |
Returns:
Type | Description |
---|---|
Promise.<google.cloud.dataproc.v1.AutoscalingPolicy> |
Promise |
(static) create(rpcImpl, requestDelimitedopt, responseDelimitedopt) → {AutoscalingPolicyService}
Creates new AutoscalingPolicyService service using the specified rpc implementation.
Parameters:
Name | Type | Attributes | Default | Description |
---|---|---|---|---|
rpcImpl |
$protobuf.RPCImpl |
RPC implementation |
||
requestDelimited |
boolean |
<optional> |
false |
Whether requests are length-delimited |
responseDelimited |
boolean |
<optional> |
false |
Whether responses are length-delimited |
Returns:
Type | Description |
---|---|
AutoscalingPolicyService |
RPC service. Useful where requests and/or responses are streamed. |
Type Definitions
CreateAutoscalingPolicyCallback(error, responseopt)
Callback as used by createAutoscalingPolicy.
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
error |
Error | null |
Error, if any |
|
response |
google.cloud.dataproc.v1.AutoscalingPolicy |
<optional> |
AutoscalingPolicy |
DeleteAutoscalingPolicyCallback(error, responseopt)
Callback as used by deleteAutoscalingPolicy.
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
error |
Error | null |
Error, if any |
|
response |
google.protobuf.Empty |
<optional> |
Empty |
GetAutoscalingPolicyCallback(error, responseopt)
Callback as used by getAutoscalingPolicy.
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
error |
Error | null |
Error, if any |
|
response |
google.cloud.dataproc.v1.AutoscalingPolicy |
<optional> |
AutoscalingPolicy |
ListAutoscalingPoliciesCallback(error, responseopt)
Callback as used by listAutoscalingPolicies.
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
error |
Error | null |
Error, if any |
|
response |
google.cloud.dataproc.v1.ListAutoscalingPoliciesResponse |
<optional> |
ListAutoscalingPoliciesResponse |
UpdateAutoscalingPolicyCallback(error, responseopt)
Callback as used by updateAutoscalingPolicy.
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
error |
Error | null |
Error, if any |
|
response |
google.cloud.dataproc.v1.AutoscalingPolicy |
<optional> |
AutoscalingPolicy |