1+ defmodule InternalApi.EphemeralEnvironments.StageType do
2+ @ moduledoc false
3+
4+ use Protobuf , enum: true , syntax: :proto3 , protoc_gen_elixir_version: "0.13.0"
5+
6+ field ( :STAGE_TYPE_UNSPECIFIED , 0 )
7+ field ( :STAGE_TYPE_PROVISION , 1 )
8+ field ( :STAGE_TYPE_DEPLOY , 2 )
9+ field ( :STAGE_TYPE_DEPROVISION , 3 )
10+ end
11+
112defmodule InternalApi.EphemeralEnvironments.InstanceState do
213 @ moduledoc false
314
@@ -137,29 +148,22 @@ defmodule InternalApi.EphemeralEnvironments.CreateResponse do
137148 )
138149end
139150
140- defmodule InternalApi.EphemeralEnvironments.UpdateRequest do
151+ defmodule InternalApi.EphemeralEnvironments.DeleteRequest do
141152 @ moduledoc false
142153
143154 use Protobuf , syntax: :proto3 , protoc_gen_elixir_version: "0.13.0"
144155
145- field ( :environment_type , 1 ,
146- type: InternalApi.EphemeralEnvironments.EphemeralEnvironmentType ,
147- json_name: "environmentType"
148- )
156+ field ( :id , 1 , type: :string )
157+ field ( :org_id , 2 , type: :string , json_name: "orgId" )
149158end
150159
151- defmodule InternalApi.EphemeralEnvironments.UpdateResponse do
160+ defmodule InternalApi.EphemeralEnvironments.DeleteResponse do
152161 @ moduledoc false
153162
154163 use Protobuf , syntax: :proto3 , protoc_gen_elixir_version: "0.13.0"
155-
156- field ( :environment_type , 1 ,
157- type: InternalApi.EphemeralEnvironments.EphemeralEnvironmentType ,
158- json_name: "environmentType"
159- )
160164end
161165
162- defmodule InternalApi.EphemeralEnvironments.DeleteRequest do
166+ defmodule InternalApi.EphemeralEnvironments.CordonRequest do
163167 @ moduledoc false
164168
165169 use Protobuf , syntax: :proto3 , protoc_gen_elixir_version: "0.13.0"
@@ -168,22 +172,29 @@ defmodule InternalApi.EphemeralEnvironments.DeleteRequest do
168172 field ( :org_id , 2 , type: :string , json_name: "orgId" )
169173end
170174
171- defmodule InternalApi.EphemeralEnvironments.DeleteResponse do
175+ defmodule InternalApi.EphemeralEnvironments.CordonResponse do
172176 @ moduledoc false
173177
174178 use Protobuf , syntax: :proto3 , protoc_gen_elixir_version: "0.13.0"
179+
180+ field ( :environment_type , 1 ,
181+ type: InternalApi.EphemeralEnvironments.EphemeralEnvironmentType ,
182+ json_name: "environmentType"
183+ )
175184end
176185
177- defmodule InternalApi.EphemeralEnvironments.CordonRequest do
186+ defmodule InternalApi.EphemeralEnvironments.UpdateRequest do
178187 @ moduledoc false
179188
180189 use Protobuf , syntax: :proto3 , protoc_gen_elixir_version: "0.13.0"
181190
182- field ( :id , 1 , type: :string )
183- field ( :org_id , 2 , type: :string , json_name: "orgId" )
191+ field ( :environment_type , 1 ,
192+ type: InternalApi.EphemeralEnvironments.EphemeralEnvironmentType ,
193+ json_name: "environmentType"
194+ )
184195end
185196
186- defmodule InternalApi.EphemeralEnvironments.CordonResponse do
197+ defmodule InternalApi.EphemeralEnvironments.UpdateResponse do
187198 @ moduledoc false
188199
189200 use Protobuf , syntax: :proto3 , protoc_gen_elixir_version: "0.13.0"
@@ -209,6 +220,92 @@ defmodule InternalApi.EphemeralEnvironments.EphemeralEnvironmentType do
209220 field ( :updated_at , 8 , type: Google.Protobuf.Timestamp , json_name: "updatedAt" )
210221 field ( :state , 9 , type: InternalApi.EphemeralEnvironments.TypeState , enum: true )
211222 field ( :max_number_of_instances , 10 , type: :int32 , json_name: "maxNumberOfInstances" )
223+ field ( :stages , 11 , repeated: true , type: InternalApi.EphemeralEnvironments.StageConfig )
224+
225+ field ( :environment_context , 12 ,
226+ repeated: true ,
227+ type: InternalApi.EphemeralEnvironments.EnvironmentContext ,
228+ json_name: "environmentContext"
229+ )
230+
231+ field ( :accessible_project_ids , 13 ,
232+ repeated: true ,
233+ type: :string ,
234+ json_name: "accessibleProjectIds"
235+ )
236+
237+ field ( :ttl_config , 14 ,
238+ type: InternalApi.EphemeralEnvironments.TTLConfig ,
239+ json_name: "ttlConfig"
240+ )
241+ end
242+
243+ defmodule InternalApi.EphemeralEnvironments.StageConfig do
244+ @ moduledoc false
245+
246+ use Protobuf , syntax: :proto3 , protoc_gen_elixir_version: "0.13.0"
247+
248+ field ( :type , 1 , type: InternalApi.EphemeralEnvironments.StageType , enum: true )
249+ field ( :pipeline , 2 , type: InternalApi.EphemeralEnvironments.PipelineConfig )
250+ field ( :parameters , 3 , repeated: true , type: InternalApi.EphemeralEnvironments.StageParameter )
251+
252+ field ( :rbac_rules , 4 ,
253+ repeated: true ,
254+ type: InternalApi.EphemeralEnvironments.RBACRule ,
255+ json_name: "rbacRules"
256+ )
257+ end
258+
259+ defmodule InternalApi.EphemeralEnvironments.StageParameter do
260+ @ moduledoc false
261+
262+ use Protobuf , syntax: :proto3 , protoc_gen_elixir_version: "0.13.0"
263+
264+ field ( :name , 1 , type: :string )
265+ field ( :description , 2 , type: :string )
266+ field ( :required , 3 , type: :bool )
267+ end
268+
269+ defmodule InternalApi.EphemeralEnvironments.RBACRule do
270+ @ moduledoc false
271+
272+ use Protobuf , syntax: :proto3 , protoc_gen_elixir_version: "0.13.0"
273+
274+ field ( :subject_type , 1 ,
275+ type: InternalApi.RBAC.SubjectType ,
276+ json_name: "subjectType" ,
277+ enum: true
278+ )
279+
280+ field ( :subject_id , 2 , type: :string , json_name: "subjectId" )
281+ end
282+
283+ defmodule InternalApi.EphemeralEnvironments.EnvironmentContext do
284+ @ moduledoc false
285+
286+ use Protobuf , syntax: :proto3 , protoc_gen_elixir_version: "0.13.0"
287+
288+ field ( :name , 1 , type: :string )
289+ field ( :description , 2 , type: :string )
290+ end
291+
292+ defmodule InternalApi.EphemeralEnvironments.PipelineConfig do
293+ @ moduledoc false
294+
295+ use Protobuf , syntax: :proto3 , protoc_gen_elixir_version: "0.13.0"
296+
297+ field ( :project_id , 1 , type: :string , json_name: "projectId" )
298+ field ( :branch , 2 , type: :string )
299+ field ( :pipeline_yaml_file , 3 , type: :string , json_name: "pipelineYamlFile" )
300+ end
301+
302+ defmodule InternalApi.EphemeralEnvironments.TTLConfig do
303+ @ moduledoc false
304+
305+ use Protobuf , syntax: :proto3 , protoc_gen_elixir_version: "0.13.0"
306+
307+ field ( :duration_hours , 1 , type: :int32 , json_name: "durationHours" )
308+ field ( :allow_extension , 2 , type: :bool , json_name: "allowExtension" )
212309end
213310
214311defmodule InternalApi.EphemeralEnvironments.EphemeralEnvironmentInstance do
0 commit comments