mirror of
https://github.com/livebook-dev/livebook.git
synced 2025-03-01 09:24:05 +08:00
Add EnvironmentVariable
protobuf message (#2854)
This commit is contained in:
parent
473830ada6
commit
93cefc6d5e
4 changed files with 23 additions and 0 deletions
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
6
proto/lib/livebook_proto/environment_variable.pb.ex
Normal file
6
proto/lib/livebook_proto/environment_variable.pb.ex
Normal 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
|
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue