Represents a RegionDiskTypes
Inheritance
$protobuf.rpc.Service > protos.google.cloud.compute.v1.RegionDiskTypesPackage
@google-cloud/computeConstructors
(constructor)(rpcImpl, requestDelimited, responseDelimited)
constructor(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean);
Constructs a new RegionDiskTypes service.
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): RegionDiskTypes;
Creates new RegionDiskTypes 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 |
RegionDiskTypes | RPC service. Useful where requests and/or responses are streamed. |
get(request, callback)
public get(request: google.cloud.compute.v1.IGetRegionDiskTypeRequest, callback: google.cloud.compute.v1.RegionDiskTypes.GetCallback): void;
Calls Get.
Name | Description |
request |
IGetRegionDiskTypeRequest
GetRegionDiskTypeRequest message or plain object |
callback |
google.cloud.compute.v1.RegionDiskTypes.GetCallback
Node-style callback called with the error, if any, and DiskType |
Type | Description |
void |
get(request)
public get(request: google.cloud.compute.v1.IGetRegionDiskTypeRequest): Promise<google.cloud.compute.v1.DiskType>;
Calls Get.
Name | Description |
request |
IGetRegionDiskTypeRequest
GetRegionDiskTypeRequest message or plain object |
Type | Description |
Promise<google.cloud.compute.v1.DiskType> | Promise |
list(request, callback)
public list(request: google.cloud.compute.v1.IListRegionDiskTypesRequest, callback: google.cloud.compute.v1.RegionDiskTypes.ListCallback): void;
Calls List.
Name | Description |
request |
IListRegionDiskTypesRequest
ListRegionDiskTypesRequest message or plain object |
callback |
google.cloud.compute.v1.RegionDiskTypes.ListCallback
Node-style callback called with the error, if any, and RegionDiskTypeList |
Type | Description |
void |
list(request)
public list(request: google.cloud.compute.v1.IListRegionDiskTypesRequest): Promise<google.cloud.compute.v1.RegionDiskTypeList>;
Calls List.
Name | Description |
request |
IListRegionDiskTypesRequest
ListRegionDiskTypesRequest message or plain object |
Type | Description |
Promise<google.cloud.compute.v1.RegionDiskTypeList> | Promise |