/// This file has messages for describing environments syntax = "proto3"; package environments; import "google/protobuf/empty.proto"; option go_package = "git.badhouseplants.net/softplayer/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 Provider provider = 2; // Provide } enum Provider { PROVIDER_UNSPECIFIED = 0; PROVIDER_HETZNER = 1; } message EnvironmentFull { EnvironmentId id = 1; EnvironmentData data = 2; }