Init commit
This commit is contained in:
32
proto/proto/environments_v1.proto
Normal file
32
proto/proto/environments_v1.proto
Normal file
@ -0,0 +1,32 @@
|
||||
/// This file has messages for describing environments
|
||||
syntax = "proto3";
|
||||
package environments;
|
||||
import "google/protobuf/empty.proto";
|
||||
option go_package = "git.badhouseplants.net/badhouseplants/softplayer-go-proto/pkg/environments";
|
||||
|
||||
/**
|
||||
* Service for handling environments
|
||||
*/
|
||||
service Environments {
|
||||
rpc Create(EnvironmentData) returns (EnvironmentFull) {}
|
||||
rpc Update(EnvironmentFull) returns (EnvironmentFull) {}
|
||||
rpc Delete(EnvironmentFull) returns (google.protobuf.Empty) {}
|
||||
rpc Get(EnvironmentId) returns (EnvironmentFull) {}
|
||||
rpc List(google.protobuf.Empty) returns (stream EnvironmentFull) {}
|
||||
}
|
||||
|
||||
/**
|
||||
* Represents a environment UUID only
|
||||
*/
|
||||
message EnvironmentId {
|
||||
string id = 1; // Contour ID: UUID
|
||||
}
|
||||
|
||||
message EnvironmentData {
|
||||
string name = 1; // Environment name
|
||||
}
|
||||
|
||||
message EnvironmentFull {
|
||||
EnvironmentId id = 1;
|
||||
EnvironmentData data = 2;
|
||||
}
|
Reference in New Issue
Block a user