Skip to content

Commit 4e975b0

Browse files
authored
Merge branch 'main' into spec/custom-runner-image
2 parents cd74c3e + 5556220 commit 4e975b0

98 files changed

Lines changed: 888 additions & 512 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

components/ambient-api-server/openapi/openapi.roleBindings.yaml

Lines changed: 35 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -219,18 +219,34 @@ components:
219219
- $ref: 'openapi.yaml#/components/schemas/ObjectReference'
220220
- type: object
221221
required:
222-
- user_id
223222
- role_id
224223
- scope
225224
properties:
226-
user_id:
227-
type: string
228225
role_id:
229226
type: string
230227
scope:
231228
type: string
232-
scope_id:
229+
enum: [global, project, agent, session, credential]
230+
user_id:
231+
type: string
232+
nullable: true
233+
description: Nullable — set when the binding is user-specific
234+
project_id:
235+
type: string
236+
nullable: true
237+
description: Nullable — set when scope=project or when binding a credential to a project
238+
agent_id:
239+
type: string
240+
nullable: true
241+
description: Nullable — set when scope=agent
242+
session_id:
243+
type: string
244+
nullable: true
245+
description: Nullable — set when scope=session
246+
credential_id:
233247
type: string
248+
nullable: true
249+
description: Nullable — set when scope=credential
234250
# NEW SCHEMA START
235251
RoleBindingList:
236252
# NEW SCHEMA END
@@ -247,14 +263,26 @@ components:
247263
# NEW SCHEMA END
248264
type: object
249265
properties:
250-
user_id:
251-
type: string
252266
role_id:
253267
type: string
254268
scope:
255269
type: string
256-
scope_id:
270+
enum: [global, project, agent, session, credential]
271+
user_id:
272+
type: string
273+
nullable: true
274+
project_id:
275+
type: string
276+
nullable: true
277+
agent_id:
278+
type: string
279+
nullable: true
280+
session_id:
281+
type: string
282+
nullable: true
283+
credential_id:
257284
type: string
285+
nullable: true
258286
parameters:
259287
id:
260288
name: id

0 commit comments

Comments
 (0)