Skip to content

Commit

Permalink
Fix: Add Admins and groups schemas (#8342)
Browse files Browse the repository at this point in the history
entities for dev site
  • Loading branch information
Guaris authored Jan 16, 2025
1 parent 444ab75 commit 485ed40
Show file tree
Hide file tree
Showing 6 changed files with 474 additions and 0 deletions.
79 changes: 79 additions & 0 deletions api-specs/Gateway-EE/3.4/kong-ee-3.4.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -244,6 +244,85 @@ components:
After filter could be used to request audit log data that was recorded after certain time (inclusive).
It can either be a timestamp as Unix Epoch or a string following RFC3339 Schema (without fractions of a second) - ex: '2024-04-25T15:03:24Z'
schemas:
Admin:
type: object
properties:
id:
type: string
format: uuid
description: Unique identifier for the admin.
created_at:
type: integer
format: timestamp
description: Timestamp when the admin was created.
updated_at:
type: integer
format: timestamp
description: Timestamp when the admin was last updated.
username:
type: string
description: The admin's username.
uniqueItems: true
username_lower:
type: string
description: The admin's username in lowercase.
custom_id:
type: string
description: The Admin’s custom ID.
uniqueItems: true
email:
type: string
format: email
description: The admin's email address.
uniqueItems: true
status:
type: string
description: The status of the admin.
enum:
- active
- inactive
rbac_token_enabled:
type: boolean
description: Allows the Admin to use and reset their RBAC token; true by default.
default: true
consumer:
type: string
description: The ID of the associated consumer.
format: uuid
rbac_user:
type: string
description: The ID of the associated RBAC user.
format: uuid
required:
- username
- status
- rbac_token_enabled
- consumer
- rbac_user
Group:
type: object
properties:
id:
type: string
format: uuid
description: Unique identifier for the group.
created_at:
type: integer
format: timestamp
description: Timestamp when the group was created.
updated_at:
type: integer
format: timestamp
description: Timestamp when the group was last updated.
name:
type: string
description: The name of the group.
uniqueItems: true
comment:
type: string
description: Any comments associated with the specific group.
required:
- name
UnauthorizedError:
type: object
properties:
Expand Down
79 changes: 79 additions & 0 deletions api-specs/Gateway-EE/3.6/kong-ee-3.6.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -233,6 +233,85 @@ components:
type: string
description: The unique identifier of the filter chain to retrieve.
schemas:
Admin:
type: object
properties:
id:
type: string
format: uuid
description: Unique identifier for the admin.
created_at:
type: integer
format: timestamp
description: Timestamp when the admin was created.
updated_at:
type: integer
format: timestamp
description: Timestamp when the admin was last updated.
username:
type: string
description: The admin's username.
uniqueItems: true
username_lower:
type: string
description: The admin's username in lowercase.
custom_id:
type: string
description: The Admin’s custom ID.
uniqueItems: true
email:
type: string
format: email
description: The admin's email address.
uniqueItems: true
status:
type: string
description: The status of the admin.
enum:
- active
- inactive
rbac_token_enabled:
type: boolean
description: Allows the Admin to use and reset their RBAC token; true by default.
default: true
consumer:
type: string
description: The ID of the associated consumer.
format: uuid
rbac_user:
type: string
description: The ID of the associated RBAC user.
format: uuid
required:
- username
- status
- rbac_token_enabled
- consumer
- rbac_user
Group:
type: object
properties:
id:
type: string
format: uuid
description: Unique identifier for the group.
created_at:
type: integer
format: timestamp
description: Timestamp when the group was created.
updated_at:
type: integer
format: timestamp
description: Timestamp when the group was last updated.
name:
type: string
description: The name of the group.
uniqueItems: true
comment:
type: string
description: Any comments associated with the specific group.
required:
- name
UnauthorizedError:
type: object
properties:
Expand Down
79 changes: 79 additions & 0 deletions api-specs/Gateway-EE/3.7/kong-ee-3.7.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -251,6 +251,85 @@ components:
After filter could be used to request audit log data that was recorded after certain time (inclusive).
It can either be a timestamp as Unix Epoch or a string following RFC3339 Schema (without fractions of a second) - ex: '2024-04-25T15:03:24Z'
schemas:
Admin:
type: object
properties:
id:
type: string
format: uuid
description: Unique identifier for the admin.
created_at:
type: integer
format: timestamp
description: Timestamp when the admin was created.
updated_at:
type: integer
format: timestamp
description: Timestamp when the admin was last updated.
username:
type: string
description: The admin's username.
uniqueItems: true
username_lower:
type: string
description: The admin's username in lowercase.
custom_id:
type: string
description: The Admin’s custom ID.
uniqueItems: true
email:
type: string
format: email
description: The admin's email address.
uniqueItems: true
status:
type: string
description: The status of the admin.
enum:
- active
- inactive
rbac_token_enabled:
type: boolean
description: Allows the Admin to use and reset their RBAC token; true by default.
default: true
consumer:
type: string
description: The ID of the associated consumer.
format: uuid
rbac_user:
type: string
description: The ID of the associated RBAC user.
format: uuid
required:
- username
- status
- rbac_token_enabled
- consumer
- rbac_user
Group:
type: object
properties:
id:
type: string
format: uuid
description: Unique identifier for the group.
created_at:
type: integer
format: timestamp
description: Timestamp when the group was created.
updated_at:
type: integer
format: timestamp
description: Timestamp when the group was last updated.
name:
type: string
description: The name of the group.
uniqueItems: true
comment:
type: string
description: Any comments associated with the specific group.
required:
- name
UnauthorizedError:
type: object
properties:
Expand Down
79 changes: 79 additions & 0 deletions api-specs/Gateway-EE/3.8/kong-ee.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -253,6 +253,85 @@ components:
After filter could be used to request audit log data that was recorded after certain time (inclusive).
It can either be a timestamp as Unix Epoch or a string following RFC3339 Schema (without fractions of a second) - ex: '2024-04-25T15:03:24Z'
schemas:
Admin:
type: object
properties:
id:
type: string
format: uuid
description: Unique identifier for the admin.
created_at:
type: integer
format: timestamp
description: Timestamp when the admin was created.
updated_at:
type: integer
format: timestamp
description: Timestamp when the admin was last updated.
username:
type: string
description: The admin's username.
uniqueItems: true
username_lower:
type: string
description: The admin's username in lowercase.
custom_id:
type: string
description: The Admin’s custom ID.
uniqueItems: true
email:
type: string
format: email
description: The admin's email address.
uniqueItems: true
status:
type: string
description: The status of the admin.
enum:
- active
- inactive
rbac_token_enabled:
type: boolean
description: Allows the Admin to use and reset their RBAC token; true by default.
default: true
consumer:
type: string
description: The ID of the associated consumer.
format: uuid
rbac_user:
type: string
description: The ID of the associated RBAC user.
format: uuid
required:
- username
- status
- rbac_token_enabled
- consumer
- rbac_user
Group:
type: object
properties:
id:
type: string
format: uuid
description: Unique identifier for the group.
created_at:
type: integer
format: timestamp
description: Timestamp when the group was created.
updated_at:
type: integer
format: timestamp
description: Timestamp when the group was last updated.
name:
type: string
description: The name of the group.
uniqueItems: true
comment:
type: string
description: Any comments associated with the specific group.
required:
- name
UnauthorizedError:
type: object
properties:
Expand Down
Loading

0 comments on commit 485ed40

Please sign in to comment.