1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374 |
- syntax = "proto3";
- option go_package = "dr_resource_pb/";
- package dr.resource;
- import "google/protobuf/empty.proto";
- import "google/protobuf/struct.proto";
- service Basic {
- rpc SoftwareInfo (google.protobuf.Empty) returns (SoftwareInfoReply) {}
- }
- message SoftwareInfoReply {
- string module = 1;
- string desc = 2;
- string build = 3;
- string version = 4;
- }
- service Config {
- rpc GetOptions (OptionRequest) returns (OptionReply) {}
- rpc ConfigOptionList (ConfigOptionListRequest) returns (ConfigOptionListReply) {}
- rpc ConfigList (ConfigListRequest) returns (ConfigListResponse) {}
- rpc UpdateConfigItems (ConfigItemRequest) returns (ConfigListResponse) {}
- }
- message OptionRequest {
- string group = 1;
- string flag = 2;
- }
- message OptionReply {
- repeated google.protobuf.Struct option = 1;
- }
- message ConfigOptionListRequest {
- string flag = 1;
- bool is_enabled = 2;
- }
- message ConfigOption {
- string flag = 1;
- string text = 2;
- string value = 3;
- int32 order = 4;
- bool is_enabled = 5;
- }
- message ConfigOptionListReply {
- repeated ConfigOption configOption = 1;
- }
- message ConfigListRequest {
- oneof filter {
- string group = 1;
- string key = 2;
- }
- }
- message ConfigListResponse {
- string key = 1;
- string value = 2;
- string option_key = 3;
- string value_type = 4;
- string desc = 5;
- int32 order = 6;
- bool is_enabled = 7;
- string uri = 8;
- }
- message ConfigItemRequest {
- map<string, string> items = 1;
- }
|