controller/proto/vpn/v1/vpn.proto
2024-10-10 16:47:32 +03:00

34 lines
No EOL
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) {}
}