Class protos.google.cloud.dataproc.v1.AutoscalingPolicyService (5.5.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
NameDescription
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
NameDescription
rpcImpl $protobuf.RPCImpl

RPC implementation

requestDelimited boolean

Whether requests are length-delimited

responseDelimited boolean

Whether responses are length-delimited

Returns
TypeDescription
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
NameDescription
request ICreateAutoscalingPolicyRequest

CreateAutoscalingPolicyRequest message or plain object

callback CreateAutoscalingPolicyCallback

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

Returns
TypeDescription
void

createAutoscalingPolicy(request)

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

Calls CreateAutoscalingPolicy.

Parameter
NameDescription
request ICreateAutoscalingPolicyRequest

CreateAutoscalingPolicyRequest message or plain object

Returns
TypeDescription
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
NameDescription
request IDeleteAutoscalingPolicyRequest

DeleteAutoscalingPolicyRequest message or plain object

callback DeleteAutoscalingPolicyCallback

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

Returns
TypeDescription
void

deleteAutoscalingPolicy(request)

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

Calls DeleteAutoscalingPolicy.

Parameter
NameDescription
request IDeleteAutoscalingPolicyRequest

DeleteAutoscalingPolicyRequest message or plain object

Returns
TypeDescription
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
NameDescription
request IGetAutoscalingPolicyRequest

GetAutoscalingPolicyRequest message or plain object

callback GetAutoscalingPolicyCallback

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

Returns
TypeDescription
void

getAutoscalingPolicy(request)

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

Calls GetAutoscalingPolicy.

Parameter
NameDescription
request IGetAutoscalingPolicyRequest

GetAutoscalingPolicyRequest message or plain object

Returns
TypeDescription
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
NameDescription
request IListAutoscalingPoliciesRequest

ListAutoscalingPoliciesRequest message or plain object

callback ListAutoscalingPoliciesCallback

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

Returns
TypeDescription
void

listAutoscalingPolicies(request)

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

Calls ListAutoscalingPolicies.

Parameter
NameDescription
request IListAutoscalingPoliciesRequest

ListAutoscalingPoliciesRequest message or plain object

Returns
TypeDescription
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
NameDescription
request IUpdateAutoscalingPolicyRequest

UpdateAutoscalingPolicyRequest message or plain object

callback UpdateAutoscalingPolicyCallback

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

Returns
TypeDescription
void

updateAutoscalingPolicy(request)

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

Calls UpdateAutoscalingPolicy.

Parameter
NameDescription
request IUpdateAutoscalingPolicyRequest

UpdateAutoscalingPolicyRequest message or plain object

Returns
TypeDescription
Promise<google.cloud.dataproc.v1.AutoscalingPolicy>

Promise