Add accounts RPCs
This commit is contained in:
42
proto/accounts/accounts_v1.proto
Normal file
42
proto/accounts/accounts_v1.proto
Normal file
@ -0,0 +1,42 @@
|
||||
/// This file has messages for describing environments
|
||||
syntax = "proto3";
|
||||
package accounts;
|
||||
import "google/protobuf/empty.proto";
|
||||
option go_package = "git.badhouseplants.net/softplayer/softplayer-go-proto/pkg/accounts";
|
||||
|
||||
/**
|
||||
* Service for handling environments
|
||||
*/
|
||||
service Accounts {
|
||||
rpc Create(AccountData) returns (AccountFull) {}
|
||||
rpc Update(AccountFull) returns (AccountFull) {}
|
||||
rpc Delete(AccountFull) returns (google.protobuf.Empty) {}
|
||||
rpc Get(AccountId) returns (AccountFull) {}
|
||||
rpc List(google.protobuf.Empty) returns (stream AccountFull) {}
|
||||
}
|
||||
|
||||
/**
|
||||
* Represents a environment UUID only
|
||||
*/
|
||||
message AccountId {
|
||||
string id = 1; // Contour ID: UUID
|
||||
}
|
||||
|
||||
message AccountPassword {
|
||||
string Password = 1;
|
||||
}
|
||||
|
||||
|
||||
message AccountData {
|
||||
string name = 1; // Account name
|
||||
}
|
||||
|
||||
message AccountWithPassword {
|
||||
AccountData data = 1;
|
||||
AccountPassword AccountPassword = 2;
|
||||
}
|
||||
|
||||
message AccountFull {
|
||||
AccountId id = 1;
|
||||
AccountData data = 2;
|
||||
}
|
Reference in New Issue
Block a user