Represents a MachineTypes
Inheritance
$protobuf.rpc.Service > protos.google.cloud.compute.v1.MachineTypesPackage
@google-cloud/computeConstructors
(constructor)(rpcImpl, requestDelimited, responseDelimited)
constructor(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean);Constructs a new MachineTypes service.
| 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.IAggregatedListMachineTypesRequest, callback: google.cloud.compute.v1.MachineTypes.AggregatedListCallback): void;Calls AggregatedList.
| Name | Description |
| request |
IAggregatedListMachineTypesRequest
AggregatedListMachineTypesRequest message or plain object |
| callback |
google.cloud.compute.v1.MachineTypes.AggregatedListCallback
Node-style callback called with the error, if any, and MachineTypeAggregatedList |
| Type | Description |
| void |
aggregatedList(request)
public aggregatedList(request: google.cloud.compute.v1.IAggregatedListMachineTypesRequest): Promise<google.cloud.compute.v1.MachineTypeAggregatedList>;Calls AggregatedList.
| Name | Description |
| request |
IAggregatedListMachineTypesRequest
AggregatedListMachineTypesRequest message or plain object |
| Type | Description |
| Promise<google.cloud.compute.v1.MachineTypeAggregatedList> | Promise |
create(rpcImpl, requestDelimited, responseDelimited)
public static create(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean): MachineTypes;Creates new MachineTypes service using the specified rpc implementation.
| Name | Description |
| rpcImpl |
$protobuf.RPCImpl
RPC implementation |
| requestDelimited |
boolean
Whether requests are length-delimited |
| responseDelimited |
boolean
Whether responses are length-delimited |
| Type | Description |
| MachineTypes | RPC service. Useful where requests and/or responses are streamed. |
get(request, callback)
public get(request: google.cloud.compute.v1.IGetMachineTypeRequest, callback: google.cloud.compute.v1.MachineTypes.GetCallback): void;Calls Get.
| Name | Description |
| request |
IGetMachineTypeRequest
GetMachineTypeRequest message or plain object |
| callback |
google.cloud.compute.v1.MachineTypes.GetCallback
Node-style callback called with the error, if any, and MachineType |
| Type | Description |
| void |
get(request)
public get(request: google.cloud.compute.v1.IGetMachineTypeRequest): Promise<google.cloud.compute.v1.MachineType>;Calls Get.
| Name | Description |
| request |
IGetMachineTypeRequest
GetMachineTypeRequest message or plain object |
| Type | Description |
| Promise<google.cloud.compute.v1.MachineType> | Promise |
list(request, callback)
public list(request: google.cloud.compute.v1.IListMachineTypesRequest, callback: google.cloud.compute.v1.MachineTypes.ListCallback): void;Calls List.
| Name | Description |
| request |
IListMachineTypesRequest
ListMachineTypesRequest message or plain object |
| callback |
google.cloud.compute.v1.MachineTypes.ListCallback
Node-style callback called with the error, if any, and MachineTypeList |
| Type | Description |
| void |
list(request)
public list(request: google.cloud.compute.v1.IListMachineTypesRequest): Promise<google.cloud.compute.v1.MachineTypeList>;Calls List.
| Name | Description |
| request |
IListMachineTypesRequest
ListMachineTypesRequest message or plain object |
| Type | Description |
| Promise<google.cloud.compute.v1.MachineTypeList> | Promise |