From 3ec5ee3b20f40147ff7559a8b7efe0ccd3d76342 Mon Sep 17 00:00:00 2001 From: Barak Amar Date: Thu, 18 Jan 2024 17:21:24 +0200 Subject: [PATCH] API: add mising status code for usage-report (#7306) --- api/swagger.yml | 2 ++ clients/java-legacy/api/openapi.yaml | 6 ++++++ clients/java-legacy/docs/InternalApi.md | 1 + .../src/main/java/io/lakefs/clients/api/InternalApi.java | 4 ++++ clients/java/api/openapi.yaml | 6 ++++++ clients/java/docs/InternalApi.md | 1 + .../src/main/java/io/lakefs/clients/sdk/InternalApi.java | 5 +++++ clients/python-legacy/docs/InternalApi.md | 1 + clients/python/docs/InternalApi.md | 1 + clients/python/lakefs_sdk/api/internal_api.py | 1 + docs/assets/js/swagger.yml | 8 ++++---- 11 files changed, 32 insertions(+), 4 deletions(-) diff --git a/api/swagger.yml b/api/swagger.yml index aa37a4dd490..0a9917666b7 100644 --- a/api/swagger.yml +++ b/api/swagger.yml @@ -5362,6 +5362,8 @@ paths: $ref: "#/components/responses/BadRequest" 401: $ref: "#/components/responses/Unauthorized" + 404: + $ref: "#/components/responses/NotFound" 420: description: too many requests default: diff --git a/clients/java-legacy/api/openapi.yaml b/clients/java-legacy/api/openapi.yaml index 9cf6c02e6c9..e684467e4b8 100644 --- a/clients/java-legacy/api/openapi.yaml +++ b/clients/java-legacy/api/openapi.yaml @@ -6507,6 +6507,12 @@ paths: schema: $ref: '#/components/schemas/Error' description: Unauthorized + "404": + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + description: Resource Not Found "420": description: too many requests default: diff --git a/clients/java-legacy/docs/InternalApi.md b/clients/java-legacy/docs/InternalApi.md index 6fd718aa8cf..ee4c456b572 100644 --- a/clients/java-legacy/docs/InternalApi.md +++ b/clients/java-legacy/docs/InternalApi.md @@ -869,6 +869,7 @@ This endpoint does not need any parameter. **200** | Usage report | - | **400** | Bad Request | - | **401** | Unauthorized | - | +**404** | Resource Not Found | - | **420** | too many requests | - | **0** | Internal Server Error | - | diff --git a/clients/java-legacy/src/main/java/io/lakefs/clients/api/InternalApi.java b/clients/java-legacy/src/main/java/io/lakefs/clients/api/InternalApi.java index 028feab0036..6d5a75e9a2d 100644 --- a/clients/java-legacy/src/main/java/io/lakefs/clients/api/InternalApi.java +++ b/clients/java-legacy/src/main/java/io/lakefs/clients/api/InternalApi.java @@ -1179,6 +1179,7 @@ public okhttp3.Call getStorageConfigAsync(final ApiCallback _call 200 Usage report - 400 Bad Request - 401 Unauthorized - + 404 Resource Not Found - 420 too many requests - 0 Internal Server Error - @@ -1233,6 +1234,7 @@ private okhttp3.Call getUsageReportSummaryValidateBeforeCall(final ApiCallback _ 200 Usage report - 400 Bad Request - 401 Unauthorized - + 404 Resource Not Found - 420 too many requests - 0 Internal Server Error - @@ -1253,6 +1255,7 @@ public InstallationUsageReport getUsageReportSummary() throws ApiException { 200 Usage report - 400 Bad Request - 401 Unauthorized - + 404 Resource Not Found - 420 too many requests - 0 Internal Server Error - @@ -1275,6 +1278,7 @@ public ApiResponse getUsageReportSummaryWithHttpInfo() 200 Usage report - 400 Bad Request - 401 Unauthorized - + 404 Resource Not Found - 420 too many requests - 0 Internal Server Error - diff --git a/clients/java/api/openapi.yaml b/clients/java/api/openapi.yaml index 11552e70ca2..b3e4e7384d2 100644 --- a/clients/java/api/openapi.yaml +++ b/clients/java/api/openapi.yaml @@ -6496,6 +6496,12 @@ paths: schema: $ref: '#/components/schemas/Error' description: Unauthorized + "404": + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + description: Resource Not Found "420": description: too many requests default: diff --git a/clients/java/docs/InternalApi.md b/clients/java/docs/InternalApi.md index a4451edfef6..494e6d41b72 100644 --- a/clients/java/docs/InternalApi.md +++ b/clients/java/docs/InternalApi.md @@ -880,6 +880,7 @@ This endpoint does not need any parameter. | **200** | Usage report | - | | **400** | Bad Request | - | | **401** | Unauthorized | - | +| **404** | Resource Not Found | - | | **420** | too many requests | - | | **0** | Internal Server Error | - | diff --git a/clients/java/src/main/java/io/lakefs/clients/sdk/InternalApi.java b/clients/java/src/main/java/io/lakefs/clients/sdk/InternalApi.java index 3e0b026a2cf..4be24884f99 100644 --- a/clients/java/src/main/java/io/lakefs/clients/sdk/InternalApi.java +++ b/clients/java/src/main/java/io/lakefs/clients/sdk/InternalApi.java @@ -1667,6 +1667,7 @@ private APIgetUsageReportSummaryRequest() { 200 Usage report - 400 Bad Request - 401 Unauthorized - + 404 Resource Not Found - 420 too many requests - 0 Internal Server Error - @@ -1685,6 +1686,7 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { 200 Usage report - 400 Bad Request - 401 Unauthorized - + 404 Resource Not Found - 420 too many requests - 0 Internal Server Error - @@ -1704,6 +1706,7 @@ public InstallationUsageReport execute() throws ApiException { 200 Usage report - 400 Bad Request - 401 Unauthorized - + 404 Resource Not Found - 420 too many requests - 0 Internal Server Error - @@ -1723,6 +1726,7 @@ public ApiResponse executeWithHttpInfo() throws ApiExce 200 Usage report - 400 Bad Request - 401 Unauthorized - + 404 Resource Not Found - 420 too many requests - 0 Internal Server Error - @@ -1742,6 +1746,7 @@ public okhttp3.Call executeAsync(final ApiCallback _cal 200 Usage report - 400 Bad Request - 401 Unauthorized - + 404 Resource Not Found - 420 too many requests - 0 Internal Server Error - diff --git a/clients/python-legacy/docs/InternalApi.md b/clients/python-legacy/docs/InternalApi.md index adb7414f66f..33e810aa96f 100644 --- a/clients/python-legacy/docs/InternalApi.md +++ b/clients/python-legacy/docs/InternalApi.md @@ -1015,6 +1015,7 @@ This endpoint does not need any parameter. **200** | Usage report | - | **400** | Bad Request | - | **401** | Unauthorized | - | +**404** | Resource Not Found | - | **420** | too many requests | - | **0** | Internal Server Error | - | diff --git a/clients/python/docs/InternalApi.md b/clients/python/docs/InternalApi.md index e1d414f88ec..d10ea94135a 100644 --- a/clients/python/docs/InternalApi.md +++ b/clients/python/docs/InternalApi.md @@ -1020,6 +1020,7 @@ This endpoint does not need any parameter. **200** | Usage report | - | **400** | Bad Request | - | **401** | Unauthorized | - | +**404** | Resource Not Found | - | **420** | too many requests | - | **0** | Internal Server Error | - | diff --git a/clients/python/lakefs_sdk/api/internal_api.py b/clients/python/lakefs_sdk/api/internal_api.py index fd77f39cb8d..102c88e207b 100644 --- a/clients/python/lakefs_sdk/api/internal_api.py +++ b/clients/python/lakefs_sdk/api/internal_api.py @@ -1424,6 +1424,7 @@ def get_usage_report_summary_with_http_info(self, **kwargs) -> ApiResponse: # n '200': "InstallationUsageReport", '400': "Error", '401': "Error", + '404': "Error", '420': None, } diff --git a/docs/assets/js/swagger.yml b/docs/assets/js/swagger.yml index 2cb070713d0..0a9917666b7 100644 --- a/docs/assets/js/swagger.yml +++ b/docs/assets/js/swagger.yml @@ -2670,7 +2670,7 @@ paths: operationId: deleteRepositoryMetadata summary: delete repository metadata description: | - Delete repository metadata. Deletes the provided keys from the repository metadata. + Delete specified keys from the repository's metadata. requestBody: required: true content: @@ -2679,11 +2679,9 @@ paths: $ref: "#/components/schemas/RepositoryMetadataKeys" responses: 204: - description: repository metadata deleted successfully + description: repository metadata keys deleted successfully 401: $ref: "#/components/responses/Unauthorized" - 404: - $ref: "#/components/responses/NotFound" 420: description: too many requests default: @@ -5364,6 +5362,8 @@ paths: $ref: "#/components/responses/BadRequest" 401: $ref: "#/components/responses/Unauthorized" + 404: + $ref: "#/components/responses/NotFound" 420: description: too many requests default: