Add EnvironmentVariable protobuf message (#2854)

This commit is contained in:
Alexandre de Souza 2024-11-12 09:37:19 -03:00 committed by GitHub
parent 473830ada6
commit 93cefc6d5e
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
4 changed files with 23 additions and 0 deletions

View file

@ -10,4 +10,9 @@ defmodule LivebookProto.DeploymentGroup do
field :zta_key, 7, type: :string, json_name: "ztaKey", deprecated: true
field :agent_keys, 8, repeated: true, type: LivebookProto.AgentKey, json_name: "agentKeys"
field :url, 9, type: :string
field :environment_variables, 10,
repeated: true,
type: LivebookProto.EnvironmentVariable,
json_name: "environmentVariables"
end

View file

@ -9,4 +9,9 @@ defmodule LivebookProto.DeploymentGroupUpdated do
field :zta_key, 6, type: :string, json_name: "ztaKey", deprecated: true
field :agent_keys, 7, repeated: true, type: LivebookProto.AgentKey, json_name: "agentKeys"
field :url, 8, type: :string
field :environment_variables, 9,
repeated: true,
type: LivebookProto.EnvironmentVariable,
json_name: "environmentVariables"
end

View file

@ -0,0 +1,6 @@
defmodule LivebookProto.EnvironmentVariable do
use Protobuf, syntax: :proto3, protoc_gen_elixir_version: "0.13.0"
field :name, 1, type: :string
field :value, 2, type: :string
end

View file

@ -64,6 +64,7 @@ message DeploymentGroup {
string zta_key = 7 [deprecated = true];
repeated AgentKey agent_keys = 8;
string url = 9;
repeated EnvironmentVariable environment_variables = 10;
}
message DeploymentGroupCreated {
@ -86,6 +87,7 @@ message DeploymentGroupUpdated {
string zta_key = 6 [deprecated = true];
repeated AgentKey agent_keys = 7;
string url = 8;
repeated EnvironmentVariable environment_variables = 9;
}
message DeploymentGroupDeleted {
@ -182,6 +184,11 @@ message AppDeploymentStatusReport {
repeated AppDeploymentStatus app_deployment_statuses = 1;
}
message EnvironmentVariable {
string name = 1;
string value = 2;
}
message Event {
oneof type {
SecretCreated secret_created = 1;