controller/proto/vpn/v1/vpn.proto

34 lines
588 B
Protocol Buffer
Raw Normal View History

2024-10-10 13:47:32 +00:00
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) {}
}