mirror of
https://github.com/livebook-dev/livebook.git
synced 2025-12-19 22:49:23 +08:00
Fix Deployment Group protobuf generated files (#2432)
This commit is contained in:
parent
883c19ad3b
commit
07a43e3e74
5 changed files with 20 additions and 9 deletions
|
|
@ -1,5 +1,6 @@
|
||||||
defmodule LivebookProto do
|
defmodule LivebookProto do
|
||||||
alias LivebookProto.{
|
alias LivebookProto.{
|
||||||
|
AgentConnected,
|
||||||
Event,
|
Event,
|
||||||
FileSystemCreated,
|
FileSystemCreated,
|
||||||
FileSystemDeleted,
|
FileSystemDeleted,
|
||||||
|
|
@ -10,7 +11,7 @@ defmodule LivebookProto do
|
||||||
DeploymentGroupCreated,
|
DeploymentGroupCreated,
|
||||||
DeploymentGroupDeleted,
|
DeploymentGroupDeleted,
|
||||||
DeploymentGroupUpdated,
|
DeploymentGroupUpdated,
|
||||||
UserSynchronized
|
UserConnected
|
||||||
}
|
}
|
||||||
|
|
||||||
@event_mapping (for {_id, field_prop} <- Event.__message_props__().field_props,
|
@event_mapping (for {_id, field_prop} <- Event.__message_props__().field_props,
|
||||||
|
|
@ -19,7 +20,8 @@ defmodule LivebookProto do
|
||||||
end)
|
end)
|
||||||
|
|
||||||
@type event_proto ::
|
@type event_proto ::
|
||||||
FileSystemCreated.t()
|
AgentConnected.t()
|
||||||
|
| FileSystemCreated.t()
|
||||||
| FileSystemDeleted.t()
|
| FileSystemDeleted.t()
|
||||||
| FileSystemUpdated.t()
|
| FileSystemUpdated.t()
|
||||||
| SecretCreated.t()
|
| SecretCreated.t()
|
||||||
|
|
@ -28,7 +30,7 @@ defmodule LivebookProto do
|
||||||
| DeploymentGroupCreated.t()
|
| DeploymentGroupCreated.t()
|
||||||
| DeploymentGroupDeleted.t()
|
| DeploymentGroupDeleted.t()
|
||||||
| DeploymentGroupUpdated.t()
|
| DeploymentGroupUpdated.t()
|
||||||
| UserSynchronized.t()
|
| UserConnected.t()
|
||||||
|
|
||||||
@doc """
|
@doc """
|
||||||
Builds an event with given data.
|
Builds an event with given data.
|
||||||
|
|
|
||||||
|
|
@ -6,6 +6,6 @@ defmodule LivebookProto.DeploymentGroup do
|
||||||
field :mode, 3, type: :string
|
field :mode, 3, type: :string
|
||||||
field :secrets, 4, repeated: true, type: LivebookProto.DeploymentGroupSecret
|
field :secrets, 4, repeated: true, type: LivebookProto.DeploymentGroupSecret
|
||||||
field :clustering, 5, type: :string
|
field :clustering, 5, type: :string
|
||||||
field :zta_provider, 6, type: :string
|
field :zta_provider, 6, type: :string, json_name: "ztaProvider"
|
||||||
field :zta_key, 7, type: :string
|
field :zta_key, 7, type: :string, json_name: "ztaKey"
|
||||||
end
|
end
|
||||||
|
|
|
||||||
|
|
@ -6,6 +6,6 @@ defmodule LivebookProto.DeploymentGroupCreated do
|
||||||
field :mode, 3, type: :string
|
field :mode, 3, type: :string
|
||||||
field :secrets, 4, repeated: true, type: LivebookProto.DeploymentGroupSecret
|
field :secrets, 4, repeated: true, type: LivebookProto.DeploymentGroupSecret
|
||||||
field :clustering, 5, type: :string
|
field :clustering, 5, type: :string
|
||||||
field :zta_provider, 6, type: :string
|
field :zta_provider, 6, type: :string, json_name: "ztaProvider"
|
||||||
field :zta_key, 7, type: :string
|
field :zta_key, 7, type: :string, json_name: "ztaKey"
|
||||||
end
|
end
|
||||||
|
|
|
||||||
|
|
@ -6,6 +6,6 @@ defmodule LivebookProto.DeploymentGroupUpdated do
|
||||||
field :mode, 3, type: :string
|
field :mode, 3, type: :string
|
||||||
field :secrets, 4, repeated: true, type: LivebookProto.DeploymentGroupSecret
|
field :secrets, 4, repeated: true, type: LivebookProto.DeploymentGroupSecret
|
||||||
field :clustering, 5, type: :string
|
field :clustering, 5, type: :string
|
||||||
field :zta_provider, 6, type: :string
|
field :zta_provider, 6, type: :string, json_name: "ztaProvider"
|
||||||
field :zta_key, 7, type: :string
|
field :zta_key, 7, type: :string, json_name: "ztaKey"
|
||||||
end
|
end
|
||||||
|
|
|
||||||
|
|
@ -59,6 +59,9 @@ message DeploymentGroup {
|
||||||
string name = 2;
|
string name = 2;
|
||||||
string mode = 3;
|
string mode = 3;
|
||||||
repeated DeploymentGroupSecret secrets = 4;
|
repeated DeploymentGroupSecret secrets = 4;
|
||||||
|
string clustering = 5;
|
||||||
|
string zta_provider = 6;
|
||||||
|
string zta_key = 7;
|
||||||
}
|
}
|
||||||
|
|
||||||
message DeploymentGroupCreated {
|
message DeploymentGroupCreated {
|
||||||
|
|
@ -66,6 +69,9 @@ message DeploymentGroupCreated {
|
||||||
string name = 2;
|
string name = 2;
|
||||||
string mode = 3;
|
string mode = 3;
|
||||||
repeated DeploymentGroupSecret secrets = 4;
|
repeated DeploymentGroupSecret secrets = 4;
|
||||||
|
string clustering = 5;
|
||||||
|
string zta_provider = 6;
|
||||||
|
string zta_key = 7;
|
||||||
}
|
}
|
||||||
|
|
||||||
message DeploymentGroupUpdated {
|
message DeploymentGroupUpdated {
|
||||||
|
|
@ -73,6 +79,9 @@ message DeploymentGroupUpdated {
|
||||||
string name = 2;
|
string name = 2;
|
||||||
string mode = 3;
|
string mode = 3;
|
||||||
repeated DeploymentGroupSecret secrets = 4;
|
repeated DeploymentGroupSecret secrets = 4;
|
||||||
|
string clustering = 5;
|
||||||
|
string zta_provider = 6;
|
||||||
|
string zta_key = 7;
|
||||||
}
|
}
|
||||||
|
|
||||||
message DeploymentGroupDeleted {
|
message DeploymentGroupDeleted {
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue