Represents a DiskTypes
Inheritance
$protobuf.rpc.Service > protos.google.cloud.compute.v1.DiskTypesPackage
@google-cloud/computeConstructors
(constructor)(rpcImpl, requestDelimited, responseDelimited)
constructor(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean);
Constructs a new DiskTypes 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.IAggregatedListDiskTypesRequest, callback: google.cloud.compute.v1.DiskTypes.AggregatedListCallback): void;
Calls AggregatedList.
Name | Description |
request |
IAggregatedListDiskTypesRequest
AggregatedListDiskTypesRequest message or plain object |
callback |
google.cloud.compute.v1.DiskTypes.AggregatedListCallback
Node-style callback called with the error, if any, and DiskTypeAggregatedList |
Type | Description |
void |
aggregatedList(request)
public aggregatedList(request: google.cloud.compute.v1.IAggregatedListDiskTypesRequest): Promise<google.cloud.compute.v1.DiskTypeAggregatedList>;
Calls AggregatedList.
Name | Description |
request |
IAggregatedListDiskTypesRequest
AggregatedListDiskTypesRequest message or plain object |
Type | Description |
Promise<google.cloud.compute.v1.DiskTypeAggregatedList> | Promise |
create(rpcImpl, requestDelimited, responseDelimited)
public static create(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean): DiskTypes;
Creates new DiskTypes 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 |
DiskTypes | RPC service. Useful where requests and/or responses are streamed. |
get(request, callback)
public get(request: google.cloud.compute.v1.IGetDiskTypeRequest, callback: google.cloud.compute.v1.DiskTypes.GetCallback): void;
Calls Get.
Name | Description |
request |
IGetDiskTypeRequest
GetDiskTypeRequest message or plain object |
callback |
google.cloud.compute.v1.DiskTypes.GetCallback
Node-style callback called with the error, if any, and DiskType |
Type | Description |
void |
get(request)
public get(request: google.cloud.compute.v1.IGetDiskTypeRequest): Promise<google.cloud.compute.v1.DiskType>;
Calls Get.
Name | Description |
request |
IGetDiskTypeRequest
GetDiskTypeRequest message or plain object |
Type | Description |
Promise<google.cloud.compute.v1.DiskType> | Promise |
list(request, callback)
public list(request: google.cloud.compute.v1.IListDiskTypesRequest, callback: google.cloud.compute.v1.DiskTypes.ListCallback): void;
Calls List.
Name | Description |
request |
IListDiskTypesRequest
ListDiskTypesRequest message or plain object |
callback |
google.cloud.compute.v1.DiskTypes.ListCallback
Node-style callback called with the error, if any, and DiskTypeList |
Type | Description |
void |
list(request)
public list(request: google.cloud.compute.v1.IListDiskTypesRequest): Promise<google.cloud.compute.v1.DiskTypeList>;
Calls List.
Name | Description |
request |
IListDiskTypesRequest
ListDiskTypesRequest message or plain object |
Type | Description |
Promise<google.cloud.compute.v1.DiskTypeList> | Promise |