Skip to content

Commit

Permalink
CASMCMS-9067: Add new BOS v2 session_limit_required option
Browse files Browse the repository at this point in the history
(cherry-picked from commit 8ea0bfd)
  • Loading branch information
mharding-hpe committed Jul 29, 2024
1 parent a937638 commit 233d46d
Show file tree
Hide file tree
Showing 2 changed files with 34 additions and 4 deletions.
8 changes: 7 additions & 1 deletion cray/modules/bos/openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -686,7 +686,8 @@ components:
type: string
V2SessionCreate:
description: |
A Session Creation object
A Session Creation object. A UUID name is generated if a name is not provided. The limit parameter is
required if the session_limit_required option is true.
type: object
properties:
name:
Expand Down Expand Up @@ -721,6 +722,8 @@ components:
A comma-separated of nodes, groups, or roles to which the session
will be limited. Components are treated as OR operations unless
preceded by "&" for AND or "!" for NOT.
Alternatively, the limit can be set to "*", which means no limit.
stage:
type: boolean
description: >
Expand Down Expand Up @@ -1217,6 +1220,9 @@ components:
example: 1000
minimum: 0
maximum: 131071
session_limit_required:
type: boolean
description: If true, BOS v2 Sessions cannot be created without specifying the limit parameter.
additionalProperties: true
requestBodies:
V2sessionCreateRequest:
Expand Down
30 changes: 27 additions & 3 deletions cray/modules/bos/swagger3.json
Original file line number Diff line number Diff line change
Expand Up @@ -1258,7 +1258,7 @@
"type": "string"
},
"V2SessionCreate": {
"description": "A Session Creation object\n",
"description": "A Session Creation object. A UUID name is generated if a name is not provided. The limit parameter is required if the session_limit_required option is true.\n",
"type": "object",
"properties": {
"name": {
Expand Down Expand Up @@ -1286,7 +1286,7 @@
},
"limit": {
"type": "string",
"description": "A comma-separated of nodes, groups, or roles to which the session will be limited. Components are treated as OR operations unless preceded by \"&\" for AND or \"!\" for NOT.\n"
"description": "A comma-separated of nodes, groups, or roles to which the session will be limited. Components are treated as OR operations unless preceded by \"&\" for AND or \"!\" for NOT.\nAlternatively, the limit can be set to \"*\", which means no limit.\n"
},
"stage": {
"type": "boolean",
Expand Down Expand Up @@ -2633,6 +2633,10 @@
"example": 1000,
"minimum": 0,
"maximum": 131071
},
"session_limit_required": {
"type": "boolean",
"description": "If true, BOS v2 Sessions cannot be created without specifying the limit parameter."
}
},
"additionalProperties": true
Expand Down Expand Up @@ -2673,7 +2677,7 @@
},
"limit": {
"type": "string",
"description": "A comma-separated of nodes, groups, or roles to which the session will be limited. Components are treated as OR operations unless preceded by \"&\" for AND or \"!\" for NOT.\n"
"description": "A comma-separated of nodes, groups, or roles to which the session will be limited. Components are treated as OR operations unless preceded by \"&\" for AND or \"!\" for NOT.\nAlternatively, the limit can be set to \"*\", which means no limit.\n"
},
"stage": {
"type": "boolean",
Expand Down Expand Up @@ -3647,6 +3651,10 @@
"example": 1000,
"minimum": 0,
"maximum": 131071
},
"session_limit_required": {
"type": "boolean",
"description": "If true, BOS v2 Sessions cannot be created without specifying the limit parameter."
}
},
"additionalProperties": true
Expand Down Expand Up @@ -5182,6 +5190,10 @@
"example": 1000,
"minimum": 0,
"maximum": 131071
},
"session_limit_required": {
"type": "boolean",
"description": "If true, BOS v2 Sessions cannot be created without specifying the limit parameter."
}
},
"additionalProperties": true
Expand Down Expand Up @@ -14658,6 +14670,10 @@
"example": 1000,
"minimum": 0,
"maximum": 131071
},
"session_limit_required": {
"type": "boolean",
"description": "If true, BOS v2 Sessions cannot be created without specifying the limit parameter."
}
},
"additionalProperties": true
Expand Down Expand Up @@ -14736,6 +14752,10 @@
"example": 1000,
"minimum": 0,
"maximum": 131071
},
"session_limit_required": {
"type": "boolean",
"description": "If true, BOS v2 Sessions cannot be created without specifying the limit parameter."
}
},
"additionalProperties": true
Expand Down Expand Up @@ -14803,6 +14823,10 @@
"example": 1000,
"minimum": 0,
"maximum": 131071
},
"session_limit_required": {
"type": "boolean",
"description": "If true, BOS v2 Sessions cannot be created without specifying the limit parameter."
}
},
"additionalProperties": true
Expand Down

0 comments on commit 233d46d

Please sign in to comment.