softplayer-proto/proto/environments/environments_v1.proto

38 lines
938 B
Protocol Buffer
Raw Normal View History

2024-03-17 18:23:28 +00:00
/// This file has messages for describing environments
syntax = "proto3";
package environments;
import "google/protobuf/empty.proto";
2024-03-17 18:27:20 +00:00
option go_package = "git.badhouseplants.net/softplayer/softplayer-go-proto/pkg/environments";
2024-03-17 18:23:28 +00:00
/**
* 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
2024-03-18 09:41:09 +00:00
Provider provider = 2; // Provide
}
enum Provider {
Hetzner = 0;
2024-03-17 18:23:28 +00:00
}
message EnvironmentFull {
EnvironmentId id = 1;
EnvironmentData data = 2;
}