@@ -11,16 +11,10 @@ servers:
1111paths :
1212 /environments :
1313 get :
14- summary : Get all environments
15- parameters :
16- - in : query
17- name : owner_type
18- schema :
19- $ref : " #/components/schemas/EnvironmentOwnerType"
20- description : Filter the environments by the owner type.
14+ summary : Get all global environments
2115 responses :
2216 " 200 " :
23- description : List of environments
17+ description : List of global environments
2418 content :
2519 application/json :
2620 schema :
3024 tags :
3125 - environments
3226 post :
33- summary : Create a new session environment
27+ summary : Create a new global session environment
3428 description : Requires admin permissions
3529 requestBody :
3630 required : true
5145 - environments
5246 /environments/{environment_id} :
5347 get :
54- summary : Get a session environment
48+ summary : Get a global session environment
5549 parameters :
5650 - in : path
5751 name : environment_id
7670 tags :
7771 - environments
7872 patch :
79- summary : Update specific fields of an existing session environment
73+ summary : Update specific fields of an existing global session environment
8074 description : Requires admin permissions
8175 parameters :
8276 - in : path
@@ -108,7 +102,7 @@ paths:
108102 tags :
109103 - environments
110104 delete :
111- summary : Remove a session environment
105+ summary : Remove a global session environment
112106 parameters :
113107 - in : path
114108 name : environment_id
@@ -182,7 +176,7 @@ paths:
182176 tags :
183177 - session_launchers
184178 patch :
185- summary : Update specific fields of an existing session
179+ summary : Update specific fields of an existing session launcher
186180 parameters :
187181 - in : path
188182 name : launcher_id
@@ -270,10 +264,6 @@ components:
270264 $ref : " #/components/schemas/ContainerImage"
271265 default_url :
272266 $ref : " #/components/schemas/DefaultUrl"
273- owner_type :
274- $ref : " #/components/schemas/EnvironmentOwnerType"
275- owner_id :
276- $ref : " #/components/schemas/EnvironmentOwnerId"
277267 uid :
278268 $ref : " #/components/schemas/EnvironmentUid"
279269 gid :
@@ -284,8 +274,6 @@ components:
284274 $ref : " #/components/schemas/EnvironmentMountDirectory"
285275 port :
286276 $ref : " #/components/schemas/EnvironmentPort"
287- visibility :
288- $ref : " #/components/schemas/EnvironmentVisibility"
289277 required :
290278 - id
291279 - name
@@ -298,9 +286,6 @@ components:
298286 - uid
299287 - gid
300288 - default_url
301- - owner_type
302- - owner_id
303- - visibility
304289 example :
305290 id : 01AN4Z79ZS6XX96588FDX0H099
306291 name : JupyterLab environment
@@ -313,10 +298,29 @@ components:
313298 mount_directory : /home/jovyan/work
314299 uid : 1000
315300 gid : 1000
316- owner_type : user
317- ownerId : 4fcd155c-fef5-48de-87f7-2facab8bf4c2
318- visibility : private
301+ EnvironmentGetInLauncher :
302+ allOf :
303+ - $ref : " #/components/schemas/Environment"
304+ - type : object
305+ properties :
306+ environment_kind :
307+ $ref : " #/components/schemas/EnvironmentKind"
308+ required :
309+ - environment_kind
310+ example :
311+ environment_kind : global_environment
319312 EnvironmentPostInLauncher :
313+ allOf :
314+ - $ref : " #/components/schemas/EnvironmentPost"
315+ - type : object
316+ properties :
317+ environment_kind :
318+ $ref : " #/components/schemas/EnvironmentKind"
319+ required :
320+ - environment_kind
321+ example :
322+ environment_kind : global_environment
323+ EnvironmentPost :
320324 description : Data required to create a session environment
321325 type : object
322326 properties :
@@ -350,26 +354,19 @@ components:
350354 allOf :
351355 - $ref : " #/components/schemas/EnvironmentPort"
352356 - default : 8080
353- visibility :
354- allOf :
355- - $ref : " #/components/schemas/EnvironmentVisibility"
356- - default : private
357357 required :
358358 - name
359359 - container_image
360- EnvironmentPost :
360+ EnvironmentPatchInLauncher :
361361 allOf :
362- - $ref : " #/components/schemas/EnvironmentPostInLauncher "
362+ - $ref : " #/components/schemas/EnvironmentPatch "
363363 - type : object
364364 properties :
365- owner_id :
366- $ref : " #/components/schemas/EnvironmentOwnerId"
367- owner_type :
368- $ref : " #/components/schemas/EnvironmentOwnerType"
369- required :
370- - owner_id
371- - owner_type
372- EnvironmentPatchInLauncher :
365+ environment_kind :
366+ $ref : " #/components/schemas/EnvironmentKind"
367+ example :
368+ environment_kind : global_environment
369+ EnvironmentPatch :
373370 type : object
374371 description : Update a session environment
375372 additionalProperties : false
@@ -392,15 +389,6 @@ components:
392389 $ref : " #/components/schemas/EnvironmentMountDirectory"
393390 port :
394391 $ref : " #/components/schemas/EnvironmentPort"
395- EnvironmentPatch :
396- allOf :
397- - $ref : " #/components/schemas/EnvironmentPatchInLauncher"
398- - type : object
399- properties :
400- owner_id :
401- $ref : " #/components/schemas/EnvironmentOwnerId"
402- owner_type :
403- $ref : " #/components/schemas/EnvironmentOwnerType"
404392 SessionLaunchersList :
405393 description : A list of Renku session launchers
406394 type : array
@@ -422,7 +410,7 @@ components:
422410 description :
423411 $ref : " #/components/schemas/Description"
424412 environment :
425- $ref : " #/components/schemas/Environment "
413+ $ref : " #/components/schemas/EnvironmentGetInLauncher "
426414 required :
427415 - id
428416 - project_id
@@ -440,16 +428,14 @@ components:
440428 name : Rstudio
441429 creation_date : " 2023-11-01T17:32:28Z"
442430 description : JupyterLab session environment
431+ environment_kind : global_environment
443432 container_image : rocker/rstudio
444433 default_url : " /rstudio"
445434 port : 8080
446435 working_directory : /home/rstudio/work
447436 mount_directory : /home/rstudio/work
448437 uid : 1000
449438 gid : 1000
450- owner_type : project
451- ownerId : 01AN4Z79ZS5XN0F25N3DB94T4R
452- visibility : private
453439 SessionLauncherPost :
454440 description : Data required to create a session launcher
455441 type : object
@@ -510,6 +496,13 @@ components:
510496 $ref : " #/components/schemas/EnvironmentId"
511497 required :
512498 - id
499+ EnvironmentKind :
500+ description : Kind of environment to use
501+ type : string
502+ enum :
503+ - global_environment
504+ - container_image
505+ example : container_image
513506 EnvironmentId :
514507 description : Id of the environment to use
515508 type : string
@@ -565,22 +558,6 @@ components:
565558 type : string
566559 description : The location where the persistent storage for the session will be mounted, usually it should be identical to or a parent of the working directory
567560 minLength : 1
568- EnvironmentOwnerType :
569- type : string
570- enum :
571- - user
572- - group
573- - project
574- - platform
575- description : The owner of the environment which is used to enforce authorization on it
576- EnvironmentOwnerId :
577- type : string
578- description : The id of the entity that owns the environment
579- EnvironmentVisibility :
580- type : string
581- enum :
582- - public
583- - private
584561 ErrorResponse :
585562 type : object
586563 properties :
0 commit comments