AutoscalingPolicyService

google.cloud.dataproc.v1. AutoscalingPolicyService

Represents an AutoscalingPolicyService

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

(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

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

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

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

deleteAutoscalingPolicy(request) → {Promise.<google.protobuf.Empty>}

Calls DeleteAutoscalingPolicy.

Parameters:
Name Type Description
request google.cloud.dataproc.v1.IDeleteAutoscalingPolicyRequest

DeleteAutoscalingPolicyRequest message or plain object

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

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

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

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

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

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

Type Definitions

CreateAutoscalingPolicyCallback(error, responseopt)

Callback as used by google.cloud.dataproc.v1.AutoscalingPolicyService#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 google.cloud.dataproc.v1.AutoscalingPolicyService#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 google.cloud.dataproc.v1.AutoscalingPolicyService#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 google.cloud.dataproc.v1.AutoscalingPolicyService#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 google.cloud.dataproc.v1.AutoscalingPolicyService#updateAutoscalingPolicy.

Parameters:
Name Type Attributes Description
error Error | null

Error, if any

response google.cloud.dataproc.v1.AutoscalingPolicy <optional>

AutoscalingPolicy