Class protos.google.cloud.dataproc.v1.AutoscalingPolicyService (5.9.0)

Represents an AutoscalingPolicyService

Inheritance

$protobuf.rpc.Service > protos.google.cloud.dataproc.v1.AutoscalingPolicyService

Package

@google-cloud/dataproc

Constructors

(constructor)(rpcImpl, requestDelimited, responseDelimited)

constructor(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean);

Constructs a new AutoscalingPolicyService service.

Parameters
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.

Parameters
Name Description
rpcImpl $protobuf.RPCImpl

RPC implementation

requestDelimited boolean

Whether requests are length-delimited

responseDelimited boolean

Whether responses are length-delimited

Returns
Type Description
AutoscalingPolicyService

RPC service. Useful where requests and/or responses are streamed.

createAutoscalingPolicy(request, callback)

public createAutoscalingPolicy(request: google.cloud.dataproc.v1.ICreateAutoscalingPolicyRequest, callback: google.cloud.dataproc.v1.AutoscalingPolicyService.CreateAutoscalingPolicyCallback): void;

Calls CreateAutoscalingPolicy.

Parameters
Name Description
request ICreateAutoscalingPolicyRequest

CreateAutoscalingPolicyRequest message or plain object

callback CreateAutoscalingPolicyCallback

Node-style callback called with the error, if any, and AutoscalingPolicy

Returns
Type Description
void

createAutoscalingPolicy(request)

public createAutoscalingPolicy(request: google.cloud.dataproc.v1.ICreateAutoscalingPolicyRequest): Promise<google.cloud.dataproc.v1.AutoscalingPolicy>;

Calls CreateAutoscalingPolicy.

Parameter
Name Description
request ICreateAutoscalingPolicyRequest

CreateAutoscalingPolicyRequest message or plain object

Returns
Type Description
Promise<google.cloud.dataproc.v1.AutoscalingPolicy>

Promise

deleteAutoscalingPolicy(request, callback)

public deleteAutoscalingPolicy(request: google.cloud.dataproc.v1.IDeleteAutoscalingPolicyRequest, callback: google.cloud.dataproc.v1.AutoscalingPolicyService.DeleteAutoscalingPolicyCallback): void;

Calls DeleteAutoscalingPolicy.

Parameters
Name Description
request IDeleteAutoscalingPolicyRequest

DeleteAutoscalingPolicyRequest message or plain object

callback DeleteAutoscalingPolicyCallback

Node-style callback called with the error, if any, and Empty

Returns
Type Description
void

deleteAutoscalingPolicy(request)

public deleteAutoscalingPolicy(request: google.cloud.dataproc.v1.IDeleteAutoscalingPolicyRequest): Promise<google.protobuf.Empty>;

Calls DeleteAutoscalingPolicy.

Parameter
Name Description
request IDeleteAutoscalingPolicyRequest

DeleteAutoscalingPolicyRequest message or plain object

Returns
Type Description
Promise<google.protobuf.Empty>

Promise

getAutoscalingPolicy(request, callback)

public getAutoscalingPolicy(request: google.cloud.dataproc.v1.IGetAutoscalingPolicyRequest, callback: google.cloud.dataproc.v1.AutoscalingPolicyService.GetAutoscalingPolicyCallback): void;

Calls GetAutoscalingPolicy.

Parameters
Name Description
request IGetAutoscalingPolicyRequest

GetAutoscalingPolicyRequest message or plain object

callback GetAutoscalingPolicyCallback

Node-style callback called with the error, if any, and AutoscalingPolicy

Returns
Type Description
void

getAutoscalingPolicy(request)

public getAutoscalingPolicy(request: google.cloud.dataproc.v1.IGetAutoscalingPolicyRequest): Promise<google.cloud.dataproc.v1.AutoscalingPolicy>;

Calls GetAutoscalingPolicy.

Parameter
Name Description
request IGetAutoscalingPolicyRequest

GetAutoscalingPolicyRequest message or plain object

Returns
Type Description
Promise<google.cloud.dataproc.v1.AutoscalingPolicy>

Promise

listAutoscalingPolicies(request, callback)

public listAutoscalingPolicies(request: google.cloud.dataproc.v1.IListAutoscalingPoliciesRequest, callback: google.cloud.dataproc.v1.AutoscalingPolicyService.ListAutoscalingPoliciesCallback): void;

Calls ListAutoscalingPolicies.

Parameters
Name Description
request IListAutoscalingPoliciesRequest

ListAutoscalingPoliciesRequest message or plain object

callback ListAutoscalingPoliciesCallback

Node-style callback called with the error, if any, and ListAutoscalingPoliciesResponse

Returns
Type Description
void

listAutoscalingPolicies(request)

public listAutoscalingPolicies(request: google.cloud.dataproc.v1.IListAutoscalingPoliciesRequest): Promise<google.cloud.dataproc.v1.ListAutoscalingPoliciesResponse>;

Calls ListAutoscalingPolicies.

Parameter
Name Description
request IListAutoscalingPoliciesRequest

ListAutoscalingPoliciesRequest message or plain object

Returns
Type Description
Promise<google.cloud.dataproc.v1.ListAutoscalingPoliciesResponse>

Promise

updateAutoscalingPolicy(request, callback)

public updateAutoscalingPolicy(request: google.cloud.dataproc.v1.IUpdateAutoscalingPolicyRequest, callback: google.cloud.dataproc.v1.AutoscalingPolicyService.UpdateAutoscalingPolicyCallback): void;

Calls UpdateAutoscalingPolicy.

Parameters
Name Description
request IUpdateAutoscalingPolicyRequest

UpdateAutoscalingPolicyRequest message or plain object

callback UpdateAutoscalingPolicyCallback

Node-style callback called with the error, if any, and AutoscalingPolicy

Returns
Type Description
void

updateAutoscalingPolicy(request)

public updateAutoscalingPolicy(request: google.cloud.dataproc.v1.IUpdateAutoscalingPolicyRequest): Promise<google.cloud.dataproc.v1.AutoscalingPolicy>;

Calls UpdateAutoscalingPolicy.

Parameter
Name Description
request IUpdateAutoscalingPolicyRequest

UpdateAutoscalingPolicyRequest message or plain object

Returns
Type Description
Promise<google.cloud.dataproc.v1.AutoscalingPolicy>

Promise