From 485ed40e865b2c46e95ae615a0449be8d898127f Mon Sep 17 00:00:00 2001 From: Angel Date: Thu, 16 Jan 2025 11:46:58 -0500 Subject: [PATCH] Fix: Add Admins and groups schemas (#8342) entities for dev site --- api-specs/Gateway-EE/3.4/kong-ee-3.4.yaml | 79 +++++++++++++++++++++++ api-specs/Gateway-EE/3.6/kong-ee-3.6.yaml | 79 +++++++++++++++++++++++ api-specs/Gateway-EE/3.7/kong-ee-3.7.yaml | 79 +++++++++++++++++++++++ api-specs/Gateway-EE/3.8/kong-ee.yaml | 79 +++++++++++++++++++++++ api-specs/Gateway-EE/3.9/kong-ee.yaml | 79 +++++++++++++++++++++++ api-specs/Gateway-EE/latest/kong-ee.yaml | 79 +++++++++++++++++++++++ 6 files changed, 474 insertions(+) diff --git a/api-specs/Gateway-EE/3.4/kong-ee-3.4.yaml b/api-specs/Gateway-EE/3.4/kong-ee-3.4.yaml index b4a1ff2fcfb5..6f4fc308cbe6 100644 --- a/api-specs/Gateway-EE/3.4/kong-ee-3.4.yaml +++ b/api-specs/Gateway-EE/3.4/kong-ee-3.4.yaml @@ -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: diff --git a/api-specs/Gateway-EE/3.6/kong-ee-3.6.yaml b/api-specs/Gateway-EE/3.6/kong-ee-3.6.yaml index 96e243823c29..d71e9fb601db 100644 --- a/api-specs/Gateway-EE/3.6/kong-ee-3.6.yaml +++ b/api-specs/Gateway-EE/3.6/kong-ee-3.6.yaml @@ -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: diff --git a/api-specs/Gateway-EE/3.7/kong-ee-3.7.yaml b/api-specs/Gateway-EE/3.7/kong-ee-3.7.yaml index fb24519c2d65..4bf261b2d247 100644 --- a/api-specs/Gateway-EE/3.7/kong-ee-3.7.yaml +++ b/api-specs/Gateway-EE/3.7/kong-ee-3.7.yaml @@ -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: diff --git a/api-specs/Gateway-EE/3.8/kong-ee.yaml b/api-specs/Gateway-EE/3.8/kong-ee.yaml index 40fe5b58e7f1..6412160357d8 100644 --- a/api-specs/Gateway-EE/3.8/kong-ee.yaml +++ b/api-specs/Gateway-EE/3.8/kong-ee.yaml @@ -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: diff --git a/api-specs/Gateway-EE/3.9/kong-ee.yaml b/api-specs/Gateway-EE/3.9/kong-ee.yaml index 68cfbaecc806..b27038d3dce8 100644 --- a/api-specs/Gateway-EE/3.9/kong-ee.yaml +++ b/api-specs/Gateway-EE/3.9/kong-ee.yaml @@ -260,6 +260,85 @@ components: default: true type: boolean 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: diff --git a/api-specs/Gateway-EE/latest/kong-ee.yaml b/api-specs/Gateway-EE/latest/kong-ee.yaml index 40fe5b58e7f1..d86d4f5192e5 100644 --- a/api-specs/Gateway-EE/latest/kong-ee.yaml +++ b/api-specs/Gateway-EE/latest/kong-ee.yaml @@ -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: