-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathdevice_type_service.proto
47 lines (37 loc) · 1.19 KB
/
device_type_service.proto
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
/* Device Types.
*
*/
syntax = "proto3";
package hiber.device.type;
import "base.proto";
import "device_type.proto";
option java_multiple_files = false;
option java_package = "global.hiber.api.grpc.device.type";
option java_outer_classname = "DeviceTypeApi";
option go_package = ".;hiber";
service DeviceTypeService {
rpc List (ListDeviceTypes.Request) returns (ListDeviceTypes.Response);
}
message ListDeviceTypes {
enum Sort {
IDENTIFIER_ASC = 0;
IDENTIFIER_DESC = 1;
BRAND_ASC = 2;
BRAND_DESC = 3;
}
message Request {
/* Pick the organization to use (/impersonate). If unset, your default organization is used. */
optional string organization = 1;
/* Select which device types to return. Optional, when omitted or empty everything is included. */
optional DeviceTypeSelection selection = 2;
/* Paginate through results. */
optional Pagination pagination = 3;
/* Sort the devices with the given sort options. */
repeated Sort sort_by = 4;
}
message Response {
repeated DeviceType device_types = 1;
Request request = 2;
Pagination.Result pagination = 3;
}
}