controller/proto/vpn/v1/profiles.proto

50 lines
876 B
Protocol Buffer
Raw Permalink Normal View History

2024-10-10 13:47:32 +00:00
syntax = "proto3";
package vpn.v1;
message CreateProfileRequest {
2024-10-10 16:23:59 +00:00
string name = 1;
string flavor_id = 2;
2024-10-10 13:47:32 +00:00
}
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;
}
2024-10-10 16:23:59 +00:00
message ListProfilesRequest {
}
message ListProfilesResponse {
repeated Profile profiles = 1;
}
message Profile {
string id = 1;
string name = 2;
string flavor_id = 3;
string connection_string = 4;
}
2024-10-10 13:47:32 +00:00
service ProfilesService {
rpc AvaliableFlavors(AvaliableFlavorsRequest) returns (AvaliableFlavorsResponse) {}
rpc CreateProfile(CreateProfileRequest) returns (CreateProfileResponse) {}
2024-10-10 16:23:59 +00:00
rpc ListProfiles(ListProfilesRequest) returns (ListProfilesResponse) {}
2024-10-10 13:47:32 +00:00
}