Represents a NodeGroupController
Inheritance
$protobuf.rpc.Service > protos.google.cloud.dataproc.v1.NodeGroupControllerPackage
@google-cloud/dataprocConstructors
(constructor)(rpcImpl, requestDelimited, responseDelimited)
constructor(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean);
Constructs a new NodeGroupController 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): NodeGroupController;
Creates new NodeGroupController 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 |
NodeGroupController |
RPC service. Useful where requests and/or responses are streamed. |
createNodeGroup(request, callback)
public createNodeGroup(request: google.cloud.dataproc.v1.ICreateNodeGroupRequest, callback: google.cloud.dataproc.v1.NodeGroupController.CreateNodeGroupCallback): void;
Calls CreateNodeGroup.
Parameters | |
---|---|
Name | Description |
request |
ICreateNodeGroupRequest
CreateNodeGroupRequest message or plain object |
callback |
CreateNodeGroupCallback
Node-style callback called with the error, if any, and Operation |
Returns | |
---|---|
Type | Description |
void |
createNodeGroup(request)
public createNodeGroup(request: google.cloud.dataproc.v1.ICreateNodeGroupRequest): Promise<google.longrunning.Operation>;
Calls CreateNodeGroup.
Parameter | |
---|---|
Name | Description |
request |
ICreateNodeGroupRequest
CreateNodeGroupRequest message or plain object |
Returns | |
---|---|
Type | Description |
Promise<google.longrunning.Operation> |
Promise |
getNodeGroup(request, callback)
public getNodeGroup(request: google.cloud.dataproc.v1.IGetNodeGroupRequest, callback: google.cloud.dataproc.v1.NodeGroupController.GetNodeGroupCallback): void;
Calls GetNodeGroup.
Parameters | |
---|---|
Name | Description |
request |
IGetNodeGroupRequest
GetNodeGroupRequest message or plain object |
callback |
GetNodeGroupCallback
Node-style callback called with the error, if any, and NodeGroup |
Returns | |
---|---|
Type | Description |
void |
getNodeGroup(request)
public getNodeGroup(request: google.cloud.dataproc.v1.IGetNodeGroupRequest): Promise<google.cloud.dataproc.v1.NodeGroup>;
Calls GetNodeGroup.
Parameter | |
---|---|
Name | Description |
request |
IGetNodeGroupRequest
GetNodeGroupRequest message or plain object |
Returns | |
---|---|
Type | Description |
Promise<google.cloud.dataproc.v1.NodeGroup> |
Promise |
resizeNodeGroup(request, callback)
public resizeNodeGroup(request: google.cloud.dataproc.v1.IResizeNodeGroupRequest, callback: google.cloud.dataproc.v1.NodeGroupController.ResizeNodeGroupCallback): void;
Calls ResizeNodeGroup.
Parameters | |
---|---|
Name | Description |
request |
IResizeNodeGroupRequest
ResizeNodeGroupRequest message or plain object |
callback |
ResizeNodeGroupCallback
Node-style callback called with the error, if any, and Operation |
Returns | |
---|---|
Type | Description |
void |
resizeNodeGroup(request)
public resizeNodeGroup(request: google.cloud.dataproc.v1.IResizeNodeGroupRequest): Promise<google.longrunning.Operation>;
Calls ResizeNodeGroup.
Parameter | |
---|---|
Name | Description |
request |
IResizeNodeGroupRequest
ResizeNodeGroupRequest message or plain object |
Returns | |
---|---|
Type | Description |
Promise<google.longrunning.Operation> |
Promise |