-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
55 changed files
with
5,216 additions
and
2,243 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
syntax = "proto3"; | ||
|
||
package hiber.device.type; | ||
|
||
option java_multiple_files = true; | ||
option java_package = "global.hiber.api.grpc.device.type"; | ||
option go_package = "hiber"; | ||
|
||
/* Preconfigured device type. */ | ||
message DeviceType { | ||
string identifier = 1; | ||
string brand = 2; | ||
string application = 3; | ||
string category = 4; | ||
string version = 5; | ||
string description = 6; | ||
} | ||
|
||
/* Selection object for device types. */ | ||
message DeviceTypeSelection { | ||
string search = 1; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,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. */ | ||
string organization = 1; | ||
|
||
/* Select which device types to return. */ | ||
DeviceTypeSelection selection = 2; | ||
|
||
/* Paginate through results. */ | ||
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; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.