Represents a NodeTypes
Inheritance
$protobuf.rpc.Service > protos.google.cloud.compute.v1.NodeTypesPackage
@google-cloud/computeConstructors
(constructor)(rpcImpl, requestDelimited, responseDelimited)
constructor(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean);
Constructs a new NodeTypes service.
Parameters | |
---|---|
Name | Description |
rpcImpl |
$protobuf.RPCImpl
RPC implementation |
requestDelimited |
boolean
Whether requests are length-delimited |
responseDelimited |
boolean
Whether responses are length-delimited |
Methods
aggregatedList(request, callback)
public aggregatedList(request: google.cloud.compute.v1.IAggregatedListNodeTypesRequest, callback: google.cloud.compute.v1.NodeTypes.AggregatedListCallback): void;
Calls AggregatedList.
Parameters | |
---|---|
Name | Description |
request |
IAggregatedListNodeTypesRequest
AggregatedListNodeTypesRequest message or plain object |
callback |
AggregatedListCallback
Node-style callback called with the error, if any, and NodeTypeAggregatedList |
Returns | |
---|---|
Type | Description |
void |
aggregatedList(request)
public aggregatedList(request: google.cloud.compute.v1.IAggregatedListNodeTypesRequest): Promise<google.cloud.compute.v1.NodeTypeAggregatedList>;
Calls AggregatedList.
Parameter | |
---|---|
Name | Description |
request |
IAggregatedListNodeTypesRequest
AggregatedListNodeTypesRequest message or plain object |
Returns | |
---|---|
Type | Description |
Promise<google.cloud.compute.v1.NodeTypeAggregatedList> |
Promise |
create(rpcImpl, requestDelimited, responseDelimited)
public static create(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean): NodeTypes;
Creates new NodeTypes 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 |
NodeTypes |
RPC service. Useful where requests and/or responses are streamed. |
get(request, callback)
public get(request: google.cloud.compute.v1.IGetNodeTypeRequest, callback: google.cloud.compute.v1.NodeTypes.GetCallback): void;
Calls Get.
Parameters | |
---|---|
Name | Description |
request |
IGetNodeTypeRequest
GetNodeTypeRequest message or plain object |
callback |
GetCallback
Node-style callback called with the error, if any, and NodeType |
Returns | |
---|---|
Type | Description |
void |
get(request)
public get(request: google.cloud.compute.v1.IGetNodeTypeRequest): Promise<google.cloud.compute.v1.NodeType>;
Calls Get.
Parameter | |
---|---|
Name | Description |
request |
IGetNodeTypeRequest
GetNodeTypeRequest message or plain object |
Returns | |
---|---|
Type | Description |
Promise<google.cloud.compute.v1.NodeType> |
Promise |
list(request, callback)
public list(request: google.cloud.compute.v1.IListNodeTypesRequest, callback: google.cloud.compute.v1.NodeTypes.ListCallback): void;
Calls List.
Parameters | |
---|---|
Name | Description |
request |
IListNodeTypesRequest
ListNodeTypesRequest message or plain object |
callback |
ListCallback
Node-style callback called with the error, if any, and NodeTypeList |
Returns | |
---|---|
Type | Description |
void |
list(request)
public list(request: google.cloud.compute.v1.IListNodeTypesRequest): Promise<google.cloud.compute.v1.NodeTypeList>;
Calls List.
Parameter | |
---|---|
Name | Description |
request |
IListNodeTypesRequest
ListNodeTypesRequest message or plain object |
Returns | |
---|---|
Type | Description |
Promise<google.cloud.compute.v1.NodeTypeList> |
Promise |