Add a provider field
This commit is contained in:
parent
38a9fd3908
commit
5a816b2084
20
README.md
20
README.md
@ -8,6 +8,8 @@
|
|||||||
- [EnvironmentFull](#environments-EnvironmentFull)
|
- [EnvironmentFull](#environments-EnvironmentFull)
|
||||||
- [EnvironmentId](#environments-EnvironmentId)
|
- [EnvironmentId](#environments-EnvironmentId)
|
||||||
|
|
||||||
|
- [Provider](#environments-Provider)
|
||||||
|
|
||||||
- [Environments](#environments-Environments)
|
- [Environments](#environments-Environments)
|
||||||
|
|
||||||
- [Scalar Value Types](#scalar-value-types)
|
- [Scalar Value Types](#scalar-value-types)
|
||||||
@ -30,6 +32,7 @@ This file has messages for describing environments
|
|||||||
| Field | Type | Label | Description |
|
| Field | Type | Label | Description |
|
||||||
| ----- | ---- | ----- | ----------- |
|
| ----- | ---- | ----- | ----------- |
|
||||||
| name | [string](#string) | | Environment name |
|
| name | [string](#string) | | Environment name |
|
||||||
|
| provider | [Provider](#environments-Provider) | | Provide |
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@ -68,6 +71,17 @@ Represents a environment UUID only
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
<a name="environments-Provider"></a>
|
||||||
|
|
||||||
|
### Provider
|
||||||
|
|
||||||
|
|
||||||
|
| Name | Number | Description |
|
||||||
|
| ---- | ------ | ----------- |
|
||||||
|
| Hetzner | 0 | |
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@ -80,7 +94,11 @@ Service for handling environments
|
|||||||
|
|
||||||
| Method Name | Request Type | Response Type | Description |
|
| Method Name | Request Type | Response Type | Description |
|
||||||
| ----------- | ------------ | ------------- | ------------|
|
| ----------- | ------------ | ------------- | ------------|
|
||||||
| Create | [EnvironmentData](#environments-EnvironmentData) | [EnvironmentData](#environments-EnvironmentData) | Should be used to create a new environment / Depending on the implementations, it should / create a working k8s cluster / Hetzner: |
|
| Create | [EnvironmentData](#environments-EnvironmentData) | [EnvironmentFull](#environments-EnvironmentFull) | |
|
||||||
|
| Update | [EnvironmentFull](#environments-EnvironmentFull) | [EnvironmentFull](#environments-EnvironmentFull) | |
|
||||||
|
| Delete | [EnvironmentFull](#environments-EnvironmentFull) | [.google.protobuf.Empty](#google-protobuf-Empty) | |
|
||||||
|
| Get | [EnvironmentId](#environments-EnvironmentId) | [EnvironmentFull](#environments-EnvironmentFull) | |
|
||||||
|
| List | [.google.protobuf.Empty](#google-protobuf-Empty) | [EnvironmentFull](#environments-EnvironmentFull) stream | |
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
@ -24,6 +24,11 @@ message EnvironmentId {
|
|||||||
|
|
||||||
message EnvironmentData {
|
message EnvironmentData {
|
||||||
string name = 1; // Environment name
|
string name = 1; // Environment name
|
||||||
|
Provider provider = 2; // Provide
|
||||||
|
}
|
||||||
|
|
||||||
|
enum Provider {
|
||||||
|
Hetzner = 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
message EnvironmentFull {
|
message EnvironmentFull {
|
||||||
|
Loading…
Reference in New Issue
Block a user