50 lines
No EOL
876 B
Protocol Buffer
50 lines
No EOL
876 B
Protocol Buffer
syntax = "proto3";
|
|
|
|
package vpn.v1;
|
|
|
|
message CreateProfileRequest {
|
|
string name = 1;
|
|
string flavor_id = 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;
|
|
}
|
|
|
|
message ListProfilesRequest {
|
|
|
|
}
|
|
|
|
message ListProfilesResponse {
|
|
repeated Profile profiles = 1;
|
|
}
|
|
|
|
message Profile {
|
|
string id = 1;
|
|
string name = 2;
|
|
string flavor_id = 3;
|
|
string connection_string = 4;
|
|
}
|
|
|
|
service ProfilesService {
|
|
rpc AvaliableFlavors(AvaliableFlavorsRequest) returns (AvaliableFlavorsResponse) {}
|
|
rpc CreateProfile(CreateProfileRequest) returns (CreateProfileResponse) {}
|
|
rpc ListProfiles(ListProfilesRequest) returns (ListProfilesResponse) {}
|
|
} |