34 lines
588 B
Protocol Buffer
34 lines
588 B
Protocol Buffer
|
syntax = "proto3";
|
||
|
|
||
|
package vpn.v1;
|
||
|
|
||
|
message CreateProfileRequest {
|
||
|
string flavor_id = 1;
|
||
|
string name = 2;
|
||
|
}
|
||
|
|
||
|
message CreateProfileResponse {
|
||
|
string id = 1;
|
||
|
optional string connection_string = 2;
|
||
|
}
|
||
|
|
||
|
|
||
|
message AvaliableFlavorsRequest {
|
||
|
|
||
|
}
|
||
|
|
||
|
|
||
|
message AvaliableFlavorsResponse {
|
||
|
repeated Flavor flavors = 1;
|
||
|
}
|
||
|
|
||
|
message Flavor {
|
||
|
string id = 1;
|
||
|
string name = 2;
|
||
|
string description = 3;
|
||
|
}
|
||
|
|
||
|
service ProfilesService {
|
||
|
rpc AvaliableFlavors(AvaliableFlavorsRequest) returns (AvaliableFlavorsResponse) {}
|
||
|
rpc CreateProfile(CreateProfileRequest) returns (CreateProfileResponse) {}
|
||
|
}
|