diff --git a/docs/src/rest.yaml b/docs/src/rest.yaml index d0bedeac..24991693 100644 --- a/docs/src/rest.yaml +++ b/docs/src/rest.yaml @@ -107,21 +107,27 @@ paths: 200: $ref: '#/components/responses/CreateNamespaceResponse' 400: - $ref: '#/components/responses/BadRequestErrorResponse' + description: Bad request - invalid request format or identifier + content: + application/json: + schema: + oneOf: + - $ref: '#/components/schemas/InvalidRequestError' + - $ref: '#/components/schemas/InvalidIdentifierError' 401: $ref: '#/components/responses/UnauthorizedErrorResponse' 403: $ref: '#/components/responses/ForbiddenErrorResponse' 404: - $ref: '#/components/responses/NotFoundErrorResponse' + $ref: '#/components/responses/ParentNamespaceNotFoundErrorResponse' 406: $ref: '#/components/responses/UnsupportedOperationErrorResponse' 409: - $ref: '#/components/responses/ConflictErrorResponse' + $ref: '#/components/responses/NamespaceAlreadyExistsErrorResponse' 503: $ref: '#/components/responses/ServiceUnavailableErrorResponse' 5XX: - $ref: '#/components/responses/ServerErrorResponse' + $ref: '#/components/responses/UnknownErrorResponse' /v1/namespace/{id}/list: parameters: @@ -154,19 +160,19 @@ paths: 200: $ref: '#/components/responses/ListNamespacesResponse' 400: - $ref: '#/components/responses/BadRequestErrorResponse' + $ref: '#/components/responses/InvalidRequestErrorResponse' 401: $ref: '#/components/responses/UnauthorizedErrorResponse' 403: $ref: '#/components/responses/ForbiddenErrorResponse' 404: - $ref: '#/components/responses/NotFoundErrorResponse' + $ref: '#/components/responses/NamespaceNotFoundErrorResponse' 406: $ref: '#/components/responses/UnsupportedOperationErrorResponse' 503: $ref: '#/components/responses/ServiceUnavailableErrorResponse' 5XX: - $ref: '#/components/responses/ServerErrorResponse' + $ref: '#/components/responses/UnknownErrorResponse' /v1/namespace/{id}/describe: parameters: @@ -190,17 +196,17 @@ paths: 200: $ref: '#/components/responses/DescribeNamespaceResponse' 400: - $ref: '#/components/responses/BadRequestErrorResponse' + $ref: '#/components/responses/InvalidRequestErrorResponse' 401: $ref: '#/components/responses/UnauthorizedErrorResponse' 403: $ref: '#/components/responses/ForbiddenErrorResponse' 404: - $ref: '#/components/responses/NotFoundErrorResponse' + $ref: '#/components/responses/NamespaceNotFoundErrorResponse' 503: $ref: '#/components/responses/ServiceUnavailableErrorResponse' 5XX: - $ref: '#/components/responses/ServerErrorResponse' + $ref: '#/components/responses/UnknownErrorResponse' /v1/namespace/{id}/drop: parameters: @@ -224,19 +230,19 @@ paths: 200: $ref: '#/components/responses/DropNamespaceResponse' 400: - $ref: '#/components/responses/BadRequestErrorResponse' + $ref: '#/components/responses/InvalidRequestErrorResponse' 401: $ref: '#/components/responses/UnauthorizedErrorResponse' 403: $ref: '#/components/responses/ForbiddenErrorResponse' 404: - $ref: '#/components/responses/NotFoundErrorResponse' + $ref: '#/components/responses/NamespaceNotFoundErrorResponse' 409: - $ref: '#/components/responses/ConflictErrorResponse' + $ref: '#/components/responses/NamespaceNotEmptyErrorResponse' 503: $ref: '#/components/responses/ServiceUnavailableErrorResponse' 5XX: - $ref: '#/components/responses/ServerErrorResponse' + $ref: '#/components/responses/UnknownErrorResponse' /v1/namespace/{id}/exists: parameters: @@ -263,17 +269,17 @@ paths: 200: description: Success, no content 400: - $ref: '#/components/responses/BadRequestErrorResponse' + $ref: '#/components/responses/InvalidRequestErrorResponse' 401: $ref: '#/components/responses/UnauthorizedErrorResponse' 403: $ref: '#/components/responses/ForbiddenErrorResponse' 404: - $ref: '#/components/responses/NotFoundErrorResponse' + $ref: '#/components/responses/NamespaceNotFoundErrorResponse' 503: $ref: '#/components/responses/ServiceUnavailableErrorResponse' 5XX: - $ref: '#/components/responses/ServerErrorResponse' + $ref: '#/components/responses/UnknownErrorResponse' /v1/namespace/{id}/table/list: parameters: @@ -307,19 +313,19 @@ paths: 200: $ref: '#/components/responses/ListTablesResponse' 400: - $ref: '#/components/responses/BadRequestErrorResponse' + $ref: '#/components/responses/InvalidRequestErrorResponse' 401: $ref: '#/components/responses/UnauthorizedErrorResponse' 403: $ref: '#/components/responses/ForbiddenErrorResponse' 404: - $ref: '#/components/responses/NotFoundErrorResponse' + $ref: '#/components/responses/NamespaceNotFoundErrorResponse' 406: $ref: '#/components/responses/UnsupportedOperationErrorResponse' 503: $ref: '#/components/responses/ServiceUnavailableErrorResponse' 5XX: - $ref: '#/components/responses/ServerErrorResponse' + $ref: '#/components/responses/UnknownErrorResponse' # Table Metadata APIs @@ -345,21 +351,21 @@ paths: 200: $ref: '#/components/responses/RegisterTableResponse' 400: - $ref: '#/components/responses/BadRequestErrorResponse' + $ref: '#/components/responses/InvalidRequestErrorResponse' 401: $ref: '#/components/responses/UnauthorizedErrorResponse' 403: $ref: '#/components/responses/ForbiddenErrorResponse' 404: - $ref: '#/components/responses/NotFoundErrorResponse' + $ref: '#/components/responses/ParentNamespaceNotFoundErrorResponse' 406: $ref: '#/components/responses/UnsupportedOperationErrorResponse' 409: - $ref: '#/components/responses/ConflictErrorResponse' + $ref: '#/components/responses/TableAlreadyExistsErrorResponse' 503: $ref: '#/components/responses/ServiceUnavailableErrorResponse' 5XX: - $ref: '#/components/responses/ServerErrorResponse' + $ref: '#/components/responses/UnknownErrorResponse' /v1/table/{id}/describe: parameters: @@ -383,17 +389,17 @@ paths: 200: $ref: '#/components/responses/DescribeTableResponse' 400: - $ref: '#/components/responses/BadRequestErrorResponse' + $ref: '#/components/responses/InvalidRequestErrorResponse' 401: $ref: '#/components/responses/UnauthorizedErrorResponse' 403: $ref: '#/components/responses/ForbiddenErrorResponse' 404: - $ref: '#/components/responses/NotFoundErrorResponse' + $ref: '#/components/responses/TableNotFoundErrorResponse' 503: $ref: '#/components/responses/ServiceUnavailableErrorResponse' 5XX: - $ref: '#/components/responses/ServerErrorResponse' + $ref: '#/components/responses/UnknownErrorResponse' /v1/table/{id}/exists: parameters: @@ -424,17 +430,17 @@ paths: 200: description: Success, no content 400: - $ref: '#/components/responses/BadRequestErrorResponse' + $ref: '#/components/responses/InvalidRequestErrorResponse' 401: $ref: '#/components/responses/UnauthorizedErrorResponse' 403: $ref: '#/components/responses/ForbiddenErrorResponse' 404: - $ref: '#/components/responses/NotFoundErrorResponse' + $ref: '#/components/responses/TableNotFoundErrorResponse' 503: $ref: '#/components/responses/ServiceUnavailableErrorResponse' 5XX: - $ref: '#/components/responses/ServerErrorResponse' + $ref: '#/components/responses/UnknownErrorResponse' /v1/table/{id}/drop: parameters: @@ -458,17 +464,17 @@ paths: 200: $ref: '#/components/responses/DropTableResponse' 400: - $ref: '#/components/responses/BadRequestErrorResponse' + $ref: '#/components/responses/InvalidRequestErrorResponse' 401: $ref: '#/components/responses/UnauthorizedErrorResponse' 403: $ref: '#/components/responses/ForbiddenErrorResponse' 404: - $ref: '#/components/responses/NotFoundErrorResponse' + $ref: '#/components/responses/TableNotFoundErrorResponse' 503: $ref: '#/components/responses/ServiceUnavailableErrorResponse' 5XX: - $ref: '#/components/responses/ServerErrorResponse' + $ref: '#/components/responses/UnknownErrorResponse' /v1/table/{id}/deregister: parameters: @@ -492,17 +498,17 @@ paths: 200: $ref: '#/components/responses/DeregisterTableResponse' 400: - $ref: '#/components/responses/BadRequestErrorResponse' + $ref: '#/components/responses/InvalidRequestErrorResponse' 401: $ref: '#/components/responses/UnauthorizedErrorResponse' 403: $ref: '#/components/responses/ForbiddenErrorResponse' 404: - $ref: '#/components/responses/NotFoundErrorResponse' + $ref: '#/components/responses/TableNotFoundErrorResponse' 503: $ref: '#/components/responses/ServiceUnavailableErrorResponse' 5XX: - $ref: '#/components/responses/ServerErrorResponse' + $ref: '#/components/responses/UnknownErrorResponse' /v1/table/{id}/restore: parameters: @@ -526,17 +532,23 @@ paths: 200: $ref: '#/components/responses/RestoreTableResponse' 400: - $ref: '#/components/responses/BadRequestErrorResponse' + $ref: '#/components/responses/InvalidRequestErrorResponse' 401: $ref: '#/components/responses/UnauthorizedErrorResponse' 403: $ref: '#/components/responses/ForbiddenErrorResponse' 404: - $ref: '#/components/responses/NotFoundErrorResponse' + description: Not found - table or version does not exist + content: + application/json: + schema: + oneOf: + - $ref: '#/components/schemas/TableNotFoundError' + - $ref: '#/components/schemas/TableVersionNotFoundError' 503: $ref: '#/components/responses/ServiceUnavailableErrorResponse' 5XX: - $ref: '#/components/responses/ServerErrorResponse' + $ref: '#/components/responses/UnknownErrorResponse' /v1/table/{id}/version/list: parameters: @@ -560,17 +572,17 @@ paths: 200: $ref: '#/components/responses/ListTableVersionsResponse' 400: - $ref: '#/components/responses/BadRequestErrorResponse' + $ref: '#/components/responses/InvalidRequestErrorResponse' 401: $ref: '#/components/responses/UnauthorizedErrorResponse' 403: $ref: '#/components/responses/ForbiddenErrorResponse' 404: - $ref: '#/components/responses/NotFoundErrorResponse' + $ref: '#/components/responses/TableNotFoundErrorResponse' 503: $ref: '#/components/responses/ServiceUnavailableErrorResponse' 5XX: - $ref: '#/components/responses/ServerErrorResponse' + $ref: '#/components/responses/UnknownErrorResponse' /v1/table/{id}/alter_columns: parameters: @@ -594,17 +606,23 @@ paths: 200: $ref: '#/components/responses/AlterTableAlterColumnsResponse' 400: - $ref: '#/components/responses/BadRequestErrorResponse' + description: Bad request - invalid request or column not found + content: + application/json: + schema: + oneOf: + - $ref: '#/components/schemas/InvalidRequestError' + - $ref: '#/components/schemas/TableColumnNotFoundError' 401: $ref: '#/components/responses/UnauthorizedErrorResponse' 403: $ref: '#/components/responses/ForbiddenErrorResponse' 404: - $ref: '#/components/responses/NotFoundErrorResponse' + $ref: '#/components/responses/TableNotFoundErrorResponse' 503: $ref: '#/components/responses/ServiceUnavailableErrorResponse' 5XX: - $ref: '#/components/responses/ServerErrorResponse' + $ref: '#/components/responses/UnknownErrorResponse' /v1/table/{id}/drop_columns: parameters: @@ -628,17 +646,23 @@ paths: 200: $ref: '#/components/responses/AlterTableDropColumnsResponse' 400: - $ref: '#/components/responses/BadRequestErrorResponse' + description: Bad request - invalid request or column not found + content: + application/json: + schema: + oneOf: + - $ref: '#/components/schemas/InvalidRequestError' + - $ref: '#/components/schemas/TableColumnNotFoundError' 401: $ref: '#/components/responses/UnauthorizedErrorResponse' 403: $ref: '#/components/responses/ForbiddenErrorResponse' 404: - $ref: '#/components/responses/NotFoundErrorResponse' + $ref: '#/components/responses/TableNotFoundErrorResponse' 503: $ref: '#/components/responses/ServiceUnavailableErrorResponse' 5XX: - $ref: '#/components/responses/ServerErrorResponse' + $ref: '#/components/responses/UnknownErrorResponse' /v1/table/{id}/stats: parameters: @@ -662,17 +686,17 @@ paths: 200: $ref: '#/components/responses/GetTableStatsResponse' 400: - $ref: '#/components/responses/BadRequestErrorResponse' + $ref: '#/components/responses/InvalidRequestErrorResponse' 401: $ref: '#/components/responses/UnauthorizedErrorResponse' 403: $ref: '#/components/responses/ForbiddenErrorResponse' 404: - $ref: '#/components/responses/NotFoundErrorResponse' + $ref: '#/components/responses/TableNotFoundErrorResponse' 503: $ref: '#/components/responses/ServiceUnavailableErrorResponse' 5XX: - $ref: '#/components/responses/ServerErrorResponse' + $ref: '#/components/responses/UnknownErrorResponse' # Table Data APIs @@ -719,17 +743,23 @@ paths: 200: $ref: '#/components/responses/InsertIntoTableResponse' 400: - $ref: '#/components/responses/BadRequestErrorResponse' + description: Bad request - invalid request or schema mismatch + content: + application/json: + schema: + oneOf: + - $ref: '#/components/schemas/InvalidRequestError' + - $ref: '#/components/schemas/TableSchemaMismatchError' 401: $ref: '#/components/responses/UnauthorizedErrorResponse' 403: $ref: '#/components/responses/ForbiddenErrorResponse' 404: - $ref: '#/components/responses/NotFoundErrorResponse' + $ref: '#/components/responses/TableNotFoundErrorResponse' 503: $ref: '#/components/responses/ServiceUnavailableErrorResponse' 5XX: - $ref: '#/components/responses/ServerErrorResponse' + $ref: '#/components/responses/UnknownErrorResponse' /v1/table/{id}/merge_insert: parameters: @@ -807,17 +837,24 @@ paths: 200: $ref: '#/components/responses/MergeInsertIntoTableResponse' 400: - $ref: '#/components/responses/BadRequestErrorResponse' + description: Bad request - invalid request, column not found, or schema mismatch + content: + application/json: + schema: + oneOf: + - $ref: '#/components/schemas/InvalidRequestError' + - $ref: '#/components/schemas/TableColumnNotFoundError' + - $ref: '#/components/schemas/TableSchemaMismatchError' 401: $ref: '#/components/responses/UnauthorizedErrorResponse' 403: $ref: '#/components/responses/ForbiddenErrorResponse' 404: - $ref: '#/components/responses/NotFoundErrorResponse' + $ref: '#/components/responses/TableNotFoundErrorResponse' 503: $ref: '#/components/responses/ServiceUnavailableErrorResponse' 5XX: - $ref: '#/components/responses/ServerErrorResponse' + $ref: '#/components/responses/UnknownErrorResponse' /v1/table/{id}/update: parameters: @@ -842,17 +879,24 @@ paths: 200: $ref: '#/components/responses/UpdateTableResponse' 400: - $ref: '#/components/responses/BadRequestErrorResponse' + description: Bad request - invalid request, column not found, or invalid SQL + content: + application/json: + schema: + oneOf: + - $ref: '#/components/schemas/InvalidRequestError' + - $ref: '#/components/schemas/TableColumnNotFoundError' + - $ref: '#/components/schemas/InvalidSqlExpressionError' 401: $ref: '#/components/responses/UnauthorizedErrorResponse' 403: $ref: '#/components/responses/ForbiddenErrorResponse' 404: - $ref: '#/components/responses/NotFoundErrorResponse' + $ref: '#/components/responses/TableNotFoundErrorResponse' 503: $ref: '#/components/responses/ServiceUnavailableErrorResponse' 5XX: - $ref: '#/components/responses/ServerErrorResponse' + $ref: '#/components/responses/UnknownErrorResponse' /v1/table/{id}/delete: parameters: @@ -877,17 +921,23 @@ paths: 200: $ref: '#/components/responses/DeleteFromTableResponse' 400: - $ref: '#/components/responses/BadRequestErrorResponse' + description: Bad request - invalid request or invalid SQL + content: + application/json: + schema: + oneOf: + - $ref: '#/components/schemas/InvalidRequestError' + - $ref: '#/components/schemas/InvalidSqlExpressionError' 401: $ref: '#/components/responses/UnauthorizedErrorResponse' 403: $ref: '#/components/responses/ForbiddenErrorResponse' 404: - $ref: '#/components/responses/NotFoundErrorResponse' + $ref: '#/components/responses/TableNotFoundErrorResponse' 503: $ref: '#/components/responses/ServiceUnavailableErrorResponse' 5XX: - $ref: '#/components/responses/ServerErrorResponse' + $ref: '#/components/responses/UnknownErrorResponse' /v1/table/{id}/query: parameters: @@ -913,17 +963,23 @@ paths: 200: $ref: '#/components/responses/QueryTableResponse' 400: - $ref: '#/components/responses/BadRequestErrorResponse' + description: Bad request - invalid request or invalid SQL + content: + application/json: + schema: + oneOf: + - $ref: '#/components/schemas/InvalidRequestError' + - $ref: '#/components/schemas/InvalidSqlExpressionError' 401: $ref: '#/components/responses/UnauthorizedErrorResponse' 403: $ref: '#/components/responses/ForbiddenErrorResponse' 404: - $ref: '#/components/responses/NotFoundErrorResponse' + $ref: '#/components/responses/TableNotFoundErrorResponse' 503: $ref: '#/components/responses/ServiceUnavailableErrorResponse' 5XX: - $ref: '#/components/responses/ServerErrorResponse' + $ref: '#/components/responses/UnknownErrorResponse' /v1/table/{id}/count_rows: parameters: @@ -947,17 +1003,23 @@ paths: 200: $ref: '#/components/responses/CountTableRowsResponse' 400: - $ref: '#/components/responses/BadRequestErrorResponse' + description: Bad request - invalid request or invalid SQL + content: + application/json: + schema: + oneOf: + - $ref: '#/components/schemas/InvalidRequestError' + - $ref: '#/components/schemas/InvalidSqlExpressionError' 401: $ref: '#/components/responses/UnauthorizedErrorResponse' 403: $ref: '#/components/responses/ForbiddenErrorResponse' 404: - $ref: '#/components/responses/NotFoundErrorResponse' + $ref: '#/components/responses/TableNotFoundErrorResponse' 503: $ref: '#/components/responses/ServiceUnavailableErrorResponse' 5XX: - $ref: '#/components/responses/ServerErrorResponse' + $ref: '#/components/responses/UnknownErrorResponse' /v1/table/{id}/create: parameters: @@ -1012,17 +1074,25 @@ paths: 200: $ref: '#/components/responses/CreateTableResponse' 400: - $ref: '#/components/responses/BadRequestErrorResponse' + description: Bad request - invalid request or invalid schema + content: + application/json: + schema: + oneOf: + - $ref: '#/components/schemas/InvalidRequestError' + - $ref: '#/components/schemas/InvalidTableSchemaError' 401: $ref: '#/components/responses/UnauthorizedErrorResponse' 403: $ref: '#/components/responses/ForbiddenErrorResponse' 404: - $ref: '#/components/responses/NotFoundErrorResponse' + $ref: '#/components/responses/ParentNamespaceNotFoundErrorResponse' + 409: + $ref: '#/components/responses/TableAlreadyExistsErrorResponse' 503: $ref: '#/components/responses/ServiceUnavailableErrorResponse' 5XX: - $ref: '#/components/responses/ServerErrorResponse' + $ref: '#/components/responses/UnknownErrorResponse' /v1/table/{id}/explain_plan: parameters: @@ -1047,17 +1117,23 @@ paths: 200: $ref: '#/components/responses/ExplainTableQueryPlanResponse' 400: - $ref: '#/components/responses/BadRequestErrorResponse' + description: Bad request - invalid request or invalid SQL + content: + application/json: + schema: + oneOf: + - $ref: '#/components/schemas/InvalidRequestError' + - $ref: '#/components/schemas/InvalidSqlExpressionError' 401: $ref: '#/components/responses/UnauthorizedErrorResponse' 403: $ref: '#/components/responses/ForbiddenErrorResponse' 404: - $ref: '#/components/responses/NotFoundErrorResponse' + $ref: '#/components/responses/TableNotFoundErrorResponse' 503: $ref: '#/components/responses/ServiceUnavailableErrorResponse' 5XX: - $ref: '#/components/responses/ServerErrorResponse' + $ref: '#/components/responses/UnknownErrorResponse' /v1/table/{id}/analyze_plan: parameters: @@ -1082,17 +1158,23 @@ paths: 200: $ref: '#/components/responses/AnalyzeTableQueryPlanResponse' 400: - $ref: '#/components/responses/BadRequestErrorResponse' + description: Bad request - invalid request or invalid SQL + content: + application/json: + schema: + oneOf: + - $ref: '#/components/schemas/InvalidRequestError' + - $ref: '#/components/schemas/InvalidSqlExpressionError' 401: $ref: '#/components/responses/UnauthorizedErrorResponse' 403: $ref: '#/components/responses/ForbiddenErrorResponse' 404: - $ref: '#/components/responses/NotFoundErrorResponse' + $ref: '#/components/responses/TableNotFoundErrorResponse' 503: $ref: '#/components/responses/ServiceUnavailableErrorResponse' 5XX: - $ref: '#/components/responses/ServerErrorResponse' + $ref: '#/components/responses/UnknownErrorResponse' /v1/table/{id}/add_columns: parameters: @@ -1116,17 +1198,24 @@ paths: 200: $ref: '#/components/responses/AlterTableAddColumnsResponse' 400: - $ref: '#/components/responses/BadRequestErrorResponse' + description: Bad request - invalid request, invalid schema, or invalid SQL + content: + application/json: + schema: + oneOf: + - $ref: '#/components/schemas/InvalidRequestError' + - $ref: '#/components/schemas/InvalidTableSchemaError' + - $ref: '#/components/schemas/InvalidSqlExpressionError' 401: $ref: '#/components/responses/UnauthorizedErrorResponse' 403: $ref: '#/components/responses/ForbiddenErrorResponse' 404: - $ref: '#/components/responses/NotFoundErrorResponse' + $ref: '#/components/responses/TableNotFoundErrorResponse' 503: $ref: '#/components/responses/ServiceUnavailableErrorResponse' 5XX: - $ref: '#/components/responses/ServerErrorResponse' + $ref: '#/components/responses/UnknownErrorResponse' # Table Index APIs @@ -1157,17 +1246,26 @@ paths: 200: $ref: '#/components/responses/CreateTableIndexResponse' 400: - $ref: '#/components/responses/BadRequestErrorResponse' + description: Bad request - invalid request, column not found, or invalid index config + content: + application/json: + schema: + oneOf: + - $ref: '#/components/schemas/InvalidRequestError' + - $ref: '#/components/schemas/TableColumnNotFoundError' + - $ref: '#/components/schemas/InvalidTableIndexConfigurationError' 401: $ref: '#/components/responses/UnauthorizedErrorResponse' 403: $ref: '#/components/responses/ForbiddenErrorResponse' 404: - $ref: '#/components/responses/NotFoundErrorResponse' + $ref: '#/components/responses/TableNotFoundErrorResponse' + 409: + $ref: '#/components/responses/TableIndexAlreadyExistsErrorResponse' 503: $ref: '#/components/responses/ServiceUnavailableErrorResponse' 5XX: - $ref: '#/components/responses/ServerErrorResponse' + $ref: '#/components/responses/UnknownErrorResponse' /v1/table/{id}/index/list: parameters: @@ -1194,17 +1292,17 @@ paths: 200: $ref: '#/components/responses/ListTableIndicesResponse' 400: - $ref: '#/components/responses/BadRequestErrorResponse' + $ref: '#/components/responses/InvalidRequestErrorResponse' 401: $ref: '#/components/responses/UnauthorizedErrorResponse' 403: $ref: '#/components/responses/ForbiddenErrorResponse' 404: - $ref: '#/components/responses/NotFoundErrorResponse' + $ref: '#/components/responses/TableNotFoundErrorResponse' 503: $ref: '#/components/responses/ServiceUnavailableErrorResponse' 5XX: - $ref: '#/components/responses/ServerErrorResponse' + $ref: '#/components/responses/UnknownErrorResponse' /v1/table/{id}/index/{index_name}/stats: parameters: @@ -1237,17 +1335,23 @@ paths: 200: $ref: '#/components/responses/DescribeTableIndexStatsResponse' 400: - $ref: '#/components/responses/BadRequestErrorResponse' + $ref: '#/components/responses/InvalidRequestErrorResponse' 401: $ref: '#/components/responses/UnauthorizedErrorResponse' 403: $ref: '#/components/responses/ForbiddenErrorResponse' 404: - $ref: '#/components/responses/NotFoundErrorResponse' + description: Not found - table or index does not exist + content: + application/json: + schema: + oneOf: + - $ref: '#/components/schemas/TableNotFoundError' + - $ref: '#/components/schemas/TableIndexNotFoundError' 503: $ref: '#/components/responses/ServiceUnavailableErrorResponse' 5XX: - $ref: '#/components/responses/ServerErrorResponse' + $ref: '#/components/responses/UnknownErrorResponse' /v1/table/{id}/index/{index_name}/drop: parameters: @@ -1284,7 +1388,13 @@ paths: 403: $ref: '#/components/responses/ForbiddenErrorResponse' 404: - $ref: '#/components/responses/NotFoundErrorResponse' + description: Not found - table or index does not exist + content: + application/json: + schema: + oneOf: + - $ref: '#/components/schemas/TableNotFoundError' + - $ref: '#/components/schemas/TableIndexNotFoundError' 503: $ref: '#/components/responses/ServiceUnavailableErrorResponse' 5XX: @@ -1331,7 +1441,7 @@ paths: 403: $ref: '#/components/responses/ForbiddenErrorResponse' 404: - $ref: '#/components/responses/NotFoundErrorResponse' + $ref: '#/components/responses/TableNotFoundErrorResponse' 503: $ref: '#/components/responses/ServiceUnavailableErrorResponse' 5XX: @@ -1366,7 +1476,13 @@ paths: 403: $ref: '#/components/responses/ForbiddenErrorResponse' 404: - $ref: '#/components/responses/NotFoundErrorResponse' + description: Not found - table or tag does not exist + content: + application/json: + schema: + oneOf: + - $ref: '#/components/schemas/TableNotFoundError' + - $ref: '#/components/schemas/TableTagNotFoundError' 503: $ref: '#/components/responses/ServiceUnavailableErrorResponse' 5XX: @@ -1408,9 +1524,9 @@ paths: 403: $ref: '#/components/responses/ForbiddenErrorResponse' 404: - $ref: '#/components/responses/NotFoundErrorResponse' + $ref: '#/components/responses/ParentNamespaceNotFoundErrorResponse' 409: - $ref: '#/components/responses/ConflictErrorResponse' + $ref: '#/components/responses/TableAlreadyExistsErrorResponse' 503: $ref: '#/components/responses/ServiceUnavailableErrorResponse' 5XX: @@ -1445,9 +1561,15 @@ paths: 403: $ref: '#/components/responses/ForbiddenErrorResponse' 404: - $ref: '#/components/responses/NotFoundErrorResponse' + description: Not found - table or version does not exist + content: + application/json: + schema: + oneOf: + - $ref: '#/components/schemas/TableNotFoundError' + - $ref: '#/components/schemas/TableVersionNotFoundError' 409: - $ref: '#/components/responses/ConflictErrorResponse' + $ref: '#/components/responses/TableTagAlreadyExistsErrorResponse' 503: $ref: '#/components/responses/ServiceUnavailableErrorResponse' 5XX: @@ -1482,7 +1604,13 @@ paths: 403: $ref: '#/components/responses/ForbiddenErrorResponse' 404: - $ref: '#/components/responses/NotFoundErrorResponse' + description: Not found - table or tag does not exist + content: + application/json: + schema: + oneOf: + - $ref: '#/components/schemas/TableNotFoundError' + - $ref: '#/components/schemas/TableTagNotFoundError' 503: $ref: '#/components/responses/ServiceUnavailableErrorResponse' 5XX: @@ -1517,7 +1645,14 @@ paths: 403: $ref: '#/components/responses/ForbiddenErrorResponse' 404: - $ref: '#/components/responses/NotFoundErrorResponse' + description: Not found - table, tag, or version does not exist + content: + application/json: + schema: + oneOf: + - $ref: '#/components/schemas/TableNotFoundError' + - $ref: '#/components/schemas/TableTagNotFoundError' + - $ref: '#/components/schemas/TableVersionNotFoundError' 503: $ref: '#/components/responses/ServiceUnavailableErrorResponse' 5XX: @@ -1553,112 +1688,701 @@ paths: 403: $ref: '#/components/responses/ForbiddenErrorResponse' 404: - $ref: '#/components/responses/NotFoundErrorResponse' + $ref: '#/components/responses/TransactionNotFoundErrorResponse' 503: $ref: '#/components/responses/ServiceUnavailableErrorResponse' 5XX: $ref: '#/components/responses/ServerErrorResponse' - /v1/transaction/{id}/alter: - parameters: - - $ref: '#/components/parameters/id' - - $ref: '#/components/parameters/delimiter' - post: - tags: - - Transaction - - Metadata - summary: Alter information of a transaction. - operationId: AlterTransaction - description: | - Alter a transaction with a list of actions such as setting status or properties. - The server should either succeed and apply all actions, or fail and apply no action. - requestBody: - required: true - content: - application/json: - schema: - $ref: '#/components/schemas/AlterTransactionRequest' - responses: - 200: - $ref: '#/components/responses/AlterTransactionResponse' - 400: - $ref: '#/components/responses/BadRequestErrorResponse' - 401: - $ref: '#/components/responses/UnauthorizedErrorResponse' - 403: - $ref: '#/components/responses/ForbiddenErrorResponse' - 404: - $ref: '#/components/responses/NotFoundErrorResponse' - 409: - $ref: '#/components/responses/ConflictErrorResponse' - 503: - $ref: '#/components/responses/ServiceUnavailableErrorResponse' - 5XX: - $ref: '#/components/responses/ServerErrorResponse' + /v1/transaction/{id}/alter: + parameters: + - $ref: '#/components/parameters/id' + - $ref: '#/components/parameters/delimiter' + post: + tags: + - Transaction + - Metadata + summary: Alter information of a transaction. + operationId: AlterTransaction + description: | + Alter a transaction with a list of actions such as setting status or properties. + The server should either succeed and apply all actions, or fail and apply no action. + requestBody: + required: true + content: + application/json: + schema: + $ref: '#/components/schemas/AlterTransactionRequest' + responses: + 200: + $ref: '#/components/responses/AlterTransactionResponse' + 400: + $ref: '#/components/responses/BadRequestErrorResponse' + 401: + $ref: '#/components/responses/UnauthorizedErrorResponse' + 403: + $ref: '#/components/responses/ForbiddenErrorResponse' + 404: + $ref: '#/components/responses/TransactionNotFoundErrorResponse' + 409: + $ref: '#/components/responses/TransactionConflictErrorResponse' + 503: + $ref: '#/components/responses/ServiceUnavailableErrorResponse' + 5XX: + $ref: '#/components/responses/ServerErrorResponse' + +components: + parameters: + id: + name: id + description: | + `string identifier` of an object in a namespace, following the Lance Namespace spec. + When the value is equal to the delimiter, it represents the root namespace. + For example, `v1/namespace/$/list` performs a `ListNamespace` on the root namespace. + in: path + required: true + schema: + type: string + delimiter: + name: delimiter + description: | + An optional delimiter of the `string identifier`, following the Lance Namespace spec. + When not specified, the `$` delimiter must be used. + in: query + required: false + schema: + $ref: '#/components/schemas/PageToken' + + schemas: + ErrorResponse: + type: object + description: Common JSON error response model + properties: + error: + type: string + description: a brief, human-readable message about the error + example: Incorrect username or password + code: + type: integer + minimum: 400 + maximum: 600 + description: | + HTTP style response code, where 4XX represents client side errors + and 5XX represents server side errors. + + For implementations that uses HTTP (e.g. REST namespace), + this field can be optional in favor of the HTTP response status code. + In case both values exist and do not match, the HTTP response status code should be used. + example: 404 + type: + type: string + description: | + An optional type identifier string for the error. + This allows the implementation to specify their internal error type, + which could be more detailed than the HTTP standard status code. + example: /errors/incorrect-user-pass + detail: + type: string + description: | + an optional human-readable explanation of the error. + This can be used to record information such as stack trace. + example: Authentication failed due to incorrect username or password + instance: + type: string + description: | + a string that identifies the specific occurrence of the error. + This can be a URI, a request or response ID, + or anything that the implementation can recognize to trace specific occurrence of the error. + example: /login/log/abc123 + + # Lance Namespace Specific Error Schemas + # Error codes are grouped by category: + # - 0: Unknown error + # - 1xx: Namespace errors + # - 2xx: Table errors + # - 3xx: Index errors + # - 4xx: Tag errors + # - 5xx: Transaction errors + # - 6xx: Generic/validation errors + + # Generic Errors + + UnknownError: + type: object + description: Unknown or unclassified error + required: + - error + - code + - type + properties: + error: + type: string + description: Brief error message + example: "Unknown error" + code: + type: integer + description: HTTP status code + enum: [500] + type: + type: string + description: Error type identifier + enum: ["lance-namespace:0"] + detail: + type: string + description: Detailed error explanation + instance: + type: string + description: Specific occurrence identifier + + InvalidRequestError: + type: object + description: Malformed request or validation failure + required: + - error + - code + - type + properties: + error: + type: string + description: Brief error message + example: "Invalid request" + code: + type: integer + description: HTTP status code + enum: [400] + type: + type: string + description: Error type identifier + enum: ["lance-namespace:601"] + detail: + type: string + description: Detailed error explanation + instance: + type: string + description: Specific occurrence identifier + + InvalidSqlExpressionError: + type: object + description: Invalid SQL expression provided + required: + - error + - code + - type + properties: + error: + type: string + description: Brief error message + example: "Invalid SQL expression" + code: + type: integer + description: HTTP status code + enum: [400] + type: + type: string + description: Error type identifier + enum: ["lance-namespace:602"] + detail: + type: string + description: Detailed error explanation + instance: + type: string + description: Specific occurrence identifier + + InvalidIdentifierError: + type: object + description: Invalid identifier format + required: + - error + - code + - type + properties: + error: + type: string + description: Brief error message + example: "Invalid identifier" + code: + type: integer + description: HTTP status code + enum: [400] + type: + type: string + description: Error type identifier + enum: ["lance-namespace:603"] + detail: + type: string + description: Detailed error explanation + instance: + type: string + description: Specific occurrence identifier + + # Namespace Errors (1xx) + + NamespaceNotFoundError: + type: object + description: The requested namespace does not exist + required: + - error + - code + - type + properties: + error: + type: string + description: Brief error message + example: "Namespace not found" + code: + type: integer + description: HTTP status code + enum: [404] + type: + type: string + description: Error type identifier + enum: ["lance-namespace:101"] + detail: + type: string + description: Detailed error explanation + instance: + type: string + description: Specific occurrence identifier + + NamespaceAlreadyExistsError: + type: object + description: A namespace with the same name already exists + required: + - error + - code + - type + properties: + error: + type: string + description: Brief error message + example: "Namespace already exists" + code: + type: integer + description: HTTP status code + enum: [409] + type: + type: string + description: Error type identifier + enum: ["lance-namespace:102"] + detail: + type: string + description: Detailed error explanation + instance: + type: string + description: Specific occurrence identifier + + ParentNamespaceNotFoundError: + type: object + description: The parent namespace does not exist + required: + - error + - code + - type + properties: + error: + type: string + description: Brief error message + example: "Parent namespace not found" + code: + type: integer + description: HTTP status code + enum: [404] + type: + type: string + description: Error type identifier + enum: ["lance-namespace:103"] + detail: + type: string + description: Detailed error explanation + instance: + type: string + description: Specific occurrence identifier + + NamespaceNotEmptyError: + type: object + description: Cannot drop namespace because it contains tables or child namespaces + required: + - error + - code + - type + properties: + error: + type: string + description: Brief error message + example: "Namespace not empty" + code: + type: integer + description: HTTP status code + enum: [409] + type: + type: string + description: Error type identifier + enum: ["lance-namespace:104"] + detail: + type: string + description: Detailed error explanation + instance: + type: string + description: Specific occurrence identifier + + # Table Errors (2xx) + + TableNotFoundError: + type: object + description: The requested table does not exist + required: + - error + - code + - type + properties: + error: + type: string + description: Brief error message + example: "Table not found" + code: + type: integer + description: HTTP status code + enum: [404] + type: + type: string + description: Error type identifier + enum: ["lance-namespace:201"] + detail: + type: string + description: Detailed error explanation + instance: + type: string + description: Specific occurrence identifier + + TableAlreadyExistsError: + type: object + description: A table with the same name already exists + required: + - error + - code + - type + properties: + error: + type: string + description: Brief error message + example: "Table already exists" + code: + type: integer + description: HTTP status code + enum: [409] + type: + type: string + description: Error type identifier + enum: ["lance-namespace:202"] + detail: + type: string + description: Detailed error explanation + instance: + type: string + description: Specific occurrence identifier + + TableVersionNotFoundError: + type: object + description: The requested table version does not exist + required: + - error + - code + - type + properties: + error: + type: string + description: Brief error message + example: "Table version not found" + code: + type: integer + description: HTTP status code + enum: [404] + type: + type: string + description: Error type identifier + enum: ["lance-namespace:203"] + detail: + type: string + description: Detailed error explanation + instance: + type: string + description: Specific occurrence identifier + + TableColumnNotFoundError: + type: object + description: The specified column does not exist in the table + required: + - error + - code + - type + properties: + error: + type: string + description: Brief error message + example: "Column not found" + code: + type: integer + description: HTTP status code + enum: [400] + type: + type: string + description: Error type identifier + enum: ["lance-namespace:204"] + detail: + type: string + description: Detailed error explanation + instance: + type: string + description: Specific occurrence identifier + + InvalidTableSchemaError: + type: object + description: The provided schema is invalid + required: + - error + - code + - type + properties: + error: + type: string + description: Brief error message + example: "Invalid schema" + code: + type: integer + description: HTTP status code + enum: [400] + type: + type: string + description: Error type identifier + enum: ["lance-namespace:205"] + detail: + type: string + description: Detailed error explanation + instance: + type: string + description: Specific occurrence identifier + + TableSchemaMismatchError: + type: object + description: The data schema does not match the table schema + required: + - error + - code + - type + properties: + error: + type: string + description: Brief error message + example: "Schema mismatch" + code: + type: integer + description: HTTP status code + enum: [400] + type: + type: string + description: Error type identifier + enum: ["lance-namespace:206"] + detail: + type: string + description: Detailed error explanation + instance: + type: string + description: Specific occurrence identifier + + # Index Errors (3xx) + + TableIndexNotFoundError: + type: object + description: The requested index does not exist + required: + - error + - code + - type + properties: + error: + type: string + description: Brief error message + example: "Index not found" + code: + type: integer + description: HTTP status code + enum: [404] + type: + type: string + description: Error type identifier + enum: ["lance-namespace:301"] + detail: + type: string + description: Detailed error explanation + instance: + type: string + description: Specific occurrence identifier + + TableIndexAlreadyExistsError: + type: object + description: An index with the same name already exists + required: + - error + - code + - type + properties: + error: + type: string + description: Brief error message + example: "Index already exists" + code: + type: integer + description: HTTP status code + enum: [409] + type: + type: string + description: Error type identifier + enum: ["lance-namespace:302"] + detail: + type: string + description: Detailed error explanation + instance: + type: string + description: Specific occurrence identifier + + InvalidTableIndexConfigurationError: + type: object + description: The provided index configuration is invalid + required: + - error + - code + - type + properties: + error: + type: string + description: Brief error message + example: "Invalid index configuration" + code: + type: integer + description: HTTP status code + enum: [400] + type: + type: string + description: Error type identifier + enum: ["lance-namespace:303"] + detail: + type: string + description: Detailed error explanation + instance: + type: string + description: Specific occurrence identifier + + # Tag Errors (4xx) + + TableTagNotFoundError: + type: object + description: The requested tag does not exist + required: + - error + - code + - type + properties: + error: + type: string + description: Brief error message + example: "Tag not found" + code: + type: integer + description: HTTP status code + enum: [404] + type: + type: string + description: Error type identifier + enum: ["lance-namespace:401"] + detail: + type: string + description: Detailed error explanation + instance: + type: string + description: Specific occurrence identifier + + TableTagAlreadyExistsError: + type: object + description: A tag with the same name already exists + required: + - error + - code + - type + properties: + error: + type: string + description: Brief error message + example: "Tag already exists" + code: + type: integer + description: HTTP status code + enum: [409] + type: + type: string + description: Error type identifier + enum: ["lance-namespace:402"] + detail: + type: string + description: Detailed error explanation + instance: + type: string + description: Specific occurrence identifier -components: - parameters: - id: - name: id - description: | - `string identifier` of an object in a namespace, following the Lance Namespace spec. - When the value is equal to the delimiter, it represents the root namespace. - For example, `v1/namespace/$/list` performs a `ListNamespace` on the root namespace. - in: path - required: true - schema: - type: string - delimiter: - name: delimiter - description: | - An optional delimiter of the `string identifier`, following the Lance Namespace spec. - When not specified, the `$` delimiter must be used. - in: query - required: false - schema: - $ref: '#/components/schemas/PageToken' + # Transaction Errors (5xx) - schemas: - ErrorResponse: + TransactionNotFoundError: type: object - description: Common JSON error response model + description: The requested transaction does not exist + required: + - error + - code + - type properties: error: type: string - description: a brief, human-readable message about the error - example: Incorrect username or password + description: Brief error message + example: "Transaction not found" code: type: integer - minimum: 400 - maximum: 600 - description: | - HTTP style response code, where 4XX represents client side errors - and 5XX represents server side errors. - - For implementations that uses HTTP (e.g. REST namespace), - this field can be optional in favor of the HTTP response status code. - In case both values exist and do not match, the HTTP response status code should be used. - example: 404 + description: HTTP status code + enum: [404] type: type: string - description: | - An optional type identifier string for the error. - This allows the implementation to specify their internal error type, - which could be more detailed than the HTTP standard status code. - example: /errors/incorrect-user-pass + description: Error type identifier + enum: ["lance-namespace:501"] detail: type: string - description: | - an optional human-readable explanation of the error. - This can be used to record information such as stack trace. - example: Authentication failed due to incorrect username or password + description: Detailed error explanation instance: type: string - description: | - a string that identifies the specific occurrence of the error. - This can be a URI, a request or response ID, - or anything that the implementation can recognize to trace specific occurrence of the error. - example: /login/log/abc123 + description: Specific occurrence identifier + + TransactionConflictError: + type: object + description: Transaction failed due to concurrent modification + required: + - error + - code + - type + properties: + error: + type: string + description: Brief error message + example: "Transaction conflict" + code: + type: integer + description: HTTP status code + enum: [409] + type: + type: string + description: Error type identifier + enum: ["lance-namespace:502"] + detail: + type: string + description: Detailed error explanation + instance: + type: string + description: Specific occurrence identifier CreateNamespaceRequest: type: object @@ -3612,6 +4336,314 @@ components: "instance": "/v1/namespaces" } + # Lance Namespace Specific Error Responses + + # Generic Error Responses + + UnknownErrorResponse: + description: Unknown or unclassified error + content: + application/json: + schema: + $ref: '#/components/schemas/UnknownError' + example: { + "error": "Unknown error", + "code": 500, + "type": "lance-namespace:0", + "detail": "An unexpected error occurred", + "instance": "/v1/namespace/my-ns" + } + + InvalidRequestErrorResponse: + description: Malformed request or validation failure + content: + application/json: + schema: + $ref: '#/components/schemas/InvalidRequestError' + example: { + "error": "Invalid request", + "code": 400, + "type": "lance-namespace:601", + "detail": "Request body is not valid JSON", + "instance": "/v1/namespace/my-ns/create" + } + + InvalidSqlExpressionErrorResponse: + description: Invalid SQL expression provided + content: + application/json: + schema: + $ref: '#/components/schemas/InvalidSqlExpressionError' + example: { + "error": "Invalid SQL expression", + "code": 400, + "type": "lance-namespace:602", + "detail": "Syntax error in filter expression: unexpected token 'FORM'", + "instance": "/v1/table/my-table/query" + } + + InvalidIdentifierErrorResponse: + description: Invalid identifier format + content: + application/json: + schema: + $ref: '#/components/schemas/InvalidIdentifierError' + example: { + "error": "Invalid identifier", + "code": 400, + "type": "lance-namespace:603", + "detail": "Identifier contains invalid characters", + "instance": "/v1/namespace/my-ns/create" + } + + # Namespace Error Responses + + NamespaceNotFoundErrorResponse: + description: The requested namespace does not exist + content: + application/json: + schema: + $ref: '#/components/schemas/NamespaceNotFoundError' + example: { + "error": "Namespace not found", + "code": 404, + "type": "lance-namespace:101", + "detail": "Namespace 'prod$analytics' does not exist", + "instance": "/v1/namespace/prod$analytics/describe" + } + + NamespaceAlreadyExistsErrorResponse: + description: A namespace with the same name already exists + content: + application/json: + schema: + $ref: '#/components/schemas/NamespaceAlreadyExistsError' + example: { + "error": "Namespace already exists", + "code": 409, + "type": "lance-namespace:102", + "detail": "Namespace 'prod$analytics' already exists", + "instance": "/v1/namespace/prod$analytics/create" + } + + ParentNamespaceNotFoundErrorResponse: + description: The parent namespace does not exist + content: + application/json: + schema: + $ref: '#/components/schemas/ParentNamespaceNotFoundError' + example: { + "error": "Parent namespace not found", + "code": 404, + "type": "lance-namespace:103", + "detail": "Parent namespace 'prod' does not exist", + "instance": "/v1/namespace/prod$analytics/create" + } + + NamespaceNotEmptyErrorResponse: + description: Cannot drop namespace because it contains tables or child namespaces + content: + application/json: + schema: + $ref: '#/components/schemas/NamespaceNotEmptyError' + example: { + "error": "Namespace not empty", + "code": 409, + "type": "lance-namespace:104", + "detail": "Namespace 'prod' contains 3 tables and 2 child namespaces", + "instance": "/v1/namespace/prod/drop" + } + + # Table Error Responses + + TableNotFoundErrorResponse: + description: The requested table does not exist + content: + application/json: + schema: + $ref: '#/components/schemas/TableNotFoundError' + example: { + "error": "Table not found", + "code": 404, + "type": "lance-namespace:201", + "detail": "Table 'prod$analytics$users' does not exist", + "instance": "/v1/table/prod$analytics$users/describe" + } + + TableAlreadyExistsErrorResponse: + description: A table with the same name already exists + content: + application/json: + schema: + $ref: '#/components/schemas/TableAlreadyExistsError' + example: { + "error": "Table already exists", + "code": 409, + "type": "lance-namespace:202", + "detail": "Table 'prod$analytics$users' already exists", + "instance": "/v1/table/prod$analytics$users/create" + } + + TableVersionNotFoundErrorResponse: + description: The requested table version does not exist + content: + application/json: + schema: + $ref: '#/components/schemas/TableVersionNotFoundError' + example: { + "error": "Table version not found", + "code": 404, + "type": "lance-namespace:203", + "detail": "Version 42 does not exist for table 'prod$analytics$users'", + "instance": "/v1/table/prod$analytics$users/restore" + } + + TableColumnNotFoundErrorResponse: + description: The specified column does not exist in the table + content: + application/json: + schema: + $ref: '#/components/schemas/TableColumnNotFoundError' + example: { + "error": "Column not found", + "code": 400, + "type": "lance-namespace:204", + "detail": "Column 'user_email' does not exist in table 'users'", + "instance": "/v1/table/prod$analytics$users/alter_columns" + } + + InvalidTableSchemaErrorResponse: + description: The provided schema is invalid + content: + application/json: + schema: + $ref: '#/components/schemas/InvalidTableSchemaError' + example: { + "error": "Invalid schema", + "code": 400, + "type": "lance-namespace:205", + "detail": "Invalid data type 'varchar' for column 'id'", + "instance": "/v1/table/prod$analytics$users/create" + } + + TableSchemaMismatchErrorResponse: + description: The data schema does not match the table schema + content: + application/json: + schema: + $ref: '#/components/schemas/TableSchemaMismatchError' + example: { + "error": "Schema mismatch", + "code": 400, + "type": "lance-namespace:206", + "detail": "Column 'age' has type Int32 but data has type String", + "instance": "/v1/table/prod$analytics$users/insert" + } + + # Index Error Responses + + TableIndexNotFoundErrorResponse: + description: The requested index does not exist + content: + application/json: + schema: + $ref: '#/components/schemas/TableIndexNotFoundError' + example: { + "error": "Index not found", + "code": 404, + "type": "lance-namespace:301", + "detail": "Index 'vector_idx' does not exist on table 'users'", + "instance": "/v1/table/prod$analytics$users/index/vector_idx/stats" + } + + TableIndexAlreadyExistsErrorResponse: + description: An index with the same name already exists + content: + application/json: + schema: + $ref: '#/components/schemas/TableIndexAlreadyExistsError' + example: { + "error": "Index already exists", + "code": 409, + "type": "lance-namespace:302", + "detail": "Index 'vector_idx' already exists on table 'users'", + "instance": "/v1/table/prod$analytics$users/create_index" + } + + InvalidTableIndexConfigurationErrorResponse: + description: The provided index configuration is invalid + content: + application/json: + schema: + $ref: '#/components/schemas/InvalidTableIndexConfigurationError' + example: { + "error": "Invalid index configuration", + "code": 400, + "type": "lance-namespace:303", + "detail": "Invalid distance metric 'hamming' for vector column", + "instance": "/v1/table/prod$analytics$users/create_index" + } + + # Tag Error Responses + + TableTagNotFoundErrorResponse: + description: The requested tag does not exist + content: + application/json: + schema: + $ref: '#/components/schemas/TableTagNotFoundError' + example: { + "error": "Tag not found", + "code": 404, + "type": "lance-namespace:401", + "detail": "Tag 'v1.0' does not exist on table 'users'", + "instance": "/v1/table/prod$analytics$users/tags/version" + } + + TableTagAlreadyExistsErrorResponse: + description: A tag with the same name already exists + content: + application/json: + schema: + $ref: '#/components/schemas/TableTagAlreadyExistsError' + example: { + "error": "Tag already exists", + "code": 409, + "type": "lance-namespace:402", + "detail": "Tag 'v1.0' already exists on table 'users'", + "instance": "/v1/table/prod$analytics$users/tags/create" + } + + # Transaction Error Responses + + TransactionNotFoundErrorResponse: + description: The requested transaction does not exist + content: + application/json: + schema: + $ref: '#/components/schemas/TransactionNotFoundError' + example: { + "error": "Transaction not found", + "code": 404, + "type": "lance-namespace:501", + "detail": "Transaction 'tx-12345' does not exist", + "instance": "/v1/transaction/tx-12345/describe" + } + + TransactionConflictErrorResponse: + description: Transaction failed due to concurrent modification + content: + application/json: + schema: + $ref: '#/components/schemas/TransactionConflictError' + example: { + "error": "Transaction conflict", + "code": 409, + "type": "lance-namespace:502", + "detail": "Transaction 'tx-12345' conflicts with another transaction", + "instance": "/v1/transaction/tx-12345/alter" + } + examples: ListNamespacesEmptyExample: summary: An empty list of namespaces diff --git a/java/lance-namespace-apache-client/README.md b/java/lance-namespace-apache-client/README.md index 3889adcf..efa93692 100644 --- a/java/lance-namespace-apache-client/README.md +++ b/java/lance-namespace-apache-client/README.md @@ -209,8 +209,10 @@ Class | Method | HTTP request | Description ## Documentation for Models + - [AlterTableAddColumns400Response](docs/AlterTableAddColumns400Response.md) - [AlterTableAddColumnsRequest](docs/AlterTableAddColumnsRequest.md) - [AlterTableAddColumnsResponse](docs/AlterTableAddColumnsResponse.md) + - [AlterTableAlterColumns400Response](docs/AlterTableAlterColumns400Response.md) - [AlterTableAlterColumnsRequest](docs/AlterTableAlterColumnsRequest.md) - [AlterTableAlterColumnsResponse](docs/AlterTableAlterColumnsResponse.md) - [AlterTableDropColumnsRequest](docs/AlterTableDropColumnsRequest.md) @@ -229,13 +231,17 @@ Class | Method | HTTP request | Description - [CountTableRowsRequest](docs/CountTableRowsRequest.md) - [CreateEmptyTableRequest](docs/CreateEmptyTableRequest.md) - [CreateEmptyTableResponse](docs/CreateEmptyTableResponse.md) + - [CreateNamespace400Response](docs/CreateNamespace400Response.md) - [CreateNamespaceRequest](docs/CreateNamespaceRequest.md) - [CreateNamespaceResponse](docs/CreateNamespaceResponse.md) + - [CreateTable400Response](docs/CreateTable400Response.md) + - [CreateTableIndex400Response](docs/CreateTableIndex400Response.md) - [CreateTableIndexRequest](docs/CreateTableIndexRequest.md) - [CreateTableIndexResponse](docs/CreateTableIndexResponse.md) - [CreateTableRequest](docs/CreateTableRequest.md) - [CreateTableResponse](docs/CreateTableResponse.md) - [CreateTableTagRequest](docs/CreateTableTagRequest.md) + - [DeleteFromTable400Response](docs/DeleteFromTable400Response.md) - [DeleteFromTableRequest](docs/DeleteFromTableRequest.md) - [DeleteFromTableResponse](docs/DeleteFromTableResponse.md) - [DeleteTableTagRequest](docs/DeleteTableTagRequest.md) @@ -243,6 +249,7 @@ Class | Method | HTTP request | Description - [DeregisterTableResponse](docs/DeregisterTableResponse.md) - [DescribeNamespaceRequest](docs/DescribeNamespaceRequest.md) - [DescribeNamespaceResponse](docs/DescribeNamespaceResponse.md) + - [DescribeTableIndexStats404Response](docs/DescribeTableIndexStats404Response.md) - [DescribeTableIndexStatsRequest](docs/DescribeTableIndexStatsRequest.md) - [DescribeTableIndexStatsResponse](docs/DescribeTableIndexStatsResponse.md) - [DescribeTableRequest](docs/DescribeTableRequest.md) @@ -261,11 +268,18 @@ Class | Method | HTTP request | Description - [FtsQuery](docs/FtsQuery.md) - [GetTableStatsRequest](docs/GetTableStatsRequest.md) - [GetTableStatsResponse](docs/GetTableStatsResponse.md) + - [GetTableTagVersion404Response](docs/GetTableTagVersion404Response.md) - [GetTableTagVersionRequest](docs/GetTableTagVersionRequest.md) - [GetTableTagVersionResponse](docs/GetTableTagVersionResponse.md) - [IndexContent](docs/IndexContent.md) + - [InsertIntoTable400Response](docs/InsertIntoTable400Response.md) - [InsertIntoTableRequest](docs/InsertIntoTableRequest.md) - [InsertIntoTableResponse](docs/InsertIntoTableResponse.md) + - [InvalidIdentifierError](docs/InvalidIdentifierError.md) + - [InvalidRequestError](docs/InvalidRequestError.md) + - [InvalidSqlExpressionError](docs/InvalidSqlExpressionError.md) + - [InvalidTableIndexConfigurationError](docs/InvalidTableIndexConfigurationError.md) + - [InvalidTableSchemaError](docs/InvalidTableSchemaError.md) - [JsonArrowDataType](docs/JsonArrowDataType.md) - [JsonArrowField](docs/JsonArrowField.md) - [JsonArrowSchema](docs/JsonArrowSchema.md) @@ -279,30 +293,50 @@ Class | Method | HTTP request | Description - [ListTablesRequest](docs/ListTablesRequest.md) - [ListTablesResponse](docs/ListTablesResponse.md) - [MatchQuery](docs/MatchQuery.md) + - [MergeInsertIntoTable400Response](docs/MergeInsertIntoTable400Response.md) - [MergeInsertIntoTableRequest](docs/MergeInsertIntoTableRequest.md) - [MergeInsertIntoTableResponse](docs/MergeInsertIntoTableResponse.md) - [MultiMatchQuery](docs/MultiMatchQuery.md) + - [NamespaceAlreadyExistsError](docs/NamespaceAlreadyExistsError.md) - [NamespaceExistsRequest](docs/NamespaceExistsRequest.md) + - [NamespaceNotEmptyError](docs/NamespaceNotEmptyError.md) + - [NamespaceNotFoundError](docs/NamespaceNotFoundError.md) - [NewColumnTransform](docs/NewColumnTransform.md) - [Operator](docs/Operator.md) + - [ParentNamespaceNotFoundError](docs/ParentNamespaceNotFoundError.md) - [PhraseQuery](docs/PhraseQuery.md) - [QueryTableRequest](docs/QueryTableRequest.md) - [QueryTableRequestFullTextQuery](docs/QueryTableRequestFullTextQuery.md) - [QueryTableRequestVector](docs/QueryTableRequestVector.md) - [RegisterTableRequest](docs/RegisterTableRequest.md) - [RegisterTableResponse](docs/RegisterTableResponse.md) + - [RestoreTable404Response](docs/RestoreTable404Response.md) - [RestoreTableRequest](docs/RestoreTableRequest.md) - [RestoreTableResponse](docs/RestoreTableResponse.md) - [SetPropertyMode](docs/SetPropertyMode.md) - [StringFtsQuery](docs/StringFtsQuery.md) - [StructuredFtsQuery](docs/StructuredFtsQuery.md) + - [TableAlreadyExistsError](docs/TableAlreadyExistsError.md) + - [TableColumnNotFoundError](docs/TableColumnNotFoundError.md) - [TableExistsRequest](docs/TableExistsRequest.md) + - [TableIndexAlreadyExistsError](docs/TableIndexAlreadyExistsError.md) + - [TableIndexNotFoundError](docs/TableIndexNotFoundError.md) + - [TableNotFoundError](docs/TableNotFoundError.md) + - [TableSchemaMismatchError](docs/TableSchemaMismatchError.md) + - [TableTagAlreadyExistsError](docs/TableTagAlreadyExistsError.md) + - [TableTagNotFoundError](docs/TableTagNotFoundError.md) - [TableVersion](docs/TableVersion.md) + - [TableVersionNotFoundError](docs/TableVersionNotFoundError.md) - [TagContents](docs/TagContents.md) + - [TransactionConflictError](docs/TransactionConflictError.md) + - [TransactionNotFoundError](docs/TransactionNotFoundError.md) - [TransactionStatus](docs/TransactionStatus.md) + - [UnknownError](docs/UnknownError.md) - [UnsetPropertyMode](docs/UnsetPropertyMode.md) + - [UpdateTable400Response](docs/UpdateTable400Response.md) - [UpdateTableRequest](docs/UpdateTableRequest.md) - [UpdateTableResponse](docs/UpdateTableResponse.md) + - [UpdateTableTag404Response](docs/UpdateTableTag404Response.md) - [UpdateTableTagRequest](docs/UpdateTableTagRequest.md) diff --git a/java/lance-namespace-apache-client/api/openapi.yaml b/java/lance-namespace-apache-client/api/openapi.yaml index 65289809..15aa929e 100644 --- a/java/lance-namespace-apache-client/api/openapi.yaml +++ b/java/lance-namespace-apache-client/api/openapi.yaml @@ -83,21 +83,25 @@ paths: "200": $ref: '#/components/responses/CreateNamespaceResponse' "400": - $ref: '#/components/responses/BadRequestErrorResponse' + content: + application/json: + schema: + $ref: '#/components/schemas/CreateNamespace_400_response' + description: Bad request - invalid request format or identifier "401": $ref: '#/components/responses/UnauthorizedErrorResponse' "403": $ref: '#/components/responses/ForbiddenErrorResponse' "404": - $ref: '#/components/responses/NotFoundErrorResponse' + $ref: '#/components/responses/ParentNamespaceNotFoundErrorResponse' "406": $ref: '#/components/responses/UnsupportedOperationErrorResponse' "409": - $ref: '#/components/responses/ConflictErrorResponse' + $ref: '#/components/responses/NamespaceAlreadyExistsErrorResponse' "503": $ref: '#/components/responses/ServiceUnavailableErrorResponse' "5XX": - $ref: '#/components/responses/ServerErrorResponse' + $ref: '#/components/responses/UnknownErrorResponse' summary: Create a new namespace tags: - Namespace @@ -138,19 +142,19 @@ paths: "200": $ref: '#/components/responses/ListNamespacesResponse' "400": - $ref: '#/components/responses/BadRequestErrorResponse' + $ref: '#/components/responses/InvalidRequestErrorResponse' "401": $ref: '#/components/responses/UnauthorizedErrorResponse' "403": $ref: '#/components/responses/ForbiddenErrorResponse' "404": - $ref: '#/components/responses/NotFoundErrorResponse' + $ref: '#/components/responses/NamespaceNotFoundErrorResponse' "406": $ref: '#/components/responses/UnsupportedOperationErrorResponse' "503": $ref: '#/components/responses/ServiceUnavailableErrorResponse' "5XX": - $ref: '#/components/responses/ServerErrorResponse' + $ref: '#/components/responses/UnknownErrorResponse' summary: List namespaces tags: - Namespace @@ -195,17 +199,17 @@ paths: "200": $ref: '#/components/responses/DescribeNamespaceResponse' "400": - $ref: '#/components/responses/BadRequestErrorResponse' + $ref: '#/components/responses/InvalidRequestErrorResponse' "401": $ref: '#/components/responses/UnauthorizedErrorResponse' "403": $ref: '#/components/responses/ForbiddenErrorResponse' "404": - $ref: '#/components/responses/NotFoundErrorResponse' + $ref: '#/components/responses/NamespaceNotFoundErrorResponse' "503": $ref: '#/components/responses/ServiceUnavailableErrorResponse' "5XX": - $ref: '#/components/responses/ServerErrorResponse' + $ref: '#/components/responses/UnknownErrorResponse' summary: Describe a namespace tags: - Namespace @@ -234,19 +238,19 @@ paths: "200": $ref: '#/components/responses/DropNamespaceResponse' "400": - $ref: '#/components/responses/BadRequestErrorResponse' + $ref: '#/components/responses/InvalidRequestErrorResponse' "401": $ref: '#/components/responses/UnauthorizedErrorResponse' "403": $ref: '#/components/responses/ForbiddenErrorResponse' "404": - $ref: '#/components/responses/NotFoundErrorResponse' + $ref: '#/components/responses/NamespaceNotFoundErrorResponse' "409": - $ref: '#/components/responses/ConflictErrorResponse' + $ref: '#/components/responses/NamespaceNotEmptyErrorResponse' "503": $ref: '#/components/responses/ServiceUnavailableErrorResponse' "5XX": - $ref: '#/components/responses/ServerErrorResponse' + $ref: '#/components/responses/UnknownErrorResponse' summary: Drop a namespace tags: - Namespace @@ -276,17 +280,17 @@ paths: "200": description: "Success, no content" "400": - $ref: '#/components/responses/BadRequestErrorResponse' + $ref: '#/components/responses/InvalidRequestErrorResponse' "401": $ref: '#/components/responses/UnauthorizedErrorResponse' "403": $ref: '#/components/responses/ForbiddenErrorResponse' "404": - $ref: '#/components/responses/NotFoundErrorResponse' + $ref: '#/components/responses/NamespaceNotFoundErrorResponse' "503": $ref: '#/components/responses/ServiceUnavailableErrorResponse' "5XX": - $ref: '#/components/responses/ServerErrorResponse' + $ref: '#/components/responses/UnknownErrorResponse' summary: Check if a namespace exists tags: - Namespace @@ -327,19 +331,19 @@ paths: "200": $ref: '#/components/responses/ListTablesResponse' "400": - $ref: '#/components/responses/BadRequestErrorResponse' + $ref: '#/components/responses/InvalidRequestErrorResponse' "401": $ref: '#/components/responses/UnauthorizedErrorResponse' "403": $ref: '#/components/responses/ForbiddenErrorResponse' "404": - $ref: '#/components/responses/NotFoundErrorResponse' + $ref: '#/components/responses/NamespaceNotFoundErrorResponse' "406": $ref: '#/components/responses/UnsupportedOperationErrorResponse' "503": $ref: '#/components/responses/ServiceUnavailableErrorResponse' "5XX": - $ref: '#/components/responses/ServerErrorResponse' + $ref: '#/components/responses/UnknownErrorResponse' summary: List tables in a namespace tags: - Namespace @@ -385,21 +389,21 @@ paths: "200": $ref: '#/components/responses/RegisterTableResponse' "400": - $ref: '#/components/responses/BadRequestErrorResponse' + $ref: '#/components/responses/InvalidRequestErrorResponse' "401": $ref: '#/components/responses/UnauthorizedErrorResponse' "403": $ref: '#/components/responses/ForbiddenErrorResponse' "404": - $ref: '#/components/responses/NotFoundErrorResponse' + $ref: '#/components/responses/ParentNamespaceNotFoundErrorResponse' "406": $ref: '#/components/responses/UnsupportedOperationErrorResponse' "409": - $ref: '#/components/responses/ConflictErrorResponse' + $ref: '#/components/responses/TableAlreadyExistsErrorResponse' "503": $ref: '#/components/responses/ServiceUnavailableErrorResponse' "5XX": - $ref: '#/components/responses/ServerErrorResponse' + $ref: '#/components/responses/UnknownErrorResponse' summary: Register a table to a namespace tags: - Table @@ -428,17 +432,17 @@ paths: "200": $ref: '#/components/responses/DescribeTableResponse' "400": - $ref: '#/components/responses/BadRequestErrorResponse' + $ref: '#/components/responses/InvalidRequestErrorResponse' "401": $ref: '#/components/responses/UnauthorizedErrorResponse' "403": $ref: '#/components/responses/ForbiddenErrorResponse' "404": - $ref: '#/components/responses/NotFoundErrorResponse' + $ref: '#/components/responses/TableNotFoundErrorResponse' "503": $ref: '#/components/responses/ServiceUnavailableErrorResponse' "5XX": - $ref: '#/components/responses/ServerErrorResponse' + $ref: '#/components/responses/UnknownErrorResponse' summary: Describe information of a table tags: - Table @@ -470,17 +474,17 @@ paths: "200": description: "Success, no content" "400": - $ref: '#/components/responses/BadRequestErrorResponse' + $ref: '#/components/responses/InvalidRequestErrorResponse' "401": $ref: '#/components/responses/UnauthorizedErrorResponse' "403": $ref: '#/components/responses/ForbiddenErrorResponse' "404": - $ref: '#/components/responses/NotFoundErrorResponse' + $ref: '#/components/responses/TableNotFoundErrorResponse' "503": $ref: '#/components/responses/ServiceUnavailableErrorResponse' "5XX": - $ref: '#/components/responses/ServerErrorResponse' + $ref: '#/components/responses/UnknownErrorResponse' summary: Check if a table exists tags: - Table @@ -509,17 +513,17 @@ paths: "200": $ref: '#/components/responses/DropTableResponse' "400": - $ref: '#/components/responses/BadRequestErrorResponse' + $ref: '#/components/responses/InvalidRequestErrorResponse' "401": $ref: '#/components/responses/UnauthorizedErrorResponse' "403": $ref: '#/components/responses/ForbiddenErrorResponse' "404": - $ref: '#/components/responses/NotFoundErrorResponse' + $ref: '#/components/responses/TableNotFoundErrorResponse' "503": $ref: '#/components/responses/ServiceUnavailableErrorResponse' "5XX": - $ref: '#/components/responses/ServerErrorResponse' + $ref: '#/components/responses/UnknownErrorResponse' summary: Drop a table tags: - Table @@ -548,17 +552,17 @@ paths: "200": $ref: '#/components/responses/DeregisterTableResponse' "400": - $ref: '#/components/responses/BadRequestErrorResponse' + $ref: '#/components/responses/InvalidRequestErrorResponse' "401": $ref: '#/components/responses/UnauthorizedErrorResponse' "403": $ref: '#/components/responses/ForbiddenErrorResponse' "404": - $ref: '#/components/responses/NotFoundErrorResponse' + $ref: '#/components/responses/TableNotFoundErrorResponse' "503": $ref: '#/components/responses/ServiceUnavailableErrorResponse' "5XX": - $ref: '#/components/responses/ServerErrorResponse' + $ref: '#/components/responses/UnknownErrorResponse' summary: Deregister a table tags: - Table @@ -587,17 +591,21 @@ paths: "200": $ref: '#/components/responses/RestoreTableResponse' "400": - $ref: '#/components/responses/BadRequestErrorResponse' + $ref: '#/components/responses/InvalidRequestErrorResponse' "401": $ref: '#/components/responses/UnauthorizedErrorResponse' "403": $ref: '#/components/responses/ForbiddenErrorResponse' "404": - $ref: '#/components/responses/NotFoundErrorResponse' + content: + application/json: + schema: + $ref: '#/components/schemas/RestoreTable_404_response' + description: Not found - table or version does not exist "503": $ref: '#/components/responses/ServiceUnavailableErrorResponse' "5XX": - $ref: '#/components/responses/ServerErrorResponse' + $ref: '#/components/responses/UnknownErrorResponse' summary: Restore table to a specific version tags: - Table @@ -626,17 +634,17 @@ paths: "200": $ref: '#/components/responses/ListTableVersionsResponse' "400": - $ref: '#/components/responses/BadRequestErrorResponse' + $ref: '#/components/responses/InvalidRequestErrorResponse' "401": $ref: '#/components/responses/UnauthorizedErrorResponse' "403": $ref: '#/components/responses/ForbiddenErrorResponse' "404": - $ref: '#/components/responses/NotFoundErrorResponse' + $ref: '#/components/responses/TableNotFoundErrorResponse' "503": $ref: '#/components/responses/ServiceUnavailableErrorResponse' "5XX": - $ref: '#/components/responses/ServerErrorResponse' + $ref: '#/components/responses/UnknownErrorResponse' summary: List all versions of a table tags: - Table @@ -665,17 +673,21 @@ paths: "200": $ref: '#/components/responses/AlterTableAlterColumnsResponse' "400": - $ref: '#/components/responses/BadRequestErrorResponse' + content: + application/json: + schema: + $ref: '#/components/schemas/AlterTableAlterColumns_400_response' + description: Bad request - invalid request or column not found "401": $ref: '#/components/responses/UnauthorizedErrorResponse' "403": $ref: '#/components/responses/ForbiddenErrorResponse' "404": - $ref: '#/components/responses/NotFoundErrorResponse' + $ref: '#/components/responses/TableNotFoundErrorResponse' "503": $ref: '#/components/responses/ServiceUnavailableErrorResponse' "5XX": - $ref: '#/components/responses/ServerErrorResponse' + $ref: '#/components/responses/UnknownErrorResponse' summary: Modify existing columns tags: - Table @@ -704,17 +716,21 @@ paths: "200": $ref: '#/components/responses/AlterTableDropColumnsResponse' "400": - $ref: '#/components/responses/BadRequestErrorResponse' + content: + application/json: + schema: + $ref: '#/components/schemas/AlterTableAlterColumns_400_response' + description: Bad request - invalid request or column not found "401": $ref: '#/components/responses/UnauthorizedErrorResponse' "403": $ref: '#/components/responses/ForbiddenErrorResponse' "404": - $ref: '#/components/responses/NotFoundErrorResponse' + $ref: '#/components/responses/TableNotFoundErrorResponse' "503": $ref: '#/components/responses/ServiceUnavailableErrorResponse' "5XX": - $ref: '#/components/responses/ServerErrorResponse' + $ref: '#/components/responses/UnknownErrorResponse' summary: Remove columns from table tags: - Table @@ -743,17 +759,17 @@ paths: "200": $ref: '#/components/responses/GetTableStatsResponse' "400": - $ref: '#/components/responses/BadRequestErrorResponse' + $ref: '#/components/responses/InvalidRequestErrorResponse' "401": $ref: '#/components/responses/UnauthorizedErrorResponse' "403": $ref: '#/components/responses/ForbiddenErrorResponse' "404": - $ref: '#/components/responses/NotFoundErrorResponse' + $ref: '#/components/responses/TableNotFoundErrorResponse' "503": $ref: '#/components/responses/ServiceUnavailableErrorResponse' "5XX": - $ref: '#/components/responses/ServerErrorResponse' + $ref: '#/components/responses/UnknownErrorResponse' summary: Get table statistics tags: - Table @@ -820,17 +836,21 @@ paths: "200": $ref: '#/components/responses/InsertIntoTableResponse' "400": - $ref: '#/components/responses/BadRequestErrorResponse' + content: + application/json: + schema: + $ref: '#/components/schemas/InsertIntoTable_400_response' + description: Bad request - invalid request or schema mismatch "401": $ref: '#/components/responses/UnauthorizedErrorResponse' "403": $ref: '#/components/responses/ForbiddenErrorResponse' "404": - $ref: '#/components/responses/NotFoundErrorResponse' + $ref: '#/components/responses/TableNotFoundErrorResponse' "503": $ref: '#/components/responses/ServiceUnavailableErrorResponse' "5XX": - $ref: '#/components/responses/ServerErrorResponse' + $ref: '#/components/responses/UnknownErrorResponse' summary: Insert records into a table tags: - Table @@ -983,17 +1003,22 @@ paths: "200": $ref: '#/components/responses/MergeInsertIntoTableResponse' "400": - $ref: '#/components/responses/BadRequestErrorResponse' + content: + application/json: + schema: + $ref: '#/components/schemas/MergeInsertIntoTable_400_response' + description: "Bad request - invalid request, column not found, or schema\ + \ mismatch" "401": $ref: '#/components/responses/UnauthorizedErrorResponse' "403": $ref: '#/components/responses/ForbiddenErrorResponse' "404": - $ref: '#/components/responses/NotFoundErrorResponse' + $ref: '#/components/responses/TableNotFoundErrorResponse' "503": $ref: '#/components/responses/ServiceUnavailableErrorResponse' "5XX": - $ref: '#/components/responses/ServerErrorResponse' + $ref: '#/components/responses/UnknownErrorResponse' summary: Merge insert (upsert) records into a table tags: - Table @@ -1023,17 +1048,22 @@ paths: "200": $ref: '#/components/responses/UpdateTableResponse' "400": - $ref: '#/components/responses/BadRequestErrorResponse' + content: + application/json: + schema: + $ref: '#/components/schemas/UpdateTable_400_response' + description: "Bad request - invalid request, column not found, or invalid\ + \ SQL" "401": $ref: '#/components/responses/UnauthorizedErrorResponse' "403": $ref: '#/components/responses/ForbiddenErrorResponse' "404": - $ref: '#/components/responses/NotFoundErrorResponse' + $ref: '#/components/responses/TableNotFoundErrorResponse' "503": $ref: '#/components/responses/ServiceUnavailableErrorResponse' "5XX": - $ref: '#/components/responses/ServerErrorResponse' + $ref: '#/components/responses/UnknownErrorResponse' summary: Update rows in a table tags: - Table @@ -1063,17 +1093,21 @@ paths: "200": $ref: '#/components/responses/DeleteFromTableResponse' "400": - $ref: '#/components/responses/BadRequestErrorResponse' + content: + application/json: + schema: + $ref: '#/components/schemas/DeleteFromTable_400_response' + description: Bad request - invalid request or invalid SQL "401": $ref: '#/components/responses/UnauthorizedErrorResponse' "403": $ref: '#/components/responses/ForbiddenErrorResponse' "404": - $ref: '#/components/responses/NotFoundErrorResponse' + $ref: '#/components/responses/TableNotFoundErrorResponse' "503": $ref: '#/components/responses/ServiceUnavailableErrorResponse' "5XX": - $ref: '#/components/responses/ServerErrorResponse' + $ref: '#/components/responses/UnknownErrorResponse' summary: Delete rows from a table tags: - Table @@ -1104,17 +1138,21 @@ paths: "200": $ref: '#/components/responses/QueryTableResponse' "400": - $ref: '#/components/responses/BadRequestErrorResponse' + content: + application/json: + schema: + $ref: '#/components/schemas/DeleteFromTable_400_response' + description: Bad request - invalid request or invalid SQL "401": $ref: '#/components/responses/UnauthorizedErrorResponse' "403": $ref: '#/components/responses/ForbiddenErrorResponse' "404": - $ref: '#/components/responses/NotFoundErrorResponse' + $ref: '#/components/responses/TableNotFoundErrorResponse' "503": $ref: '#/components/responses/ServiceUnavailableErrorResponse' "5XX": - $ref: '#/components/responses/ServerErrorResponse' + $ref: '#/components/responses/UnknownErrorResponse' summary: Query a table tags: - Table @@ -1145,17 +1183,21 @@ paths: "200": $ref: '#/components/responses/CountTableRowsResponse' "400": - $ref: '#/components/responses/BadRequestErrorResponse' + content: + application/json: + schema: + $ref: '#/components/schemas/DeleteFromTable_400_response' + description: Bad request - invalid request or invalid SQL "401": $ref: '#/components/responses/UnauthorizedErrorResponse' "403": $ref: '#/components/responses/ForbiddenErrorResponse' "404": - $ref: '#/components/responses/NotFoundErrorResponse' + $ref: '#/components/responses/TableNotFoundErrorResponse' "503": $ref: '#/components/responses/ServiceUnavailableErrorResponse' "5XX": - $ref: '#/components/responses/ServerErrorResponse' + $ref: '#/components/responses/UnknownErrorResponse' summary: Count rows in a table tags: - Table @@ -1240,17 +1282,23 @@ paths: "200": $ref: '#/components/responses/CreateTableResponse' "400": - $ref: '#/components/responses/BadRequestErrorResponse' + content: + application/json: + schema: + $ref: '#/components/schemas/CreateTable_400_response' + description: Bad request - invalid request or invalid schema "401": $ref: '#/components/responses/UnauthorizedErrorResponse' "403": $ref: '#/components/responses/ForbiddenErrorResponse' "404": - $ref: '#/components/responses/NotFoundErrorResponse' + $ref: '#/components/responses/ParentNamespaceNotFoundErrorResponse' + "409": + $ref: '#/components/responses/TableAlreadyExistsErrorResponse' "503": $ref: '#/components/responses/ServiceUnavailableErrorResponse' "5XX": - $ref: '#/components/responses/ServerErrorResponse' + $ref: '#/components/responses/UnknownErrorResponse' summary: Create a table with the given name tags: - Table @@ -1280,17 +1328,21 @@ paths: "200": $ref: '#/components/responses/ExplainTableQueryPlanResponse' "400": - $ref: '#/components/responses/BadRequestErrorResponse' + content: + application/json: + schema: + $ref: '#/components/schemas/DeleteFromTable_400_response' + description: Bad request - invalid request or invalid SQL "401": $ref: '#/components/responses/UnauthorizedErrorResponse' "403": $ref: '#/components/responses/ForbiddenErrorResponse' "404": - $ref: '#/components/responses/NotFoundErrorResponse' + $ref: '#/components/responses/TableNotFoundErrorResponse' "503": $ref: '#/components/responses/ServiceUnavailableErrorResponse' "5XX": - $ref: '#/components/responses/ServerErrorResponse' + $ref: '#/components/responses/UnknownErrorResponse' summary: Get query execution plan explanation tags: - Table @@ -1320,17 +1372,21 @@ paths: "200": $ref: '#/components/responses/AnalyzeTableQueryPlanResponse' "400": - $ref: '#/components/responses/BadRequestErrorResponse' + content: + application/json: + schema: + $ref: '#/components/schemas/DeleteFromTable_400_response' + description: Bad request - invalid request or invalid SQL "401": $ref: '#/components/responses/UnauthorizedErrorResponse' "403": $ref: '#/components/responses/ForbiddenErrorResponse' "404": - $ref: '#/components/responses/NotFoundErrorResponse' + $ref: '#/components/responses/TableNotFoundErrorResponse' "503": $ref: '#/components/responses/ServiceUnavailableErrorResponse' "5XX": - $ref: '#/components/responses/ServerErrorResponse' + $ref: '#/components/responses/UnknownErrorResponse' summary: Analyze query execution plan tags: - Table @@ -1359,17 +1415,22 @@ paths: "200": $ref: '#/components/responses/AlterTableAddColumnsResponse' "400": - $ref: '#/components/responses/BadRequestErrorResponse' + content: + application/json: + schema: + $ref: '#/components/schemas/AlterTableAddColumns_400_response' + description: "Bad request - invalid request, invalid schema, or invalid\ + \ SQL" "401": $ref: '#/components/responses/UnauthorizedErrorResponse' "403": $ref: '#/components/responses/ForbiddenErrorResponse' "404": - $ref: '#/components/responses/NotFoundErrorResponse' + $ref: '#/components/responses/TableNotFoundErrorResponse' "503": $ref: '#/components/responses/ServiceUnavailableErrorResponse' "5XX": - $ref: '#/components/responses/ServerErrorResponse' + $ref: '#/components/responses/UnknownErrorResponse' summary: Add new columns to table schema tags: - Table @@ -1402,17 +1463,24 @@ paths: "200": $ref: '#/components/responses/CreateTableIndexResponse' "400": - $ref: '#/components/responses/BadRequestErrorResponse' + content: + application/json: + schema: + $ref: '#/components/schemas/CreateTableIndex_400_response' + description: "Bad request - invalid request, column not found, or invalid\ + \ index config" "401": $ref: '#/components/responses/UnauthorizedErrorResponse' "403": $ref: '#/components/responses/ForbiddenErrorResponse' "404": - $ref: '#/components/responses/NotFoundErrorResponse' + $ref: '#/components/responses/TableNotFoundErrorResponse' + "409": + $ref: '#/components/responses/TableIndexAlreadyExistsErrorResponse' "503": $ref: '#/components/responses/ServiceUnavailableErrorResponse' "5XX": - $ref: '#/components/responses/ServerErrorResponse' + $ref: '#/components/responses/UnknownErrorResponse' summary: Create an index on a table tags: - Table @@ -1444,17 +1512,17 @@ paths: "200": $ref: '#/components/responses/ListTableIndicesResponse' "400": - $ref: '#/components/responses/BadRequestErrorResponse' + $ref: '#/components/responses/InvalidRequestErrorResponse' "401": $ref: '#/components/responses/UnauthorizedErrorResponse' "403": $ref: '#/components/responses/ForbiddenErrorResponse' "404": - $ref: '#/components/responses/NotFoundErrorResponse' + $ref: '#/components/responses/TableNotFoundErrorResponse' "503": $ref: '#/components/responses/ServiceUnavailableErrorResponse' "5XX": - $ref: '#/components/responses/ServerErrorResponse' + $ref: '#/components/responses/UnknownErrorResponse' summary: List indexes on a table tags: - Table @@ -1502,17 +1570,21 @@ paths: "200": $ref: '#/components/responses/DescribeTableIndexStatsResponse' "400": - $ref: '#/components/responses/BadRequestErrorResponse' + $ref: '#/components/responses/InvalidRequestErrorResponse' "401": $ref: '#/components/responses/UnauthorizedErrorResponse' "403": $ref: '#/components/responses/ForbiddenErrorResponse' "404": - $ref: '#/components/responses/NotFoundErrorResponse' + content: + application/json: + schema: + $ref: '#/components/schemas/DescribeTableIndexStats_404_response' + description: Not found - table or index does not exist "503": $ref: '#/components/responses/ServiceUnavailableErrorResponse' "5XX": - $ref: '#/components/responses/ServerErrorResponse' + $ref: '#/components/responses/UnknownErrorResponse' summary: Get table index statistics tags: - Table @@ -1564,7 +1636,11 @@ paths: "403": $ref: '#/components/responses/ForbiddenErrorResponse' "404": - $ref: '#/components/responses/NotFoundErrorResponse' + content: + application/json: + schema: + $ref: '#/components/schemas/DescribeTableIndexStats_404_response' + description: Not found - table or index does not exist "503": $ref: '#/components/responses/ServiceUnavailableErrorResponse' "5XX": @@ -1617,7 +1693,7 @@ paths: "403": $ref: '#/components/responses/ForbiddenErrorResponse' "404": - $ref: '#/components/responses/NotFoundErrorResponse' + $ref: '#/components/responses/TableNotFoundErrorResponse' "503": $ref: '#/components/responses/ServiceUnavailableErrorResponse' "5XX": @@ -1673,7 +1749,11 @@ paths: "403": $ref: '#/components/responses/ForbiddenErrorResponse' "404": - $ref: '#/components/responses/NotFoundErrorResponse' + content: + application/json: + schema: + $ref: '#/components/schemas/GetTableTagVersion_404_response' + description: Not found - table or tag does not exist "503": $ref: '#/components/responses/ServiceUnavailableErrorResponse' "5XX": @@ -1721,9 +1801,9 @@ paths: "403": $ref: '#/components/responses/ForbiddenErrorResponse' "404": - $ref: '#/components/responses/NotFoundErrorResponse' + $ref: '#/components/responses/ParentNamespaceNotFoundErrorResponse' "409": - $ref: '#/components/responses/ConflictErrorResponse' + $ref: '#/components/responses/TableAlreadyExistsErrorResponse' "503": $ref: '#/components/responses/ServiceUnavailableErrorResponse' "5XX": @@ -1762,9 +1842,13 @@ paths: "403": $ref: '#/components/responses/ForbiddenErrorResponse' "404": - $ref: '#/components/responses/NotFoundErrorResponse' + content: + application/json: + schema: + $ref: '#/components/schemas/RestoreTable_404_response' + description: Not found - table or version does not exist "409": - $ref: '#/components/responses/ConflictErrorResponse' + $ref: '#/components/responses/TableTagAlreadyExistsErrorResponse' "503": $ref: '#/components/responses/ServiceUnavailableErrorResponse' "5XX": @@ -1804,7 +1888,11 @@ paths: "403": $ref: '#/components/responses/ForbiddenErrorResponse' "404": - $ref: '#/components/responses/NotFoundErrorResponse' + content: + application/json: + schema: + $ref: '#/components/schemas/GetTableTagVersion_404_response' + description: Not found - table or tag does not exist "503": $ref: '#/components/responses/ServiceUnavailableErrorResponse' "5XX": @@ -1844,7 +1932,11 @@ paths: "403": $ref: '#/components/responses/ForbiddenErrorResponse' "404": - $ref: '#/components/responses/NotFoundErrorResponse' + content: + application/json: + schema: + $ref: '#/components/schemas/UpdateTableTag_404_response' + description: "Not found - table, tag, or version does not exist" "503": $ref: '#/components/responses/ServiceUnavailableErrorResponse' "5XX": @@ -1884,7 +1976,7 @@ paths: "403": $ref: '#/components/responses/ForbiddenErrorResponse' "404": - $ref: '#/components/responses/NotFoundErrorResponse' + $ref: '#/components/responses/TransactionNotFoundErrorResponse' "503": $ref: '#/components/responses/ServiceUnavailableErrorResponse' "5XX": @@ -1924,9 +2016,9 @@ paths: "403": $ref: '#/components/responses/ForbiddenErrorResponse' "404": - $ref: '#/components/responses/NotFoundErrorResponse' + $ref: '#/components/responses/TransactionNotFoundErrorResponse' "409": - $ref: '#/components/responses/ConflictErrorResponse' + $ref: '#/components/responses/TransactionConflictErrorResponse' "503": $ref: '#/components/responses/ServiceUnavailableErrorResponse' "5XX": @@ -2283,6 +2375,258 @@ components: description: A server-side problem that might not be addressable from the client side. Used for server 5xx errors without more specific documentation in individual routes. + UnknownErrorResponse: + content: + application/json: + example: + error: Unknown error + code: 500 + type: lance-namespace:0 + detail: An unexpected error occurred + instance: /v1/namespace/my-ns + schema: + $ref: '#/components/schemas/UnknownError' + description: Unknown or unclassified error + InvalidRequestErrorResponse: + content: + application/json: + example: + error: Invalid request + code: 400 + type: lance-namespace:601 + detail: Request body is not valid JSON + instance: /v1/namespace/my-ns/create + schema: + $ref: '#/components/schemas/InvalidRequestError' + description: Malformed request or validation failure + InvalidSqlExpressionErrorResponse: + content: + application/json: + example: + error: Invalid SQL expression + code: 400 + type: lance-namespace:602 + detail: "Syntax error in filter expression: unexpected token 'FORM'" + instance: /v1/table/my-table/query + schema: + $ref: '#/components/schemas/InvalidSqlExpressionError' + description: Invalid SQL expression provided + InvalidIdentifierErrorResponse: + content: + application/json: + example: + error: Invalid identifier + code: 400 + type: lance-namespace:603 + detail: Identifier contains invalid characters + instance: /v1/namespace/my-ns/create + schema: + $ref: '#/components/schemas/InvalidIdentifierError' + description: Invalid identifier format + NamespaceNotFoundErrorResponse: + content: + application/json: + example: + error: Namespace not found + code: 404 + type: lance-namespace:101 + detail: Namespace 'prod$analytics' does not exist + instance: /v1/namespace/prod$analytics/describe + schema: + $ref: '#/components/schemas/NamespaceNotFoundError' + description: The requested namespace does not exist + NamespaceAlreadyExistsErrorResponse: + content: + application/json: + example: + error: Namespace already exists + code: 409 + type: lance-namespace:102 + detail: Namespace 'prod$analytics' already exists + instance: /v1/namespace/prod$analytics/create + schema: + $ref: '#/components/schemas/NamespaceAlreadyExistsError' + description: A namespace with the same name already exists + ParentNamespaceNotFoundErrorResponse: + content: + application/json: + example: + error: Parent namespace not found + code: 404 + type: lance-namespace:103 + detail: Parent namespace 'prod' does not exist + instance: /v1/namespace/prod$analytics/create + schema: + $ref: '#/components/schemas/ParentNamespaceNotFoundError' + description: The parent namespace does not exist + NamespaceNotEmptyErrorResponse: + content: + application/json: + example: + error: Namespace not empty + code: 409 + type: lance-namespace:104 + detail: Namespace 'prod' contains 3 tables and 2 child namespaces + instance: /v1/namespace/prod/drop + schema: + $ref: '#/components/schemas/NamespaceNotEmptyError' + description: Cannot drop namespace because it contains tables or child namespaces + TableNotFoundErrorResponse: + content: + application/json: + example: + error: Table not found + code: 404 + type: lance-namespace:201 + detail: Table 'prod$analytics$users' does not exist + instance: /v1/table/prod$analytics$users/describe + schema: + $ref: '#/components/schemas/TableNotFoundError' + description: The requested table does not exist + TableAlreadyExistsErrorResponse: + content: + application/json: + example: + error: Table already exists + code: 409 + type: lance-namespace:202 + detail: Table 'prod$analytics$users' already exists + instance: /v1/table/prod$analytics$users/create + schema: + $ref: '#/components/schemas/TableAlreadyExistsError' + description: A table with the same name already exists + TableVersionNotFoundErrorResponse: + content: + application/json: + example: + error: Table version not found + code: 404 + type: lance-namespace:203 + detail: Version 42 does not exist for table 'prod$analytics$users' + instance: /v1/table/prod$analytics$users/restore + schema: + $ref: '#/components/schemas/TableVersionNotFoundError' + description: The requested table version does not exist + TableColumnNotFoundErrorResponse: + content: + application/json: + example: + error: Column not found + code: 400 + type: lance-namespace:204 + detail: Column 'user_email' does not exist in table 'users' + instance: /v1/table/prod$analytics$users/alter_columns + schema: + $ref: '#/components/schemas/TableColumnNotFoundError' + description: The specified column does not exist in the table + InvalidTableSchemaErrorResponse: + content: + application/json: + example: + error: Invalid schema + code: 400 + type: lance-namespace:205 + detail: Invalid data type 'varchar' for column 'id' + instance: /v1/table/prod$analytics$users/create + schema: + $ref: '#/components/schemas/InvalidTableSchemaError' + description: The provided schema is invalid + TableSchemaMismatchErrorResponse: + content: + application/json: + example: + error: Schema mismatch + code: 400 + type: lance-namespace:206 + detail: Column 'age' has type Int32 but data has type String + instance: /v1/table/prod$analytics$users/insert + schema: + $ref: '#/components/schemas/TableSchemaMismatchError' + description: The data schema does not match the table schema + TableIndexNotFoundErrorResponse: + content: + application/json: + example: + error: Index not found + code: 404 + type: lance-namespace:301 + detail: Index 'vector_idx' does not exist on table 'users' + instance: /v1/table/prod$analytics$users/index/vector_idx/stats + schema: + $ref: '#/components/schemas/TableIndexNotFoundError' + description: The requested index does not exist + TableIndexAlreadyExistsErrorResponse: + content: + application/json: + example: + error: Index already exists + code: 409 + type: lance-namespace:302 + detail: Index 'vector_idx' already exists on table 'users' + instance: /v1/table/prod$analytics$users/create_index + schema: + $ref: '#/components/schemas/TableIndexAlreadyExistsError' + description: An index with the same name already exists + InvalidTableIndexConfigurationErrorResponse: + content: + application/json: + example: + error: Invalid index configuration + code: 400 + type: lance-namespace:303 + detail: Invalid distance metric 'hamming' for vector column + instance: /v1/table/prod$analytics$users/create_index + schema: + $ref: '#/components/schemas/InvalidTableIndexConfigurationError' + description: The provided index configuration is invalid + TableTagNotFoundErrorResponse: + content: + application/json: + example: + error: Tag not found + code: 404 + type: lance-namespace:401 + detail: Tag 'v1.0' does not exist on table 'users' + instance: /v1/table/prod$analytics$users/tags/version + schema: + $ref: '#/components/schemas/TableTagNotFoundError' + description: The requested tag does not exist + TableTagAlreadyExistsErrorResponse: + content: + application/json: + example: + error: Tag already exists + code: 409 + type: lance-namespace:402 + detail: Tag 'v1.0' already exists on table 'users' + instance: /v1/table/prod$analytics$users/tags/create + schema: + $ref: '#/components/schemas/TableTagAlreadyExistsError' + description: A tag with the same name already exists + TransactionNotFoundErrorResponse: + content: + application/json: + example: + error: Transaction not found + code: 404 + type: lance-namespace:501 + detail: Transaction 'tx-12345' does not exist + instance: /v1/transaction/tx-12345/describe + schema: + $ref: '#/components/schemas/TransactionNotFoundError' + description: The requested transaction does not exist + TransactionConflictErrorResponse: + content: + application/json: + example: + error: Transaction conflict + code: 409 + type: lance-namespace:502 + detail: Transaction 'tx-12345' conflicts with another transaction + instance: /v1/transaction/tx-12345/alter + schema: + $ref: '#/components/schemas/TransactionConflictError' + description: Transaction failed due to concurrent modification schemas: ErrorResponse: description: Common JSON error response model @@ -2326,6 +2670,645 @@ components: \ can recognize to trace specific occurrence of the error.\n" example: /login/log/abc123 type: string + UnknownError: + description: Unknown or unclassified error + example: + code: 5 + instance: instance + detail: detail + error: Unknown error + type: lance-namespace:0 + properties: + error: + description: Brief error message + example: Unknown error + type: string + code: + description: HTTP status code + enum: + - 500 + type: integer + type: + description: Error type identifier + enum: + - lance-namespace:0 + type: string + detail: + description: Detailed error explanation + type: string + instance: + description: Specific occurrence identifier + type: string + required: + - code + - error + - type + InvalidRequestError: + description: Malformed request or validation failure + example: + code: 0 + instance: instance + detail: detail + error: Invalid request + type: lance-namespace:601 + properties: + error: + description: Brief error message + example: Invalid request + type: string + code: + description: HTTP status code + enum: + - 400 + type: integer + type: + description: Error type identifier + enum: + - lance-namespace:601 + type: string + detail: + description: Detailed error explanation + type: string + instance: + description: Specific occurrence identifier + type: string + required: + - code + - error + - type + InvalidSqlExpressionError: + description: Invalid SQL expression provided + properties: + error: + description: Brief error message + example: Invalid SQL expression + type: string + code: + description: HTTP status code + enum: + - 400 + type: integer + type: + description: Error type identifier + enum: + - lance-namespace:602 + type: string + detail: + description: Detailed error explanation + type: string + instance: + description: Specific occurrence identifier + type: string + required: + - code + - error + - type + InvalidIdentifierError: + description: Invalid identifier format + properties: + error: + description: Brief error message + example: Invalid identifier + type: string + code: + description: HTTP status code + enum: + - 400 + type: integer + type: + description: Error type identifier + enum: + - lance-namespace:603 + type: string + detail: + description: Detailed error explanation + type: string + instance: + description: Specific occurrence identifier + type: string + required: + - code + - error + - type + NamespaceNotFoundError: + description: The requested namespace does not exist + example: + code: 0 + instance: instance + detail: detail + error: Namespace not found + type: lance-namespace:101 + properties: + error: + description: Brief error message + example: Namespace not found + type: string + code: + description: HTTP status code + enum: + - 404 + type: integer + type: + description: Error type identifier + enum: + - lance-namespace:101 + type: string + detail: + description: Detailed error explanation + type: string + instance: + description: Specific occurrence identifier + type: string + required: + - code + - error + - type + NamespaceAlreadyExistsError: + description: A namespace with the same name already exists + example: + code: 1 + instance: instance + detail: detail + error: Namespace already exists + type: lance-namespace:102 + properties: + error: + description: Brief error message + example: Namespace already exists + type: string + code: + description: HTTP status code + enum: + - 409 + type: integer + type: + description: Error type identifier + enum: + - lance-namespace:102 + type: string + detail: + description: Detailed error explanation + type: string + instance: + description: Specific occurrence identifier + type: string + required: + - code + - error + - type + ParentNamespaceNotFoundError: + description: The parent namespace does not exist + example: + code: 6 + instance: instance + detail: detail + error: Parent namespace not found + type: lance-namespace:103 + properties: + error: + description: Brief error message + example: Parent namespace not found + type: string + code: + description: HTTP status code + enum: + - 404 + type: integer + type: + description: Error type identifier + enum: + - lance-namespace:103 + type: string + detail: + description: Detailed error explanation + type: string + instance: + description: Specific occurrence identifier + type: string + required: + - code + - error + - type + NamespaceNotEmptyError: + description: Cannot drop namespace because it contains tables or child namespaces + example: + code: 0 + instance: instance + detail: detail + error: Namespace not empty + type: lance-namespace:104 + properties: + error: + description: Brief error message + example: Namespace not empty + type: string + code: + description: HTTP status code + enum: + - 409 + type: integer + type: + description: Error type identifier + enum: + - lance-namespace:104 + type: string + detail: + description: Detailed error explanation + type: string + instance: + description: Specific occurrence identifier + type: string + required: + - code + - error + - type + TableNotFoundError: + description: The requested table does not exist + example: + code: 1 + instance: instance + detail: detail + error: Table not found + type: lance-namespace:201 + properties: + error: + description: Brief error message + example: Table not found + type: string + code: + description: HTTP status code + enum: + - 404 + type: integer + type: + description: Error type identifier + enum: + - lance-namespace:201 + type: string + detail: + description: Detailed error explanation + type: string + instance: + description: Specific occurrence identifier + type: string + required: + - code + - error + - type + TableAlreadyExistsError: + description: A table with the same name already exists + example: + code: 0 + instance: instance + detail: detail + error: Table already exists + type: lance-namespace:202 + properties: + error: + description: Brief error message + example: Table already exists + type: string + code: + description: HTTP status code + enum: + - 409 + type: integer + type: + description: Error type identifier + enum: + - lance-namespace:202 + type: string + detail: + description: Detailed error explanation + type: string + instance: + description: Specific occurrence identifier + type: string + required: + - code + - error + - type + TableVersionNotFoundError: + description: The requested table version does not exist + properties: + error: + description: Brief error message + example: Table version not found + type: string + code: + description: HTTP status code + enum: + - 404 + type: integer + type: + description: Error type identifier + enum: + - lance-namespace:203 + type: string + detail: + description: Detailed error explanation + type: string + instance: + description: Specific occurrence identifier + type: string + required: + - code + - error + - type + TableColumnNotFoundError: + description: The specified column does not exist in the table + properties: + error: + description: Brief error message + example: Column not found + type: string + code: + description: HTTP status code + enum: + - 400 + type: integer + type: + description: Error type identifier + enum: + - lance-namespace:204 + type: string + detail: + description: Detailed error explanation + type: string + instance: + description: Specific occurrence identifier + type: string + required: + - code + - error + - type + InvalidTableSchemaError: + description: The provided schema is invalid + properties: + error: + description: Brief error message + example: Invalid schema + type: string + code: + description: HTTP status code + enum: + - 400 + type: integer + type: + description: Error type identifier + enum: + - lance-namespace:205 + type: string + detail: + description: Detailed error explanation + type: string + instance: + description: Specific occurrence identifier + type: string + required: + - code + - error + - type + TableSchemaMismatchError: + description: The data schema does not match the table schema + properties: + error: + description: Brief error message + example: Schema mismatch + type: string + code: + description: HTTP status code + enum: + - 400 + type: integer + type: + description: Error type identifier + enum: + - lance-namespace:206 + type: string + detail: + description: Detailed error explanation + type: string + instance: + description: Specific occurrence identifier + type: string + required: + - code + - error + - type + TableIndexNotFoundError: + description: The requested index does not exist + properties: + error: + description: Brief error message + example: Index not found + type: string + code: + description: HTTP status code + enum: + - 404 + type: integer + type: + description: Error type identifier + enum: + - lance-namespace:301 + type: string + detail: + description: Detailed error explanation + type: string + instance: + description: Specific occurrence identifier + type: string + required: + - code + - error + - type + TableIndexAlreadyExistsError: + description: An index with the same name already exists + example: + code: 0 + instance: instance + detail: detail + error: Index already exists + type: lance-namespace:302 + properties: + error: + description: Brief error message + example: Index already exists + type: string + code: + description: HTTP status code + enum: + - 409 + type: integer + type: + description: Error type identifier + enum: + - lance-namespace:302 + type: string + detail: + description: Detailed error explanation + type: string + instance: + description: Specific occurrence identifier + type: string + required: + - code + - error + - type + InvalidTableIndexConfigurationError: + description: The provided index configuration is invalid + properties: + error: + description: Brief error message + example: Invalid index configuration + type: string + code: + description: HTTP status code + enum: + - 400 + type: integer + type: + description: Error type identifier + enum: + - lance-namespace:303 + type: string + detail: + description: Detailed error explanation + type: string + instance: + description: Specific occurrence identifier + type: string + required: + - code + - error + - type + TableTagNotFoundError: + description: The requested tag does not exist + properties: + error: + description: Brief error message + example: Tag not found + type: string + code: + description: HTTP status code + enum: + - 404 + type: integer + type: + description: Error type identifier + enum: + - lance-namespace:401 + type: string + detail: + description: Detailed error explanation + type: string + instance: + description: Specific occurrence identifier + type: string + required: + - code + - error + - type + TableTagAlreadyExistsError: + description: A tag with the same name already exists + example: + code: 0 + instance: instance + detail: detail + error: Tag already exists + type: lance-namespace:402 + properties: + error: + description: Brief error message + example: Tag already exists + type: string + code: + description: HTTP status code + enum: + - 409 + type: integer + type: + description: Error type identifier + enum: + - lance-namespace:402 + type: string + detail: + description: Detailed error explanation + type: string + instance: + description: Specific occurrence identifier + type: string + required: + - code + - error + - type + TransactionNotFoundError: + description: The requested transaction does not exist + example: + code: 0 + instance: instance + detail: detail + error: Transaction not found + type: lance-namespace:501 + properties: + error: + description: Brief error message + example: Transaction not found + type: string + code: + description: HTTP status code + enum: + - 404 + type: integer + type: + description: Error type identifier + enum: + - lance-namespace:501 + type: string + detail: + description: Detailed error explanation + type: string + instance: + description: Specific occurrence identifier + type: string + required: + - code + - error + - type + TransactionConflictError: + description: Transaction failed due to concurrent modification + example: + code: 0 + instance: instance + detail: detail + error: Transaction conflict + type: lance-namespace:502 + properties: + error: + description: Brief error message + example: Transaction conflict + type: string + code: + description: HTTP status code + enum: + - 409 + type: integer + type: + description: Error type identifier + enum: + - lance-namespace:502 + type: string + detail: + description: Detailed error explanation + type: string + instance: + description: Specific occurrence identifier + type: string + required: + - code + - error + - type CreateNamespaceRequest: example: mode: create @@ -4612,6 +5595,63 @@ components: format: int64 minimum: 0 type: integer + CreateNamespace_400_response: + oneOf: + - $ref: '#/components/schemas/InvalidRequestError' + - $ref: '#/components/schemas/InvalidIdentifierError' + RestoreTable_404_response: + oneOf: + - $ref: '#/components/schemas/TableNotFoundError' + - $ref: '#/components/schemas/TableVersionNotFoundError' + AlterTableAlterColumns_400_response: + oneOf: + - $ref: '#/components/schemas/InvalidRequestError' + - $ref: '#/components/schemas/TableColumnNotFoundError' + InsertIntoTable_400_response: + oneOf: + - $ref: '#/components/schemas/InvalidRequestError' + - $ref: '#/components/schemas/TableSchemaMismatchError' + MergeInsertIntoTable_400_response: + oneOf: + - $ref: '#/components/schemas/InvalidRequestError' + - $ref: '#/components/schemas/TableColumnNotFoundError' + - $ref: '#/components/schemas/TableSchemaMismatchError' + UpdateTable_400_response: + oneOf: + - $ref: '#/components/schemas/InvalidRequestError' + - $ref: '#/components/schemas/TableColumnNotFoundError' + - $ref: '#/components/schemas/InvalidSqlExpressionError' + DeleteFromTable_400_response: + oneOf: + - $ref: '#/components/schemas/InvalidRequestError' + - $ref: '#/components/schemas/InvalidSqlExpressionError' + CreateTable_400_response: + oneOf: + - $ref: '#/components/schemas/InvalidRequestError' + - $ref: '#/components/schemas/InvalidTableSchemaError' + AlterTableAddColumns_400_response: + oneOf: + - $ref: '#/components/schemas/InvalidRequestError' + - $ref: '#/components/schemas/InvalidTableSchemaError' + - $ref: '#/components/schemas/InvalidSqlExpressionError' + CreateTableIndex_400_response: + oneOf: + - $ref: '#/components/schemas/InvalidRequestError' + - $ref: '#/components/schemas/TableColumnNotFoundError' + - $ref: '#/components/schemas/InvalidTableIndexConfigurationError' + DescribeTableIndexStats_404_response: + oneOf: + - $ref: '#/components/schemas/TableNotFoundError' + - $ref: '#/components/schemas/TableIndexNotFoundError' + GetTableTagVersion_404_response: + oneOf: + - $ref: '#/components/schemas/TableNotFoundError' + - $ref: '#/components/schemas/TableTagNotFoundError' + UpdateTableTag_404_response: + oneOf: + - $ref: '#/components/schemas/TableNotFoundError' + - $ref: '#/components/schemas/TableTagNotFoundError' + - $ref: '#/components/schemas/TableVersionNotFoundError' QueryTableRequest_full_text_query: description: "Optional full-text search query. Provide either string_query or\ \ structured_query, not both." diff --git a/java/lance-namespace-apache-client/docs/AlterTableAddColumns400Response.md b/java/lance-namespace-apache-client/docs/AlterTableAddColumns400Response.md new file mode 100644 index 00000000..e1d8bef2 --- /dev/null +++ b/java/lance-namespace-apache-client/docs/AlterTableAddColumns400Response.md @@ -0,0 +1,35 @@ + + +# AlterTableAddColumns400Response + + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**error** | **String** | Brief error message | | +|**code** | [**CodeEnum**](#CodeEnum) | HTTP status code | | +|**type** | [**TypeEnum**](#TypeEnum) | Error type identifier | | +|**detail** | **String** | Detailed error explanation | [optional] | +|**instance** | **String** | Specific occurrence identifier | [optional] | + + + +## Enum: CodeEnum + +| Name | Value | +|---- | -----| +| NUMBER_400 | 400 | + + + +## Enum: TypeEnum + +| Name | Value | +|---- | -----| +| LANCE_NAMESPACE_601 | "lance-namespace:601" | +| LANCE_NAMESPACE_205 | "lance-namespace:205" | +| LANCE_NAMESPACE_602 | "lance-namespace:602" | + + + diff --git a/java/lance-namespace-apache-client/docs/AlterTableAlterColumns400Response.md b/java/lance-namespace-apache-client/docs/AlterTableAlterColumns400Response.md new file mode 100644 index 00000000..5bf7a0a2 --- /dev/null +++ b/java/lance-namespace-apache-client/docs/AlterTableAlterColumns400Response.md @@ -0,0 +1,34 @@ + + +# AlterTableAlterColumns400Response + + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**error** | **String** | Brief error message | | +|**code** | [**CodeEnum**](#CodeEnum) | HTTP status code | | +|**type** | [**TypeEnum**](#TypeEnum) | Error type identifier | | +|**detail** | **String** | Detailed error explanation | [optional] | +|**instance** | **String** | Specific occurrence identifier | [optional] | + + + +## Enum: CodeEnum + +| Name | Value | +|---- | -----| +| NUMBER_400 | 400 | + + + +## Enum: TypeEnum + +| Name | Value | +|---- | -----| +| LANCE_NAMESPACE_601 | "lance-namespace:601" | +| LANCE_NAMESPACE_204 | "lance-namespace:204" | + + + diff --git a/java/lance-namespace-apache-client/docs/CreateNamespace400Response.md b/java/lance-namespace-apache-client/docs/CreateNamespace400Response.md new file mode 100644 index 00000000..c9604c27 --- /dev/null +++ b/java/lance-namespace-apache-client/docs/CreateNamespace400Response.md @@ -0,0 +1,34 @@ + + +# CreateNamespace400Response + + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**error** | **String** | Brief error message | | +|**code** | [**CodeEnum**](#CodeEnum) | HTTP status code | | +|**type** | [**TypeEnum**](#TypeEnum) | Error type identifier | | +|**detail** | **String** | Detailed error explanation | [optional] | +|**instance** | **String** | Specific occurrence identifier | [optional] | + + + +## Enum: CodeEnum + +| Name | Value | +|---- | -----| +| NUMBER_400 | 400 | + + + +## Enum: TypeEnum + +| Name | Value | +|---- | -----| +| LANCE_NAMESPACE_601 | "lance-namespace:601" | +| LANCE_NAMESPACE_603 | "lance-namespace:603" | + + + diff --git a/java/lance-namespace-apache-client/docs/CreateTable400Response.md b/java/lance-namespace-apache-client/docs/CreateTable400Response.md new file mode 100644 index 00000000..2a898c3c --- /dev/null +++ b/java/lance-namespace-apache-client/docs/CreateTable400Response.md @@ -0,0 +1,34 @@ + + +# CreateTable400Response + + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**error** | **String** | Brief error message | | +|**code** | [**CodeEnum**](#CodeEnum) | HTTP status code | | +|**type** | [**TypeEnum**](#TypeEnum) | Error type identifier | | +|**detail** | **String** | Detailed error explanation | [optional] | +|**instance** | **String** | Specific occurrence identifier | [optional] | + + + +## Enum: CodeEnum + +| Name | Value | +|---- | -----| +| NUMBER_400 | 400 | + + + +## Enum: TypeEnum + +| Name | Value | +|---- | -----| +| LANCE_NAMESPACE_601 | "lance-namespace:601" | +| LANCE_NAMESPACE_205 | "lance-namespace:205" | + + + diff --git a/java/lance-namespace-apache-client/docs/CreateTableIndex400Response.md b/java/lance-namespace-apache-client/docs/CreateTableIndex400Response.md new file mode 100644 index 00000000..d4a7db29 --- /dev/null +++ b/java/lance-namespace-apache-client/docs/CreateTableIndex400Response.md @@ -0,0 +1,35 @@ + + +# CreateTableIndex400Response + + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**error** | **String** | Brief error message | | +|**code** | [**CodeEnum**](#CodeEnum) | HTTP status code | | +|**type** | [**TypeEnum**](#TypeEnum) | Error type identifier | | +|**detail** | **String** | Detailed error explanation | [optional] | +|**instance** | **String** | Specific occurrence identifier | [optional] | + + + +## Enum: CodeEnum + +| Name | Value | +|---- | -----| +| NUMBER_400 | 400 | + + + +## Enum: TypeEnum + +| Name | Value | +|---- | -----| +| LANCE_NAMESPACE_601 | "lance-namespace:601" | +| LANCE_NAMESPACE_204 | "lance-namespace:204" | +| LANCE_NAMESPACE_303 | "lance-namespace:303" | + + + diff --git a/java/lance-namespace-apache-client/docs/DataApi.md b/java/lance-namespace-apache-client/docs/DataApi.md index eae0948c..be543b10 100644 --- a/java/lance-namespace-apache-client/docs/DataApi.md +++ b/java/lance-namespace-apache-client/docs/DataApi.md @@ -85,12 +85,12 @@ No authorization required | Status code | Description | Response headers | |-------------|-------------|------------------| | **200** | Add columns operation result | - | -| **400** | Indicates a bad request error. It could be caused by an unexpected request body format or other forms of request validation failure, such as invalid json. Usually serves application/json content, although in some cases simple text/plain content might be returned by the server's middleware. | - | +| **400** | Bad request - invalid request, invalid schema, or invalid SQL | - | | **401** | Unauthorized. The request lacks valid authentication credentials for the operation. | - | | **403** | Forbidden. Authenticated user does not have the necessary permissions. | - | -| **404** | A server-side problem that means can not find the specified resource. | - | +| **404** | The requested table does not exist | - | | **503** | The service is not ready to handle the request. The client should wait and retry. The service may additionally send a Retry-After header to indicate when to retry. | - | -| **5XX** | A server-side problem that might not be addressable from the client side. Used for server 5xx errors without more specific documentation in individual routes. | - | +| **5XX** | Unknown or unclassified error | - | ## analyzeTableQueryPlan @@ -161,12 +161,12 @@ No authorization required | Status code | Description | Response headers | |-------------|-------------|------------------| | **200** | Query execution plan analysis | - | -| **400** | Indicates a bad request error. It could be caused by an unexpected request body format or other forms of request validation failure, such as invalid json. Usually serves application/json content, although in some cases simple text/plain content might be returned by the server's middleware. | - | +| **400** | Bad request - invalid request or invalid SQL | - | | **401** | Unauthorized. The request lacks valid authentication credentials for the operation. | - | | **403** | Forbidden. Authenticated user does not have the necessary permissions. | - | -| **404** | A server-side problem that means can not find the specified resource. | - | +| **404** | The requested table does not exist | - | | **503** | The service is not ready to handle the request. The client should wait and retry. The service may additionally send a Retry-After header to indicate when to retry. | - | -| **5XX** | A server-side problem that might not be addressable from the client side. Used for server 5xx errors without more specific documentation in individual routes. | - | +| **5XX** | Unknown or unclassified error | - | ## countTableRows @@ -237,12 +237,12 @@ No authorization required | Status code | Description | Response headers | |-------------|-------------|------------------| | **200** | Result of counting rows in a table | - | -| **400** | Indicates a bad request error. It could be caused by an unexpected request body format or other forms of request validation failure, such as invalid json. Usually serves application/json content, although in some cases simple text/plain content might be returned by the server's middleware. | - | +| **400** | Bad request - invalid request or invalid SQL | - | | **401** | Unauthorized. The request lacks valid authentication credentials for the operation. | - | | **403** | Forbidden. Authenticated user does not have the necessary permissions. | - | -| **404** | A server-side problem that means can not find the specified resource. | - | +| **404** | The requested table does not exist | - | | **503** | The service is not ready to handle the request. The client should wait and retry. The service may additionally send a Retry-After header to indicate when to retry. | - | -| **5XX** | A server-side problem that might not be addressable from the client side. Used for server 5xx errors without more specific documentation in individual routes. | - | +| **5XX** | Unknown or unclassified error | - | ## createTable @@ -319,12 +319,13 @@ No authorization required | Status code | Description | Response headers | |-------------|-------------|------------------| | **200** | Table properties result when creating a table | - | -| **400** | Indicates a bad request error. It could be caused by an unexpected request body format or other forms of request validation failure, such as invalid json. Usually serves application/json content, although in some cases simple text/plain content might be returned by the server's middleware. | - | +| **400** | Bad request - invalid request or invalid schema | - | | **401** | Unauthorized. The request lacks valid authentication credentials for the operation. | - | | **403** | Forbidden. Authenticated user does not have the necessary permissions. | - | -| **404** | A server-side problem that means can not find the specified resource. | - | +| **404** | The parent namespace does not exist | - | +| **409** | A table with the same name already exists | - | | **503** | The service is not ready to handle the request. The client should wait and retry. The service may additionally send a Retry-After header to indicate when to retry. | - | -| **5XX** | A server-side problem that might not be addressable from the client side. Used for server 5xx errors without more specific documentation in individual routes. | - | +| **5XX** | Unknown or unclassified error | - | ## deleteFromTable @@ -395,12 +396,12 @@ No authorization required | Status code | Description | Response headers | |-------------|-------------|------------------| | **200** | Delete successful | - | -| **400** | Indicates a bad request error. It could be caused by an unexpected request body format or other forms of request validation failure, such as invalid json. Usually serves application/json content, although in some cases simple text/plain content might be returned by the server's middleware. | - | +| **400** | Bad request - invalid request or invalid SQL | - | | **401** | Unauthorized. The request lacks valid authentication credentials for the operation. | - | | **403** | Forbidden. Authenticated user does not have the necessary permissions. | - | -| **404** | A server-side problem that means can not find the specified resource. | - | +| **404** | The requested table does not exist | - | | **503** | The service is not ready to handle the request. The client should wait and retry. The service may additionally send a Retry-After header to indicate when to retry. | - | -| **5XX** | A server-side problem that might not be addressable from the client side. Used for server 5xx errors without more specific documentation in individual routes. | - | +| **5XX** | Unknown or unclassified error | - | ## explainTableQueryPlan @@ -471,12 +472,12 @@ No authorization required | Status code | Description | Response headers | |-------------|-------------|------------------| | **200** | Query execution plan explanation | - | -| **400** | Indicates a bad request error. It could be caused by an unexpected request body format or other forms of request validation failure, such as invalid json. Usually serves application/json content, although in some cases simple text/plain content might be returned by the server's middleware. | - | +| **400** | Bad request - invalid request or invalid SQL | - | | **401** | Unauthorized. The request lacks valid authentication credentials for the operation. | - | | **403** | Forbidden. Authenticated user does not have the necessary permissions. | - | -| **404** | A server-side problem that means can not find the specified resource. | - | +| **404** | The requested table does not exist | - | | **503** | The service is not ready to handle the request. The client should wait and retry. The service may additionally send a Retry-After header to indicate when to retry. | - | -| **5XX** | A server-side problem that might not be addressable from the client side. Used for server 5xx errors without more specific documentation in individual routes. | - | +| **5XX** | Unknown or unclassified error | - | ## insertIntoTable @@ -549,12 +550,12 @@ No authorization required | Status code | Description | Response headers | |-------------|-------------|------------------| | **200** | Result of inserting records into a table | - | -| **400** | Indicates a bad request error. It could be caused by an unexpected request body format or other forms of request validation failure, such as invalid json. Usually serves application/json content, although in some cases simple text/plain content might be returned by the server's middleware. | - | +| **400** | Bad request - invalid request or schema mismatch | - | | **401** | Unauthorized. The request lacks valid authentication credentials for the operation. | - | | **403** | Forbidden. Authenticated user does not have the necessary permissions. | - | -| **404** | A server-side problem that means can not find the specified resource. | - | +| **404** | The requested table does not exist | - | | **503** | The service is not ready to handle the request. The client should wait and retry. The service may additionally send a Retry-After header to indicate when to retry. | - | -| **5XX** | A server-side problem that might not be addressable from the client side. Used for server 5xx errors without more specific documentation in individual routes. | - | +| **5XX** | Unknown or unclassified error | - | ## mergeInsertIntoTable @@ -637,12 +638,12 @@ No authorization required | Status code | Description | Response headers | |-------------|-------------|------------------| | **200** | Result of merge insert operation | - | -| **400** | Indicates a bad request error. It could be caused by an unexpected request body format or other forms of request validation failure, such as invalid json. Usually serves application/json content, although in some cases simple text/plain content might be returned by the server's middleware. | - | +| **400** | Bad request - invalid request, column not found, or schema mismatch | - | | **401** | Unauthorized. The request lacks valid authentication credentials for the operation. | - | | **403** | Forbidden. Authenticated user does not have the necessary permissions. | - | -| **404** | A server-side problem that means can not find the specified resource. | - | +| **404** | The requested table does not exist | - | | **503** | The service is not ready to handle the request. The client should wait and retry. The service may additionally send a Retry-After header to indicate when to retry. | - | -| **5XX** | A server-side problem that might not be addressable from the client side. Used for server 5xx errors without more specific documentation in individual routes. | - | +| **5XX** | Unknown or unclassified error | - | ## queryTable @@ -713,12 +714,12 @@ No authorization required | Status code | Description | Response headers | |-------------|-------------|------------------| | **200** | Query results in Arrow IPC file or stream format | - | -| **400** | Indicates a bad request error. It could be caused by an unexpected request body format or other forms of request validation failure, such as invalid json. Usually serves application/json content, although in some cases simple text/plain content might be returned by the server's middleware. | - | +| **400** | Bad request - invalid request or invalid SQL | - | | **401** | Unauthorized. The request lacks valid authentication credentials for the operation. | - | | **403** | Forbidden. Authenticated user does not have the necessary permissions. | - | -| **404** | A server-side problem that means can not find the specified resource. | - | +| **404** | The requested table does not exist | - | | **503** | The service is not ready to handle the request. The client should wait and retry. The service may additionally send a Retry-After header to indicate when to retry. | - | -| **5XX** | A server-side problem that might not be addressable from the client side. Used for server 5xx errors without more specific documentation in individual routes. | - | +| **5XX** | Unknown or unclassified error | - | ## updateTable @@ -789,10 +790,10 @@ No authorization required | Status code | Description | Response headers | |-------------|-------------|------------------| | **200** | Update successful | - | -| **400** | Indicates a bad request error. It could be caused by an unexpected request body format or other forms of request validation failure, such as invalid json. Usually serves application/json content, although in some cases simple text/plain content might be returned by the server's middleware. | - | +| **400** | Bad request - invalid request, column not found, or invalid SQL | - | | **401** | Unauthorized. The request lacks valid authentication credentials for the operation. | - | | **403** | Forbidden. Authenticated user does not have the necessary permissions. | - | -| **404** | A server-side problem that means can not find the specified resource. | - | +| **404** | The requested table does not exist | - | | **503** | The service is not ready to handle the request. The client should wait and retry. The service may additionally send a Retry-After header to indicate when to retry. | - | -| **5XX** | A server-side problem that might not be addressable from the client side. Used for server 5xx errors without more specific documentation in individual routes. | - | +| **5XX** | Unknown or unclassified error | - | diff --git a/java/lance-namespace-apache-client/docs/DeleteFromTable400Response.md b/java/lance-namespace-apache-client/docs/DeleteFromTable400Response.md new file mode 100644 index 00000000..5ebfb4e2 --- /dev/null +++ b/java/lance-namespace-apache-client/docs/DeleteFromTable400Response.md @@ -0,0 +1,34 @@ + + +# DeleteFromTable400Response + + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**error** | **String** | Brief error message | | +|**code** | [**CodeEnum**](#CodeEnum) | HTTP status code | | +|**type** | [**TypeEnum**](#TypeEnum) | Error type identifier | | +|**detail** | **String** | Detailed error explanation | [optional] | +|**instance** | **String** | Specific occurrence identifier | [optional] | + + + +## Enum: CodeEnum + +| Name | Value | +|---- | -----| +| NUMBER_400 | 400 | + + + +## Enum: TypeEnum + +| Name | Value | +|---- | -----| +| LANCE_NAMESPACE_601 | "lance-namespace:601" | +| LANCE_NAMESPACE_602 | "lance-namespace:602" | + + + diff --git a/java/lance-namespace-apache-client/docs/DescribeTableIndexStats404Response.md b/java/lance-namespace-apache-client/docs/DescribeTableIndexStats404Response.md new file mode 100644 index 00000000..513ad8eb --- /dev/null +++ b/java/lance-namespace-apache-client/docs/DescribeTableIndexStats404Response.md @@ -0,0 +1,34 @@ + + +# DescribeTableIndexStats404Response + + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**error** | **String** | Brief error message | | +|**code** | [**CodeEnum**](#CodeEnum) | HTTP status code | | +|**type** | [**TypeEnum**](#TypeEnum) | Error type identifier | | +|**detail** | **String** | Detailed error explanation | [optional] | +|**instance** | **String** | Specific occurrence identifier | [optional] | + + + +## Enum: CodeEnum + +| Name | Value | +|---- | -----| +| NUMBER_404 | 404 | + + + +## Enum: TypeEnum + +| Name | Value | +|---- | -----| +| LANCE_NAMESPACE_201 | "lance-namespace:201" | +| LANCE_NAMESPACE_301 | "lance-namespace:301" | + + + diff --git a/java/lance-namespace-apache-client/docs/GetTableTagVersion404Response.md b/java/lance-namespace-apache-client/docs/GetTableTagVersion404Response.md new file mode 100644 index 00000000..ea9da9db --- /dev/null +++ b/java/lance-namespace-apache-client/docs/GetTableTagVersion404Response.md @@ -0,0 +1,34 @@ + + +# GetTableTagVersion404Response + + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**error** | **String** | Brief error message | | +|**code** | [**CodeEnum**](#CodeEnum) | HTTP status code | | +|**type** | [**TypeEnum**](#TypeEnum) | Error type identifier | | +|**detail** | **String** | Detailed error explanation | [optional] | +|**instance** | **String** | Specific occurrence identifier | [optional] | + + + +## Enum: CodeEnum + +| Name | Value | +|---- | -----| +| NUMBER_404 | 404 | + + + +## Enum: TypeEnum + +| Name | Value | +|---- | -----| +| LANCE_NAMESPACE_201 | "lance-namespace:201" | +| LANCE_NAMESPACE_401 | "lance-namespace:401" | + + + diff --git a/java/lance-namespace-apache-client/docs/IndexApi.md b/java/lance-namespace-apache-client/docs/IndexApi.md index e62abc1e..e565e518 100644 --- a/java/lance-namespace-apache-client/docs/IndexApi.md +++ b/java/lance-namespace-apache-client/docs/IndexApi.md @@ -79,12 +79,13 @@ No authorization required | Status code | Description | Response headers | |-------------|-------------|------------------| | **200** | Index created successfully | - | -| **400** | Indicates a bad request error. It could be caused by an unexpected request body format or other forms of request validation failure, such as invalid json. Usually serves application/json content, although in some cases simple text/plain content might be returned by the server's middleware. | - | +| **400** | Bad request - invalid request, column not found, or invalid index config | - | | **401** | Unauthorized. The request lacks valid authentication credentials for the operation. | - | | **403** | Forbidden. Authenticated user does not have the necessary permissions. | - | -| **404** | A server-side problem that means can not find the specified resource. | - | +| **404** | The requested table does not exist | - | +| **409** | An index with the same name already exists | - | | **503** | The service is not ready to handle the request. The client should wait and retry. The service may additionally send a Retry-After header to indicate when to retry. | - | -| **5XX** | A server-side problem that might not be addressable from the client side. Used for server 5xx errors without more specific documentation in individual routes. | - | +| **5XX** | Unknown or unclassified error | - | ## describeTableIndexStats @@ -157,12 +158,12 @@ No authorization required | Status code | Description | Response headers | |-------------|-------------|------------------| | **200** | Index statistics | - | -| **400** | Indicates a bad request error. It could be caused by an unexpected request body format or other forms of request validation failure, such as invalid json. Usually serves application/json content, although in some cases simple text/plain content might be returned by the server's middleware. | - | +| **400** | Malformed request or validation failure | - | | **401** | Unauthorized. The request lacks valid authentication credentials for the operation. | - | | **403** | Forbidden. Authenticated user does not have the necessary permissions. | - | -| **404** | A server-side problem that means can not find the specified resource. | - | +| **404** | Not found - table or index does not exist | - | | **503** | The service is not ready to handle the request. The client should wait and retry. The service may additionally send a Retry-After header to indicate when to retry. | - | -| **5XX** | A server-side problem that might not be addressable from the client side. Used for server 5xx errors without more specific documentation in individual routes. | - | +| **5XX** | Unknown or unclassified error | - | ## dropTableIndex @@ -238,7 +239,7 @@ No authorization required | **400** | Indicates a bad request error. It could be caused by an unexpected request body format or other forms of request validation failure, such as invalid json. Usually serves application/json content, although in some cases simple text/plain content might be returned by the server's middleware. | - | | **401** | Unauthorized. The request lacks valid authentication credentials for the operation. | - | | **403** | Forbidden. Authenticated user does not have the necessary permissions. | - | -| **404** | A server-side problem that means can not find the specified resource. | - | +| **404** | Not found - table or index does not exist | - | | **503** | The service is not ready to handle the request. The client should wait and retry. The service may additionally send a Retry-After header to indicate when to retry. | - | | **5XX** | A server-side problem that might not be addressable from the client side. Used for server 5xx errors without more specific documentation in individual routes. | - | @@ -311,10 +312,10 @@ No authorization required | Status code | Description | Response headers | |-------------|-------------|------------------| | **200** | List of indices on the table | - | -| **400** | Indicates a bad request error. It could be caused by an unexpected request body format or other forms of request validation failure, such as invalid json. Usually serves application/json content, although in some cases simple text/plain content might be returned by the server's middleware. | - | +| **400** | Malformed request or validation failure | - | | **401** | Unauthorized. The request lacks valid authentication credentials for the operation. | - | | **403** | Forbidden. Authenticated user does not have the necessary permissions. | - | -| **404** | A server-side problem that means can not find the specified resource. | - | +| **404** | The requested table does not exist | - | | **503** | The service is not ready to handle the request. The client should wait and retry. The service may additionally send a Retry-After header to indicate when to retry. | - | -| **5XX** | A server-side problem that might not be addressable from the client side. Used for server 5xx errors without more specific documentation in individual routes. | - | +| **5XX** | Unknown or unclassified error | - | diff --git a/java/lance-namespace-apache-client/docs/InsertIntoTable400Response.md b/java/lance-namespace-apache-client/docs/InsertIntoTable400Response.md new file mode 100644 index 00000000..1a8007df --- /dev/null +++ b/java/lance-namespace-apache-client/docs/InsertIntoTable400Response.md @@ -0,0 +1,34 @@ + + +# InsertIntoTable400Response + + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**error** | **String** | Brief error message | | +|**code** | [**CodeEnum**](#CodeEnum) | HTTP status code | | +|**type** | [**TypeEnum**](#TypeEnum) | Error type identifier | | +|**detail** | **String** | Detailed error explanation | [optional] | +|**instance** | **String** | Specific occurrence identifier | [optional] | + + + +## Enum: CodeEnum + +| Name | Value | +|---- | -----| +| NUMBER_400 | 400 | + + + +## Enum: TypeEnum + +| Name | Value | +|---- | -----| +| LANCE_NAMESPACE_601 | "lance-namespace:601" | +| LANCE_NAMESPACE_206 | "lance-namespace:206" | + + + diff --git a/java/lance-namespace-apache-client/docs/InvalidIdentifierError.md b/java/lance-namespace-apache-client/docs/InvalidIdentifierError.md new file mode 100644 index 00000000..fc0f86df --- /dev/null +++ b/java/lance-namespace-apache-client/docs/InvalidIdentifierError.md @@ -0,0 +1,34 @@ + + +# InvalidIdentifierError + +Invalid identifier format + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**error** | **String** | Brief error message | | +|**code** | [**CodeEnum**](#CodeEnum) | HTTP status code | | +|**type** | [**TypeEnum**](#TypeEnum) | Error type identifier | | +|**detail** | **String** | Detailed error explanation | [optional] | +|**instance** | **String** | Specific occurrence identifier | [optional] | + + + +## Enum: CodeEnum + +| Name | Value | +|---- | -----| +| NUMBER_400 | 400 | + + + +## Enum: TypeEnum + +| Name | Value | +|---- | -----| +| LANCE_NAMESPACE_603 | "lance-namespace:603" | + + + diff --git a/java/lance-namespace-apache-client/docs/InvalidRequestError.md b/java/lance-namespace-apache-client/docs/InvalidRequestError.md new file mode 100644 index 00000000..147c8a8f --- /dev/null +++ b/java/lance-namespace-apache-client/docs/InvalidRequestError.md @@ -0,0 +1,34 @@ + + +# InvalidRequestError + +Malformed request or validation failure + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**error** | **String** | Brief error message | | +|**code** | [**CodeEnum**](#CodeEnum) | HTTP status code | | +|**type** | [**TypeEnum**](#TypeEnum) | Error type identifier | | +|**detail** | **String** | Detailed error explanation | [optional] | +|**instance** | **String** | Specific occurrence identifier | [optional] | + + + +## Enum: CodeEnum + +| Name | Value | +|---- | -----| +| NUMBER_400 | 400 | + + + +## Enum: TypeEnum + +| Name | Value | +|---- | -----| +| LANCE_NAMESPACE_601 | "lance-namespace:601" | + + + diff --git a/java/lance-namespace-apache-client/docs/InvalidSqlExpressionError.md b/java/lance-namespace-apache-client/docs/InvalidSqlExpressionError.md new file mode 100644 index 00000000..abf8818f --- /dev/null +++ b/java/lance-namespace-apache-client/docs/InvalidSqlExpressionError.md @@ -0,0 +1,34 @@ + + +# InvalidSqlExpressionError + +Invalid SQL expression provided + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**error** | **String** | Brief error message | | +|**code** | [**CodeEnum**](#CodeEnum) | HTTP status code | | +|**type** | [**TypeEnum**](#TypeEnum) | Error type identifier | | +|**detail** | **String** | Detailed error explanation | [optional] | +|**instance** | **String** | Specific occurrence identifier | [optional] | + + + +## Enum: CodeEnum + +| Name | Value | +|---- | -----| +| NUMBER_400 | 400 | + + + +## Enum: TypeEnum + +| Name | Value | +|---- | -----| +| LANCE_NAMESPACE_602 | "lance-namespace:602" | + + + diff --git a/java/lance-namespace-apache-client/docs/InvalidTableIndexConfigurationError.md b/java/lance-namespace-apache-client/docs/InvalidTableIndexConfigurationError.md new file mode 100644 index 00000000..17e3b043 --- /dev/null +++ b/java/lance-namespace-apache-client/docs/InvalidTableIndexConfigurationError.md @@ -0,0 +1,34 @@ + + +# InvalidTableIndexConfigurationError + +The provided index configuration is invalid + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**error** | **String** | Brief error message | | +|**code** | [**CodeEnum**](#CodeEnum) | HTTP status code | | +|**type** | [**TypeEnum**](#TypeEnum) | Error type identifier | | +|**detail** | **String** | Detailed error explanation | [optional] | +|**instance** | **String** | Specific occurrence identifier | [optional] | + + + +## Enum: CodeEnum + +| Name | Value | +|---- | -----| +| NUMBER_400 | 400 | + + + +## Enum: TypeEnum + +| Name | Value | +|---- | -----| +| LANCE_NAMESPACE_303 | "lance-namespace:303" | + + + diff --git a/java/lance-namespace-apache-client/docs/InvalidTableSchemaError.md b/java/lance-namespace-apache-client/docs/InvalidTableSchemaError.md new file mode 100644 index 00000000..c4f70a48 --- /dev/null +++ b/java/lance-namespace-apache-client/docs/InvalidTableSchemaError.md @@ -0,0 +1,34 @@ + + +# InvalidTableSchemaError + +The provided schema is invalid + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**error** | **String** | Brief error message | | +|**code** | [**CodeEnum**](#CodeEnum) | HTTP status code | | +|**type** | [**TypeEnum**](#TypeEnum) | Error type identifier | | +|**detail** | **String** | Detailed error explanation | [optional] | +|**instance** | **String** | Specific occurrence identifier | [optional] | + + + +## Enum: CodeEnum + +| Name | Value | +|---- | -----| +| NUMBER_400 | 400 | + + + +## Enum: TypeEnum + +| Name | Value | +|---- | -----| +| LANCE_NAMESPACE_205 | "lance-namespace:205" | + + + diff --git a/java/lance-namespace-apache-client/docs/MergeInsertIntoTable400Response.md b/java/lance-namespace-apache-client/docs/MergeInsertIntoTable400Response.md new file mode 100644 index 00000000..4eac514c --- /dev/null +++ b/java/lance-namespace-apache-client/docs/MergeInsertIntoTable400Response.md @@ -0,0 +1,35 @@ + + +# MergeInsertIntoTable400Response + + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**error** | **String** | Brief error message | | +|**code** | [**CodeEnum**](#CodeEnum) | HTTP status code | | +|**type** | [**TypeEnum**](#TypeEnum) | Error type identifier | | +|**detail** | **String** | Detailed error explanation | [optional] | +|**instance** | **String** | Specific occurrence identifier | [optional] | + + + +## Enum: CodeEnum + +| Name | Value | +|---- | -----| +| NUMBER_400 | 400 | + + + +## Enum: TypeEnum + +| Name | Value | +|---- | -----| +| LANCE_NAMESPACE_601 | "lance-namespace:601" | +| LANCE_NAMESPACE_204 | "lance-namespace:204" | +| LANCE_NAMESPACE_206 | "lance-namespace:206" | + + + diff --git a/java/lance-namespace-apache-client/docs/MetadataApi.md b/java/lance-namespace-apache-client/docs/MetadataApi.md index 659580d9..8ab97235 100644 --- a/java/lance-namespace-apache-client/docs/MetadataApi.md +++ b/java/lance-namespace-apache-client/docs/MetadataApi.md @@ -103,12 +103,12 @@ No authorization required | Status code | Description | Response headers | |-------------|-------------|------------------| | **200** | Alter columns operation result | - | -| **400** | Indicates a bad request error. It could be caused by an unexpected request body format or other forms of request validation failure, such as invalid json. Usually serves application/json content, although in some cases simple text/plain content might be returned by the server's middleware. | - | +| **400** | Bad request - invalid request or column not found | - | | **401** | Unauthorized. The request lacks valid authentication credentials for the operation. | - | | **403** | Forbidden. Authenticated user does not have the necessary permissions. | - | -| **404** | A server-side problem that means can not find the specified resource. | - | +| **404** | The requested table does not exist | - | | **503** | The service is not ready to handle the request. The client should wait and retry. The service may additionally send a Retry-After header to indicate when to retry. | - | -| **5XX** | A server-side problem that might not be addressable from the client side. Used for server 5xx errors without more specific documentation in individual routes. | - | +| **5XX** | Unknown or unclassified error | - | ## alterTableDropColumns @@ -179,12 +179,12 @@ No authorization required | Status code | Description | Response headers | |-------------|-------------|------------------| | **200** | Drop columns operation result | - | -| **400** | Indicates a bad request error. It could be caused by an unexpected request body format or other forms of request validation failure, such as invalid json. Usually serves application/json content, although in some cases simple text/plain content might be returned by the server's middleware. | - | +| **400** | Bad request - invalid request or column not found | - | | **401** | Unauthorized. The request lacks valid authentication credentials for the operation. | - | | **403** | Forbidden. Authenticated user does not have the necessary permissions. | - | -| **404** | A server-side problem that means can not find the specified resource. | - | +| **404** | The requested table does not exist | - | | **503** | The service is not ready to handle the request. The client should wait and retry. The service may additionally send a Retry-After header to indicate when to retry. | - | -| **5XX** | A server-side problem that might not be addressable from the client side. Used for server 5xx errors without more specific documentation in individual routes. | - | +| **5XX** | Unknown or unclassified error | - | ## alterTransaction @@ -258,8 +258,8 @@ No authorization required | **400** | Indicates a bad request error. It could be caused by an unexpected request body format or other forms of request validation failure, such as invalid json. Usually serves application/json content, although in some cases simple text/plain content might be returned by the server's middleware. | - | | **401** | Unauthorized. The request lacks valid authentication credentials for the operation. | - | | **403** | Forbidden. Authenticated user does not have the necessary permissions. | - | -| **404** | A server-side problem that means can not find the specified resource. | - | -| **409** | The request conflicts with the current state of the target resource. | - | +| **404** | The requested transaction does not exist | - | +| **409** | Transaction failed due to concurrent modification | - | | **503** | The service is not ready to handle the request. The client should wait and retry. The service may additionally send a Retry-After header to indicate when to retry. | - | | **5XX** | A server-side problem that might not be addressable from the client side. Used for server 5xx errors without more specific documentation in individual routes. | - | @@ -335,8 +335,8 @@ No authorization required | **400** | Indicates a bad request error. It could be caused by an unexpected request body format or other forms of request validation failure, such as invalid json. Usually serves application/json content, although in some cases simple text/plain content might be returned by the server's middleware. | - | | **401** | Unauthorized. The request lacks valid authentication credentials for the operation. | - | | **403** | Forbidden. Authenticated user does not have the necessary permissions. | - | -| **404** | A server-side problem that means can not find the specified resource. | - | -| **409** | The request conflicts with the current state of the target resource. | - | +| **404** | The parent namespace does not exist | - | +| **409** | A table with the same name already exists | - | | **503** | The service is not ready to handle the request. The client should wait and retry. The service may additionally send a Retry-After header to indicate when to retry. | - | | **5XX** | A server-side problem that might not be addressable from the client side. Used for server 5xx errors without more specific documentation in individual routes. | - | @@ -409,14 +409,14 @@ No authorization required | Status code | Description | Response headers | |-------------|-------------|------------------| | **200** | Result of creating a namespace | - | -| **400** | Indicates a bad request error. It could be caused by an unexpected request body format or other forms of request validation failure, such as invalid json. Usually serves application/json content, although in some cases simple text/plain content might be returned by the server's middleware. | - | +| **400** | Bad request - invalid request format or identifier | - | | **401** | Unauthorized. The request lacks valid authentication credentials for the operation. | - | | **403** | Forbidden. Authenticated user does not have the necessary permissions. | - | -| **404** | A server-side problem that means can not find the specified resource. | - | +| **404** | The parent namespace does not exist | - | | **406** | Not Acceptable / Unsupported Operation. The server does not support this operation. | - | -| **409** | The request conflicts with the current state of the target resource. | - | +| **409** | A namespace with the same name already exists | - | | **503** | The service is not ready to handle the request. The client should wait and retry. The service may additionally send a Retry-After header to indicate when to retry. | - | -| **5XX** | A server-side problem that might not be addressable from the client side. Used for server 5xx errors without more specific documentation in individual routes. | - | +| **5XX** | Unknown or unclassified error | - | ## createTableIndex @@ -487,12 +487,13 @@ No authorization required | Status code | Description | Response headers | |-------------|-------------|------------------| | **200** | Index created successfully | - | -| **400** | Indicates a bad request error. It could be caused by an unexpected request body format or other forms of request validation failure, such as invalid json. Usually serves application/json content, although in some cases simple text/plain content might be returned by the server's middleware. | - | +| **400** | Bad request - invalid request, column not found, or invalid index config | - | | **401** | Unauthorized. The request lacks valid authentication credentials for the operation. | - | | **403** | Forbidden. Authenticated user does not have the necessary permissions. | - | -| **404** | A server-side problem that means can not find the specified resource. | - | +| **404** | The requested table does not exist | - | +| **409** | An index with the same name already exists | - | | **503** | The service is not ready to handle the request. The client should wait and retry. The service may additionally send a Retry-After header to indicate when to retry. | - | -| **5XX** | A server-side problem that might not be addressable from the client side. Used for server 5xx errors without more specific documentation in individual routes. | - | +| **5XX** | Unknown or unclassified error | - | ## createTableTag @@ -565,8 +566,8 @@ No authorization required | **400** | Indicates a bad request error. It could be caused by an unexpected request body format or other forms of request validation failure, such as invalid json. Usually serves application/json content, although in some cases simple text/plain content might be returned by the server's middleware. | - | | **401** | Unauthorized. The request lacks valid authentication credentials for the operation. | - | | **403** | Forbidden. Authenticated user does not have the necessary permissions. | - | -| **404** | A server-side problem that means can not find the specified resource. | - | -| **409** | The request conflicts with the current state of the target resource. | - | +| **404** | Not found - table or version does not exist | - | +| **409** | A tag with the same name already exists | - | | **503** | The service is not ready to handle the request. The client should wait and retry. The service may additionally send a Retry-After header to indicate when to retry. | - | | **5XX** | A server-side problem that might not be addressable from the client side. Used for server 5xx errors without more specific documentation in individual routes. | - | @@ -641,7 +642,7 @@ No authorization required | **400** | Indicates a bad request error. It could be caused by an unexpected request body format or other forms of request validation failure, such as invalid json. Usually serves application/json content, although in some cases simple text/plain content might be returned by the server's middleware. | - | | **401** | Unauthorized. The request lacks valid authentication credentials for the operation. | - | | **403** | Forbidden. Authenticated user does not have the necessary permissions. | - | -| **404** | A server-side problem that means can not find the specified resource. | - | +| **404** | Not found - table or tag does not exist | - | | **503** | The service is not ready to handle the request. The client should wait and retry. The service may additionally send a Retry-After header to indicate when to retry. | - | | **5XX** | A server-side problem that might not be addressable from the client side. Used for server 5xx errors without more specific documentation in individual routes. | - | @@ -714,12 +715,12 @@ No authorization required | Status code | Description | Response headers | |-------------|-------------|------------------| | **200** | Response of DeregisterTable | - | -| **400** | Indicates a bad request error. It could be caused by an unexpected request body format or other forms of request validation failure, such as invalid json. Usually serves application/json content, although in some cases simple text/plain content might be returned by the server's middleware. | - | +| **400** | Malformed request or validation failure | - | | **401** | Unauthorized. The request lacks valid authentication credentials for the operation. | - | | **403** | Forbidden. Authenticated user does not have the necessary permissions. | - | -| **404** | A server-side problem that means can not find the specified resource. | - | +| **404** | The requested table does not exist | - | | **503** | The service is not ready to handle the request. The client should wait and retry. The service may additionally send a Retry-After header to indicate when to retry. | - | -| **5XX** | A server-side problem that might not be addressable from the client side. Used for server 5xx errors without more specific documentation in individual routes. | - | +| **5XX** | Unknown or unclassified error | - | ## describeNamespace @@ -790,12 +791,12 @@ No authorization required | Status code | Description | Response headers | |-------------|-------------|------------------| | **200** | Returns a namespace, as well as any properties stored on the namespace if namespace properties are supported by the server. | - | -| **400** | Indicates a bad request error. It could be caused by an unexpected request body format or other forms of request validation failure, such as invalid json. Usually serves application/json content, although in some cases simple text/plain content might be returned by the server's middleware. | - | +| **400** | Malformed request or validation failure | - | | **401** | Unauthorized. The request lacks valid authentication credentials for the operation. | - | | **403** | Forbidden. Authenticated user does not have the necessary permissions. | - | -| **404** | A server-side problem that means can not find the specified resource. | - | +| **404** | The requested namespace does not exist | - | | **503** | The service is not ready to handle the request. The client should wait and retry. The service may additionally send a Retry-After header to indicate when to retry. | - | -| **5XX** | A server-side problem that might not be addressable from the client side. Used for server 5xx errors without more specific documentation in individual routes. | - | +| **5XX** | Unknown or unclassified error | - | ## describeTable @@ -866,12 +867,12 @@ No authorization required | Status code | Description | Response headers | |-------------|-------------|------------------| | **200** | Table properties result when loading a table | - | -| **400** | Indicates a bad request error. It could be caused by an unexpected request body format or other forms of request validation failure, such as invalid json. Usually serves application/json content, although in some cases simple text/plain content might be returned by the server's middleware. | - | +| **400** | Malformed request or validation failure | - | | **401** | Unauthorized. The request lacks valid authentication credentials for the operation. | - | | **403** | Forbidden. Authenticated user does not have the necessary permissions. | - | -| **404** | A server-side problem that means can not find the specified resource. | - | +| **404** | The requested table does not exist | - | | **503** | The service is not ready to handle the request. The client should wait and retry. The service may additionally send a Retry-After header to indicate when to retry. | - | -| **5XX** | A server-side problem that might not be addressable from the client side. Used for server 5xx errors without more specific documentation in individual routes. | - | +| **5XX** | Unknown or unclassified error | - | ## describeTableIndexStats @@ -944,12 +945,12 @@ No authorization required | Status code | Description | Response headers | |-------------|-------------|------------------| | **200** | Index statistics | - | -| **400** | Indicates a bad request error. It could be caused by an unexpected request body format or other forms of request validation failure, such as invalid json. Usually serves application/json content, although in some cases simple text/plain content might be returned by the server's middleware. | - | +| **400** | Malformed request or validation failure | - | | **401** | Unauthorized. The request lacks valid authentication credentials for the operation. | - | | **403** | Forbidden. Authenticated user does not have the necessary permissions. | - | -| **404** | A server-side problem that means can not find the specified resource. | - | +| **404** | Not found - table or index does not exist | - | | **503** | The service is not ready to handle the request. The client should wait and retry. The service may additionally send a Retry-After header to indicate when to retry. | - | -| **5XX** | A server-side problem that might not be addressable from the client side. Used for server 5xx errors without more specific documentation in individual routes. | - | +| **5XX** | Unknown or unclassified error | - | ## describeTransaction @@ -1023,7 +1024,7 @@ No authorization required | **400** | Indicates a bad request error. It could be caused by an unexpected request body format or other forms of request validation failure, such as invalid json. Usually serves application/json content, although in some cases simple text/plain content might be returned by the server's middleware. | - | | **401** | Unauthorized. The request lacks valid authentication credentials for the operation. | - | | **403** | Forbidden. Authenticated user does not have the necessary permissions. | - | -| **404** | A server-side problem that means can not find the specified resource. | - | +| **404** | The requested transaction does not exist | - | | **503** | The service is not ready to handle the request. The client should wait and retry. The service may additionally send a Retry-After header to indicate when to retry. | - | | **5XX** | A server-side problem that might not be addressable from the client side. Used for server 5xx errors without more specific documentation in individual routes. | - | @@ -1096,13 +1097,13 @@ No authorization required | Status code | Description | Response headers | |-------------|-------------|------------------| | **200** | Result of dropping a namespace | - | -| **400** | Indicates a bad request error. It could be caused by an unexpected request body format or other forms of request validation failure, such as invalid json. Usually serves application/json content, although in some cases simple text/plain content might be returned by the server's middleware. | - | +| **400** | Malformed request or validation failure | - | | **401** | Unauthorized. The request lacks valid authentication credentials for the operation. | - | | **403** | Forbidden. Authenticated user does not have the necessary permissions. | - | -| **404** | A server-side problem that means can not find the specified resource. | - | -| **409** | The request conflicts with the current state of the target resource. | - | +| **404** | The requested namespace does not exist | - | +| **409** | Cannot drop namespace because it contains tables or child namespaces | - | | **503** | The service is not ready to handle the request. The client should wait and retry. The service may additionally send a Retry-After header to indicate when to retry. | - | -| **5XX** | A server-side problem that might not be addressable from the client side. Used for server 5xx errors without more specific documentation in individual routes. | - | +| **5XX** | Unknown or unclassified error | - | ## dropTable @@ -1173,12 +1174,12 @@ No authorization required | Status code | Description | Response headers | |-------------|-------------|------------------| | **200** | Response of DropTable | - | -| **400** | Indicates a bad request error. It could be caused by an unexpected request body format or other forms of request validation failure, such as invalid json. Usually serves application/json content, although in some cases simple text/plain content might be returned by the server's middleware. | - | +| **400** | Malformed request or validation failure | - | | **401** | Unauthorized. The request lacks valid authentication credentials for the operation. | - | | **403** | Forbidden. Authenticated user does not have the necessary permissions. | - | -| **404** | A server-side problem that means can not find the specified resource. | - | +| **404** | The requested table does not exist | - | | **503** | The service is not ready to handle the request. The client should wait and retry. The service may additionally send a Retry-After header to indicate when to retry. | - | -| **5XX** | A server-side problem that might not be addressable from the client side. Used for server 5xx errors without more specific documentation in individual routes. | - | +| **5XX** | Unknown or unclassified error | - | ## dropTableIndex @@ -1254,7 +1255,7 @@ No authorization required | **400** | Indicates a bad request error. It could be caused by an unexpected request body format or other forms of request validation failure, such as invalid json. Usually serves application/json content, although in some cases simple text/plain content might be returned by the server's middleware. | - | | **401** | Unauthorized. The request lacks valid authentication credentials for the operation. | - | | **403** | Forbidden. Authenticated user does not have the necessary permissions. | - | -| **404** | A server-side problem that means can not find the specified resource. | - | +| **404** | Not found - table or index does not exist | - | | **503** | The service is not ready to handle the request. The client should wait and retry. The service may additionally send a Retry-After header to indicate when to retry. | - | | **5XX** | A server-side problem that might not be addressable from the client side. Used for server 5xx errors without more specific documentation in individual routes. | - | @@ -1327,12 +1328,12 @@ No authorization required | Status code | Description | Response headers | |-------------|-------------|------------------| | **200** | Table statistics | - | -| **400** | Indicates a bad request error. It could be caused by an unexpected request body format or other forms of request validation failure, such as invalid json. Usually serves application/json content, although in some cases simple text/plain content might be returned by the server's middleware. | - | +| **400** | Malformed request or validation failure | - | | **401** | Unauthorized. The request lacks valid authentication credentials for the operation. | - | | **403** | Forbidden. Authenticated user does not have the necessary permissions. | - | -| **404** | A server-side problem that means can not find the specified resource. | - | +| **404** | The requested table does not exist | - | | **503** | The service is not ready to handle the request. The client should wait and retry. The service may additionally send a Retry-After header to indicate when to retry. | - | -| **5XX** | A server-side problem that might not be addressable from the client side. Used for server 5xx errors without more specific documentation in individual routes. | - | +| **5XX** | Unknown or unclassified error | - | ## getTableTagVersion @@ -1406,7 +1407,7 @@ No authorization required | **400** | Indicates a bad request error. It could be caused by an unexpected request body format or other forms of request validation failure, such as invalid json. Usually serves application/json content, although in some cases simple text/plain content might be returned by the server's middleware. | - | | **401** | Unauthorized. The request lacks valid authentication credentials for the operation. | - | | **403** | Forbidden. Authenticated user does not have the necessary permissions. | - | -| **404** | A server-side problem that means can not find the specified resource. | - | +| **404** | Not found - table or tag does not exist | - | | **503** | The service is not ready to handle the request. The client should wait and retry. The service may additionally send a Retry-After header to indicate when to retry. | - | | **5XX** | A server-side problem that might not be addressable from the client side. Used for server 5xx errors without more specific documentation in individual routes. | - | @@ -1481,13 +1482,13 @@ No authorization required | Status code | Description | Response headers | |-------------|-------------|------------------| | **200** | A list of namespaces | - | -| **400** | Indicates a bad request error. It could be caused by an unexpected request body format or other forms of request validation failure, such as invalid json. Usually serves application/json content, although in some cases simple text/plain content might be returned by the server's middleware. | - | +| **400** | Malformed request or validation failure | - | | **401** | Unauthorized. The request lacks valid authentication credentials for the operation. | - | | **403** | Forbidden. Authenticated user does not have the necessary permissions. | - | -| **404** | A server-side problem that means can not find the specified resource. | - | +| **404** | The requested namespace does not exist | - | | **406** | Not Acceptable / Unsupported Operation. The server does not support this operation. | - | | **503** | The service is not ready to handle the request. The client should wait and retry. The service may additionally send a Retry-After header to indicate when to retry. | - | -| **5XX** | A server-side problem that might not be addressable from the client side. Used for server 5xx errors without more specific documentation in individual routes. | - | +| **5XX** | Unknown or unclassified error | - | ## listTableIndices @@ -1558,12 +1559,12 @@ No authorization required | Status code | Description | Response headers | |-------------|-------------|------------------| | **200** | List of indices on the table | - | -| **400** | Indicates a bad request error. It could be caused by an unexpected request body format or other forms of request validation failure, such as invalid json. Usually serves application/json content, although in some cases simple text/plain content might be returned by the server's middleware. | - | +| **400** | Malformed request or validation failure | - | | **401** | Unauthorized. The request lacks valid authentication credentials for the operation. | - | | **403** | Forbidden. Authenticated user does not have the necessary permissions. | - | -| **404** | A server-side problem that means can not find the specified resource. | - | +| **404** | The requested table does not exist | - | | **503** | The service is not ready to handle the request. The client should wait and retry. The service may additionally send a Retry-After header to indicate when to retry. | - | -| **5XX** | A server-side problem that might not be addressable from the client side. Used for server 5xx errors without more specific documentation in individual routes. | - | +| **5XX** | Unknown or unclassified error | - | ## listTableTags @@ -1639,7 +1640,7 @@ No authorization required | **400** | Indicates a bad request error. It could be caused by an unexpected request body format or other forms of request validation failure, such as invalid json. Usually serves application/json content, although in some cases simple text/plain content might be returned by the server's middleware. | - | | **401** | Unauthorized. The request lacks valid authentication credentials for the operation. | - | | **403** | Forbidden. Authenticated user does not have the necessary permissions. | - | -| **404** | A server-side problem that means can not find the specified resource. | - | +| **404** | The requested table does not exist | - | | **503** | The service is not ready to handle the request. The client should wait and retry. The service may additionally send a Retry-After header to indicate when to retry. | - | | **5XX** | A server-side problem that might not be addressable from the client side. Used for server 5xx errors without more specific documentation in individual routes. | - | @@ -1712,12 +1713,12 @@ No authorization required | Status code | Description | Response headers | |-------------|-------------|------------------| | **200** | List of table versions | - | -| **400** | Indicates a bad request error. It could be caused by an unexpected request body format or other forms of request validation failure, such as invalid json. Usually serves application/json content, although in some cases simple text/plain content might be returned by the server's middleware. | - | +| **400** | Malformed request or validation failure | - | | **401** | Unauthorized. The request lacks valid authentication credentials for the operation. | - | | **403** | Forbidden. Authenticated user does not have the necessary permissions. | - | -| **404** | A server-side problem that means can not find the specified resource. | - | +| **404** | The requested table does not exist | - | | **503** | The service is not ready to handle the request. The client should wait and retry. The service may additionally send a Retry-After header to indicate when to retry. | - | -| **5XX** | A server-side problem that might not be addressable from the client side. Used for server 5xx errors without more specific documentation in individual routes. | - | +| **5XX** | Unknown or unclassified error | - | ## listTables @@ -1790,13 +1791,13 @@ No authorization required | Status code | Description | Response headers | |-------------|-------------|------------------| | **200** | A list of tables | - | -| **400** | Indicates a bad request error. It could be caused by an unexpected request body format or other forms of request validation failure, such as invalid json. Usually serves application/json content, although in some cases simple text/plain content might be returned by the server's middleware. | - | +| **400** | Malformed request or validation failure | - | | **401** | Unauthorized. The request lacks valid authentication credentials for the operation. | - | | **403** | Forbidden. Authenticated user does not have the necessary permissions. | - | -| **404** | A server-side problem that means can not find the specified resource. | - | +| **404** | The requested namespace does not exist | - | | **406** | Not Acceptable / Unsupported Operation. The server does not support this operation. | - | | **503** | The service is not ready to handle the request. The client should wait and retry. The service may additionally send a Retry-After header to indicate when to retry. | - | -| **5XX** | A server-side problem that might not be addressable from the client side. Used for server 5xx errors without more specific documentation in individual routes. | - | +| **5XX** | Unknown or unclassified error | - | ## namespaceExists @@ -1866,12 +1867,12 @@ No authorization required | Status code | Description | Response headers | |-------------|-------------|------------------| | **200** | Success, no content | - | -| **400** | Indicates a bad request error. It could be caused by an unexpected request body format or other forms of request validation failure, such as invalid json. Usually serves application/json content, although in some cases simple text/plain content might be returned by the server's middleware. | - | +| **400** | Malformed request or validation failure | - | | **401** | Unauthorized. The request lacks valid authentication credentials for the operation. | - | | **403** | Forbidden. Authenticated user does not have the necessary permissions. | - | -| **404** | A server-side problem that means can not find the specified resource. | - | +| **404** | The requested namespace does not exist | - | | **503** | The service is not ready to handle the request. The client should wait and retry. The service may additionally send a Retry-After header to indicate when to retry. | - | -| **5XX** | A server-side problem that might not be addressable from the client side. Used for server 5xx errors without more specific documentation in individual routes. | - | +| **5XX** | Unknown or unclassified error | - | ## registerTable @@ -1942,14 +1943,14 @@ No authorization required | Status code | Description | Response headers | |-------------|-------------|------------------| | **200** | Table properties result when registering a table | - | -| **400** | Indicates a bad request error. It could be caused by an unexpected request body format or other forms of request validation failure, such as invalid json. Usually serves application/json content, although in some cases simple text/plain content might be returned by the server's middleware. | - | +| **400** | Malformed request or validation failure | - | | **401** | Unauthorized. The request lacks valid authentication credentials for the operation. | - | | **403** | Forbidden. Authenticated user does not have the necessary permissions. | - | -| **404** | A server-side problem that means can not find the specified resource. | - | +| **404** | The parent namespace does not exist | - | | **406** | Not Acceptable / Unsupported Operation. The server does not support this operation. | - | -| **409** | The request conflicts with the current state of the target resource. | - | +| **409** | A table with the same name already exists | - | | **503** | The service is not ready to handle the request. The client should wait and retry. The service may additionally send a Retry-After header to indicate when to retry. | - | -| **5XX** | A server-side problem that might not be addressable from the client side. Used for server 5xx errors without more specific documentation in individual routes. | - | +| **5XX** | Unknown or unclassified error | - | ## restoreTable @@ -2020,12 +2021,12 @@ No authorization required | Status code | Description | Response headers | |-------------|-------------|------------------| | **200** | Table restore operation result | - | -| **400** | Indicates a bad request error. It could be caused by an unexpected request body format or other forms of request validation failure, such as invalid json. Usually serves application/json content, although in some cases simple text/plain content might be returned by the server's middleware. | - | +| **400** | Malformed request or validation failure | - | | **401** | Unauthorized. The request lacks valid authentication credentials for the operation. | - | | **403** | Forbidden. Authenticated user does not have the necessary permissions. | - | -| **404** | A server-side problem that means can not find the specified resource. | - | +| **404** | Not found - table or version does not exist | - | | **503** | The service is not ready to handle the request. The client should wait and retry. The service may additionally send a Retry-After header to indicate when to retry. | - | -| **5XX** | A server-side problem that might not be addressable from the client side. Used for server 5xx errors without more specific documentation in individual routes. | - | +| **5XX** | Unknown or unclassified error | - | ## tableExists @@ -2095,12 +2096,12 @@ No authorization required | Status code | Description | Response headers | |-------------|-------------|------------------| | **200** | Success, no content | - | -| **400** | Indicates a bad request error. It could be caused by an unexpected request body format or other forms of request validation failure, such as invalid json. Usually serves application/json content, although in some cases simple text/plain content might be returned by the server's middleware. | - | +| **400** | Malformed request or validation failure | - | | **401** | Unauthorized. The request lacks valid authentication credentials for the operation. | - | | **403** | Forbidden. Authenticated user does not have the necessary permissions. | - | -| **404** | A server-side problem that means can not find the specified resource. | - | +| **404** | The requested table does not exist | - | | **503** | The service is not ready to handle the request. The client should wait and retry. The service may additionally send a Retry-After header to indicate when to retry. | - | -| **5XX** | A server-side problem that might not be addressable from the client side. Used for server 5xx errors without more specific documentation in individual routes. | - | +| **5XX** | Unknown or unclassified error | - | ## updateTableTag @@ -2173,7 +2174,7 @@ No authorization required | **400** | Indicates a bad request error. It could be caused by an unexpected request body format or other forms of request validation failure, such as invalid json. Usually serves application/json content, although in some cases simple text/plain content might be returned by the server's middleware. | - | | **401** | Unauthorized. The request lacks valid authentication credentials for the operation. | - | | **403** | Forbidden. Authenticated user does not have the necessary permissions. | - | -| **404** | A server-side problem that means can not find the specified resource. | - | +| **404** | Not found - table, tag, or version does not exist | - | | **503** | The service is not ready to handle the request. The client should wait and retry. The service may additionally send a Retry-After header to indicate when to retry. | - | | **5XX** | A server-side problem that might not be addressable from the client side. Used for server 5xx errors without more specific documentation in individual routes. | - | diff --git a/java/lance-namespace-apache-client/docs/NamespaceAlreadyExistsError.md b/java/lance-namespace-apache-client/docs/NamespaceAlreadyExistsError.md new file mode 100644 index 00000000..9cc2ebe3 --- /dev/null +++ b/java/lance-namespace-apache-client/docs/NamespaceAlreadyExistsError.md @@ -0,0 +1,34 @@ + + +# NamespaceAlreadyExistsError + +A namespace with the same name already exists + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**error** | **String** | Brief error message | | +|**code** | [**CodeEnum**](#CodeEnum) | HTTP status code | | +|**type** | [**TypeEnum**](#TypeEnum) | Error type identifier | | +|**detail** | **String** | Detailed error explanation | [optional] | +|**instance** | **String** | Specific occurrence identifier | [optional] | + + + +## Enum: CodeEnum + +| Name | Value | +|---- | -----| +| NUMBER_409 | 409 | + + + +## Enum: TypeEnum + +| Name | Value | +|---- | -----| +| LANCE_NAMESPACE_102 | "lance-namespace:102" | + + + diff --git a/java/lance-namespace-apache-client/docs/NamespaceApi.md b/java/lance-namespace-apache-client/docs/NamespaceApi.md index b79e0ee9..ec745f3e 100644 --- a/java/lance-namespace-apache-client/docs/NamespaceApi.md +++ b/java/lance-namespace-apache-client/docs/NamespaceApi.md @@ -81,14 +81,14 @@ No authorization required | Status code | Description | Response headers | |-------------|-------------|------------------| | **200** | Result of creating a namespace | - | -| **400** | Indicates a bad request error. It could be caused by an unexpected request body format or other forms of request validation failure, such as invalid json. Usually serves application/json content, although in some cases simple text/plain content might be returned by the server's middleware. | - | +| **400** | Bad request - invalid request format or identifier | - | | **401** | Unauthorized. The request lacks valid authentication credentials for the operation. | - | | **403** | Forbidden. Authenticated user does not have the necessary permissions. | - | -| **404** | A server-side problem that means can not find the specified resource. | - | +| **404** | The parent namespace does not exist | - | | **406** | Not Acceptable / Unsupported Operation. The server does not support this operation. | - | -| **409** | The request conflicts with the current state of the target resource. | - | +| **409** | A namespace with the same name already exists | - | | **503** | The service is not ready to handle the request. The client should wait and retry. The service may additionally send a Retry-After header to indicate when to retry. | - | -| **5XX** | A server-side problem that might not be addressable from the client side. Used for server 5xx errors without more specific documentation in individual routes. | - | +| **5XX** | Unknown or unclassified error | - | ## describeNamespace @@ -159,12 +159,12 @@ No authorization required | Status code | Description | Response headers | |-------------|-------------|------------------| | **200** | Returns a namespace, as well as any properties stored on the namespace if namespace properties are supported by the server. | - | -| **400** | Indicates a bad request error. It could be caused by an unexpected request body format or other forms of request validation failure, such as invalid json. Usually serves application/json content, although in some cases simple text/plain content might be returned by the server's middleware. | - | +| **400** | Malformed request or validation failure | - | | **401** | Unauthorized. The request lacks valid authentication credentials for the operation. | - | | **403** | Forbidden. Authenticated user does not have the necessary permissions. | - | -| **404** | A server-side problem that means can not find the specified resource. | - | +| **404** | The requested namespace does not exist | - | | **503** | The service is not ready to handle the request. The client should wait and retry. The service may additionally send a Retry-After header to indicate when to retry. | - | -| **5XX** | A server-side problem that might not be addressable from the client side. Used for server 5xx errors without more specific documentation in individual routes. | - | +| **5XX** | Unknown or unclassified error | - | ## dropNamespace @@ -235,13 +235,13 @@ No authorization required | Status code | Description | Response headers | |-------------|-------------|------------------| | **200** | Result of dropping a namespace | - | -| **400** | Indicates a bad request error. It could be caused by an unexpected request body format or other forms of request validation failure, such as invalid json. Usually serves application/json content, although in some cases simple text/plain content might be returned by the server's middleware. | - | +| **400** | Malformed request or validation failure | - | | **401** | Unauthorized. The request lacks valid authentication credentials for the operation. | - | | **403** | Forbidden. Authenticated user does not have the necessary permissions. | - | -| **404** | A server-side problem that means can not find the specified resource. | - | -| **409** | The request conflicts with the current state of the target resource. | - | +| **404** | The requested namespace does not exist | - | +| **409** | Cannot drop namespace because it contains tables or child namespaces | - | | **503** | The service is not ready to handle the request. The client should wait and retry. The service may additionally send a Retry-After header to indicate when to retry. | - | -| **5XX** | A server-side problem that might not be addressable from the client side. Used for server 5xx errors without more specific documentation in individual routes. | - | +| **5XX** | Unknown or unclassified error | - | ## listNamespaces @@ -314,13 +314,13 @@ No authorization required | Status code | Description | Response headers | |-------------|-------------|------------------| | **200** | A list of namespaces | - | -| **400** | Indicates a bad request error. It could be caused by an unexpected request body format or other forms of request validation failure, such as invalid json. Usually serves application/json content, although in some cases simple text/plain content might be returned by the server's middleware. | - | +| **400** | Malformed request or validation failure | - | | **401** | Unauthorized. The request lacks valid authentication credentials for the operation. | - | | **403** | Forbidden. Authenticated user does not have the necessary permissions. | - | -| **404** | A server-side problem that means can not find the specified resource. | - | +| **404** | The requested namespace does not exist | - | | **406** | Not Acceptable / Unsupported Operation. The server does not support this operation. | - | | **503** | The service is not ready to handle the request. The client should wait and retry. The service may additionally send a Retry-After header to indicate when to retry. | - | -| **5XX** | A server-side problem that might not be addressable from the client side. Used for server 5xx errors without more specific documentation in individual routes. | - | +| **5XX** | Unknown or unclassified error | - | ## listTables @@ -393,13 +393,13 @@ No authorization required | Status code | Description | Response headers | |-------------|-------------|------------------| | **200** | A list of tables | - | -| **400** | Indicates a bad request error. It could be caused by an unexpected request body format or other forms of request validation failure, such as invalid json. Usually serves application/json content, although in some cases simple text/plain content might be returned by the server's middleware. | - | +| **400** | Malformed request or validation failure | - | | **401** | Unauthorized. The request lacks valid authentication credentials for the operation. | - | | **403** | Forbidden. Authenticated user does not have the necessary permissions. | - | -| **404** | A server-side problem that means can not find the specified resource. | - | +| **404** | The requested namespace does not exist | - | | **406** | Not Acceptable / Unsupported Operation. The server does not support this operation. | - | | **503** | The service is not ready to handle the request. The client should wait and retry. The service may additionally send a Retry-After header to indicate when to retry. | - | -| **5XX** | A server-side problem that might not be addressable from the client side. Used for server 5xx errors without more specific documentation in individual routes. | - | +| **5XX** | Unknown or unclassified error | - | ## namespaceExists @@ -469,10 +469,10 @@ No authorization required | Status code | Description | Response headers | |-------------|-------------|------------------| | **200** | Success, no content | - | -| **400** | Indicates a bad request error. It could be caused by an unexpected request body format or other forms of request validation failure, such as invalid json. Usually serves application/json content, although in some cases simple text/plain content might be returned by the server's middleware. | - | +| **400** | Malformed request or validation failure | - | | **401** | Unauthorized. The request lacks valid authentication credentials for the operation. | - | | **403** | Forbidden. Authenticated user does not have the necessary permissions. | - | -| **404** | A server-side problem that means can not find the specified resource. | - | +| **404** | The requested namespace does not exist | - | | **503** | The service is not ready to handle the request. The client should wait and retry. The service may additionally send a Retry-After header to indicate when to retry. | - | -| **5XX** | A server-side problem that might not be addressable from the client side. Used for server 5xx errors without more specific documentation in individual routes. | - | +| **5XX** | Unknown or unclassified error | - | diff --git a/java/lance-namespace-apache-client/docs/NamespaceNotEmptyError.md b/java/lance-namespace-apache-client/docs/NamespaceNotEmptyError.md new file mode 100644 index 00000000..0fc8c607 --- /dev/null +++ b/java/lance-namespace-apache-client/docs/NamespaceNotEmptyError.md @@ -0,0 +1,34 @@ + + +# NamespaceNotEmptyError + +Cannot drop namespace because it contains tables or child namespaces + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**error** | **String** | Brief error message | | +|**code** | [**CodeEnum**](#CodeEnum) | HTTP status code | | +|**type** | [**TypeEnum**](#TypeEnum) | Error type identifier | | +|**detail** | **String** | Detailed error explanation | [optional] | +|**instance** | **String** | Specific occurrence identifier | [optional] | + + + +## Enum: CodeEnum + +| Name | Value | +|---- | -----| +| NUMBER_409 | 409 | + + + +## Enum: TypeEnum + +| Name | Value | +|---- | -----| +| LANCE_NAMESPACE_104 | "lance-namespace:104" | + + + diff --git a/java/lance-namespace-apache-client/docs/NamespaceNotFoundError.md b/java/lance-namespace-apache-client/docs/NamespaceNotFoundError.md new file mode 100644 index 00000000..1f1cc749 --- /dev/null +++ b/java/lance-namespace-apache-client/docs/NamespaceNotFoundError.md @@ -0,0 +1,34 @@ + + +# NamespaceNotFoundError + +The requested namespace does not exist + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**error** | **String** | Brief error message | | +|**code** | [**CodeEnum**](#CodeEnum) | HTTP status code | | +|**type** | [**TypeEnum**](#TypeEnum) | Error type identifier | | +|**detail** | **String** | Detailed error explanation | [optional] | +|**instance** | **String** | Specific occurrence identifier | [optional] | + + + +## Enum: CodeEnum + +| Name | Value | +|---- | -----| +| NUMBER_404 | 404 | + + + +## Enum: TypeEnum + +| Name | Value | +|---- | -----| +| LANCE_NAMESPACE_101 | "lance-namespace:101" | + + + diff --git a/java/lance-namespace-apache-client/docs/ParentNamespaceNotFoundError.md b/java/lance-namespace-apache-client/docs/ParentNamespaceNotFoundError.md new file mode 100644 index 00000000..08c27296 --- /dev/null +++ b/java/lance-namespace-apache-client/docs/ParentNamespaceNotFoundError.md @@ -0,0 +1,34 @@ + + +# ParentNamespaceNotFoundError + +The parent namespace does not exist + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**error** | **String** | Brief error message | | +|**code** | [**CodeEnum**](#CodeEnum) | HTTP status code | | +|**type** | [**TypeEnum**](#TypeEnum) | Error type identifier | | +|**detail** | **String** | Detailed error explanation | [optional] | +|**instance** | **String** | Specific occurrence identifier | [optional] | + + + +## Enum: CodeEnum + +| Name | Value | +|---- | -----| +| NUMBER_404 | 404 | + + + +## Enum: TypeEnum + +| Name | Value | +|---- | -----| +| LANCE_NAMESPACE_103 | "lance-namespace:103" | + + + diff --git a/java/lance-namespace-apache-client/docs/RestoreTable404Response.md b/java/lance-namespace-apache-client/docs/RestoreTable404Response.md new file mode 100644 index 00000000..c31c18ec --- /dev/null +++ b/java/lance-namespace-apache-client/docs/RestoreTable404Response.md @@ -0,0 +1,34 @@ + + +# RestoreTable404Response + + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**error** | **String** | Brief error message | | +|**code** | [**CodeEnum**](#CodeEnum) | HTTP status code | | +|**type** | [**TypeEnum**](#TypeEnum) | Error type identifier | | +|**detail** | **String** | Detailed error explanation | [optional] | +|**instance** | **String** | Specific occurrence identifier | [optional] | + + + +## Enum: CodeEnum + +| Name | Value | +|---- | -----| +| NUMBER_404 | 404 | + + + +## Enum: TypeEnum + +| Name | Value | +|---- | -----| +| LANCE_NAMESPACE_201 | "lance-namespace:201" | +| LANCE_NAMESPACE_203 | "lance-namespace:203" | + + + diff --git a/java/lance-namespace-apache-client/docs/TableAlreadyExistsError.md b/java/lance-namespace-apache-client/docs/TableAlreadyExistsError.md new file mode 100644 index 00000000..a40c217d --- /dev/null +++ b/java/lance-namespace-apache-client/docs/TableAlreadyExistsError.md @@ -0,0 +1,34 @@ + + +# TableAlreadyExistsError + +A table with the same name already exists + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**error** | **String** | Brief error message | | +|**code** | [**CodeEnum**](#CodeEnum) | HTTP status code | | +|**type** | [**TypeEnum**](#TypeEnum) | Error type identifier | | +|**detail** | **String** | Detailed error explanation | [optional] | +|**instance** | **String** | Specific occurrence identifier | [optional] | + + + +## Enum: CodeEnum + +| Name | Value | +|---- | -----| +| NUMBER_409 | 409 | + + + +## Enum: TypeEnum + +| Name | Value | +|---- | -----| +| LANCE_NAMESPACE_202 | "lance-namespace:202" | + + + diff --git a/java/lance-namespace-apache-client/docs/TableApi.md b/java/lance-namespace-apache-client/docs/TableApi.md index 69394f0b..1c23a182 100644 --- a/java/lance-namespace-apache-client/docs/TableApi.md +++ b/java/lance-namespace-apache-client/docs/TableApi.md @@ -106,12 +106,12 @@ No authorization required | Status code | Description | Response headers | |-------------|-------------|------------------| | **200** | Add columns operation result | - | -| **400** | Indicates a bad request error. It could be caused by an unexpected request body format or other forms of request validation failure, such as invalid json. Usually serves application/json content, although in some cases simple text/plain content might be returned by the server's middleware. | - | +| **400** | Bad request - invalid request, invalid schema, or invalid SQL | - | | **401** | Unauthorized. The request lacks valid authentication credentials for the operation. | - | | **403** | Forbidden. Authenticated user does not have the necessary permissions. | - | -| **404** | A server-side problem that means can not find the specified resource. | - | +| **404** | The requested table does not exist | - | | **503** | The service is not ready to handle the request. The client should wait and retry. The service may additionally send a Retry-After header to indicate when to retry. | - | -| **5XX** | A server-side problem that might not be addressable from the client side. Used for server 5xx errors without more specific documentation in individual routes. | - | +| **5XX** | Unknown or unclassified error | - | ## alterTableAlterColumns @@ -182,12 +182,12 @@ No authorization required | Status code | Description | Response headers | |-------------|-------------|------------------| | **200** | Alter columns operation result | - | -| **400** | Indicates a bad request error. It could be caused by an unexpected request body format or other forms of request validation failure, such as invalid json. Usually serves application/json content, although in some cases simple text/plain content might be returned by the server's middleware. | - | +| **400** | Bad request - invalid request or column not found | - | | **401** | Unauthorized. The request lacks valid authentication credentials for the operation. | - | | **403** | Forbidden. Authenticated user does not have the necessary permissions. | - | -| **404** | A server-side problem that means can not find the specified resource. | - | +| **404** | The requested table does not exist | - | | **503** | The service is not ready to handle the request. The client should wait and retry. The service may additionally send a Retry-After header to indicate when to retry. | - | -| **5XX** | A server-side problem that might not be addressable from the client side. Used for server 5xx errors without more specific documentation in individual routes. | - | +| **5XX** | Unknown or unclassified error | - | ## alterTableDropColumns @@ -258,12 +258,12 @@ No authorization required | Status code | Description | Response headers | |-------------|-------------|------------------| | **200** | Drop columns operation result | - | -| **400** | Indicates a bad request error. It could be caused by an unexpected request body format or other forms of request validation failure, such as invalid json. Usually serves application/json content, although in some cases simple text/plain content might be returned by the server's middleware. | - | +| **400** | Bad request - invalid request or column not found | - | | **401** | Unauthorized. The request lacks valid authentication credentials for the operation. | - | | **403** | Forbidden. Authenticated user does not have the necessary permissions. | - | -| **404** | A server-side problem that means can not find the specified resource. | - | +| **404** | The requested table does not exist | - | | **503** | The service is not ready to handle the request. The client should wait and retry. The service may additionally send a Retry-After header to indicate when to retry. | - | -| **5XX** | A server-side problem that might not be addressable from the client side. Used for server 5xx errors without more specific documentation in individual routes. | - | +| **5XX** | Unknown or unclassified error | - | ## analyzeTableQueryPlan @@ -334,12 +334,12 @@ No authorization required | Status code | Description | Response headers | |-------------|-------------|------------------| | **200** | Query execution plan analysis | - | -| **400** | Indicates a bad request error. It could be caused by an unexpected request body format or other forms of request validation failure, such as invalid json. Usually serves application/json content, although in some cases simple text/plain content might be returned by the server's middleware. | - | +| **400** | Bad request - invalid request or invalid SQL | - | | **401** | Unauthorized. The request lacks valid authentication credentials for the operation. | - | | **403** | Forbidden. Authenticated user does not have the necessary permissions. | - | -| **404** | A server-side problem that means can not find the specified resource. | - | +| **404** | The requested table does not exist | - | | **503** | The service is not ready to handle the request. The client should wait and retry. The service may additionally send a Retry-After header to indicate when to retry. | - | -| **5XX** | A server-side problem that might not be addressable from the client side. Used for server 5xx errors without more specific documentation in individual routes. | - | +| **5XX** | Unknown or unclassified error | - | ## countTableRows @@ -410,12 +410,12 @@ No authorization required | Status code | Description | Response headers | |-------------|-------------|------------------| | **200** | Result of counting rows in a table | - | -| **400** | Indicates a bad request error. It could be caused by an unexpected request body format or other forms of request validation failure, such as invalid json. Usually serves application/json content, although in some cases simple text/plain content might be returned by the server's middleware. | - | +| **400** | Bad request - invalid request or invalid SQL | - | | **401** | Unauthorized. The request lacks valid authentication credentials for the operation. | - | | **403** | Forbidden. Authenticated user does not have the necessary permissions. | - | -| **404** | A server-side problem that means can not find the specified resource. | - | +| **404** | The requested table does not exist | - | | **503** | The service is not ready to handle the request. The client should wait and retry. The service may additionally send a Retry-After header to indicate when to retry. | - | -| **5XX** | A server-side problem that might not be addressable from the client side. Used for server 5xx errors without more specific documentation in individual routes. | - | +| **5XX** | Unknown or unclassified error | - | ## createEmptyTable @@ -489,8 +489,8 @@ No authorization required | **400** | Indicates a bad request error. It could be caused by an unexpected request body format or other forms of request validation failure, such as invalid json. Usually serves application/json content, although in some cases simple text/plain content might be returned by the server's middleware. | - | | **401** | Unauthorized. The request lacks valid authentication credentials for the operation. | - | | **403** | Forbidden. Authenticated user does not have the necessary permissions. | - | -| **404** | A server-side problem that means can not find the specified resource. | - | -| **409** | The request conflicts with the current state of the target resource. | - | +| **404** | The parent namespace does not exist | - | +| **409** | A table with the same name already exists | - | | **503** | The service is not ready to handle the request. The client should wait and retry. The service may additionally send a Retry-After header to indicate when to retry. | - | | **5XX** | A server-side problem that might not be addressable from the client side. Used for server 5xx errors without more specific documentation in individual routes. | - | @@ -569,12 +569,13 @@ No authorization required | Status code | Description | Response headers | |-------------|-------------|------------------| | **200** | Table properties result when creating a table | - | -| **400** | Indicates a bad request error. It could be caused by an unexpected request body format or other forms of request validation failure, such as invalid json. Usually serves application/json content, although in some cases simple text/plain content might be returned by the server's middleware. | - | +| **400** | Bad request - invalid request or invalid schema | - | | **401** | Unauthorized. The request lacks valid authentication credentials for the operation. | - | | **403** | Forbidden. Authenticated user does not have the necessary permissions. | - | -| **404** | A server-side problem that means can not find the specified resource. | - | +| **404** | The parent namespace does not exist | - | +| **409** | A table with the same name already exists | - | | **503** | The service is not ready to handle the request. The client should wait and retry. The service may additionally send a Retry-After header to indicate when to retry. | - | -| **5XX** | A server-side problem that might not be addressable from the client side. Used for server 5xx errors without more specific documentation in individual routes. | - | +| **5XX** | Unknown or unclassified error | - | ## createTableIndex @@ -645,12 +646,13 @@ No authorization required | Status code | Description | Response headers | |-------------|-------------|------------------| | **200** | Index created successfully | - | -| **400** | Indicates a bad request error. It could be caused by an unexpected request body format or other forms of request validation failure, such as invalid json. Usually serves application/json content, although in some cases simple text/plain content might be returned by the server's middleware. | - | +| **400** | Bad request - invalid request, column not found, or invalid index config | - | | **401** | Unauthorized. The request lacks valid authentication credentials for the operation. | - | | **403** | Forbidden. Authenticated user does not have the necessary permissions. | - | -| **404** | A server-side problem that means can not find the specified resource. | - | +| **404** | The requested table does not exist | - | +| **409** | An index with the same name already exists | - | | **503** | The service is not ready to handle the request. The client should wait and retry. The service may additionally send a Retry-After header to indicate when to retry. | - | -| **5XX** | A server-side problem that might not be addressable from the client side. Used for server 5xx errors without more specific documentation in individual routes. | - | +| **5XX** | Unknown or unclassified error | - | ## createTableTag @@ -723,8 +725,8 @@ No authorization required | **400** | Indicates a bad request error. It could be caused by an unexpected request body format or other forms of request validation failure, such as invalid json. Usually serves application/json content, although in some cases simple text/plain content might be returned by the server's middleware. | - | | **401** | Unauthorized. The request lacks valid authentication credentials for the operation. | - | | **403** | Forbidden. Authenticated user does not have the necessary permissions. | - | -| **404** | A server-side problem that means can not find the specified resource. | - | -| **409** | The request conflicts with the current state of the target resource. | - | +| **404** | Not found - table or version does not exist | - | +| **409** | A tag with the same name already exists | - | | **503** | The service is not ready to handle the request. The client should wait and retry. The service may additionally send a Retry-After header to indicate when to retry. | - | | **5XX** | A server-side problem that might not be addressable from the client side. Used for server 5xx errors without more specific documentation in individual routes. | - | @@ -797,12 +799,12 @@ No authorization required | Status code | Description | Response headers | |-------------|-------------|------------------| | **200** | Delete successful | - | -| **400** | Indicates a bad request error. It could be caused by an unexpected request body format or other forms of request validation failure, such as invalid json. Usually serves application/json content, although in some cases simple text/plain content might be returned by the server's middleware. | - | +| **400** | Bad request - invalid request or invalid SQL | - | | **401** | Unauthorized. The request lacks valid authentication credentials for the operation. | - | | **403** | Forbidden. Authenticated user does not have the necessary permissions. | - | -| **404** | A server-side problem that means can not find the specified resource. | - | +| **404** | The requested table does not exist | - | | **503** | The service is not ready to handle the request. The client should wait and retry. The service may additionally send a Retry-After header to indicate when to retry. | - | -| **5XX** | A server-side problem that might not be addressable from the client side. Used for server 5xx errors without more specific documentation in individual routes. | - | +| **5XX** | Unknown or unclassified error | - | ## deleteTableTag @@ -875,7 +877,7 @@ No authorization required | **400** | Indicates a bad request error. It could be caused by an unexpected request body format or other forms of request validation failure, such as invalid json. Usually serves application/json content, although in some cases simple text/plain content might be returned by the server's middleware. | - | | **401** | Unauthorized. The request lacks valid authentication credentials for the operation. | - | | **403** | Forbidden. Authenticated user does not have the necessary permissions. | - | -| **404** | A server-side problem that means can not find the specified resource. | - | +| **404** | Not found - table or tag does not exist | - | | **503** | The service is not ready to handle the request. The client should wait and retry. The service may additionally send a Retry-After header to indicate when to retry. | - | | **5XX** | A server-side problem that might not be addressable from the client side. Used for server 5xx errors without more specific documentation in individual routes. | - | @@ -948,12 +950,12 @@ No authorization required | Status code | Description | Response headers | |-------------|-------------|------------------| | **200** | Response of DeregisterTable | - | -| **400** | Indicates a bad request error. It could be caused by an unexpected request body format or other forms of request validation failure, such as invalid json. Usually serves application/json content, although in some cases simple text/plain content might be returned by the server's middleware. | - | +| **400** | Malformed request or validation failure | - | | **401** | Unauthorized. The request lacks valid authentication credentials for the operation. | - | | **403** | Forbidden. Authenticated user does not have the necessary permissions. | - | -| **404** | A server-side problem that means can not find the specified resource. | - | +| **404** | The requested table does not exist | - | | **503** | The service is not ready to handle the request. The client should wait and retry. The service may additionally send a Retry-After header to indicate when to retry. | - | -| **5XX** | A server-side problem that might not be addressable from the client side. Used for server 5xx errors without more specific documentation in individual routes. | - | +| **5XX** | Unknown or unclassified error | - | ## describeTable @@ -1024,12 +1026,12 @@ No authorization required | Status code | Description | Response headers | |-------------|-------------|------------------| | **200** | Table properties result when loading a table | - | -| **400** | Indicates a bad request error. It could be caused by an unexpected request body format or other forms of request validation failure, such as invalid json. Usually serves application/json content, although in some cases simple text/plain content might be returned by the server's middleware. | - | +| **400** | Malformed request or validation failure | - | | **401** | Unauthorized. The request lacks valid authentication credentials for the operation. | - | | **403** | Forbidden. Authenticated user does not have the necessary permissions. | - | -| **404** | A server-side problem that means can not find the specified resource. | - | +| **404** | The requested table does not exist | - | | **503** | The service is not ready to handle the request. The client should wait and retry. The service may additionally send a Retry-After header to indicate when to retry. | - | -| **5XX** | A server-side problem that might not be addressable from the client side. Used for server 5xx errors without more specific documentation in individual routes. | - | +| **5XX** | Unknown or unclassified error | - | ## describeTableIndexStats @@ -1102,12 +1104,12 @@ No authorization required | Status code | Description | Response headers | |-------------|-------------|------------------| | **200** | Index statistics | - | -| **400** | Indicates a bad request error. It could be caused by an unexpected request body format or other forms of request validation failure, such as invalid json. Usually serves application/json content, although in some cases simple text/plain content might be returned by the server's middleware. | - | +| **400** | Malformed request or validation failure | - | | **401** | Unauthorized. The request lacks valid authentication credentials for the operation. | - | | **403** | Forbidden. Authenticated user does not have the necessary permissions. | - | -| **404** | A server-side problem that means can not find the specified resource. | - | +| **404** | Not found - table or index does not exist | - | | **503** | The service is not ready to handle the request. The client should wait and retry. The service may additionally send a Retry-After header to indicate when to retry. | - | -| **5XX** | A server-side problem that might not be addressable from the client side. Used for server 5xx errors without more specific documentation in individual routes. | - | +| **5XX** | Unknown or unclassified error | - | ## dropTable @@ -1178,12 +1180,12 @@ No authorization required | Status code | Description | Response headers | |-------------|-------------|------------------| | **200** | Response of DropTable | - | -| **400** | Indicates a bad request error. It could be caused by an unexpected request body format or other forms of request validation failure, such as invalid json. Usually serves application/json content, although in some cases simple text/plain content might be returned by the server's middleware. | - | +| **400** | Malformed request or validation failure | - | | **401** | Unauthorized. The request lacks valid authentication credentials for the operation. | - | | **403** | Forbidden. Authenticated user does not have the necessary permissions. | - | -| **404** | A server-side problem that means can not find the specified resource. | - | +| **404** | The requested table does not exist | - | | **503** | The service is not ready to handle the request. The client should wait and retry. The service may additionally send a Retry-After header to indicate when to retry. | - | -| **5XX** | A server-side problem that might not be addressable from the client side. Used for server 5xx errors without more specific documentation in individual routes. | - | +| **5XX** | Unknown or unclassified error | - | ## dropTableIndex @@ -1259,7 +1261,7 @@ No authorization required | **400** | Indicates a bad request error. It could be caused by an unexpected request body format or other forms of request validation failure, such as invalid json. Usually serves application/json content, although in some cases simple text/plain content might be returned by the server's middleware. | - | | **401** | Unauthorized. The request lacks valid authentication credentials for the operation. | - | | **403** | Forbidden. Authenticated user does not have the necessary permissions. | - | -| **404** | A server-side problem that means can not find the specified resource. | - | +| **404** | Not found - table or index does not exist | - | | **503** | The service is not ready to handle the request. The client should wait and retry. The service may additionally send a Retry-After header to indicate when to retry. | - | | **5XX** | A server-side problem that might not be addressable from the client side. Used for server 5xx errors without more specific documentation in individual routes. | - | @@ -1332,12 +1334,12 @@ No authorization required | Status code | Description | Response headers | |-------------|-------------|------------------| | **200** | Query execution plan explanation | - | -| **400** | Indicates a bad request error. It could be caused by an unexpected request body format or other forms of request validation failure, such as invalid json. Usually serves application/json content, although in some cases simple text/plain content might be returned by the server's middleware. | - | +| **400** | Bad request - invalid request or invalid SQL | - | | **401** | Unauthorized. The request lacks valid authentication credentials for the operation. | - | | **403** | Forbidden. Authenticated user does not have the necessary permissions. | - | -| **404** | A server-side problem that means can not find the specified resource. | - | +| **404** | The requested table does not exist | - | | **503** | The service is not ready to handle the request. The client should wait and retry. The service may additionally send a Retry-After header to indicate when to retry. | - | -| **5XX** | A server-side problem that might not be addressable from the client side. Used for server 5xx errors without more specific documentation in individual routes. | - | +| **5XX** | Unknown or unclassified error | - | ## getTableStats @@ -1408,12 +1410,12 @@ No authorization required | Status code | Description | Response headers | |-------------|-------------|------------------| | **200** | Table statistics | - | -| **400** | Indicates a bad request error. It could be caused by an unexpected request body format or other forms of request validation failure, such as invalid json. Usually serves application/json content, although in some cases simple text/plain content might be returned by the server's middleware. | - | +| **400** | Malformed request or validation failure | - | | **401** | Unauthorized. The request lacks valid authentication credentials for the operation. | - | | **403** | Forbidden. Authenticated user does not have the necessary permissions. | - | -| **404** | A server-side problem that means can not find the specified resource. | - | +| **404** | The requested table does not exist | - | | **503** | The service is not ready to handle the request. The client should wait and retry. The service may additionally send a Retry-After header to indicate when to retry. | - | -| **5XX** | A server-side problem that might not be addressable from the client side. Used for server 5xx errors without more specific documentation in individual routes. | - | +| **5XX** | Unknown or unclassified error | - | ## getTableTagVersion @@ -1487,7 +1489,7 @@ No authorization required | **400** | Indicates a bad request error. It could be caused by an unexpected request body format or other forms of request validation failure, such as invalid json. Usually serves application/json content, although in some cases simple text/plain content might be returned by the server's middleware. | - | | **401** | Unauthorized. The request lacks valid authentication credentials for the operation. | - | | **403** | Forbidden. Authenticated user does not have the necessary permissions. | - | -| **404** | A server-side problem that means can not find the specified resource. | - | +| **404** | Not found - table or tag does not exist | - | | **503** | The service is not ready to handle the request. The client should wait and retry. The service may additionally send a Retry-After header to indicate when to retry. | - | | **5XX** | A server-side problem that might not be addressable from the client side. Used for server 5xx errors without more specific documentation in individual routes. | - | @@ -1562,12 +1564,12 @@ No authorization required | Status code | Description | Response headers | |-------------|-------------|------------------| | **200** | Result of inserting records into a table | - | -| **400** | Indicates a bad request error. It could be caused by an unexpected request body format or other forms of request validation failure, such as invalid json. Usually serves application/json content, although in some cases simple text/plain content might be returned by the server's middleware. | - | +| **400** | Bad request - invalid request or schema mismatch | - | | **401** | Unauthorized. The request lacks valid authentication credentials for the operation. | - | | **403** | Forbidden. Authenticated user does not have the necessary permissions. | - | -| **404** | A server-side problem that means can not find the specified resource. | - | +| **404** | The requested table does not exist | - | | **503** | The service is not ready to handle the request. The client should wait and retry. The service may additionally send a Retry-After header to indicate when to retry. | - | -| **5XX** | A server-side problem that might not be addressable from the client side. Used for server 5xx errors without more specific documentation in individual routes. | - | +| **5XX** | Unknown or unclassified error | - | ## listTableIndices @@ -1638,12 +1640,12 @@ No authorization required | Status code | Description | Response headers | |-------------|-------------|------------------| | **200** | List of indices on the table | - | -| **400** | Indicates a bad request error. It could be caused by an unexpected request body format or other forms of request validation failure, such as invalid json. Usually serves application/json content, although in some cases simple text/plain content might be returned by the server's middleware. | - | +| **400** | Malformed request or validation failure | - | | **401** | Unauthorized. The request lacks valid authentication credentials for the operation. | - | | **403** | Forbidden. Authenticated user does not have the necessary permissions. | - | -| **404** | A server-side problem that means can not find the specified resource. | - | +| **404** | The requested table does not exist | - | | **503** | The service is not ready to handle the request. The client should wait and retry. The service may additionally send a Retry-After header to indicate when to retry. | - | -| **5XX** | A server-side problem that might not be addressable from the client side. Used for server 5xx errors without more specific documentation in individual routes. | - | +| **5XX** | Unknown or unclassified error | - | ## listTableTags @@ -1719,7 +1721,7 @@ No authorization required | **400** | Indicates a bad request error. It could be caused by an unexpected request body format or other forms of request validation failure, such as invalid json. Usually serves application/json content, although in some cases simple text/plain content might be returned by the server's middleware. | - | | **401** | Unauthorized. The request lacks valid authentication credentials for the operation. | - | | **403** | Forbidden. Authenticated user does not have the necessary permissions. | - | -| **404** | A server-side problem that means can not find the specified resource. | - | +| **404** | The requested table does not exist | - | | **503** | The service is not ready to handle the request. The client should wait and retry. The service may additionally send a Retry-After header to indicate when to retry. | - | | **5XX** | A server-side problem that might not be addressable from the client side. Used for server 5xx errors without more specific documentation in individual routes. | - | @@ -1792,12 +1794,12 @@ No authorization required | Status code | Description | Response headers | |-------------|-------------|------------------| | **200** | List of table versions | - | -| **400** | Indicates a bad request error. It could be caused by an unexpected request body format or other forms of request validation failure, such as invalid json. Usually serves application/json content, although in some cases simple text/plain content might be returned by the server's middleware. | - | +| **400** | Malformed request or validation failure | - | | **401** | Unauthorized. The request lacks valid authentication credentials for the operation. | - | | **403** | Forbidden. Authenticated user does not have the necessary permissions. | - | -| **404** | A server-side problem that means can not find the specified resource. | - | +| **404** | The requested table does not exist | - | | **503** | The service is not ready to handle the request. The client should wait and retry. The service may additionally send a Retry-After header to indicate when to retry. | - | -| **5XX** | A server-side problem that might not be addressable from the client side. Used for server 5xx errors without more specific documentation in individual routes. | - | +| **5XX** | Unknown or unclassified error | - | ## listTables @@ -1870,13 +1872,13 @@ No authorization required | Status code | Description | Response headers | |-------------|-------------|------------------| | **200** | A list of tables | - | -| **400** | Indicates a bad request error. It could be caused by an unexpected request body format or other forms of request validation failure, such as invalid json. Usually serves application/json content, although in some cases simple text/plain content might be returned by the server's middleware. | - | +| **400** | Malformed request or validation failure | - | | **401** | Unauthorized. The request lacks valid authentication credentials for the operation. | - | | **403** | Forbidden. Authenticated user does not have the necessary permissions. | - | -| **404** | A server-side problem that means can not find the specified resource. | - | +| **404** | The requested namespace does not exist | - | | **406** | Not Acceptable / Unsupported Operation. The server does not support this operation. | - | | **503** | The service is not ready to handle the request. The client should wait and retry. The service may additionally send a Retry-After header to indicate when to retry. | - | -| **5XX** | A server-side problem that might not be addressable from the client side. Used for server 5xx errors without more specific documentation in individual routes. | - | +| **5XX** | Unknown or unclassified error | - | ## mergeInsertIntoTable @@ -1959,12 +1961,12 @@ No authorization required | Status code | Description | Response headers | |-------------|-------------|------------------| | **200** | Result of merge insert operation | - | -| **400** | Indicates a bad request error. It could be caused by an unexpected request body format or other forms of request validation failure, such as invalid json. Usually serves application/json content, although in some cases simple text/plain content might be returned by the server's middleware. | - | +| **400** | Bad request - invalid request, column not found, or schema mismatch | - | | **401** | Unauthorized. The request lacks valid authentication credentials for the operation. | - | | **403** | Forbidden. Authenticated user does not have the necessary permissions. | - | -| **404** | A server-side problem that means can not find the specified resource. | - | +| **404** | The requested table does not exist | - | | **503** | The service is not ready to handle the request. The client should wait and retry. The service may additionally send a Retry-After header to indicate when to retry. | - | -| **5XX** | A server-side problem that might not be addressable from the client side. Used for server 5xx errors without more specific documentation in individual routes. | - | +| **5XX** | Unknown or unclassified error | - | ## queryTable @@ -2035,12 +2037,12 @@ No authorization required | Status code | Description | Response headers | |-------------|-------------|------------------| | **200** | Query results in Arrow IPC file or stream format | - | -| **400** | Indicates a bad request error. It could be caused by an unexpected request body format or other forms of request validation failure, such as invalid json. Usually serves application/json content, although in some cases simple text/plain content might be returned by the server's middleware. | - | +| **400** | Bad request - invalid request or invalid SQL | - | | **401** | Unauthorized. The request lacks valid authentication credentials for the operation. | - | | **403** | Forbidden. Authenticated user does not have the necessary permissions. | - | -| **404** | A server-side problem that means can not find the specified resource. | - | +| **404** | The requested table does not exist | - | | **503** | The service is not ready to handle the request. The client should wait and retry. The service may additionally send a Retry-After header to indicate when to retry. | - | -| **5XX** | A server-side problem that might not be addressable from the client side. Used for server 5xx errors without more specific documentation in individual routes. | - | +| **5XX** | Unknown or unclassified error | - | ## registerTable @@ -2111,14 +2113,14 @@ No authorization required | Status code | Description | Response headers | |-------------|-------------|------------------| | **200** | Table properties result when registering a table | - | -| **400** | Indicates a bad request error. It could be caused by an unexpected request body format or other forms of request validation failure, such as invalid json. Usually serves application/json content, although in some cases simple text/plain content might be returned by the server's middleware. | - | +| **400** | Malformed request or validation failure | - | | **401** | Unauthorized. The request lacks valid authentication credentials for the operation. | - | | **403** | Forbidden. Authenticated user does not have the necessary permissions. | - | -| **404** | A server-side problem that means can not find the specified resource. | - | +| **404** | The parent namespace does not exist | - | | **406** | Not Acceptable / Unsupported Operation. The server does not support this operation. | - | -| **409** | The request conflicts with the current state of the target resource. | - | +| **409** | A table with the same name already exists | - | | **503** | The service is not ready to handle the request. The client should wait and retry. The service may additionally send a Retry-After header to indicate when to retry. | - | -| **5XX** | A server-side problem that might not be addressable from the client side. Used for server 5xx errors without more specific documentation in individual routes. | - | +| **5XX** | Unknown or unclassified error | - | ## restoreTable @@ -2189,12 +2191,12 @@ No authorization required | Status code | Description | Response headers | |-------------|-------------|------------------| | **200** | Table restore operation result | - | -| **400** | Indicates a bad request error. It could be caused by an unexpected request body format or other forms of request validation failure, such as invalid json. Usually serves application/json content, although in some cases simple text/plain content might be returned by the server's middleware. | - | +| **400** | Malformed request or validation failure | - | | **401** | Unauthorized. The request lacks valid authentication credentials for the operation. | - | | **403** | Forbidden. Authenticated user does not have the necessary permissions. | - | -| **404** | A server-side problem that means can not find the specified resource. | - | +| **404** | Not found - table or version does not exist | - | | **503** | The service is not ready to handle the request. The client should wait and retry. The service may additionally send a Retry-After header to indicate when to retry. | - | -| **5XX** | A server-side problem that might not be addressable from the client side. Used for server 5xx errors without more specific documentation in individual routes. | - | +| **5XX** | Unknown or unclassified error | - | ## tableExists @@ -2264,12 +2266,12 @@ No authorization required | Status code | Description | Response headers | |-------------|-------------|------------------| | **200** | Success, no content | - | -| **400** | Indicates a bad request error. It could be caused by an unexpected request body format or other forms of request validation failure, such as invalid json. Usually serves application/json content, although in some cases simple text/plain content might be returned by the server's middleware. | - | +| **400** | Malformed request or validation failure | - | | **401** | Unauthorized. The request lacks valid authentication credentials for the operation. | - | | **403** | Forbidden. Authenticated user does not have the necessary permissions. | - | -| **404** | A server-side problem that means can not find the specified resource. | - | +| **404** | The requested table does not exist | - | | **503** | The service is not ready to handle the request. The client should wait and retry. The service may additionally send a Retry-After header to indicate when to retry. | - | -| **5XX** | A server-side problem that might not be addressable from the client side. Used for server 5xx errors without more specific documentation in individual routes. | - | +| **5XX** | Unknown or unclassified error | - | ## updateTable @@ -2340,12 +2342,12 @@ No authorization required | Status code | Description | Response headers | |-------------|-------------|------------------| | **200** | Update successful | - | -| **400** | Indicates a bad request error. It could be caused by an unexpected request body format or other forms of request validation failure, such as invalid json. Usually serves application/json content, although in some cases simple text/plain content might be returned by the server's middleware. | - | +| **400** | Bad request - invalid request, column not found, or invalid SQL | - | | **401** | Unauthorized. The request lacks valid authentication credentials for the operation. | - | | **403** | Forbidden. Authenticated user does not have the necessary permissions. | - | -| **404** | A server-side problem that means can not find the specified resource. | - | +| **404** | The requested table does not exist | - | | **503** | The service is not ready to handle the request. The client should wait and retry. The service may additionally send a Retry-After header to indicate when to retry. | - | -| **5XX** | A server-side problem that might not be addressable from the client side. Used for server 5xx errors without more specific documentation in individual routes. | - | +| **5XX** | Unknown or unclassified error | - | ## updateTableTag @@ -2418,7 +2420,7 @@ No authorization required | **400** | Indicates a bad request error. It could be caused by an unexpected request body format or other forms of request validation failure, such as invalid json. Usually serves application/json content, although in some cases simple text/plain content might be returned by the server's middleware. | - | | **401** | Unauthorized. The request lacks valid authentication credentials for the operation. | - | | **403** | Forbidden. Authenticated user does not have the necessary permissions. | - | -| **404** | A server-side problem that means can not find the specified resource. | - | +| **404** | Not found - table, tag, or version does not exist | - | | **503** | The service is not ready to handle the request. The client should wait and retry. The service may additionally send a Retry-After header to indicate when to retry. | - | | **5XX** | A server-side problem that might not be addressable from the client side. Used for server 5xx errors without more specific documentation in individual routes. | - | diff --git a/java/lance-namespace-apache-client/docs/TableColumnNotFoundError.md b/java/lance-namespace-apache-client/docs/TableColumnNotFoundError.md new file mode 100644 index 00000000..2a333881 --- /dev/null +++ b/java/lance-namespace-apache-client/docs/TableColumnNotFoundError.md @@ -0,0 +1,34 @@ + + +# TableColumnNotFoundError + +The specified column does not exist in the table + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**error** | **String** | Brief error message | | +|**code** | [**CodeEnum**](#CodeEnum) | HTTP status code | | +|**type** | [**TypeEnum**](#TypeEnum) | Error type identifier | | +|**detail** | **String** | Detailed error explanation | [optional] | +|**instance** | **String** | Specific occurrence identifier | [optional] | + + + +## Enum: CodeEnum + +| Name | Value | +|---- | -----| +| NUMBER_400 | 400 | + + + +## Enum: TypeEnum + +| Name | Value | +|---- | -----| +| LANCE_NAMESPACE_204 | "lance-namespace:204" | + + + diff --git a/java/lance-namespace-apache-client/docs/TableIndexAlreadyExistsError.md b/java/lance-namespace-apache-client/docs/TableIndexAlreadyExistsError.md new file mode 100644 index 00000000..872aea34 --- /dev/null +++ b/java/lance-namespace-apache-client/docs/TableIndexAlreadyExistsError.md @@ -0,0 +1,34 @@ + + +# TableIndexAlreadyExistsError + +An index with the same name already exists + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**error** | **String** | Brief error message | | +|**code** | [**CodeEnum**](#CodeEnum) | HTTP status code | | +|**type** | [**TypeEnum**](#TypeEnum) | Error type identifier | | +|**detail** | **String** | Detailed error explanation | [optional] | +|**instance** | **String** | Specific occurrence identifier | [optional] | + + + +## Enum: CodeEnum + +| Name | Value | +|---- | -----| +| NUMBER_409 | 409 | + + + +## Enum: TypeEnum + +| Name | Value | +|---- | -----| +| LANCE_NAMESPACE_302 | "lance-namespace:302" | + + + diff --git a/java/lance-namespace-apache-client/docs/TableIndexNotFoundError.md b/java/lance-namespace-apache-client/docs/TableIndexNotFoundError.md new file mode 100644 index 00000000..7441442c --- /dev/null +++ b/java/lance-namespace-apache-client/docs/TableIndexNotFoundError.md @@ -0,0 +1,34 @@ + + +# TableIndexNotFoundError + +The requested index does not exist + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**error** | **String** | Brief error message | | +|**code** | [**CodeEnum**](#CodeEnum) | HTTP status code | | +|**type** | [**TypeEnum**](#TypeEnum) | Error type identifier | | +|**detail** | **String** | Detailed error explanation | [optional] | +|**instance** | **String** | Specific occurrence identifier | [optional] | + + + +## Enum: CodeEnum + +| Name | Value | +|---- | -----| +| NUMBER_404 | 404 | + + + +## Enum: TypeEnum + +| Name | Value | +|---- | -----| +| LANCE_NAMESPACE_301 | "lance-namespace:301" | + + + diff --git a/java/lance-namespace-apache-client/docs/TableNotFoundError.md b/java/lance-namespace-apache-client/docs/TableNotFoundError.md new file mode 100644 index 00000000..86d9dea5 --- /dev/null +++ b/java/lance-namespace-apache-client/docs/TableNotFoundError.md @@ -0,0 +1,34 @@ + + +# TableNotFoundError + +The requested table does not exist + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**error** | **String** | Brief error message | | +|**code** | [**CodeEnum**](#CodeEnum) | HTTP status code | | +|**type** | [**TypeEnum**](#TypeEnum) | Error type identifier | | +|**detail** | **String** | Detailed error explanation | [optional] | +|**instance** | **String** | Specific occurrence identifier | [optional] | + + + +## Enum: CodeEnum + +| Name | Value | +|---- | -----| +| NUMBER_404 | 404 | + + + +## Enum: TypeEnum + +| Name | Value | +|---- | -----| +| LANCE_NAMESPACE_201 | "lance-namespace:201" | + + + diff --git a/java/lance-namespace-apache-client/docs/TableSchemaMismatchError.md b/java/lance-namespace-apache-client/docs/TableSchemaMismatchError.md new file mode 100644 index 00000000..df99fdf3 --- /dev/null +++ b/java/lance-namespace-apache-client/docs/TableSchemaMismatchError.md @@ -0,0 +1,34 @@ + + +# TableSchemaMismatchError + +The data schema does not match the table schema + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**error** | **String** | Brief error message | | +|**code** | [**CodeEnum**](#CodeEnum) | HTTP status code | | +|**type** | [**TypeEnum**](#TypeEnum) | Error type identifier | | +|**detail** | **String** | Detailed error explanation | [optional] | +|**instance** | **String** | Specific occurrence identifier | [optional] | + + + +## Enum: CodeEnum + +| Name | Value | +|---- | -----| +| NUMBER_400 | 400 | + + + +## Enum: TypeEnum + +| Name | Value | +|---- | -----| +| LANCE_NAMESPACE_206 | "lance-namespace:206" | + + + diff --git a/java/lance-namespace-apache-client/docs/TableTagAlreadyExistsError.md b/java/lance-namespace-apache-client/docs/TableTagAlreadyExistsError.md new file mode 100644 index 00000000..8c8e036c --- /dev/null +++ b/java/lance-namespace-apache-client/docs/TableTagAlreadyExistsError.md @@ -0,0 +1,34 @@ + + +# TableTagAlreadyExistsError + +A tag with the same name already exists + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**error** | **String** | Brief error message | | +|**code** | [**CodeEnum**](#CodeEnum) | HTTP status code | | +|**type** | [**TypeEnum**](#TypeEnum) | Error type identifier | | +|**detail** | **String** | Detailed error explanation | [optional] | +|**instance** | **String** | Specific occurrence identifier | [optional] | + + + +## Enum: CodeEnum + +| Name | Value | +|---- | -----| +| NUMBER_409 | 409 | + + + +## Enum: TypeEnum + +| Name | Value | +|---- | -----| +| LANCE_NAMESPACE_402 | "lance-namespace:402" | + + + diff --git a/java/lance-namespace-apache-client/docs/TableTagNotFoundError.md b/java/lance-namespace-apache-client/docs/TableTagNotFoundError.md new file mode 100644 index 00000000..9d526a0b --- /dev/null +++ b/java/lance-namespace-apache-client/docs/TableTagNotFoundError.md @@ -0,0 +1,34 @@ + + +# TableTagNotFoundError + +The requested tag does not exist + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**error** | **String** | Brief error message | | +|**code** | [**CodeEnum**](#CodeEnum) | HTTP status code | | +|**type** | [**TypeEnum**](#TypeEnum) | Error type identifier | | +|**detail** | **String** | Detailed error explanation | [optional] | +|**instance** | **String** | Specific occurrence identifier | [optional] | + + + +## Enum: CodeEnum + +| Name | Value | +|---- | -----| +| NUMBER_404 | 404 | + + + +## Enum: TypeEnum + +| Name | Value | +|---- | -----| +| LANCE_NAMESPACE_401 | "lance-namespace:401" | + + + diff --git a/java/lance-namespace-apache-client/docs/TableVersionNotFoundError.md b/java/lance-namespace-apache-client/docs/TableVersionNotFoundError.md new file mode 100644 index 00000000..f934ffcd --- /dev/null +++ b/java/lance-namespace-apache-client/docs/TableVersionNotFoundError.md @@ -0,0 +1,34 @@ + + +# TableVersionNotFoundError + +The requested table version does not exist + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**error** | **String** | Brief error message | | +|**code** | [**CodeEnum**](#CodeEnum) | HTTP status code | | +|**type** | [**TypeEnum**](#TypeEnum) | Error type identifier | | +|**detail** | **String** | Detailed error explanation | [optional] | +|**instance** | **String** | Specific occurrence identifier | [optional] | + + + +## Enum: CodeEnum + +| Name | Value | +|---- | -----| +| NUMBER_404 | 404 | + + + +## Enum: TypeEnum + +| Name | Value | +|---- | -----| +| LANCE_NAMESPACE_203 | "lance-namespace:203" | + + + diff --git a/java/lance-namespace-apache-client/docs/TagApi.md b/java/lance-namespace-apache-client/docs/TagApi.md index 157d2542..8fde938a 100644 --- a/java/lance-namespace-apache-client/docs/TagApi.md +++ b/java/lance-namespace-apache-client/docs/TagApi.md @@ -82,8 +82,8 @@ No authorization required | **400** | Indicates a bad request error. It could be caused by an unexpected request body format or other forms of request validation failure, such as invalid json. Usually serves application/json content, although in some cases simple text/plain content might be returned by the server's middleware. | - | | **401** | Unauthorized. The request lacks valid authentication credentials for the operation. | - | | **403** | Forbidden. Authenticated user does not have the necessary permissions. | - | -| **404** | A server-side problem that means can not find the specified resource. | - | -| **409** | The request conflicts with the current state of the target resource. | - | +| **404** | Not found - table or version does not exist | - | +| **409** | A tag with the same name already exists | - | | **503** | The service is not ready to handle the request. The client should wait and retry. The service may additionally send a Retry-After header to indicate when to retry. | - | | **5XX** | A server-side problem that might not be addressable from the client side. Used for server 5xx errors without more specific documentation in individual routes. | - | @@ -158,7 +158,7 @@ No authorization required | **400** | Indicates a bad request error. It could be caused by an unexpected request body format or other forms of request validation failure, such as invalid json. Usually serves application/json content, although in some cases simple text/plain content might be returned by the server's middleware. | - | | **401** | Unauthorized. The request lacks valid authentication credentials for the operation. | - | | **403** | Forbidden. Authenticated user does not have the necessary permissions. | - | -| **404** | A server-side problem that means can not find the specified resource. | - | +| **404** | Not found - table or tag does not exist | - | | **503** | The service is not ready to handle the request. The client should wait and retry. The service may additionally send a Retry-After header to indicate when to retry. | - | | **5XX** | A server-side problem that might not be addressable from the client side. Used for server 5xx errors without more specific documentation in individual routes. | - | @@ -234,7 +234,7 @@ No authorization required | **400** | Indicates a bad request error. It could be caused by an unexpected request body format or other forms of request validation failure, such as invalid json. Usually serves application/json content, although in some cases simple text/plain content might be returned by the server's middleware. | - | | **401** | Unauthorized. The request lacks valid authentication credentials for the operation. | - | | **403** | Forbidden. Authenticated user does not have the necessary permissions. | - | -| **404** | A server-side problem that means can not find the specified resource. | - | +| **404** | Not found - table or tag does not exist | - | | **503** | The service is not ready to handle the request. The client should wait and retry. The service may additionally send a Retry-After header to indicate when to retry. | - | | **5XX** | A server-side problem that might not be addressable from the client side. Used for server 5xx errors without more specific documentation in individual routes. | - | @@ -312,7 +312,7 @@ No authorization required | **400** | Indicates a bad request error. It could be caused by an unexpected request body format or other forms of request validation failure, such as invalid json. Usually serves application/json content, although in some cases simple text/plain content might be returned by the server's middleware. | - | | **401** | Unauthorized. The request lacks valid authentication credentials for the operation. | - | | **403** | Forbidden. Authenticated user does not have the necessary permissions. | - | -| **404** | A server-side problem that means can not find the specified resource. | - | +| **404** | The requested table does not exist | - | | **503** | The service is not ready to handle the request. The client should wait and retry. The service may additionally send a Retry-After header to indicate when to retry. | - | | **5XX** | A server-side problem that might not be addressable from the client side. Used for server 5xx errors without more specific documentation in individual routes. | - | @@ -387,7 +387,7 @@ No authorization required | **400** | Indicates a bad request error. It could be caused by an unexpected request body format or other forms of request validation failure, such as invalid json. Usually serves application/json content, although in some cases simple text/plain content might be returned by the server's middleware. | - | | **401** | Unauthorized. The request lacks valid authentication credentials for the operation. | - | | **403** | Forbidden. Authenticated user does not have the necessary permissions. | - | -| **404** | A server-side problem that means can not find the specified resource. | - | +| **404** | Not found - table, tag, or version does not exist | - | | **503** | The service is not ready to handle the request. The client should wait and retry. The service may additionally send a Retry-After header to indicate when to retry. | - | | **5XX** | A server-side problem that might not be addressable from the client side. Used for server 5xx errors without more specific documentation in individual routes. | - | diff --git a/java/lance-namespace-apache-client/docs/TransactionApi.md b/java/lance-namespace-apache-client/docs/TransactionApi.md index b7e5be21..497efde1 100644 --- a/java/lance-namespace-apache-client/docs/TransactionApi.md +++ b/java/lance-namespace-apache-client/docs/TransactionApi.md @@ -80,8 +80,8 @@ No authorization required | **400** | Indicates a bad request error. It could be caused by an unexpected request body format or other forms of request validation failure, such as invalid json. Usually serves application/json content, although in some cases simple text/plain content might be returned by the server's middleware. | - | | **401** | Unauthorized. The request lacks valid authentication credentials for the operation. | - | | **403** | Forbidden. Authenticated user does not have the necessary permissions. | - | -| **404** | A server-side problem that means can not find the specified resource. | - | -| **409** | The request conflicts with the current state of the target resource. | - | +| **404** | The requested transaction does not exist | - | +| **409** | Transaction failed due to concurrent modification | - | | **503** | The service is not ready to handle the request. The client should wait and retry. The service may additionally send a Retry-After header to indicate when to retry. | - | | **5XX** | A server-side problem that might not be addressable from the client side. Used for server 5xx errors without more specific documentation in individual routes. | - | @@ -157,7 +157,7 @@ No authorization required | **400** | Indicates a bad request error. It could be caused by an unexpected request body format or other forms of request validation failure, such as invalid json. Usually serves application/json content, although in some cases simple text/plain content might be returned by the server's middleware. | - | | **401** | Unauthorized. The request lacks valid authentication credentials for the operation. | - | | **403** | Forbidden. Authenticated user does not have the necessary permissions. | - | -| **404** | A server-side problem that means can not find the specified resource. | - | +| **404** | The requested transaction does not exist | - | | **503** | The service is not ready to handle the request. The client should wait and retry. The service may additionally send a Retry-After header to indicate when to retry. | - | | **5XX** | A server-side problem that might not be addressable from the client side. Used for server 5xx errors without more specific documentation in individual routes. | - | diff --git a/java/lance-namespace-apache-client/docs/TransactionConflictError.md b/java/lance-namespace-apache-client/docs/TransactionConflictError.md new file mode 100644 index 00000000..a4f4f5e4 --- /dev/null +++ b/java/lance-namespace-apache-client/docs/TransactionConflictError.md @@ -0,0 +1,34 @@ + + +# TransactionConflictError + +Transaction failed due to concurrent modification + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**error** | **String** | Brief error message | | +|**code** | [**CodeEnum**](#CodeEnum) | HTTP status code | | +|**type** | [**TypeEnum**](#TypeEnum) | Error type identifier | | +|**detail** | **String** | Detailed error explanation | [optional] | +|**instance** | **String** | Specific occurrence identifier | [optional] | + + + +## Enum: CodeEnum + +| Name | Value | +|---- | -----| +| NUMBER_409 | 409 | + + + +## Enum: TypeEnum + +| Name | Value | +|---- | -----| +| LANCE_NAMESPACE_502 | "lance-namespace:502" | + + + diff --git a/java/lance-namespace-apache-client/docs/TransactionNotFoundError.md b/java/lance-namespace-apache-client/docs/TransactionNotFoundError.md new file mode 100644 index 00000000..5ff6c983 --- /dev/null +++ b/java/lance-namespace-apache-client/docs/TransactionNotFoundError.md @@ -0,0 +1,34 @@ + + +# TransactionNotFoundError + +The requested transaction does not exist + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**error** | **String** | Brief error message | | +|**code** | [**CodeEnum**](#CodeEnum) | HTTP status code | | +|**type** | [**TypeEnum**](#TypeEnum) | Error type identifier | | +|**detail** | **String** | Detailed error explanation | [optional] | +|**instance** | **String** | Specific occurrence identifier | [optional] | + + + +## Enum: CodeEnum + +| Name | Value | +|---- | -----| +| NUMBER_404 | 404 | + + + +## Enum: TypeEnum + +| Name | Value | +|---- | -----| +| LANCE_NAMESPACE_501 | "lance-namespace:501" | + + + diff --git a/java/lance-namespace-apache-client/docs/UnknownError.md b/java/lance-namespace-apache-client/docs/UnknownError.md new file mode 100644 index 00000000..3ab8e3e4 --- /dev/null +++ b/java/lance-namespace-apache-client/docs/UnknownError.md @@ -0,0 +1,34 @@ + + +# UnknownError + +Unknown or unclassified error + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**error** | **String** | Brief error message | | +|**code** | [**CodeEnum**](#CodeEnum) | HTTP status code | | +|**type** | [**TypeEnum**](#TypeEnum) | Error type identifier | | +|**detail** | **String** | Detailed error explanation | [optional] | +|**instance** | **String** | Specific occurrence identifier | [optional] | + + + +## Enum: CodeEnum + +| Name | Value | +|---- | -----| +| NUMBER_500 | 500 | + + + +## Enum: TypeEnum + +| Name | Value | +|---- | -----| +| LANCE_NAMESPACE_0 | "lance-namespace:0" | + + + diff --git a/java/lance-namespace-apache-client/docs/UpdateTable400Response.md b/java/lance-namespace-apache-client/docs/UpdateTable400Response.md new file mode 100644 index 00000000..d4802e45 --- /dev/null +++ b/java/lance-namespace-apache-client/docs/UpdateTable400Response.md @@ -0,0 +1,35 @@ + + +# UpdateTable400Response + + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**error** | **String** | Brief error message | | +|**code** | [**CodeEnum**](#CodeEnum) | HTTP status code | | +|**type** | [**TypeEnum**](#TypeEnum) | Error type identifier | | +|**detail** | **String** | Detailed error explanation | [optional] | +|**instance** | **String** | Specific occurrence identifier | [optional] | + + + +## Enum: CodeEnum + +| Name | Value | +|---- | -----| +| NUMBER_400 | 400 | + + + +## Enum: TypeEnum + +| Name | Value | +|---- | -----| +| LANCE_NAMESPACE_601 | "lance-namespace:601" | +| LANCE_NAMESPACE_204 | "lance-namespace:204" | +| LANCE_NAMESPACE_602 | "lance-namespace:602" | + + + diff --git a/java/lance-namespace-apache-client/docs/UpdateTableTag404Response.md b/java/lance-namespace-apache-client/docs/UpdateTableTag404Response.md new file mode 100644 index 00000000..6c893e3e --- /dev/null +++ b/java/lance-namespace-apache-client/docs/UpdateTableTag404Response.md @@ -0,0 +1,35 @@ + + +# UpdateTableTag404Response + + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**error** | **String** | Brief error message | | +|**code** | [**CodeEnum**](#CodeEnum) | HTTP status code | | +|**type** | [**TypeEnum**](#TypeEnum) | Error type identifier | | +|**detail** | **String** | Detailed error explanation | [optional] | +|**instance** | **String** | Specific occurrence identifier | [optional] | + + + +## Enum: CodeEnum + +| Name | Value | +|---- | -----| +| NUMBER_404 | 404 | + + + +## Enum: TypeEnum + +| Name | Value | +|---- | -----| +| LANCE_NAMESPACE_201 | "lance-namespace:201" | +| LANCE_NAMESPACE_401 | "lance-namespace:401" | +| LANCE_NAMESPACE_203 | "lance-namespace:203" | + + + diff --git a/java/lance-namespace-apache-client/src/main/java/org/lance/namespace/model/AlterTableAddColumns400Response.java b/java/lance-namespace-apache-client/src/main/java/org/lance/namespace/model/AlterTableAddColumns400Response.java new file mode 100644 index 00000000..7f5d5411 --- /dev/null +++ b/java/lance-namespace-apache-client/src/main/java/org/lance/namespace/model/AlterTableAddColumns400Response.java @@ -0,0 +1,399 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package org.lance.namespace.model; + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; + +import java.io.UnsupportedEncodingException; +import java.net.URLEncoder; +import java.util.Objects; +import java.util.StringJoiner; + +/** AlterTableAddColumns400Response */ +@JsonPropertyOrder({ + AlterTableAddColumns400Response.JSON_PROPERTY_ERROR, + AlterTableAddColumns400Response.JSON_PROPERTY_CODE, + AlterTableAddColumns400Response.JSON_PROPERTY_TYPE, + AlterTableAddColumns400Response.JSON_PROPERTY_DETAIL, + AlterTableAddColumns400Response.JSON_PROPERTY_INSTANCE +}) +@JsonTypeName("AlterTableAddColumns_400_response") +@javax.annotation.Generated( + value = "org.openapitools.codegen.languages.JavaClientCodegen", + comments = "Generator version: 7.12.0") +public class AlterTableAddColumns400Response { + public static final String JSON_PROPERTY_ERROR = "error"; + @javax.annotation.Nonnull private String error; + + /** HTTP status code */ + public enum CodeEnum { + NUMBER_400(Integer.valueOf(400)); + + private Integer value; + + CodeEnum(Integer value) { + this.value = value; + } + + @JsonValue + public Integer getValue() { + return value; + } + + @Override + public String toString() { + return String.valueOf(value); + } + + @JsonCreator + public static CodeEnum fromValue(Integer value) { + for (CodeEnum b : CodeEnum.values()) { + if (b.value.equals(value)) { + return b; + } + } + throw new IllegalArgumentException("Unexpected value '" + value + "'"); + } + } + + public static final String JSON_PROPERTY_CODE = "code"; + @javax.annotation.Nonnull private CodeEnum code; + + /** Error type identifier */ + public enum TypeEnum { + LANCE_NAMESPACE_601(String.valueOf("lance-namespace:601")), + + LANCE_NAMESPACE_205(String.valueOf("lance-namespace:205")), + + LANCE_NAMESPACE_602(String.valueOf("lance-namespace:602")); + + private String value; + + TypeEnum(String value) { + this.value = value; + } + + @JsonValue + public String getValue() { + return value; + } + + @Override + public String toString() { + return String.valueOf(value); + } + + @JsonCreator + public static TypeEnum fromValue(String value) { + for (TypeEnum b : TypeEnum.values()) { + if (b.value.equals(value)) { + return b; + } + } + throw new IllegalArgumentException("Unexpected value '" + value + "'"); + } + } + + public static final String JSON_PROPERTY_TYPE = "type"; + @javax.annotation.Nonnull private TypeEnum type; + + public static final String JSON_PROPERTY_DETAIL = "detail"; + @javax.annotation.Nullable private String detail; + + public static final String JSON_PROPERTY_INSTANCE = "instance"; + @javax.annotation.Nullable private String instance; + + public AlterTableAddColumns400Response() {} + + public AlterTableAddColumns400Response error(@javax.annotation.Nonnull String error) { + + this.error = error; + return this; + } + + /** + * Brief error message + * + * @return error + */ + @javax.annotation.Nonnull + @JsonProperty(JSON_PROPERTY_ERROR) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public String getError() { + return error; + } + + @JsonProperty(JSON_PROPERTY_ERROR) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public void setError(@javax.annotation.Nonnull String error) { + this.error = error; + } + + public AlterTableAddColumns400Response code(@javax.annotation.Nonnull CodeEnum code) { + + this.code = code; + return this; + } + + /** + * HTTP status code + * + * @return code + */ + @javax.annotation.Nonnull + @JsonProperty(JSON_PROPERTY_CODE) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public CodeEnum getCode() { + return code; + } + + @JsonProperty(JSON_PROPERTY_CODE) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public void setCode(@javax.annotation.Nonnull CodeEnum code) { + this.code = code; + } + + public AlterTableAddColumns400Response type(@javax.annotation.Nonnull TypeEnum type) { + + this.type = type; + return this; + } + + /** + * Error type identifier + * + * @return type + */ + @javax.annotation.Nonnull + @JsonProperty(JSON_PROPERTY_TYPE) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public TypeEnum getType() { + return type; + } + + @JsonProperty(JSON_PROPERTY_TYPE) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public void setType(@javax.annotation.Nonnull TypeEnum type) { + this.type = type; + } + + public AlterTableAddColumns400Response detail(@javax.annotation.Nullable String detail) { + + this.detail = detail; + return this; + } + + /** + * Detailed error explanation + * + * @return detail + */ + @javax.annotation.Nullable + @JsonProperty(JSON_PROPERTY_DETAIL) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getDetail() { + return detail; + } + + @JsonProperty(JSON_PROPERTY_DETAIL) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setDetail(@javax.annotation.Nullable String detail) { + this.detail = detail; + } + + public AlterTableAddColumns400Response instance(@javax.annotation.Nullable String instance) { + + this.instance = instance; + return this; + } + + /** + * Specific occurrence identifier + * + * @return instance + */ + @javax.annotation.Nullable + @JsonProperty(JSON_PROPERTY_INSTANCE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getInstance() { + return instance; + } + + @JsonProperty(JSON_PROPERTY_INSTANCE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setInstance(@javax.annotation.Nullable String instance) { + this.instance = instance; + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + AlterTableAddColumns400Response alterTableAddColumns400Response = + (AlterTableAddColumns400Response) o; + return Objects.equals(this.error, alterTableAddColumns400Response.error) + && Objects.equals(this.code, alterTableAddColumns400Response.code) + && Objects.equals(this.type, alterTableAddColumns400Response.type) + && Objects.equals(this.detail, alterTableAddColumns400Response.detail) + && Objects.equals(this.instance, alterTableAddColumns400Response.instance); + } + + @Override + public int hashCode() { + return Objects.hash(error, code, type, detail, instance); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class AlterTableAddColumns400Response {\n"); + sb.append(" error: ").append(toIndentedString(error)).append("\n"); + sb.append(" code: ").append(toIndentedString(code)).append("\n"); + sb.append(" type: ").append(toIndentedString(type)).append("\n"); + sb.append(" detail: ").append(toIndentedString(detail)).append("\n"); + sb.append(" instance: ").append(toIndentedString(instance)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + + /** + * Convert the instance into URL query string. + * + * @return URL query string + */ + public String toUrlQueryString() { + return toUrlQueryString(null); + } + + /** + * Convert the instance into URL query string. + * + * @param prefix prefix of the query string + * @return URL query string + */ + public String toUrlQueryString(String prefix) { + String suffix = ""; + String containerSuffix = ""; + String containerPrefix = ""; + if (prefix == null) { + // style=form, explode=true, e.g. /pet?name=cat&type=manx + prefix = ""; + } else { + // deepObject style e.g. /pet?id[name]=cat&id[type]=manx + prefix = prefix + "["; + suffix = "]"; + containerSuffix = "]"; + containerPrefix = "["; + } + + StringJoiner joiner = new StringJoiner("&"); + + // add `error` to the URL query string + if (getError() != null) { + try { + joiner.add( + String.format( + "%serror%s=%s", + prefix, + suffix, + URLEncoder.encode(String.valueOf(getError()), "UTF-8").replaceAll("\\+", "%20"))); + } catch (UnsupportedEncodingException e) { + // Should never happen, UTF-8 is always supported + throw new RuntimeException(e); + } + } + + // add `code` to the URL query string + if (getCode() != null) { + try { + joiner.add( + String.format( + "%scode%s=%s", + prefix, + suffix, + URLEncoder.encode(String.valueOf(getCode()), "UTF-8").replaceAll("\\+", "%20"))); + } catch (UnsupportedEncodingException e) { + // Should never happen, UTF-8 is always supported + throw new RuntimeException(e); + } + } + + // add `type` to the URL query string + if (getType() != null) { + try { + joiner.add( + String.format( + "%stype%s=%s", + prefix, + suffix, + URLEncoder.encode(String.valueOf(getType()), "UTF-8").replaceAll("\\+", "%20"))); + } catch (UnsupportedEncodingException e) { + // Should never happen, UTF-8 is always supported + throw new RuntimeException(e); + } + } + + // add `detail` to the URL query string + if (getDetail() != null) { + try { + joiner.add( + String.format( + "%sdetail%s=%s", + prefix, + suffix, + URLEncoder.encode(String.valueOf(getDetail()), "UTF-8").replaceAll("\\+", "%20"))); + } catch (UnsupportedEncodingException e) { + // Should never happen, UTF-8 is always supported + throw new RuntimeException(e); + } + } + + // add `instance` to the URL query string + if (getInstance() != null) { + try { + joiner.add( + String.format( + "%sinstance%s=%s", + prefix, + suffix, + URLEncoder.encode(String.valueOf(getInstance()), "UTF-8") + .replaceAll("\\+", "%20"))); + } catch (UnsupportedEncodingException e) { + // Should never happen, UTF-8 is always supported + throw new RuntimeException(e); + } + } + + return joiner.toString(); + } +} diff --git a/java/lance-namespace-apache-client/src/main/java/org/lance/namespace/model/AlterTableAlterColumns400Response.java b/java/lance-namespace-apache-client/src/main/java/org/lance/namespace/model/AlterTableAlterColumns400Response.java new file mode 100644 index 00000000..fc44cadd --- /dev/null +++ b/java/lance-namespace-apache-client/src/main/java/org/lance/namespace/model/AlterTableAlterColumns400Response.java @@ -0,0 +1,397 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package org.lance.namespace.model; + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; + +import java.io.UnsupportedEncodingException; +import java.net.URLEncoder; +import java.util.Objects; +import java.util.StringJoiner; + +/** AlterTableAlterColumns400Response */ +@JsonPropertyOrder({ + AlterTableAlterColumns400Response.JSON_PROPERTY_ERROR, + AlterTableAlterColumns400Response.JSON_PROPERTY_CODE, + AlterTableAlterColumns400Response.JSON_PROPERTY_TYPE, + AlterTableAlterColumns400Response.JSON_PROPERTY_DETAIL, + AlterTableAlterColumns400Response.JSON_PROPERTY_INSTANCE +}) +@JsonTypeName("AlterTableAlterColumns_400_response") +@javax.annotation.Generated( + value = "org.openapitools.codegen.languages.JavaClientCodegen", + comments = "Generator version: 7.12.0") +public class AlterTableAlterColumns400Response { + public static final String JSON_PROPERTY_ERROR = "error"; + @javax.annotation.Nonnull private String error; + + /** HTTP status code */ + public enum CodeEnum { + NUMBER_400(Integer.valueOf(400)); + + private Integer value; + + CodeEnum(Integer value) { + this.value = value; + } + + @JsonValue + public Integer getValue() { + return value; + } + + @Override + public String toString() { + return String.valueOf(value); + } + + @JsonCreator + public static CodeEnum fromValue(Integer value) { + for (CodeEnum b : CodeEnum.values()) { + if (b.value.equals(value)) { + return b; + } + } + throw new IllegalArgumentException("Unexpected value '" + value + "'"); + } + } + + public static final String JSON_PROPERTY_CODE = "code"; + @javax.annotation.Nonnull private CodeEnum code; + + /** Error type identifier */ + public enum TypeEnum { + LANCE_NAMESPACE_601(String.valueOf("lance-namespace:601")), + + LANCE_NAMESPACE_204(String.valueOf("lance-namespace:204")); + + private String value; + + TypeEnum(String value) { + this.value = value; + } + + @JsonValue + public String getValue() { + return value; + } + + @Override + public String toString() { + return String.valueOf(value); + } + + @JsonCreator + public static TypeEnum fromValue(String value) { + for (TypeEnum b : TypeEnum.values()) { + if (b.value.equals(value)) { + return b; + } + } + throw new IllegalArgumentException("Unexpected value '" + value + "'"); + } + } + + public static final String JSON_PROPERTY_TYPE = "type"; + @javax.annotation.Nonnull private TypeEnum type; + + public static final String JSON_PROPERTY_DETAIL = "detail"; + @javax.annotation.Nullable private String detail; + + public static final String JSON_PROPERTY_INSTANCE = "instance"; + @javax.annotation.Nullable private String instance; + + public AlterTableAlterColumns400Response() {} + + public AlterTableAlterColumns400Response error(@javax.annotation.Nonnull String error) { + + this.error = error; + return this; + } + + /** + * Brief error message + * + * @return error + */ + @javax.annotation.Nonnull + @JsonProperty(JSON_PROPERTY_ERROR) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public String getError() { + return error; + } + + @JsonProperty(JSON_PROPERTY_ERROR) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public void setError(@javax.annotation.Nonnull String error) { + this.error = error; + } + + public AlterTableAlterColumns400Response code(@javax.annotation.Nonnull CodeEnum code) { + + this.code = code; + return this; + } + + /** + * HTTP status code + * + * @return code + */ + @javax.annotation.Nonnull + @JsonProperty(JSON_PROPERTY_CODE) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public CodeEnum getCode() { + return code; + } + + @JsonProperty(JSON_PROPERTY_CODE) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public void setCode(@javax.annotation.Nonnull CodeEnum code) { + this.code = code; + } + + public AlterTableAlterColumns400Response type(@javax.annotation.Nonnull TypeEnum type) { + + this.type = type; + return this; + } + + /** + * Error type identifier + * + * @return type + */ + @javax.annotation.Nonnull + @JsonProperty(JSON_PROPERTY_TYPE) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public TypeEnum getType() { + return type; + } + + @JsonProperty(JSON_PROPERTY_TYPE) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public void setType(@javax.annotation.Nonnull TypeEnum type) { + this.type = type; + } + + public AlterTableAlterColumns400Response detail(@javax.annotation.Nullable String detail) { + + this.detail = detail; + return this; + } + + /** + * Detailed error explanation + * + * @return detail + */ + @javax.annotation.Nullable + @JsonProperty(JSON_PROPERTY_DETAIL) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getDetail() { + return detail; + } + + @JsonProperty(JSON_PROPERTY_DETAIL) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setDetail(@javax.annotation.Nullable String detail) { + this.detail = detail; + } + + public AlterTableAlterColumns400Response instance(@javax.annotation.Nullable String instance) { + + this.instance = instance; + return this; + } + + /** + * Specific occurrence identifier + * + * @return instance + */ + @javax.annotation.Nullable + @JsonProperty(JSON_PROPERTY_INSTANCE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getInstance() { + return instance; + } + + @JsonProperty(JSON_PROPERTY_INSTANCE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setInstance(@javax.annotation.Nullable String instance) { + this.instance = instance; + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + AlterTableAlterColumns400Response alterTableAlterColumns400Response = + (AlterTableAlterColumns400Response) o; + return Objects.equals(this.error, alterTableAlterColumns400Response.error) + && Objects.equals(this.code, alterTableAlterColumns400Response.code) + && Objects.equals(this.type, alterTableAlterColumns400Response.type) + && Objects.equals(this.detail, alterTableAlterColumns400Response.detail) + && Objects.equals(this.instance, alterTableAlterColumns400Response.instance); + } + + @Override + public int hashCode() { + return Objects.hash(error, code, type, detail, instance); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class AlterTableAlterColumns400Response {\n"); + sb.append(" error: ").append(toIndentedString(error)).append("\n"); + sb.append(" code: ").append(toIndentedString(code)).append("\n"); + sb.append(" type: ").append(toIndentedString(type)).append("\n"); + sb.append(" detail: ").append(toIndentedString(detail)).append("\n"); + sb.append(" instance: ").append(toIndentedString(instance)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + + /** + * Convert the instance into URL query string. + * + * @return URL query string + */ + public String toUrlQueryString() { + return toUrlQueryString(null); + } + + /** + * Convert the instance into URL query string. + * + * @param prefix prefix of the query string + * @return URL query string + */ + public String toUrlQueryString(String prefix) { + String suffix = ""; + String containerSuffix = ""; + String containerPrefix = ""; + if (prefix == null) { + // style=form, explode=true, e.g. /pet?name=cat&type=manx + prefix = ""; + } else { + // deepObject style e.g. /pet?id[name]=cat&id[type]=manx + prefix = prefix + "["; + suffix = "]"; + containerSuffix = "]"; + containerPrefix = "["; + } + + StringJoiner joiner = new StringJoiner("&"); + + // add `error` to the URL query string + if (getError() != null) { + try { + joiner.add( + String.format( + "%serror%s=%s", + prefix, + suffix, + URLEncoder.encode(String.valueOf(getError()), "UTF-8").replaceAll("\\+", "%20"))); + } catch (UnsupportedEncodingException e) { + // Should never happen, UTF-8 is always supported + throw new RuntimeException(e); + } + } + + // add `code` to the URL query string + if (getCode() != null) { + try { + joiner.add( + String.format( + "%scode%s=%s", + prefix, + suffix, + URLEncoder.encode(String.valueOf(getCode()), "UTF-8").replaceAll("\\+", "%20"))); + } catch (UnsupportedEncodingException e) { + // Should never happen, UTF-8 is always supported + throw new RuntimeException(e); + } + } + + // add `type` to the URL query string + if (getType() != null) { + try { + joiner.add( + String.format( + "%stype%s=%s", + prefix, + suffix, + URLEncoder.encode(String.valueOf(getType()), "UTF-8").replaceAll("\\+", "%20"))); + } catch (UnsupportedEncodingException e) { + // Should never happen, UTF-8 is always supported + throw new RuntimeException(e); + } + } + + // add `detail` to the URL query string + if (getDetail() != null) { + try { + joiner.add( + String.format( + "%sdetail%s=%s", + prefix, + suffix, + URLEncoder.encode(String.valueOf(getDetail()), "UTF-8").replaceAll("\\+", "%20"))); + } catch (UnsupportedEncodingException e) { + // Should never happen, UTF-8 is always supported + throw new RuntimeException(e); + } + } + + // add `instance` to the URL query string + if (getInstance() != null) { + try { + joiner.add( + String.format( + "%sinstance%s=%s", + prefix, + suffix, + URLEncoder.encode(String.valueOf(getInstance()), "UTF-8") + .replaceAll("\\+", "%20"))); + } catch (UnsupportedEncodingException e) { + // Should never happen, UTF-8 is always supported + throw new RuntimeException(e); + } + } + + return joiner.toString(); + } +} diff --git a/java/lance-namespace-apache-client/src/main/java/org/lance/namespace/model/CreateNamespace400Response.java b/java/lance-namespace-apache-client/src/main/java/org/lance/namespace/model/CreateNamespace400Response.java new file mode 100644 index 00000000..36f8c9d5 --- /dev/null +++ b/java/lance-namespace-apache-client/src/main/java/org/lance/namespace/model/CreateNamespace400Response.java @@ -0,0 +1,396 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package org.lance.namespace.model; + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; + +import java.io.UnsupportedEncodingException; +import java.net.URLEncoder; +import java.util.Objects; +import java.util.StringJoiner; + +/** CreateNamespace400Response */ +@JsonPropertyOrder({ + CreateNamespace400Response.JSON_PROPERTY_ERROR, + CreateNamespace400Response.JSON_PROPERTY_CODE, + CreateNamespace400Response.JSON_PROPERTY_TYPE, + CreateNamespace400Response.JSON_PROPERTY_DETAIL, + CreateNamespace400Response.JSON_PROPERTY_INSTANCE +}) +@JsonTypeName("CreateNamespace_400_response") +@javax.annotation.Generated( + value = "org.openapitools.codegen.languages.JavaClientCodegen", + comments = "Generator version: 7.12.0") +public class CreateNamespace400Response { + public static final String JSON_PROPERTY_ERROR = "error"; + @javax.annotation.Nonnull private String error; + + /** HTTP status code */ + public enum CodeEnum { + NUMBER_400(Integer.valueOf(400)); + + private Integer value; + + CodeEnum(Integer value) { + this.value = value; + } + + @JsonValue + public Integer getValue() { + return value; + } + + @Override + public String toString() { + return String.valueOf(value); + } + + @JsonCreator + public static CodeEnum fromValue(Integer value) { + for (CodeEnum b : CodeEnum.values()) { + if (b.value.equals(value)) { + return b; + } + } + throw new IllegalArgumentException("Unexpected value '" + value + "'"); + } + } + + public static final String JSON_PROPERTY_CODE = "code"; + @javax.annotation.Nonnull private CodeEnum code; + + /** Error type identifier */ + public enum TypeEnum { + LANCE_NAMESPACE_601(String.valueOf("lance-namespace:601")), + + LANCE_NAMESPACE_603(String.valueOf("lance-namespace:603")); + + private String value; + + TypeEnum(String value) { + this.value = value; + } + + @JsonValue + public String getValue() { + return value; + } + + @Override + public String toString() { + return String.valueOf(value); + } + + @JsonCreator + public static TypeEnum fromValue(String value) { + for (TypeEnum b : TypeEnum.values()) { + if (b.value.equals(value)) { + return b; + } + } + throw new IllegalArgumentException("Unexpected value '" + value + "'"); + } + } + + public static final String JSON_PROPERTY_TYPE = "type"; + @javax.annotation.Nonnull private TypeEnum type; + + public static final String JSON_PROPERTY_DETAIL = "detail"; + @javax.annotation.Nullable private String detail; + + public static final String JSON_PROPERTY_INSTANCE = "instance"; + @javax.annotation.Nullable private String instance; + + public CreateNamespace400Response() {} + + public CreateNamespace400Response error(@javax.annotation.Nonnull String error) { + + this.error = error; + return this; + } + + /** + * Brief error message + * + * @return error + */ + @javax.annotation.Nonnull + @JsonProperty(JSON_PROPERTY_ERROR) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public String getError() { + return error; + } + + @JsonProperty(JSON_PROPERTY_ERROR) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public void setError(@javax.annotation.Nonnull String error) { + this.error = error; + } + + public CreateNamespace400Response code(@javax.annotation.Nonnull CodeEnum code) { + + this.code = code; + return this; + } + + /** + * HTTP status code + * + * @return code + */ + @javax.annotation.Nonnull + @JsonProperty(JSON_PROPERTY_CODE) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public CodeEnum getCode() { + return code; + } + + @JsonProperty(JSON_PROPERTY_CODE) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public void setCode(@javax.annotation.Nonnull CodeEnum code) { + this.code = code; + } + + public CreateNamespace400Response type(@javax.annotation.Nonnull TypeEnum type) { + + this.type = type; + return this; + } + + /** + * Error type identifier + * + * @return type + */ + @javax.annotation.Nonnull + @JsonProperty(JSON_PROPERTY_TYPE) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public TypeEnum getType() { + return type; + } + + @JsonProperty(JSON_PROPERTY_TYPE) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public void setType(@javax.annotation.Nonnull TypeEnum type) { + this.type = type; + } + + public CreateNamespace400Response detail(@javax.annotation.Nullable String detail) { + + this.detail = detail; + return this; + } + + /** + * Detailed error explanation + * + * @return detail + */ + @javax.annotation.Nullable + @JsonProperty(JSON_PROPERTY_DETAIL) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getDetail() { + return detail; + } + + @JsonProperty(JSON_PROPERTY_DETAIL) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setDetail(@javax.annotation.Nullable String detail) { + this.detail = detail; + } + + public CreateNamespace400Response instance(@javax.annotation.Nullable String instance) { + + this.instance = instance; + return this; + } + + /** + * Specific occurrence identifier + * + * @return instance + */ + @javax.annotation.Nullable + @JsonProperty(JSON_PROPERTY_INSTANCE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getInstance() { + return instance; + } + + @JsonProperty(JSON_PROPERTY_INSTANCE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setInstance(@javax.annotation.Nullable String instance) { + this.instance = instance; + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + CreateNamespace400Response createNamespace400Response = (CreateNamespace400Response) o; + return Objects.equals(this.error, createNamespace400Response.error) + && Objects.equals(this.code, createNamespace400Response.code) + && Objects.equals(this.type, createNamespace400Response.type) + && Objects.equals(this.detail, createNamespace400Response.detail) + && Objects.equals(this.instance, createNamespace400Response.instance); + } + + @Override + public int hashCode() { + return Objects.hash(error, code, type, detail, instance); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class CreateNamespace400Response {\n"); + sb.append(" error: ").append(toIndentedString(error)).append("\n"); + sb.append(" code: ").append(toIndentedString(code)).append("\n"); + sb.append(" type: ").append(toIndentedString(type)).append("\n"); + sb.append(" detail: ").append(toIndentedString(detail)).append("\n"); + sb.append(" instance: ").append(toIndentedString(instance)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + + /** + * Convert the instance into URL query string. + * + * @return URL query string + */ + public String toUrlQueryString() { + return toUrlQueryString(null); + } + + /** + * Convert the instance into URL query string. + * + * @param prefix prefix of the query string + * @return URL query string + */ + public String toUrlQueryString(String prefix) { + String suffix = ""; + String containerSuffix = ""; + String containerPrefix = ""; + if (prefix == null) { + // style=form, explode=true, e.g. /pet?name=cat&type=manx + prefix = ""; + } else { + // deepObject style e.g. /pet?id[name]=cat&id[type]=manx + prefix = prefix + "["; + suffix = "]"; + containerSuffix = "]"; + containerPrefix = "["; + } + + StringJoiner joiner = new StringJoiner("&"); + + // add `error` to the URL query string + if (getError() != null) { + try { + joiner.add( + String.format( + "%serror%s=%s", + prefix, + suffix, + URLEncoder.encode(String.valueOf(getError()), "UTF-8").replaceAll("\\+", "%20"))); + } catch (UnsupportedEncodingException e) { + // Should never happen, UTF-8 is always supported + throw new RuntimeException(e); + } + } + + // add `code` to the URL query string + if (getCode() != null) { + try { + joiner.add( + String.format( + "%scode%s=%s", + prefix, + suffix, + URLEncoder.encode(String.valueOf(getCode()), "UTF-8").replaceAll("\\+", "%20"))); + } catch (UnsupportedEncodingException e) { + // Should never happen, UTF-8 is always supported + throw new RuntimeException(e); + } + } + + // add `type` to the URL query string + if (getType() != null) { + try { + joiner.add( + String.format( + "%stype%s=%s", + prefix, + suffix, + URLEncoder.encode(String.valueOf(getType()), "UTF-8").replaceAll("\\+", "%20"))); + } catch (UnsupportedEncodingException e) { + // Should never happen, UTF-8 is always supported + throw new RuntimeException(e); + } + } + + // add `detail` to the URL query string + if (getDetail() != null) { + try { + joiner.add( + String.format( + "%sdetail%s=%s", + prefix, + suffix, + URLEncoder.encode(String.valueOf(getDetail()), "UTF-8").replaceAll("\\+", "%20"))); + } catch (UnsupportedEncodingException e) { + // Should never happen, UTF-8 is always supported + throw new RuntimeException(e); + } + } + + // add `instance` to the URL query string + if (getInstance() != null) { + try { + joiner.add( + String.format( + "%sinstance%s=%s", + prefix, + suffix, + URLEncoder.encode(String.valueOf(getInstance()), "UTF-8") + .replaceAll("\\+", "%20"))); + } catch (UnsupportedEncodingException e) { + // Should never happen, UTF-8 is always supported + throw new RuntimeException(e); + } + } + + return joiner.toString(); + } +} diff --git a/java/lance-namespace-apache-client/src/main/java/org/lance/namespace/model/CreateTable400Response.java b/java/lance-namespace-apache-client/src/main/java/org/lance/namespace/model/CreateTable400Response.java new file mode 100644 index 00000000..331f9760 --- /dev/null +++ b/java/lance-namespace-apache-client/src/main/java/org/lance/namespace/model/CreateTable400Response.java @@ -0,0 +1,396 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package org.lance.namespace.model; + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; + +import java.io.UnsupportedEncodingException; +import java.net.URLEncoder; +import java.util.Objects; +import java.util.StringJoiner; + +/** CreateTable400Response */ +@JsonPropertyOrder({ + CreateTable400Response.JSON_PROPERTY_ERROR, + CreateTable400Response.JSON_PROPERTY_CODE, + CreateTable400Response.JSON_PROPERTY_TYPE, + CreateTable400Response.JSON_PROPERTY_DETAIL, + CreateTable400Response.JSON_PROPERTY_INSTANCE +}) +@JsonTypeName("CreateTable_400_response") +@javax.annotation.Generated( + value = "org.openapitools.codegen.languages.JavaClientCodegen", + comments = "Generator version: 7.12.0") +public class CreateTable400Response { + public static final String JSON_PROPERTY_ERROR = "error"; + @javax.annotation.Nonnull private String error; + + /** HTTP status code */ + public enum CodeEnum { + NUMBER_400(Integer.valueOf(400)); + + private Integer value; + + CodeEnum(Integer value) { + this.value = value; + } + + @JsonValue + public Integer getValue() { + return value; + } + + @Override + public String toString() { + return String.valueOf(value); + } + + @JsonCreator + public static CodeEnum fromValue(Integer value) { + for (CodeEnum b : CodeEnum.values()) { + if (b.value.equals(value)) { + return b; + } + } + throw new IllegalArgumentException("Unexpected value '" + value + "'"); + } + } + + public static final String JSON_PROPERTY_CODE = "code"; + @javax.annotation.Nonnull private CodeEnum code; + + /** Error type identifier */ + public enum TypeEnum { + LANCE_NAMESPACE_601(String.valueOf("lance-namespace:601")), + + LANCE_NAMESPACE_205(String.valueOf("lance-namespace:205")); + + private String value; + + TypeEnum(String value) { + this.value = value; + } + + @JsonValue + public String getValue() { + return value; + } + + @Override + public String toString() { + return String.valueOf(value); + } + + @JsonCreator + public static TypeEnum fromValue(String value) { + for (TypeEnum b : TypeEnum.values()) { + if (b.value.equals(value)) { + return b; + } + } + throw new IllegalArgumentException("Unexpected value '" + value + "'"); + } + } + + public static final String JSON_PROPERTY_TYPE = "type"; + @javax.annotation.Nonnull private TypeEnum type; + + public static final String JSON_PROPERTY_DETAIL = "detail"; + @javax.annotation.Nullable private String detail; + + public static final String JSON_PROPERTY_INSTANCE = "instance"; + @javax.annotation.Nullable private String instance; + + public CreateTable400Response() {} + + public CreateTable400Response error(@javax.annotation.Nonnull String error) { + + this.error = error; + return this; + } + + /** + * Brief error message + * + * @return error + */ + @javax.annotation.Nonnull + @JsonProperty(JSON_PROPERTY_ERROR) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public String getError() { + return error; + } + + @JsonProperty(JSON_PROPERTY_ERROR) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public void setError(@javax.annotation.Nonnull String error) { + this.error = error; + } + + public CreateTable400Response code(@javax.annotation.Nonnull CodeEnum code) { + + this.code = code; + return this; + } + + /** + * HTTP status code + * + * @return code + */ + @javax.annotation.Nonnull + @JsonProperty(JSON_PROPERTY_CODE) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public CodeEnum getCode() { + return code; + } + + @JsonProperty(JSON_PROPERTY_CODE) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public void setCode(@javax.annotation.Nonnull CodeEnum code) { + this.code = code; + } + + public CreateTable400Response type(@javax.annotation.Nonnull TypeEnum type) { + + this.type = type; + return this; + } + + /** + * Error type identifier + * + * @return type + */ + @javax.annotation.Nonnull + @JsonProperty(JSON_PROPERTY_TYPE) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public TypeEnum getType() { + return type; + } + + @JsonProperty(JSON_PROPERTY_TYPE) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public void setType(@javax.annotation.Nonnull TypeEnum type) { + this.type = type; + } + + public CreateTable400Response detail(@javax.annotation.Nullable String detail) { + + this.detail = detail; + return this; + } + + /** + * Detailed error explanation + * + * @return detail + */ + @javax.annotation.Nullable + @JsonProperty(JSON_PROPERTY_DETAIL) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getDetail() { + return detail; + } + + @JsonProperty(JSON_PROPERTY_DETAIL) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setDetail(@javax.annotation.Nullable String detail) { + this.detail = detail; + } + + public CreateTable400Response instance(@javax.annotation.Nullable String instance) { + + this.instance = instance; + return this; + } + + /** + * Specific occurrence identifier + * + * @return instance + */ + @javax.annotation.Nullable + @JsonProperty(JSON_PROPERTY_INSTANCE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getInstance() { + return instance; + } + + @JsonProperty(JSON_PROPERTY_INSTANCE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setInstance(@javax.annotation.Nullable String instance) { + this.instance = instance; + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + CreateTable400Response createTable400Response = (CreateTable400Response) o; + return Objects.equals(this.error, createTable400Response.error) + && Objects.equals(this.code, createTable400Response.code) + && Objects.equals(this.type, createTable400Response.type) + && Objects.equals(this.detail, createTable400Response.detail) + && Objects.equals(this.instance, createTable400Response.instance); + } + + @Override + public int hashCode() { + return Objects.hash(error, code, type, detail, instance); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class CreateTable400Response {\n"); + sb.append(" error: ").append(toIndentedString(error)).append("\n"); + sb.append(" code: ").append(toIndentedString(code)).append("\n"); + sb.append(" type: ").append(toIndentedString(type)).append("\n"); + sb.append(" detail: ").append(toIndentedString(detail)).append("\n"); + sb.append(" instance: ").append(toIndentedString(instance)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + + /** + * Convert the instance into URL query string. + * + * @return URL query string + */ + public String toUrlQueryString() { + return toUrlQueryString(null); + } + + /** + * Convert the instance into URL query string. + * + * @param prefix prefix of the query string + * @return URL query string + */ + public String toUrlQueryString(String prefix) { + String suffix = ""; + String containerSuffix = ""; + String containerPrefix = ""; + if (prefix == null) { + // style=form, explode=true, e.g. /pet?name=cat&type=manx + prefix = ""; + } else { + // deepObject style e.g. /pet?id[name]=cat&id[type]=manx + prefix = prefix + "["; + suffix = "]"; + containerSuffix = "]"; + containerPrefix = "["; + } + + StringJoiner joiner = new StringJoiner("&"); + + // add `error` to the URL query string + if (getError() != null) { + try { + joiner.add( + String.format( + "%serror%s=%s", + prefix, + suffix, + URLEncoder.encode(String.valueOf(getError()), "UTF-8").replaceAll("\\+", "%20"))); + } catch (UnsupportedEncodingException e) { + // Should never happen, UTF-8 is always supported + throw new RuntimeException(e); + } + } + + // add `code` to the URL query string + if (getCode() != null) { + try { + joiner.add( + String.format( + "%scode%s=%s", + prefix, + suffix, + URLEncoder.encode(String.valueOf(getCode()), "UTF-8").replaceAll("\\+", "%20"))); + } catch (UnsupportedEncodingException e) { + // Should never happen, UTF-8 is always supported + throw new RuntimeException(e); + } + } + + // add `type` to the URL query string + if (getType() != null) { + try { + joiner.add( + String.format( + "%stype%s=%s", + prefix, + suffix, + URLEncoder.encode(String.valueOf(getType()), "UTF-8").replaceAll("\\+", "%20"))); + } catch (UnsupportedEncodingException e) { + // Should never happen, UTF-8 is always supported + throw new RuntimeException(e); + } + } + + // add `detail` to the URL query string + if (getDetail() != null) { + try { + joiner.add( + String.format( + "%sdetail%s=%s", + prefix, + suffix, + URLEncoder.encode(String.valueOf(getDetail()), "UTF-8").replaceAll("\\+", "%20"))); + } catch (UnsupportedEncodingException e) { + // Should never happen, UTF-8 is always supported + throw new RuntimeException(e); + } + } + + // add `instance` to the URL query string + if (getInstance() != null) { + try { + joiner.add( + String.format( + "%sinstance%s=%s", + prefix, + suffix, + URLEncoder.encode(String.valueOf(getInstance()), "UTF-8") + .replaceAll("\\+", "%20"))); + } catch (UnsupportedEncodingException e) { + // Should never happen, UTF-8 is always supported + throw new RuntimeException(e); + } + } + + return joiner.toString(); + } +} diff --git a/java/lance-namespace-apache-client/src/main/java/org/lance/namespace/model/CreateTableIndex400Response.java b/java/lance-namespace-apache-client/src/main/java/org/lance/namespace/model/CreateTableIndex400Response.java new file mode 100644 index 00000000..c7f6f533 --- /dev/null +++ b/java/lance-namespace-apache-client/src/main/java/org/lance/namespace/model/CreateTableIndex400Response.java @@ -0,0 +1,398 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package org.lance.namespace.model; + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; + +import java.io.UnsupportedEncodingException; +import java.net.URLEncoder; +import java.util.Objects; +import java.util.StringJoiner; + +/** CreateTableIndex400Response */ +@JsonPropertyOrder({ + CreateTableIndex400Response.JSON_PROPERTY_ERROR, + CreateTableIndex400Response.JSON_PROPERTY_CODE, + CreateTableIndex400Response.JSON_PROPERTY_TYPE, + CreateTableIndex400Response.JSON_PROPERTY_DETAIL, + CreateTableIndex400Response.JSON_PROPERTY_INSTANCE +}) +@JsonTypeName("CreateTableIndex_400_response") +@javax.annotation.Generated( + value = "org.openapitools.codegen.languages.JavaClientCodegen", + comments = "Generator version: 7.12.0") +public class CreateTableIndex400Response { + public static final String JSON_PROPERTY_ERROR = "error"; + @javax.annotation.Nonnull private String error; + + /** HTTP status code */ + public enum CodeEnum { + NUMBER_400(Integer.valueOf(400)); + + private Integer value; + + CodeEnum(Integer value) { + this.value = value; + } + + @JsonValue + public Integer getValue() { + return value; + } + + @Override + public String toString() { + return String.valueOf(value); + } + + @JsonCreator + public static CodeEnum fromValue(Integer value) { + for (CodeEnum b : CodeEnum.values()) { + if (b.value.equals(value)) { + return b; + } + } + throw new IllegalArgumentException("Unexpected value '" + value + "'"); + } + } + + public static final String JSON_PROPERTY_CODE = "code"; + @javax.annotation.Nonnull private CodeEnum code; + + /** Error type identifier */ + public enum TypeEnum { + LANCE_NAMESPACE_601(String.valueOf("lance-namespace:601")), + + LANCE_NAMESPACE_204(String.valueOf("lance-namespace:204")), + + LANCE_NAMESPACE_303(String.valueOf("lance-namespace:303")); + + private String value; + + TypeEnum(String value) { + this.value = value; + } + + @JsonValue + public String getValue() { + return value; + } + + @Override + public String toString() { + return String.valueOf(value); + } + + @JsonCreator + public static TypeEnum fromValue(String value) { + for (TypeEnum b : TypeEnum.values()) { + if (b.value.equals(value)) { + return b; + } + } + throw new IllegalArgumentException("Unexpected value '" + value + "'"); + } + } + + public static final String JSON_PROPERTY_TYPE = "type"; + @javax.annotation.Nonnull private TypeEnum type; + + public static final String JSON_PROPERTY_DETAIL = "detail"; + @javax.annotation.Nullable private String detail; + + public static final String JSON_PROPERTY_INSTANCE = "instance"; + @javax.annotation.Nullable private String instance; + + public CreateTableIndex400Response() {} + + public CreateTableIndex400Response error(@javax.annotation.Nonnull String error) { + + this.error = error; + return this; + } + + /** + * Brief error message + * + * @return error + */ + @javax.annotation.Nonnull + @JsonProperty(JSON_PROPERTY_ERROR) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public String getError() { + return error; + } + + @JsonProperty(JSON_PROPERTY_ERROR) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public void setError(@javax.annotation.Nonnull String error) { + this.error = error; + } + + public CreateTableIndex400Response code(@javax.annotation.Nonnull CodeEnum code) { + + this.code = code; + return this; + } + + /** + * HTTP status code + * + * @return code + */ + @javax.annotation.Nonnull + @JsonProperty(JSON_PROPERTY_CODE) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public CodeEnum getCode() { + return code; + } + + @JsonProperty(JSON_PROPERTY_CODE) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public void setCode(@javax.annotation.Nonnull CodeEnum code) { + this.code = code; + } + + public CreateTableIndex400Response type(@javax.annotation.Nonnull TypeEnum type) { + + this.type = type; + return this; + } + + /** + * Error type identifier + * + * @return type + */ + @javax.annotation.Nonnull + @JsonProperty(JSON_PROPERTY_TYPE) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public TypeEnum getType() { + return type; + } + + @JsonProperty(JSON_PROPERTY_TYPE) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public void setType(@javax.annotation.Nonnull TypeEnum type) { + this.type = type; + } + + public CreateTableIndex400Response detail(@javax.annotation.Nullable String detail) { + + this.detail = detail; + return this; + } + + /** + * Detailed error explanation + * + * @return detail + */ + @javax.annotation.Nullable + @JsonProperty(JSON_PROPERTY_DETAIL) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getDetail() { + return detail; + } + + @JsonProperty(JSON_PROPERTY_DETAIL) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setDetail(@javax.annotation.Nullable String detail) { + this.detail = detail; + } + + public CreateTableIndex400Response instance(@javax.annotation.Nullable String instance) { + + this.instance = instance; + return this; + } + + /** + * Specific occurrence identifier + * + * @return instance + */ + @javax.annotation.Nullable + @JsonProperty(JSON_PROPERTY_INSTANCE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getInstance() { + return instance; + } + + @JsonProperty(JSON_PROPERTY_INSTANCE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setInstance(@javax.annotation.Nullable String instance) { + this.instance = instance; + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + CreateTableIndex400Response createTableIndex400Response = (CreateTableIndex400Response) o; + return Objects.equals(this.error, createTableIndex400Response.error) + && Objects.equals(this.code, createTableIndex400Response.code) + && Objects.equals(this.type, createTableIndex400Response.type) + && Objects.equals(this.detail, createTableIndex400Response.detail) + && Objects.equals(this.instance, createTableIndex400Response.instance); + } + + @Override + public int hashCode() { + return Objects.hash(error, code, type, detail, instance); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class CreateTableIndex400Response {\n"); + sb.append(" error: ").append(toIndentedString(error)).append("\n"); + sb.append(" code: ").append(toIndentedString(code)).append("\n"); + sb.append(" type: ").append(toIndentedString(type)).append("\n"); + sb.append(" detail: ").append(toIndentedString(detail)).append("\n"); + sb.append(" instance: ").append(toIndentedString(instance)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + + /** + * Convert the instance into URL query string. + * + * @return URL query string + */ + public String toUrlQueryString() { + return toUrlQueryString(null); + } + + /** + * Convert the instance into URL query string. + * + * @param prefix prefix of the query string + * @return URL query string + */ + public String toUrlQueryString(String prefix) { + String suffix = ""; + String containerSuffix = ""; + String containerPrefix = ""; + if (prefix == null) { + // style=form, explode=true, e.g. /pet?name=cat&type=manx + prefix = ""; + } else { + // deepObject style e.g. /pet?id[name]=cat&id[type]=manx + prefix = prefix + "["; + suffix = "]"; + containerSuffix = "]"; + containerPrefix = "["; + } + + StringJoiner joiner = new StringJoiner("&"); + + // add `error` to the URL query string + if (getError() != null) { + try { + joiner.add( + String.format( + "%serror%s=%s", + prefix, + suffix, + URLEncoder.encode(String.valueOf(getError()), "UTF-8").replaceAll("\\+", "%20"))); + } catch (UnsupportedEncodingException e) { + // Should never happen, UTF-8 is always supported + throw new RuntimeException(e); + } + } + + // add `code` to the URL query string + if (getCode() != null) { + try { + joiner.add( + String.format( + "%scode%s=%s", + prefix, + suffix, + URLEncoder.encode(String.valueOf(getCode()), "UTF-8").replaceAll("\\+", "%20"))); + } catch (UnsupportedEncodingException e) { + // Should never happen, UTF-8 is always supported + throw new RuntimeException(e); + } + } + + // add `type` to the URL query string + if (getType() != null) { + try { + joiner.add( + String.format( + "%stype%s=%s", + prefix, + suffix, + URLEncoder.encode(String.valueOf(getType()), "UTF-8").replaceAll("\\+", "%20"))); + } catch (UnsupportedEncodingException e) { + // Should never happen, UTF-8 is always supported + throw new RuntimeException(e); + } + } + + // add `detail` to the URL query string + if (getDetail() != null) { + try { + joiner.add( + String.format( + "%sdetail%s=%s", + prefix, + suffix, + URLEncoder.encode(String.valueOf(getDetail()), "UTF-8").replaceAll("\\+", "%20"))); + } catch (UnsupportedEncodingException e) { + // Should never happen, UTF-8 is always supported + throw new RuntimeException(e); + } + } + + // add `instance` to the URL query string + if (getInstance() != null) { + try { + joiner.add( + String.format( + "%sinstance%s=%s", + prefix, + suffix, + URLEncoder.encode(String.valueOf(getInstance()), "UTF-8") + .replaceAll("\\+", "%20"))); + } catch (UnsupportedEncodingException e) { + // Should never happen, UTF-8 is always supported + throw new RuntimeException(e); + } + } + + return joiner.toString(); + } +} diff --git a/java/lance-namespace-apache-client/src/main/java/org/lance/namespace/model/DeleteFromTable400Response.java b/java/lance-namespace-apache-client/src/main/java/org/lance/namespace/model/DeleteFromTable400Response.java new file mode 100644 index 00000000..50a7e3d0 --- /dev/null +++ b/java/lance-namespace-apache-client/src/main/java/org/lance/namespace/model/DeleteFromTable400Response.java @@ -0,0 +1,396 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package org.lance.namespace.model; + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; + +import java.io.UnsupportedEncodingException; +import java.net.URLEncoder; +import java.util.Objects; +import java.util.StringJoiner; + +/** DeleteFromTable400Response */ +@JsonPropertyOrder({ + DeleteFromTable400Response.JSON_PROPERTY_ERROR, + DeleteFromTable400Response.JSON_PROPERTY_CODE, + DeleteFromTable400Response.JSON_PROPERTY_TYPE, + DeleteFromTable400Response.JSON_PROPERTY_DETAIL, + DeleteFromTable400Response.JSON_PROPERTY_INSTANCE +}) +@JsonTypeName("DeleteFromTable_400_response") +@javax.annotation.Generated( + value = "org.openapitools.codegen.languages.JavaClientCodegen", + comments = "Generator version: 7.12.0") +public class DeleteFromTable400Response { + public static final String JSON_PROPERTY_ERROR = "error"; + @javax.annotation.Nonnull private String error; + + /** HTTP status code */ + public enum CodeEnum { + NUMBER_400(Integer.valueOf(400)); + + private Integer value; + + CodeEnum(Integer value) { + this.value = value; + } + + @JsonValue + public Integer getValue() { + return value; + } + + @Override + public String toString() { + return String.valueOf(value); + } + + @JsonCreator + public static CodeEnum fromValue(Integer value) { + for (CodeEnum b : CodeEnum.values()) { + if (b.value.equals(value)) { + return b; + } + } + throw new IllegalArgumentException("Unexpected value '" + value + "'"); + } + } + + public static final String JSON_PROPERTY_CODE = "code"; + @javax.annotation.Nonnull private CodeEnum code; + + /** Error type identifier */ + public enum TypeEnum { + LANCE_NAMESPACE_601(String.valueOf("lance-namespace:601")), + + LANCE_NAMESPACE_602(String.valueOf("lance-namespace:602")); + + private String value; + + TypeEnum(String value) { + this.value = value; + } + + @JsonValue + public String getValue() { + return value; + } + + @Override + public String toString() { + return String.valueOf(value); + } + + @JsonCreator + public static TypeEnum fromValue(String value) { + for (TypeEnum b : TypeEnum.values()) { + if (b.value.equals(value)) { + return b; + } + } + throw new IllegalArgumentException("Unexpected value '" + value + "'"); + } + } + + public static final String JSON_PROPERTY_TYPE = "type"; + @javax.annotation.Nonnull private TypeEnum type; + + public static final String JSON_PROPERTY_DETAIL = "detail"; + @javax.annotation.Nullable private String detail; + + public static final String JSON_PROPERTY_INSTANCE = "instance"; + @javax.annotation.Nullable private String instance; + + public DeleteFromTable400Response() {} + + public DeleteFromTable400Response error(@javax.annotation.Nonnull String error) { + + this.error = error; + return this; + } + + /** + * Brief error message + * + * @return error + */ + @javax.annotation.Nonnull + @JsonProperty(JSON_PROPERTY_ERROR) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public String getError() { + return error; + } + + @JsonProperty(JSON_PROPERTY_ERROR) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public void setError(@javax.annotation.Nonnull String error) { + this.error = error; + } + + public DeleteFromTable400Response code(@javax.annotation.Nonnull CodeEnum code) { + + this.code = code; + return this; + } + + /** + * HTTP status code + * + * @return code + */ + @javax.annotation.Nonnull + @JsonProperty(JSON_PROPERTY_CODE) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public CodeEnum getCode() { + return code; + } + + @JsonProperty(JSON_PROPERTY_CODE) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public void setCode(@javax.annotation.Nonnull CodeEnum code) { + this.code = code; + } + + public DeleteFromTable400Response type(@javax.annotation.Nonnull TypeEnum type) { + + this.type = type; + return this; + } + + /** + * Error type identifier + * + * @return type + */ + @javax.annotation.Nonnull + @JsonProperty(JSON_PROPERTY_TYPE) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public TypeEnum getType() { + return type; + } + + @JsonProperty(JSON_PROPERTY_TYPE) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public void setType(@javax.annotation.Nonnull TypeEnum type) { + this.type = type; + } + + public DeleteFromTable400Response detail(@javax.annotation.Nullable String detail) { + + this.detail = detail; + return this; + } + + /** + * Detailed error explanation + * + * @return detail + */ + @javax.annotation.Nullable + @JsonProperty(JSON_PROPERTY_DETAIL) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getDetail() { + return detail; + } + + @JsonProperty(JSON_PROPERTY_DETAIL) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setDetail(@javax.annotation.Nullable String detail) { + this.detail = detail; + } + + public DeleteFromTable400Response instance(@javax.annotation.Nullable String instance) { + + this.instance = instance; + return this; + } + + /** + * Specific occurrence identifier + * + * @return instance + */ + @javax.annotation.Nullable + @JsonProperty(JSON_PROPERTY_INSTANCE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getInstance() { + return instance; + } + + @JsonProperty(JSON_PROPERTY_INSTANCE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setInstance(@javax.annotation.Nullable String instance) { + this.instance = instance; + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + DeleteFromTable400Response deleteFromTable400Response = (DeleteFromTable400Response) o; + return Objects.equals(this.error, deleteFromTable400Response.error) + && Objects.equals(this.code, deleteFromTable400Response.code) + && Objects.equals(this.type, deleteFromTable400Response.type) + && Objects.equals(this.detail, deleteFromTable400Response.detail) + && Objects.equals(this.instance, deleteFromTable400Response.instance); + } + + @Override + public int hashCode() { + return Objects.hash(error, code, type, detail, instance); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class DeleteFromTable400Response {\n"); + sb.append(" error: ").append(toIndentedString(error)).append("\n"); + sb.append(" code: ").append(toIndentedString(code)).append("\n"); + sb.append(" type: ").append(toIndentedString(type)).append("\n"); + sb.append(" detail: ").append(toIndentedString(detail)).append("\n"); + sb.append(" instance: ").append(toIndentedString(instance)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + + /** + * Convert the instance into URL query string. + * + * @return URL query string + */ + public String toUrlQueryString() { + return toUrlQueryString(null); + } + + /** + * Convert the instance into URL query string. + * + * @param prefix prefix of the query string + * @return URL query string + */ + public String toUrlQueryString(String prefix) { + String suffix = ""; + String containerSuffix = ""; + String containerPrefix = ""; + if (prefix == null) { + // style=form, explode=true, e.g. /pet?name=cat&type=manx + prefix = ""; + } else { + // deepObject style e.g. /pet?id[name]=cat&id[type]=manx + prefix = prefix + "["; + suffix = "]"; + containerSuffix = "]"; + containerPrefix = "["; + } + + StringJoiner joiner = new StringJoiner("&"); + + // add `error` to the URL query string + if (getError() != null) { + try { + joiner.add( + String.format( + "%serror%s=%s", + prefix, + suffix, + URLEncoder.encode(String.valueOf(getError()), "UTF-8").replaceAll("\\+", "%20"))); + } catch (UnsupportedEncodingException e) { + // Should never happen, UTF-8 is always supported + throw new RuntimeException(e); + } + } + + // add `code` to the URL query string + if (getCode() != null) { + try { + joiner.add( + String.format( + "%scode%s=%s", + prefix, + suffix, + URLEncoder.encode(String.valueOf(getCode()), "UTF-8").replaceAll("\\+", "%20"))); + } catch (UnsupportedEncodingException e) { + // Should never happen, UTF-8 is always supported + throw new RuntimeException(e); + } + } + + // add `type` to the URL query string + if (getType() != null) { + try { + joiner.add( + String.format( + "%stype%s=%s", + prefix, + suffix, + URLEncoder.encode(String.valueOf(getType()), "UTF-8").replaceAll("\\+", "%20"))); + } catch (UnsupportedEncodingException e) { + // Should never happen, UTF-8 is always supported + throw new RuntimeException(e); + } + } + + // add `detail` to the URL query string + if (getDetail() != null) { + try { + joiner.add( + String.format( + "%sdetail%s=%s", + prefix, + suffix, + URLEncoder.encode(String.valueOf(getDetail()), "UTF-8").replaceAll("\\+", "%20"))); + } catch (UnsupportedEncodingException e) { + // Should never happen, UTF-8 is always supported + throw new RuntimeException(e); + } + } + + // add `instance` to the URL query string + if (getInstance() != null) { + try { + joiner.add( + String.format( + "%sinstance%s=%s", + prefix, + suffix, + URLEncoder.encode(String.valueOf(getInstance()), "UTF-8") + .replaceAll("\\+", "%20"))); + } catch (UnsupportedEncodingException e) { + // Should never happen, UTF-8 is always supported + throw new RuntimeException(e); + } + } + + return joiner.toString(); + } +} diff --git a/java/lance-namespace-apache-client/src/main/java/org/lance/namespace/model/DescribeTableIndexStats404Response.java b/java/lance-namespace-apache-client/src/main/java/org/lance/namespace/model/DescribeTableIndexStats404Response.java new file mode 100644 index 00000000..8cd109dc --- /dev/null +++ b/java/lance-namespace-apache-client/src/main/java/org/lance/namespace/model/DescribeTableIndexStats404Response.java @@ -0,0 +1,397 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package org.lance.namespace.model; + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; + +import java.io.UnsupportedEncodingException; +import java.net.URLEncoder; +import java.util.Objects; +import java.util.StringJoiner; + +/** DescribeTableIndexStats404Response */ +@JsonPropertyOrder({ + DescribeTableIndexStats404Response.JSON_PROPERTY_ERROR, + DescribeTableIndexStats404Response.JSON_PROPERTY_CODE, + DescribeTableIndexStats404Response.JSON_PROPERTY_TYPE, + DescribeTableIndexStats404Response.JSON_PROPERTY_DETAIL, + DescribeTableIndexStats404Response.JSON_PROPERTY_INSTANCE +}) +@JsonTypeName("DescribeTableIndexStats_404_response") +@javax.annotation.Generated( + value = "org.openapitools.codegen.languages.JavaClientCodegen", + comments = "Generator version: 7.12.0") +public class DescribeTableIndexStats404Response { + public static final String JSON_PROPERTY_ERROR = "error"; + @javax.annotation.Nonnull private String error; + + /** HTTP status code */ + public enum CodeEnum { + NUMBER_404(Integer.valueOf(404)); + + private Integer value; + + CodeEnum(Integer value) { + this.value = value; + } + + @JsonValue + public Integer getValue() { + return value; + } + + @Override + public String toString() { + return String.valueOf(value); + } + + @JsonCreator + public static CodeEnum fromValue(Integer value) { + for (CodeEnum b : CodeEnum.values()) { + if (b.value.equals(value)) { + return b; + } + } + throw new IllegalArgumentException("Unexpected value '" + value + "'"); + } + } + + public static final String JSON_PROPERTY_CODE = "code"; + @javax.annotation.Nonnull private CodeEnum code; + + /** Error type identifier */ + public enum TypeEnum { + LANCE_NAMESPACE_201(String.valueOf("lance-namespace:201")), + + LANCE_NAMESPACE_301(String.valueOf("lance-namespace:301")); + + private String value; + + TypeEnum(String value) { + this.value = value; + } + + @JsonValue + public String getValue() { + return value; + } + + @Override + public String toString() { + return String.valueOf(value); + } + + @JsonCreator + public static TypeEnum fromValue(String value) { + for (TypeEnum b : TypeEnum.values()) { + if (b.value.equals(value)) { + return b; + } + } + throw new IllegalArgumentException("Unexpected value '" + value + "'"); + } + } + + public static final String JSON_PROPERTY_TYPE = "type"; + @javax.annotation.Nonnull private TypeEnum type; + + public static final String JSON_PROPERTY_DETAIL = "detail"; + @javax.annotation.Nullable private String detail; + + public static final String JSON_PROPERTY_INSTANCE = "instance"; + @javax.annotation.Nullable private String instance; + + public DescribeTableIndexStats404Response() {} + + public DescribeTableIndexStats404Response error(@javax.annotation.Nonnull String error) { + + this.error = error; + return this; + } + + /** + * Brief error message + * + * @return error + */ + @javax.annotation.Nonnull + @JsonProperty(JSON_PROPERTY_ERROR) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public String getError() { + return error; + } + + @JsonProperty(JSON_PROPERTY_ERROR) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public void setError(@javax.annotation.Nonnull String error) { + this.error = error; + } + + public DescribeTableIndexStats404Response code(@javax.annotation.Nonnull CodeEnum code) { + + this.code = code; + return this; + } + + /** + * HTTP status code + * + * @return code + */ + @javax.annotation.Nonnull + @JsonProperty(JSON_PROPERTY_CODE) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public CodeEnum getCode() { + return code; + } + + @JsonProperty(JSON_PROPERTY_CODE) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public void setCode(@javax.annotation.Nonnull CodeEnum code) { + this.code = code; + } + + public DescribeTableIndexStats404Response type(@javax.annotation.Nonnull TypeEnum type) { + + this.type = type; + return this; + } + + /** + * Error type identifier + * + * @return type + */ + @javax.annotation.Nonnull + @JsonProperty(JSON_PROPERTY_TYPE) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public TypeEnum getType() { + return type; + } + + @JsonProperty(JSON_PROPERTY_TYPE) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public void setType(@javax.annotation.Nonnull TypeEnum type) { + this.type = type; + } + + public DescribeTableIndexStats404Response detail(@javax.annotation.Nullable String detail) { + + this.detail = detail; + return this; + } + + /** + * Detailed error explanation + * + * @return detail + */ + @javax.annotation.Nullable + @JsonProperty(JSON_PROPERTY_DETAIL) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getDetail() { + return detail; + } + + @JsonProperty(JSON_PROPERTY_DETAIL) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setDetail(@javax.annotation.Nullable String detail) { + this.detail = detail; + } + + public DescribeTableIndexStats404Response instance(@javax.annotation.Nullable String instance) { + + this.instance = instance; + return this; + } + + /** + * Specific occurrence identifier + * + * @return instance + */ + @javax.annotation.Nullable + @JsonProperty(JSON_PROPERTY_INSTANCE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getInstance() { + return instance; + } + + @JsonProperty(JSON_PROPERTY_INSTANCE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setInstance(@javax.annotation.Nullable String instance) { + this.instance = instance; + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + DescribeTableIndexStats404Response describeTableIndexStats404Response = + (DescribeTableIndexStats404Response) o; + return Objects.equals(this.error, describeTableIndexStats404Response.error) + && Objects.equals(this.code, describeTableIndexStats404Response.code) + && Objects.equals(this.type, describeTableIndexStats404Response.type) + && Objects.equals(this.detail, describeTableIndexStats404Response.detail) + && Objects.equals(this.instance, describeTableIndexStats404Response.instance); + } + + @Override + public int hashCode() { + return Objects.hash(error, code, type, detail, instance); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class DescribeTableIndexStats404Response {\n"); + sb.append(" error: ").append(toIndentedString(error)).append("\n"); + sb.append(" code: ").append(toIndentedString(code)).append("\n"); + sb.append(" type: ").append(toIndentedString(type)).append("\n"); + sb.append(" detail: ").append(toIndentedString(detail)).append("\n"); + sb.append(" instance: ").append(toIndentedString(instance)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + + /** + * Convert the instance into URL query string. + * + * @return URL query string + */ + public String toUrlQueryString() { + return toUrlQueryString(null); + } + + /** + * Convert the instance into URL query string. + * + * @param prefix prefix of the query string + * @return URL query string + */ + public String toUrlQueryString(String prefix) { + String suffix = ""; + String containerSuffix = ""; + String containerPrefix = ""; + if (prefix == null) { + // style=form, explode=true, e.g. /pet?name=cat&type=manx + prefix = ""; + } else { + // deepObject style e.g. /pet?id[name]=cat&id[type]=manx + prefix = prefix + "["; + suffix = "]"; + containerSuffix = "]"; + containerPrefix = "["; + } + + StringJoiner joiner = new StringJoiner("&"); + + // add `error` to the URL query string + if (getError() != null) { + try { + joiner.add( + String.format( + "%serror%s=%s", + prefix, + suffix, + URLEncoder.encode(String.valueOf(getError()), "UTF-8").replaceAll("\\+", "%20"))); + } catch (UnsupportedEncodingException e) { + // Should never happen, UTF-8 is always supported + throw new RuntimeException(e); + } + } + + // add `code` to the URL query string + if (getCode() != null) { + try { + joiner.add( + String.format( + "%scode%s=%s", + prefix, + suffix, + URLEncoder.encode(String.valueOf(getCode()), "UTF-8").replaceAll("\\+", "%20"))); + } catch (UnsupportedEncodingException e) { + // Should never happen, UTF-8 is always supported + throw new RuntimeException(e); + } + } + + // add `type` to the URL query string + if (getType() != null) { + try { + joiner.add( + String.format( + "%stype%s=%s", + prefix, + suffix, + URLEncoder.encode(String.valueOf(getType()), "UTF-8").replaceAll("\\+", "%20"))); + } catch (UnsupportedEncodingException e) { + // Should never happen, UTF-8 is always supported + throw new RuntimeException(e); + } + } + + // add `detail` to the URL query string + if (getDetail() != null) { + try { + joiner.add( + String.format( + "%sdetail%s=%s", + prefix, + suffix, + URLEncoder.encode(String.valueOf(getDetail()), "UTF-8").replaceAll("\\+", "%20"))); + } catch (UnsupportedEncodingException e) { + // Should never happen, UTF-8 is always supported + throw new RuntimeException(e); + } + } + + // add `instance` to the URL query string + if (getInstance() != null) { + try { + joiner.add( + String.format( + "%sinstance%s=%s", + prefix, + suffix, + URLEncoder.encode(String.valueOf(getInstance()), "UTF-8") + .replaceAll("\\+", "%20"))); + } catch (UnsupportedEncodingException e) { + // Should never happen, UTF-8 is always supported + throw new RuntimeException(e); + } + } + + return joiner.toString(); + } +} diff --git a/java/lance-namespace-apache-client/src/main/java/org/lance/namespace/model/GetTableTagVersion404Response.java b/java/lance-namespace-apache-client/src/main/java/org/lance/namespace/model/GetTableTagVersion404Response.java new file mode 100644 index 00000000..dfdeaaab --- /dev/null +++ b/java/lance-namespace-apache-client/src/main/java/org/lance/namespace/model/GetTableTagVersion404Response.java @@ -0,0 +1,396 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package org.lance.namespace.model; + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; + +import java.io.UnsupportedEncodingException; +import java.net.URLEncoder; +import java.util.Objects; +import java.util.StringJoiner; + +/** GetTableTagVersion404Response */ +@JsonPropertyOrder({ + GetTableTagVersion404Response.JSON_PROPERTY_ERROR, + GetTableTagVersion404Response.JSON_PROPERTY_CODE, + GetTableTagVersion404Response.JSON_PROPERTY_TYPE, + GetTableTagVersion404Response.JSON_PROPERTY_DETAIL, + GetTableTagVersion404Response.JSON_PROPERTY_INSTANCE +}) +@JsonTypeName("GetTableTagVersion_404_response") +@javax.annotation.Generated( + value = "org.openapitools.codegen.languages.JavaClientCodegen", + comments = "Generator version: 7.12.0") +public class GetTableTagVersion404Response { + public static final String JSON_PROPERTY_ERROR = "error"; + @javax.annotation.Nonnull private String error; + + /** HTTP status code */ + public enum CodeEnum { + NUMBER_404(Integer.valueOf(404)); + + private Integer value; + + CodeEnum(Integer value) { + this.value = value; + } + + @JsonValue + public Integer getValue() { + return value; + } + + @Override + public String toString() { + return String.valueOf(value); + } + + @JsonCreator + public static CodeEnum fromValue(Integer value) { + for (CodeEnum b : CodeEnum.values()) { + if (b.value.equals(value)) { + return b; + } + } + throw new IllegalArgumentException("Unexpected value '" + value + "'"); + } + } + + public static final String JSON_PROPERTY_CODE = "code"; + @javax.annotation.Nonnull private CodeEnum code; + + /** Error type identifier */ + public enum TypeEnum { + LANCE_NAMESPACE_201(String.valueOf("lance-namespace:201")), + + LANCE_NAMESPACE_401(String.valueOf("lance-namespace:401")); + + private String value; + + TypeEnum(String value) { + this.value = value; + } + + @JsonValue + public String getValue() { + return value; + } + + @Override + public String toString() { + return String.valueOf(value); + } + + @JsonCreator + public static TypeEnum fromValue(String value) { + for (TypeEnum b : TypeEnum.values()) { + if (b.value.equals(value)) { + return b; + } + } + throw new IllegalArgumentException("Unexpected value '" + value + "'"); + } + } + + public static final String JSON_PROPERTY_TYPE = "type"; + @javax.annotation.Nonnull private TypeEnum type; + + public static final String JSON_PROPERTY_DETAIL = "detail"; + @javax.annotation.Nullable private String detail; + + public static final String JSON_PROPERTY_INSTANCE = "instance"; + @javax.annotation.Nullable private String instance; + + public GetTableTagVersion404Response() {} + + public GetTableTagVersion404Response error(@javax.annotation.Nonnull String error) { + + this.error = error; + return this; + } + + /** + * Brief error message + * + * @return error + */ + @javax.annotation.Nonnull + @JsonProperty(JSON_PROPERTY_ERROR) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public String getError() { + return error; + } + + @JsonProperty(JSON_PROPERTY_ERROR) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public void setError(@javax.annotation.Nonnull String error) { + this.error = error; + } + + public GetTableTagVersion404Response code(@javax.annotation.Nonnull CodeEnum code) { + + this.code = code; + return this; + } + + /** + * HTTP status code + * + * @return code + */ + @javax.annotation.Nonnull + @JsonProperty(JSON_PROPERTY_CODE) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public CodeEnum getCode() { + return code; + } + + @JsonProperty(JSON_PROPERTY_CODE) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public void setCode(@javax.annotation.Nonnull CodeEnum code) { + this.code = code; + } + + public GetTableTagVersion404Response type(@javax.annotation.Nonnull TypeEnum type) { + + this.type = type; + return this; + } + + /** + * Error type identifier + * + * @return type + */ + @javax.annotation.Nonnull + @JsonProperty(JSON_PROPERTY_TYPE) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public TypeEnum getType() { + return type; + } + + @JsonProperty(JSON_PROPERTY_TYPE) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public void setType(@javax.annotation.Nonnull TypeEnum type) { + this.type = type; + } + + public GetTableTagVersion404Response detail(@javax.annotation.Nullable String detail) { + + this.detail = detail; + return this; + } + + /** + * Detailed error explanation + * + * @return detail + */ + @javax.annotation.Nullable + @JsonProperty(JSON_PROPERTY_DETAIL) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getDetail() { + return detail; + } + + @JsonProperty(JSON_PROPERTY_DETAIL) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setDetail(@javax.annotation.Nullable String detail) { + this.detail = detail; + } + + public GetTableTagVersion404Response instance(@javax.annotation.Nullable String instance) { + + this.instance = instance; + return this; + } + + /** + * Specific occurrence identifier + * + * @return instance + */ + @javax.annotation.Nullable + @JsonProperty(JSON_PROPERTY_INSTANCE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getInstance() { + return instance; + } + + @JsonProperty(JSON_PROPERTY_INSTANCE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setInstance(@javax.annotation.Nullable String instance) { + this.instance = instance; + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + GetTableTagVersion404Response getTableTagVersion404Response = (GetTableTagVersion404Response) o; + return Objects.equals(this.error, getTableTagVersion404Response.error) + && Objects.equals(this.code, getTableTagVersion404Response.code) + && Objects.equals(this.type, getTableTagVersion404Response.type) + && Objects.equals(this.detail, getTableTagVersion404Response.detail) + && Objects.equals(this.instance, getTableTagVersion404Response.instance); + } + + @Override + public int hashCode() { + return Objects.hash(error, code, type, detail, instance); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class GetTableTagVersion404Response {\n"); + sb.append(" error: ").append(toIndentedString(error)).append("\n"); + sb.append(" code: ").append(toIndentedString(code)).append("\n"); + sb.append(" type: ").append(toIndentedString(type)).append("\n"); + sb.append(" detail: ").append(toIndentedString(detail)).append("\n"); + sb.append(" instance: ").append(toIndentedString(instance)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + + /** + * Convert the instance into URL query string. + * + * @return URL query string + */ + public String toUrlQueryString() { + return toUrlQueryString(null); + } + + /** + * Convert the instance into URL query string. + * + * @param prefix prefix of the query string + * @return URL query string + */ + public String toUrlQueryString(String prefix) { + String suffix = ""; + String containerSuffix = ""; + String containerPrefix = ""; + if (prefix == null) { + // style=form, explode=true, e.g. /pet?name=cat&type=manx + prefix = ""; + } else { + // deepObject style e.g. /pet?id[name]=cat&id[type]=manx + prefix = prefix + "["; + suffix = "]"; + containerSuffix = "]"; + containerPrefix = "["; + } + + StringJoiner joiner = new StringJoiner("&"); + + // add `error` to the URL query string + if (getError() != null) { + try { + joiner.add( + String.format( + "%serror%s=%s", + prefix, + suffix, + URLEncoder.encode(String.valueOf(getError()), "UTF-8").replaceAll("\\+", "%20"))); + } catch (UnsupportedEncodingException e) { + // Should never happen, UTF-8 is always supported + throw new RuntimeException(e); + } + } + + // add `code` to the URL query string + if (getCode() != null) { + try { + joiner.add( + String.format( + "%scode%s=%s", + prefix, + suffix, + URLEncoder.encode(String.valueOf(getCode()), "UTF-8").replaceAll("\\+", "%20"))); + } catch (UnsupportedEncodingException e) { + // Should never happen, UTF-8 is always supported + throw new RuntimeException(e); + } + } + + // add `type` to the URL query string + if (getType() != null) { + try { + joiner.add( + String.format( + "%stype%s=%s", + prefix, + suffix, + URLEncoder.encode(String.valueOf(getType()), "UTF-8").replaceAll("\\+", "%20"))); + } catch (UnsupportedEncodingException e) { + // Should never happen, UTF-8 is always supported + throw new RuntimeException(e); + } + } + + // add `detail` to the URL query string + if (getDetail() != null) { + try { + joiner.add( + String.format( + "%sdetail%s=%s", + prefix, + suffix, + URLEncoder.encode(String.valueOf(getDetail()), "UTF-8").replaceAll("\\+", "%20"))); + } catch (UnsupportedEncodingException e) { + // Should never happen, UTF-8 is always supported + throw new RuntimeException(e); + } + } + + // add `instance` to the URL query string + if (getInstance() != null) { + try { + joiner.add( + String.format( + "%sinstance%s=%s", + prefix, + suffix, + URLEncoder.encode(String.valueOf(getInstance()), "UTF-8") + .replaceAll("\\+", "%20"))); + } catch (UnsupportedEncodingException e) { + // Should never happen, UTF-8 is always supported + throw new RuntimeException(e); + } + } + + return joiner.toString(); + } +} diff --git a/java/lance-namespace-apache-client/src/main/java/org/lance/namespace/model/InsertIntoTable400Response.java b/java/lance-namespace-apache-client/src/main/java/org/lance/namespace/model/InsertIntoTable400Response.java new file mode 100644 index 00000000..23f5c3bb --- /dev/null +++ b/java/lance-namespace-apache-client/src/main/java/org/lance/namespace/model/InsertIntoTable400Response.java @@ -0,0 +1,396 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package org.lance.namespace.model; + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; + +import java.io.UnsupportedEncodingException; +import java.net.URLEncoder; +import java.util.Objects; +import java.util.StringJoiner; + +/** InsertIntoTable400Response */ +@JsonPropertyOrder({ + InsertIntoTable400Response.JSON_PROPERTY_ERROR, + InsertIntoTable400Response.JSON_PROPERTY_CODE, + InsertIntoTable400Response.JSON_PROPERTY_TYPE, + InsertIntoTable400Response.JSON_PROPERTY_DETAIL, + InsertIntoTable400Response.JSON_PROPERTY_INSTANCE +}) +@JsonTypeName("InsertIntoTable_400_response") +@javax.annotation.Generated( + value = "org.openapitools.codegen.languages.JavaClientCodegen", + comments = "Generator version: 7.12.0") +public class InsertIntoTable400Response { + public static final String JSON_PROPERTY_ERROR = "error"; + @javax.annotation.Nonnull private String error; + + /** HTTP status code */ + public enum CodeEnum { + NUMBER_400(Integer.valueOf(400)); + + private Integer value; + + CodeEnum(Integer value) { + this.value = value; + } + + @JsonValue + public Integer getValue() { + return value; + } + + @Override + public String toString() { + return String.valueOf(value); + } + + @JsonCreator + public static CodeEnum fromValue(Integer value) { + for (CodeEnum b : CodeEnum.values()) { + if (b.value.equals(value)) { + return b; + } + } + throw new IllegalArgumentException("Unexpected value '" + value + "'"); + } + } + + public static final String JSON_PROPERTY_CODE = "code"; + @javax.annotation.Nonnull private CodeEnum code; + + /** Error type identifier */ + public enum TypeEnum { + LANCE_NAMESPACE_601(String.valueOf("lance-namespace:601")), + + LANCE_NAMESPACE_206(String.valueOf("lance-namespace:206")); + + private String value; + + TypeEnum(String value) { + this.value = value; + } + + @JsonValue + public String getValue() { + return value; + } + + @Override + public String toString() { + return String.valueOf(value); + } + + @JsonCreator + public static TypeEnum fromValue(String value) { + for (TypeEnum b : TypeEnum.values()) { + if (b.value.equals(value)) { + return b; + } + } + throw new IllegalArgumentException("Unexpected value '" + value + "'"); + } + } + + public static final String JSON_PROPERTY_TYPE = "type"; + @javax.annotation.Nonnull private TypeEnum type; + + public static final String JSON_PROPERTY_DETAIL = "detail"; + @javax.annotation.Nullable private String detail; + + public static final String JSON_PROPERTY_INSTANCE = "instance"; + @javax.annotation.Nullable private String instance; + + public InsertIntoTable400Response() {} + + public InsertIntoTable400Response error(@javax.annotation.Nonnull String error) { + + this.error = error; + return this; + } + + /** + * Brief error message + * + * @return error + */ + @javax.annotation.Nonnull + @JsonProperty(JSON_PROPERTY_ERROR) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public String getError() { + return error; + } + + @JsonProperty(JSON_PROPERTY_ERROR) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public void setError(@javax.annotation.Nonnull String error) { + this.error = error; + } + + public InsertIntoTable400Response code(@javax.annotation.Nonnull CodeEnum code) { + + this.code = code; + return this; + } + + /** + * HTTP status code + * + * @return code + */ + @javax.annotation.Nonnull + @JsonProperty(JSON_PROPERTY_CODE) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public CodeEnum getCode() { + return code; + } + + @JsonProperty(JSON_PROPERTY_CODE) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public void setCode(@javax.annotation.Nonnull CodeEnum code) { + this.code = code; + } + + public InsertIntoTable400Response type(@javax.annotation.Nonnull TypeEnum type) { + + this.type = type; + return this; + } + + /** + * Error type identifier + * + * @return type + */ + @javax.annotation.Nonnull + @JsonProperty(JSON_PROPERTY_TYPE) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public TypeEnum getType() { + return type; + } + + @JsonProperty(JSON_PROPERTY_TYPE) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public void setType(@javax.annotation.Nonnull TypeEnum type) { + this.type = type; + } + + public InsertIntoTable400Response detail(@javax.annotation.Nullable String detail) { + + this.detail = detail; + return this; + } + + /** + * Detailed error explanation + * + * @return detail + */ + @javax.annotation.Nullable + @JsonProperty(JSON_PROPERTY_DETAIL) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getDetail() { + return detail; + } + + @JsonProperty(JSON_PROPERTY_DETAIL) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setDetail(@javax.annotation.Nullable String detail) { + this.detail = detail; + } + + public InsertIntoTable400Response instance(@javax.annotation.Nullable String instance) { + + this.instance = instance; + return this; + } + + /** + * Specific occurrence identifier + * + * @return instance + */ + @javax.annotation.Nullable + @JsonProperty(JSON_PROPERTY_INSTANCE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getInstance() { + return instance; + } + + @JsonProperty(JSON_PROPERTY_INSTANCE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setInstance(@javax.annotation.Nullable String instance) { + this.instance = instance; + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + InsertIntoTable400Response insertIntoTable400Response = (InsertIntoTable400Response) o; + return Objects.equals(this.error, insertIntoTable400Response.error) + && Objects.equals(this.code, insertIntoTable400Response.code) + && Objects.equals(this.type, insertIntoTable400Response.type) + && Objects.equals(this.detail, insertIntoTable400Response.detail) + && Objects.equals(this.instance, insertIntoTable400Response.instance); + } + + @Override + public int hashCode() { + return Objects.hash(error, code, type, detail, instance); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class InsertIntoTable400Response {\n"); + sb.append(" error: ").append(toIndentedString(error)).append("\n"); + sb.append(" code: ").append(toIndentedString(code)).append("\n"); + sb.append(" type: ").append(toIndentedString(type)).append("\n"); + sb.append(" detail: ").append(toIndentedString(detail)).append("\n"); + sb.append(" instance: ").append(toIndentedString(instance)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + + /** + * Convert the instance into URL query string. + * + * @return URL query string + */ + public String toUrlQueryString() { + return toUrlQueryString(null); + } + + /** + * Convert the instance into URL query string. + * + * @param prefix prefix of the query string + * @return URL query string + */ + public String toUrlQueryString(String prefix) { + String suffix = ""; + String containerSuffix = ""; + String containerPrefix = ""; + if (prefix == null) { + // style=form, explode=true, e.g. /pet?name=cat&type=manx + prefix = ""; + } else { + // deepObject style e.g. /pet?id[name]=cat&id[type]=manx + prefix = prefix + "["; + suffix = "]"; + containerSuffix = "]"; + containerPrefix = "["; + } + + StringJoiner joiner = new StringJoiner("&"); + + // add `error` to the URL query string + if (getError() != null) { + try { + joiner.add( + String.format( + "%serror%s=%s", + prefix, + suffix, + URLEncoder.encode(String.valueOf(getError()), "UTF-8").replaceAll("\\+", "%20"))); + } catch (UnsupportedEncodingException e) { + // Should never happen, UTF-8 is always supported + throw new RuntimeException(e); + } + } + + // add `code` to the URL query string + if (getCode() != null) { + try { + joiner.add( + String.format( + "%scode%s=%s", + prefix, + suffix, + URLEncoder.encode(String.valueOf(getCode()), "UTF-8").replaceAll("\\+", "%20"))); + } catch (UnsupportedEncodingException e) { + // Should never happen, UTF-8 is always supported + throw new RuntimeException(e); + } + } + + // add `type` to the URL query string + if (getType() != null) { + try { + joiner.add( + String.format( + "%stype%s=%s", + prefix, + suffix, + URLEncoder.encode(String.valueOf(getType()), "UTF-8").replaceAll("\\+", "%20"))); + } catch (UnsupportedEncodingException e) { + // Should never happen, UTF-8 is always supported + throw new RuntimeException(e); + } + } + + // add `detail` to the URL query string + if (getDetail() != null) { + try { + joiner.add( + String.format( + "%sdetail%s=%s", + prefix, + suffix, + URLEncoder.encode(String.valueOf(getDetail()), "UTF-8").replaceAll("\\+", "%20"))); + } catch (UnsupportedEncodingException e) { + // Should never happen, UTF-8 is always supported + throw new RuntimeException(e); + } + } + + // add `instance` to the URL query string + if (getInstance() != null) { + try { + joiner.add( + String.format( + "%sinstance%s=%s", + prefix, + suffix, + URLEncoder.encode(String.valueOf(getInstance()), "UTF-8") + .replaceAll("\\+", "%20"))); + } catch (UnsupportedEncodingException e) { + // Should never happen, UTF-8 is always supported + throw new RuntimeException(e); + } + } + + return joiner.toString(); + } +} diff --git a/java/lance-namespace-apache-client/src/main/java/org/lance/namespace/model/InvalidIdentifierError.java b/java/lance-namespace-apache-client/src/main/java/org/lance/namespace/model/InvalidIdentifierError.java new file mode 100644 index 00000000..6504dc5b --- /dev/null +++ b/java/lance-namespace-apache-client/src/main/java/org/lance/namespace/model/InvalidIdentifierError.java @@ -0,0 +1,392 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package org.lance.namespace.model; + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.annotation.JsonValue; + +import java.io.UnsupportedEncodingException; +import java.net.URLEncoder; +import java.util.Objects; +import java.util.StringJoiner; + +/** Invalid identifier format */ +@JsonPropertyOrder({ + InvalidIdentifierError.JSON_PROPERTY_ERROR, + InvalidIdentifierError.JSON_PROPERTY_CODE, + InvalidIdentifierError.JSON_PROPERTY_TYPE, + InvalidIdentifierError.JSON_PROPERTY_DETAIL, + InvalidIdentifierError.JSON_PROPERTY_INSTANCE +}) +@javax.annotation.Generated( + value = "org.openapitools.codegen.languages.JavaClientCodegen", + comments = "Generator version: 7.12.0") +public class InvalidIdentifierError { + public static final String JSON_PROPERTY_ERROR = "error"; + @javax.annotation.Nonnull private String error; + + /** HTTP status code */ + public enum CodeEnum { + NUMBER_400(Integer.valueOf(400)); + + private Integer value; + + CodeEnum(Integer value) { + this.value = value; + } + + @JsonValue + public Integer getValue() { + return value; + } + + @Override + public String toString() { + return String.valueOf(value); + } + + @JsonCreator + public static CodeEnum fromValue(Integer value) { + for (CodeEnum b : CodeEnum.values()) { + if (b.value.equals(value)) { + return b; + } + } + throw new IllegalArgumentException("Unexpected value '" + value + "'"); + } + } + + public static final String JSON_PROPERTY_CODE = "code"; + @javax.annotation.Nonnull private CodeEnum code; + + /** Error type identifier */ + public enum TypeEnum { + LANCE_NAMESPACE_603(String.valueOf("lance-namespace:603")); + + private String value; + + TypeEnum(String value) { + this.value = value; + } + + @JsonValue + public String getValue() { + return value; + } + + @Override + public String toString() { + return String.valueOf(value); + } + + @JsonCreator + public static TypeEnum fromValue(String value) { + for (TypeEnum b : TypeEnum.values()) { + if (b.value.equals(value)) { + return b; + } + } + throw new IllegalArgumentException("Unexpected value '" + value + "'"); + } + } + + public static final String JSON_PROPERTY_TYPE = "type"; + @javax.annotation.Nonnull private TypeEnum type; + + public static final String JSON_PROPERTY_DETAIL = "detail"; + @javax.annotation.Nullable private String detail; + + public static final String JSON_PROPERTY_INSTANCE = "instance"; + @javax.annotation.Nullable private String instance; + + public InvalidIdentifierError() {} + + public InvalidIdentifierError error(@javax.annotation.Nonnull String error) { + + this.error = error; + return this; + } + + /** + * Brief error message + * + * @return error + */ + @javax.annotation.Nonnull + @JsonProperty(JSON_PROPERTY_ERROR) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public String getError() { + return error; + } + + @JsonProperty(JSON_PROPERTY_ERROR) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public void setError(@javax.annotation.Nonnull String error) { + this.error = error; + } + + public InvalidIdentifierError code(@javax.annotation.Nonnull CodeEnum code) { + + this.code = code; + return this; + } + + /** + * HTTP status code + * + * @return code + */ + @javax.annotation.Nonnull + @JsonProperty(JSON_PROPERTY_CODE) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public CodeEnum getCode() { + return code; + } + + @JsonProperty(JSON_PROPERTY_CODE) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public void setCode(@javax.annotation.Nonnull CodeEnum code) { + this.code = code; + } + + public InvalidIdentifierError type(@javax.annotation.Nonnull TypeEnum type) { + + this.type = type; + return this; + } + + /** + * Error type identifier + * + * @return type + */ + @javax.annotation.Nonnull + @JsonProperty(JSON_PROPERTY_TYPE) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public TypeEnum getType() { + return type; + } + + @JsonProperty(JSON_PROPERTY_TYPE) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public void setType(@javax.annotation.Nonnull TypeEnum type) { + this.type = type; + } + + public InvalidIdentifierError detail(@javax.annotation.Nullable String detail) { + + this.detail = detail; + return this; + } + + /** + * Detailed error explanation + * + * @return detail + */ + @javax.annotation.Nullable + @JsonProperty(JSON_PROPERTY_DETAIL) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getDetail() { + return detail; + } + + @JsonProperty(JSON_PROPERTY_DETAIL) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setDetail(@javax.annotation.Nullable String detail) { + this.detail = detail; + } + + public InvalidIdentifierError instance(@javax.annotation.Nullable String instance) { + + this.instance = instance; + return this; + } + + /** + * Specific occurrence identifier + * + * @return instance + */ + @javax.annotation.Nullable + @JsonProperty(JSON_PROPERTY_INSTANCE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getInstance() { + return instance; + } + + @JsonProperty(JSON_PROPERTY_INSTANCE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setInstance(@javax.annotation.Nullable String instance) { + this.instance = instance; + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + InvalidIdentifierError invalidIdentifierError = (InvalidIdentifierError) o; + return Objects.equals(this.error, invalidIdentifierError.error) + && Objects.equals(this.code, invalidIdentifierError.code) + && Objects.equals(this.type, invalidIdentifierError.type) + && Objects.equals(this.detail, invalidIdentifierError.detail) + && Objects.equals(this.instance, invalidIdentifierError.instance); + } + + @Override + public int hashCode() { + return Objects.hash(error, code, type, detail, instance); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class InvalidIdentifierError {\n"); + sb.append(" error: ").append(toIndentedString(error)).append("\n"); + sb.append(" code: ").append(toIndentedString(code)).append("\n"); + sb.append(" type: ").append(toIndentedString(type)).append("\n"); + sb.append(" detail: ").append(toIndentedString(detail)).append("\n"); + sb.append(" instance: ").append(toIndentedString(instance)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + + /** + * Convert the instance into URL query string. + * + * @return URL query string + */ + public String toUrlQueryString() { + return toUrlQueryString(null); + } + + /** + * Convert the instance into URL query string. + * + * @param prefix prefix of the query string + * @return URL query string + */ + public String toUrlQueryString(String prefix) { + String suffix = ""; + String containerSuffix = ""; + String containerPrefix = ""; + if (prefix == null) { + // style=form, explode=true, e.g. /pet?name=cat&type=manx + prefix = ""; + } else { + // deepObject style e.g. /pet?id[name]=cat&id[type]=manx + prefix = prefix + "["; + suffix = "]"; + containerSuffix = "]"; + containerPrefix = "["; + } + + StringJoiner joiner = new StringJoiner("&"); + + // add `error` to the URL query string + if (getError() != null) { + try { + joiner.add( + String.format( + "%serror%s=%s", + prefix, + suffix, + URLEncoder.encode(String.valueOf(getError()), "UTF-8").replaceAll("\\+", "%20"))); + } catch (UnsupportedEncodingException e) { + // Should never happen, UTF-8 is always supported + throw new RuntimeException(e); + } + } + + // add `code` to the URL query string + if (getCode() != null) { + try { + joiner.add( + String.format( + "%scode%s=%s", + prefix, + suffix, + URLEncoder.encode(String.valueOf(getCode()), "UTF-8").replaceAll("\\+", "%20"))); + } catch (UnsupportedEncodingException e) { + // Should never happen, UTF-8 is always supported + throw new RuntimeException(e); + } + } + + // add `type` to the URL query string + if (getType() != null) { + try { + joiner.add( + String.format( + "%stype%s=%s", + prefix, + suffix, + URLEncoder.encode(String.valueOf(getType()), "UTF-8").replaceAll("\\+", "%20"))); + } catch (UnsupportedEncodingException e) { + // Should never happen, UTF-8 is always supported + throw new RuntimeException(e); + } + } + + // add `detail` to the URL query string + if (getDetail() != null) { + try { + joiner.add( + String.format( + "%sdetail%s=%s", + prefix, + suffix, + URLEncoder.encode(String.valueOf(getDetail()), "UTF-8").replaceAll("\\+", "%20"))); + } catch (UnsupportedEncodingException e) { + // Should never happen, UTF-8 is always supported + throw new RuntimeException(e); + } + } + + // add `instance` to the URL query string + if (getInstance() != null) { + try { + joiner.add( + String.format( + "%sinstance%s=%s", + prefix, + suffix, + URLEncoder.encode(String.valueOf(getInstance()), "UTF-8") + .replaceAll("\\+", "%20"))); + } catch (UnsupportedEncodingException e) { + // Should never happen, UTF-8 is always supported + throw new RuntimeException(e); + } + } + + return joiner.toString(); + } +} diff --git a/java/lance-namespace-apache-client/src/main/java/org/lance/namespace/model/InvalidRequestError.java b/java/lance-namespace-apache-client/src/main/java/org/lance/namespace/model/InvalidRequestError.java new file mode 100644 index 00000000..3e90cbfd --- /dev/null +++ b/java/lance-namespace-apache-client/src/main/java/org/lance/namespace/model/InvalidRequestError.java @@ -0,0 +1,392 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package org.lance.namespace.model; + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.annotation.JsonValue; + +import java.io.UnsupportedEncodingException; +import java.net.URLEncoder; +import java.util.Objects; +import java.util.StringJoiner; + +/** Malformed request or validation failure */ +@JsonPropertyOrder({ + InvalidRequestError.JSON_PROPERTY_ERROR, + InvalidRequestError.JSON_PROPERTY_CODE, + InvalidRequestError.JSON_PROPERTY_TYPE, + InvalidRequestError.JSON_PROPERTY_DETAIL, + InvalidRequestError.JSON_PROPERTY_INSTANCE +}) +@javax.annotation.Generated( + value = "org.openapitools.codegen.languages.JavaClientCodegen", + comments = "Generator version: 7.12.0") +public class InvalidRequestError { + public static final String JSON_PROPERTY_ERROR = "error"; + @javax.annotation.Nonnull private String error; + + /** HTTP status code */ + public enum CodeEnum { + NUMBER_400(Integer.valueOf(400)); + + private Integer value; + + CodeEnum(Integer value) { + this.value = value; + } + + @JsonValue + public Integer getValue() { + return value; + } + + @Override + public String toString() { + return String.valueOf(value); + } + + @JsonCreator + public static CodeEnum fromValue(Integer value) { + for (CodeEnum b : CodeEnum.values()) { + if (b.value.equals(value)) { + return b; + } + } + throw new IllegalArgumentException("Unexpected value '" + value + "'"); + } + } + + public static final String JSON_PROPERTY_CODE = "code"; + @javax.annotation.Nonnull private CodeEnum code; + + /** Error type identifier */ + public enum TypeEnum { + LANCE_NAMESPACE_601(String.valueOf("lance-namespace:601")); + + private String value; + + TypeEnum(String value) { + this.value = value; + } + + @JsonValue + public String getValue() { + return value; + } + + @Override + public String toString() { + return String.valueOf(value); + } + + @JsonCreator + public static TypeEnum fromValue(String value) { + for (TypeEnum b : TypeEnum.values()) { + if (b.value.equals(value)) { + return b; + } + } + throw new IllegalArgumentException("Unexpected value '" + value + "'"); + } + } + + public static final String JSON_PROPERTY_TYPE = "type"; + @javax.annotation.Nonnull private TypeEnum type; + + public static final String JSON_PROPERTY_DETAIL = "detail"; + @javax.annotation.Nullable private String detail; + + public static final String JSON_PROPERTY_INSTANCE = "instance"; + @javax.annotation.Nullable private String instance; + + public InvalidRequestError() {} + + public InvalidRequestError error(@javax.annotation.Nonnull String error) { + + this.error = error; + return this; + } + + /** + * Brief error message + * + * @return error + */ + @javax.annotation.Nonnull + @JsonProperty(JSON_PROPERTY_ERROR) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public String getError() { + return error; + } + + @JsonProperty(JSON_PROPERTY_ERROR) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public void setError(@javax.annotation.Nonnull String error) { + this.error = error; + } + + public InvalidRequestError code(@javax.annotation.Nonnull CodeEnum code) { + + this.code = code; + return this; + } + + /** + * HTTP status code + * + * @return code + */ + @javax.annotation.Nonnull + @JsonProperty(JSON_PROPERTY_CODE) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public CodeEnum getCode() { + return code; + } + + @JsonProperty(JSON_PROPERTY_CODE) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public void setCode(@javax.annotation.Nonnull CodeEnum code) { + this.code = code; + } + + public InvalidRequestError type(@javax.annotation.Nonnull TypeEnum type) { + + this.type = type; + return this; + } + + /** + * Error type identifier + * + * @return type + */ + @javax.annotation.Nonnull + @JsonProperty(JSON_PROPERTY_TYPE) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public TypeEnum getType() { + return type; + } + + @JsonProperty(JSON_PROPERTY_TYPE) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public void setType(@javax.annotation.Nonnull TypeEnum type) { + this.type = type; + } + + public InvalidRequestError detail(@javax.annotation.Nullable String detail) { + + this.detail = detail; + return this; + } + + /** + * Detailed error explanation + * + * @return detail + */ + @javax.annotation.Nullable + @JsonProperty(JSON_PROPERTY_DETAIL) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getDetail() { + return detail; + } + + @JsonProperty(JSON_PROPERTY_DETAIL) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setDetail(@javax.annotation.Nullable String detail) { + this.detail = detail; + } + + public InvalidRequestError instance(@javax.annotation.Nullable String instance) { + + this.instance = instance; + return this; + } + + /** + * Specific occurrence identifier + * + * @return instance + */ + @javax.annotation.Nullable + @JsonProperty(JSON_PROPERTY_INSTANCE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getInstance() { + return instance; + } + + @JsonProperty(JSON_PROPERTY_INSTANCE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setInstance(@javax.annotation.Nullable String instance) { + this.instance = instance; + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + InvalidRequestError invalidRequestError = (InvalidRequestError) o; + return Objects.equals(this.error, invalidRequestError.error) + && Objects.equals(this.code, invalidRequestError.code) + && Objects.equals(this.type, invalidRequestError.type) + && Objects.equals(this.detail, invalidRequestError.detail) + && Objects.equals(this.instance, invalidRequestError.instance); + } + + @Override + public int hashCode() { + return Objects.hash(error, code, type, detail, instance); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class InvalidRequestError {\n"); + sb.append(" error: ").append(toIndentedString(error)).append("\n"); + sb.append(" code: ").append(toIndentedString(code)).append("\n"); + sb.append(" type: ").append(toIndentedString(type)).append("\n"); + sb.append(" detail: ").append(toIndentedString(detail)).append("\n"); + sb.append(" instance: ").append(toIndentedString(instance)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + + /** + * Convert the instance into URL query string. + * + * @return URL query string + */ + public String toUrlQueryString() { + return toUrlQueryString(null); + } + + /** + * Convert the instance into URL query string. + * + * @param prefix prefix of the query string + * @return URL query string + */ + public String toUrlQueryString(String prefix) { + String suffix = ""; + String containerSuffix = ""; + String containerPrefix = ""; + if (prefix == null) { + // style=form, explode=true, e.g. /pet?name=cat&type=manx + prefix = ""; + } else { + // deepObject style e.g. /pet?id[name]=cat&id[type]=manx + prefix = prefix + "["; + suffix = "]"; + containerSuffix = "]"; + containerPrefix = "["; + } + + StringJoiner joiner = new StringJoiner("&"); + + // add `error` to the URL query string + if (getError() != null) { + try { + joiner.add( + String.format( + "%serror%s=%s", + prefix, + suffix, + URLEncoder.encode(String.valueOf(getError()), "UTF-8").replaceAll("\\+", "%20"))); + } catch (UnsupportedEncodingException e) { + // Should never happen, UTF-8 is always supported + throw new RuntimeException(e); + } + } + + // add `code` to the URL query string + if (getCode() != null) { + try { + joiner.add( + String.format( + "%scode%s=%s", + prefix, + suffix, + URLEncoder.encode(String.valueOf(getCode()), "UTF-8").replaceAll("\\+", "%20"))); + } catch (UnsupportedEncodingException e) { + // Should never happen, UTF-8 is always supported + throw new RuntimeException(e); + } + } + + // add `type` to the URL query string + if (getType() != null) { + try { + joiner.add( + String.format( + "%stype%s=%s", + prefix, + suffix, + URLEncoder.encode(String.valueOf(getType()), "UTF-8").replaceAll("\\+", "%20"))); + } catch (UnsupportedEncodingException e) { + // Should never happen, UTF-8 is always supported + throw new RuntimeException(e); + } + } + + // add `detail` to the URL query string + if (getDetail() != null) { + try { + joiner.add( + String.format( + "%sdetail%s=%s", + prefix, + suffix, + URLEncoder.encode(String.valueOf(getDetail()), "UTF-8").replaceAll("\\+", "%20"))); + } catch (UnsupportedEncodingException e) { + // Should never happen, UTF-8 is always supported + throw new RuntimeException(e); + } + } + + // add `instance` to the URL query string + if (getInstance() != null) { + try { + joiner.add( + String.format( + "%sinstance%s=%s", + prefix, + suffix, + URLEncoder.encode(String.valueOf(getInstance()), "UTF-8") + .replaceAll("\\+", "%20"))); + } catch (UnsupportedEncodingException e) { + // Should never happen, UTF-8 is always supported + throw new RuntimeException(e); + } + } + + return joiner.toString(); + } +} diff --git a/java/lance-namespace-apache-client/src/main/java/org/lance/namespace/model/InvalidSqlExpressionError.java b/java/lance-namespace-apache-client/src/main/java/org/lance/namespace/model/InvalidSqlExpressionError.java new file mode 100644 index 00000000..258f253f --- /dev/null +++ b/java/lance-namespace-apache-client/src/main/java/org/lance/namespace/model/InvalidSqlExpressionError.java @@ -0,0 +1,392 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package org.lance.namespace.model; + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.annotation.JsonValue; + +import java.io.UnsupportedEncodingException; +import java.net.URLEncoder; +import java.util.Objects; +import java.util.StringJoiner; + +/** Invalid SQL expression provided */ +@JsonPropertyOrder({ + InvalidSqlExpressionError.JSON_PROPERTY_ERROR, + InvalidSqlExpressionError.JSON_PROPERTY_CODE, + InvalidSqlExpressionError.JSON_PROPERTY_TYPE, + InvalidSqlExpressionError.JSON_PROPERTY_DETAIL, + InvalidSqlExpressionError.JSON_PROPERTY_INSTANCE +}) +@javax.annotation.Generated( + value = "org.openapitools.codegen.languages.JavaClientCodegen", + comments = "Generator version: 7.12.0") +public class InvalidSqlExpressionError { + public static final String JSON_PROPERTY_ERROR = "error"; + @javax.annotation.Nonnull private String error; + + /** HTTP status code */ + public enum CodeEnum { + NUMBER_400(Integer.valueOf(400)); + + private Integer value; + + CodeEnum(Integer value) { + this.value = value; + } + + @JsonValue + public Integer getValue() { + return value; + } + + @Override + public String toString() { + return String.valueOf(value); + } + + @JsonCreator + public static CodeEnum fromValue(Integer value) { + for (CodeEnum b : CodeEnum.values()) { + if (b.value.equals(value)) { + return b; + } + } + throw new IllegalArgumentException("Unexpected value '" + value + "'"); + } + } + + public static final String JSON_PROPERTY_CODE = "code"; + @javax.annotation.Nonnull private CodeEnum code; + + /** Error type identifier */ + public enum TypeEnum { + LANCE_NAMESPACE_602(String.valueOf("lance-namespace:602")); + + private String value; + + TypeEnum(String value) { + this.value = value; + } + + @JsonValue + public String getValue() { + return value; + } + + @Override + public String toString() { + return String.valueOf(value); + } + + @JsonCreator + public static TypeEnum fromValue(String value) { + for (TypeEnum b : TypeEnum.values()) { + if (b.value.equals(value)) { + return b; + } + } + throw new IllegalArgumentException("Unexpected value '" + value + "'"); + } + } + + public static final String JSON_PROPERTY_TYPE = "type"; + @javax.annotation.Nonnull private TypeEnum type; + + public static final String JSON_PROPERTY_DETAIL = "detail"; + @javax.annotation.Nullable private String detail; + + public static final String JSON_PROPERTY_INSTANCE = "instance"; + @javax.annotation.Nullable private String instance; + + public InvalidSqlExpressionError() {} + + public InvalidSqlExpressionError error(@javax.annotation.Nonnull String error) { + + this.error = error; + return this; + } + + /** + * Brief error message + * + * @return error + */ + @javax.annotation.Nonnull + @JsonProperty(JSON_PROPERTY_ERROR) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public String getError() { + return error; + } + + @JsonProperty(JSON_PROPERTY_ERROR) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public void setError(@javax.annotation.Nonnull String error) { + this.error = error; + } + + public InvalidSqlExpressionError code(@javax.annotation.Nonnull CodeEnum code) { + + this.code = code; + return this; + } + + /** + * HTTP status code + * + * @return code + */ + @javax.annotation.Nonnull + @JsonProperty(JSON_PROPERTY_CODE) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public CodeEnum getCode() { + return code; + } + + @JsonProperty(JSON_PROPERTY_CODE) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public void setCode(@javax.annotation.Nonnull CodeEnum code) { + this.code = code; + } + + public InvalidSqlExpressionError type(@javax.annotation.Nonnull TypeEnum type) { + + this.type = type; + return this; + } + + /** + * Error type identifier + * + * @return type + */ + @javax.annotation.Nonnull + @JsonProperty(JSON_PROPERTY_TYPE) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public TypeEnum getType() { + return type; + } + + @JsonProperty(JSON_PROPERTY_TYPE) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public void setType(@javax.annotation.Nonnull TypeEnum type) { + this.type = type; + } + + public InvalidSqlExpressionError detail(@javax.annotation.Nullable String detail) { + + this.detail = detail; + return this; + } + + /** + * Detailed error explanation + * + * @return detail + */ + @javax.annotation.Nullable + @JsonProperty(JSON_PROPERTY_DETAIL) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getDetail() { + return detail; + } + + @JsonProperty(JSON_PROPERTY_DETAIL) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setDetail(@javax.annotation.Nullable String detail) { + this.detail = detail; + } + + public InvalidSqlExpressionError instance(@javax.annotation.Nullable String instance) { + + this.instance = instance; + return this; + } + + /** + * Specific occurrence identifier + * + * @return instance + */ + @javax.annotation.Nullable + @JsonProperty(JSON_PROPERTY_INSTANCE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getInstance() { + return instance; + } + + @JsonProperty(JSON_PROPERTY_INSTANCE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setInstance(@javax.annotation.Nullable String instance) { + this.instance = instance; + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + InvalidSqlExpressionError invalidSqlExpressionError = (InvalidSqlExpressionError) o; + return Objects.equals(this.error, invalidSqlExpressionError.error) + && Objects.equals(this.code, invalidSqlExpressionError.code) + && Objects.equals(this.type, invalidSqlExpressionError.type) + && Objects.equals(this.detail, invalidSqlExpressionError.detail) + && Objects.equals(this.instance, invalidSqlExpressionError.instance); + } + + @Override + public int hashCode() { + return Objects.hash(error, code, type, detail, instance); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class InvalidSqlExpressionError {\n"); + sb.append(" error: ").append(toIndentedString(error)).append("\n"); + sb.append(" code: ").append(toIndentedString(code)).append("\n"); + sb.append(" type: ").append(toIndentedString(type)).append("\n"); + sb.append(" detail: ").append(toIndentedString(detail)).append("\n"); + sb.append(" instance: ").append(toIndentedString(instance)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + + /** + * Convert the instance into URL query string. + * + * @return URL query string + */ + public String toUrlQueryString() { + return toUrlQueryString(null); + } + + /** + * Convert the instance into URL query string. + * + * @param prefix prefix of the query string + * @return URL query string + */ + public String toUrlQueryString(String prefix) { + String suffix = ""; + String containerSuffix = ""; + String containerPrefix = ""; + if (prefix == null) { + // style=form, explode=true, e.g. /pet?name=cat&type=manx + prefix = ""; + } else { + // deepObject style e.g. /pet?id[name]=cat&id[type]=manx + prefix = prefix + "["; + suffix = "]"; + containerSuffix = "]"; + containerPrefix = "["; + } + + StringJoiner joiner = new StringJoiner("&"); + + // add `error` to the URL query string + if (getError() != null) { + try { + joiner.add( + String.format( + "%serror%s=%s", + prefix, + suffix, + URLEncoder.encode(String.valueOf(getError()), "UTF-8").replaceAll("\\+", "%20"))); + } catch (UnsupportedEncodingException e) { + // Should never happen, UTF-8 is always supported + throw new RuntimeException(e); + } + } + + // add `code` to the URL query string + if (getCode() != null) { + try { + joiner.add( + String.format( + "%scode%s=%s", + prefix, + suffix, + URLEncoder.encode(String.valueOf(getCode()), "UTF-8").replaceAll("\\+", "%20"))); + } catch (UnsupportedEncodingException e) { + // Should never happen, UTF-8 is always supported + throw new RuntimeException(e); + } + } + + // add `type` to the URL query string + if (getType() != null) { + try { + joiner.add( + String.format( + "%stype%s=%s", + prefix, + suffix, + URLEncoder.encode(String.valueOf(getType()), "UTF-8").replaceAll("\\+", "%20"))); + } catch (UnsupportedEncodingException e) { + // Should never happen, UTF-8 is always supported + throw new RuntimeException(e); + } + } + + // add `detail` to the URL query string + if (getDetail() != null) { + try { + joiner.add( + String.format( + "%sdetail%s=%s", + prefix, + suffix, + URLEncoder.encode(String.valueOf(getDetail()), "UTF-8").replaceAll("\\+", "%20"))); + } catch (UnsupportedEncodingException e) { + // Should never happen, UTF-8 is always supported + throw new RuntimeException(e); + } + } + + // add `instance` to the URL query string + if (getInstance() != null) { + try { + joiner.add( + String.format( + "%sinstance%s=%s", + prefix, + suffix, + URLEncoder.encode(String.valueOf(getInstance()), "UTF-8") + .replaceAll("\\+", "%20"))); + } catch (UnsupportedEncodingException e) { + // Should never happen, UTF-8 is always supported + throw new RuntimeException(e); + } + } + + return joiner.toString(); + } +} diff --git a/java/lance-namespace-apache-client/src/main/java/org/lance/namespace/model/InvalidTableIndexConfigurationError.java b/java/lance-namespace-apache-client/src/main/java/org/lance/namespace/model/InvalidTableIndexConfigurationError.java new file mode 100644 index 00000000..70e3e080 --- /dev/null +++ b/java/lance-namespace-apache-client/src/main/java/org/lance/namespace/model/InvalidTableIndexConfigurationError.java @@ -0,0 +1,393 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package org.lance.namespace.model; + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.annotation.JsonValue; + +import java.io.UnsupportedEncodingException; +import java.net.URLEncoder; +import java.util.Objects; +import java.util.StringJoiner; + +/** The provided index configuration is invalid */ +@JsonPropertyOrder({ + InvalidTableIndexConfigurationError.JSON_PROPERTY_ERROR, + InvalidTableIndexConfigurationError.JSON_PROPERTY_CODE, + InvalidTableIndexConfigurationError.JSON_PROPERTY_TYPE, + InvalidTableIndexConfigurationError.JSON_PROPERTY_DETAIL, + InvalidTableIndexConfigurationError.JSON_PROPERTY_INSTANCE +}) +@javax.annotation.Generated( + value = "org.openapitools.codegen.languages.JavaClientCodegen", + comments = "Generator version: 7.12.0") +public class InvalidTableIndexConfigurationError { + public static final String JSON_PROPERTY_ERROR = "error"; + @javax.annotation.Nonnull private String error; + + /** HTTP status code */ + public enum CodeEnum { + NUMBER_400(Integer.valueOf(400)); + + private Integer value; + + CodeEnum(Integer value) { + this.value = value; + } + + @JsonValue + public Integer getValue() { + return value; + } + + @Override + public String toString() { + return String.valueOf(value); + } + + @JsonCreator + public static CodeEnum fromValue(Integer value) { + for (CodeEnum b : CodeEnum.values()) { + if (b.value.equals(value)) { + return b; + } + } + throw new IllegalArgumentException("Unexpected value '" + value + "'"); + } + } + + public static final String JSON_PROPERTY_CODE = "code"; + @javax.annotation.Nonnull private CodeEnum code; + + /** Error type identifier */ + public enum TypeEnum { + LANCE_NAMESPACE_303(String.valueOf("lance-namespace:303")); + + private String value; + + TypeEnum(String value) { + this.value = value; + } + + @JsonValue + public String getValue() { + return value; + } + + @Override + public String toString() { + return String.valueOf(value); + } + + @JsonCreator + public static TypeEnum fromValue(String value) { + for (TypeEnum b : TypeEnum.values()) { + if (b.value.equals(value)) { + return b; + } + } + throw new IllegalArgumentException("Unexpected value '" + value + "'"); + } + } + + public static final String JSON_PROPERTY_TYPE = "type"; + @javax.annotation.Nonnull private TypeEnum type; + + public static final String JSON_PROPERTY_DETAIL = "detail"; + @javax.annotation.Nullable private String detail; + + public static final String JSON_PROPERTY_INSTANCE = "instance"; + @javax.annotation.Nullable private String instance; + + public InvalidTableIndexConfigurationError() {} + + public InvalidTableIndexConfigurationError error(@javax.annotation.Nonnull String error) { + + this.error = error; + return this; + } + + /** + * Brief error message + * + * @return error + */ + @javax.annotation.Nonnull + @JsonProperty(JSON_PROPERTY_ERROR) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public String getError() { + return error; + } + + @JsonProperty(JSON_PROPERTY_ERROR) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public void setError(@javax.annotation.Nonnull String error) { + this.error = error; + } + + public InvalidTableIndexConfigurationError code(@javax.annotation.Nonnull CodeEnum code) { + + this.code = code; + return this; + } + + /** + * HTTP status code + * + * @return code + */ + @javax.annotation.Nonnull + @JsonProperty(JSON_PROPERTY_CODE) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public CodeEnum getCode() { + return code; + } + + @JsonProperty(JSON_PROPERTY_CODE) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public void setCode(@javax.annotation.Nonnull CodeEnum code) { + this.code = code; + } + + public InvalidTableIndexConfigurationError type(@javax.annotation.Nonnull TypeEnum type) { + + this.type = type; + return this; + } + + /** + * Error type identifier + * + * @return type + */ + @javax.annotation.Nonnull + @JsonProperty(JSON_PROPERTY_TYPE) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public TypeEnum getType() { + return type; + } + + @JsonProperty(JSON_PROPERTY_TYPE) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public void setType(@javax.annotation.Nonnull TypeEnum type) { + this.type = type; + } + + public InvalidTableIndexConfigurationError detail(@javax.annotation.Nullable String detail) { + + this.detail = detail; + return this; + } + + /** + * Detailed error explanation + * + * @return detail + */ + @javax.annotation.Nullable + @JsonProperty(JSON_PROPERTY_DETAIL) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getDetail() { + return detail; + } + + @JsonProperty(JSON_PROPERTY_DETAIL) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setDetail(@javax.annotation.Nullable String detail) { + this.detail = detail; + } + + public InvalidTableIndexConfigurationError instance(@javax.annotation.Nullable String instance) { + + this.instance = instance; + return this; + } + + /** + * Specific occurrence identifier + * + * @return instance + */ + @javax.annotation.Nullable + @JsonProperty(JSON_PROPERTY_INSTANCE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getInstance() { + return instance; + } + + @JsonProperty(JSON_PROPERTY_INSTANCE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setInstance(@javax.annotation.Nullable String instance) { + this.instance = instance; + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + InvalidTableIndexConfigurationError invalidTableIndexConfigurationError = + (InvalidTableIndexConfigurationError) o; + return Objects.equals(this.error, invalidTableIndexConfigurationError.error) + && Objects.equals(this.code, invalidTableIndexConfigurationError.code) + && Objects.equals(this.type, invalidTableIndexConfigurationError.type) + && Objects.equals(this.detail, invalidTableIndexConfigurationError.detail) + && Objects.equals(this.instance, invalidTableIndexConfigurationError.instance); + } + + @Override + public int hashCode() { + return Objects.hash(error, code, type, detail, instance); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class InvalidTableIndexConfigurationError {\n"); + sb.append(" error: ").append(toIndentedString(error)).append("\n"); + sb.append(" code: ").append(toIndentedString(code)).append("\n"); + sb.append(" type: ").append(toIndentedString(type)).append("\n"); + sb.append(" detail: ").append(toIndentedString(detail)).append("\n"); + sb.append(" instance: ").append(toIndentedString(instance)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + + /** + * Convert the instance into URL query string. + * + * @return URL query string + */ + public String toUrlQueryString() { + return toUrlQueryString(null); + } + + /** + * Convert the instance into URL query string. + * + * @param prefix prefix of the query string + * @return URL query string + */ + public String toUrlQueryString(String prefix) { + String suffix = ""; + String containerSuffix = ""; + String containerPrefix = ""; + if (prefix == null) { + // style=form, explode=true, e.g. /pet?name=cat&type=manx + prefix = ""; + } else { + // deepObject style e.g. /pet?id[name]=cat&id[type]=manx + prefix = prefix + "["; + suffix = "]"; + containerSuffix = "]"; + containerPrefix = "["; + } + + StringJoiner joiner = new StringJoiner("&"); + + // add `error` to the URL query string + if (getError() != null) { + try { + joiner.add( + String.format( + "%serror%s=%s", + prefix, + suffix, + URLEncoder.encode(String.valueOf(getError()), "UTF-8").replaceAll("\\+", "%20"))); + } catch (UnsupportedEncodingException e) { + // Should never happen, UTF-8 is always supported + throw new RuntimeException(e); + } + } + + // add `code` to the URL query string + if (getCode() != null) { + try { + joiner.add( + String.format( + "%scode%s=%s", + prefix, + suffix, + URLEncoder.encode(String.valueOf(getCode()), "UTF-8").replaceAll("\\+", "%20"))); + } catch (UnsupportedEncodingException e) { + // Should never happen, UTF-8 is always supported + throw new RuntimeException(e); + } + } + + // add `type` to the URL query string + if (getType() != null) { + try { + joiner.add( + String.format( + "%stype%s=%s", + prefix, + suffix, + URLEncoder.encode(String.valueOf(getType()), "UTF-8").replaceAll("\\+", "%20"))); + } catch (UnsupportedEncodingException e) { + // Should never happen, UTF-8 is always supported + throw new RuntimeException(e); + } + } + + // add `detail` to the URL query string + if (getDetail() != null) { + try { + joiner.add( + String.format( + "%sdetail%s=%s", + prefix, + suffix, + URLEncoder.encode(String.valueOf(getDetail()), "UTF-8").replaceAll("\\+", "%20"))); + } catch (UnsupportedEncodingException e) { + // Should never happen, UTF-8 is always supported + throw new RuntimeException(e); + } + } + + // add `instance` to the URL query string + if (getInstance() != null) { + try { + joiner.add( + String.format( + "%sinstance%s=%s", + prefix, + suffix, + URLEncoder.encode(String.valueOf(getInstance()), "UTF-8") + .replaceAll("\\+", "%20"))); + } catch (UnsupportedEncodingException e) { + // Should never happen, UTF-8 is always supported + throw new RuntimeException(e); + } + } + + return joiner.toString(); + } +} diff --git a/java/lance-namespace-apache-client/src/main/java/org/lance/namespace/model/InvalidTableSchemaError.java b/java/lance-namespace-apache-client/src/main/java/org/lance/namespace/model/InvalidTableSchemaError.java new file mode 100644 index 00000000..18918228 --- /dev/null +++ b/java/lance-namespace-apache-client/src/main/java/org/lance/namespace/model/InvalidTableSchemaError.java @@ -0,0 +1,392 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package org.lance.namespace.model; + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.annotation.JsonValue; + +import java.io.UnsupportedEncodingException; +import java.net.URLEncoder; +import java.util.Objects; +import java.util.StringJoiner; + +/** The provided schema is invalid */ +@JsonPropertyOrder({ + InvalidTableSchemaError.JSON_PROPERTY_ERROR, + InvalidTableSchemaError.JSON_PROPERTY_CODE, + InvalidTableSchemaError.JSON_PROPERTY_TYPE, + InvalidTableSchemaError.JSON_PROPERTY_DETAIL, + InvalidTableSchemaError.JSON_PROPERTY_INSTANCE +}) +@javax.annotation.Generated( + value = "org.openapitools.codegen.languages.JavaClientCodegen", + comments = "Generator version: 7.12.0") +public class InvalidTableSchemaError { + public static final String JSON_PROPERTY_ERROR = "error"; + @javax.annotation.Nonnull private String error; + + /** HTTP status code */ + public enum CodeEnum { + NUMBER_400(Integer.valueOf(400)); + + private Integer value; + + CodeEnum(Integer value) { + this.value = value; + } + + @JsonValue + public Integer getValue() { + return value; + } + + @Override + public String toString() { + return String.valueOf(value); + } + + @JsonCreator + public static CodeEnum fromValue(Integer value) { + for (CodeEnum b : CodeEnum.values()) { + if (b.value.equals(value)) { + return b; + } + } + throw new IllegalArgumentException("Unexpected value '" + value + "'"); + } + } + + public static final String JSON_PROPERTY_CODE = "code"; + @javax.annotation.Nonnull private CodeEnum code; + + /** Error type identifier */ + public enum TypeEnum { + LANCE_NAMESPACE_205(String.valueOf("lance-namespace:205")); + + private String value; + + TypeEnum(String value) { + this.value = value; + } + + @JsonValue + public String getValue() { + return value; + } + + @Override + public String toString() { + return String.valueOf(value); + } + + @JsonCreator + public static TypeEnum fromValue(String value) { + for (TypeEnum b : TypeEnum.values()) { + if (b.value.equals(value)) { + return b; + } + } + throw new IllegalArgumentException("Unexpected value '" + value + "'"); + } + } + + public static final String JSON_PROPERTY_TYPE = "type"; + @javax.annotation.Nonnull private TypeEnum type; + + public static final String JSON_PROPERTY_DETAIL = "detail"; + @javax.annotation.Nullable private String detail; + + public static final String JSON_PROPERTY_INSTANCE = "instance"; + @javax.annotation.Nullable private String instance; + + public InvalidTableSchemaError() {} + + public InvalidTableSchemaError error(@javax.annotation.Nonnull String error) { + + this.error = error; + return this; + } + + /** + * Brief error message + * + * @return error + */ + @javax.annotation.Nonnull + @JsonProperty(JSON_PROPERTY_ERROR) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public String getError() { + return error; + } + + @JsonProperty(JSON_PROPERTY_ERROR) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public void setError(@javax.annotation.Nonnull String error) { + this.error = error; + } + + public InvalidTableSchemaError code(@javax.annotation.Nonnull CodeEnum code) { + + this.code = code; + return this; + } + + /** + * HTTP status code + * + * @return code + */ + @javax.annotation.Nonnull + @JsonProperty(JSON_PROPERTY_CODE) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public CodeEnum getCode() { + return code; + } + + @JsonProperty(JSON_PROPERTY_CODE) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public void setCode(@javax.annotation.Nonnull CodeEnum code) { + this.code = code; + } + + public InvalidTableSchemaError type(@javax.annotation.Nonnull TypeEnum type) { + + this.type = type; + return this; + } + + /** + * Error type identifier + * + * @return type + */ + @javax.annotation.Nonnull + @JsonProperty(JSON_PROPERTY_TYPE) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public TypeEnum getType() { + return type; + } + + @JsonProperty(JSON_PROPERTY_TYPE) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public void setType(@javax.annotation.Nonnull TypeEnum type) { + this.type = type; + } + + public InvalidTableSchemaError detail(@javax.annotation.Nullable String detail) { + + this.detail = detail; + return this; + } + + /** + * Detailed error explanation + * + * @return detail + */ + @javax.annotation.Nullable + @JsonProperty(JSON_PROPERTY_DETAIL) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getDetail() { + return detail; + } + + @JsonProperty(JSON_PROPERTY_DETAIL) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setDetail(@javax.annotation.Nullable String detail) { + this.detail = detail; + } + + public InvalidTableSchemaError instance(@javax.annotation.Nullable String instance) { + + this.instance = instance; + return this; + } + + /** + * Specific occurrence identifier + * + * @return instance + */ + @javax.annotation.Nullable + @JsonProperty(JSON_PROPERTY_INSTANCE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getInstance() { + return instance; + } + + @JsonProperty(JSON_PROPERTY_INSTANCE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setInstance(@javax.annotation.Nullable String instance) { + this.instance = instance; + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + InvalidTableSchemaError invalidTableSchemaError = (InvalidTableSchemaError) o; + return Objects.equals(this.error, invalidTableSchemaError.error) + && Objects.equals(this.code, invalidTableSchemaError.code) + && Objects.equals(this.type, invalidTableSchemaError.type) + && Objects.equals(this.detail, invalidTableSchemaError.detail) + && Objects.equals(this.instance, invalidTableSchemaError.instance); + } + + @Override + public int hashCode() { + return Objects.hash(error, code, type, detail, instance); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class InvalidTableSchemaError {\n"); + sb.append(" error: ").append(toIndentedString(error)).append("\n"); + sb.append(" code: ").append(toIndentedString(code)).append("\n"); + sb.append(" type: ").append(toIndentedString(type)).append("\n"); + sb.append(" detail: ").append(toIndentedString(detail)).append("\n"); + sb.append(" instance: ").append(toIndentedString(instance)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + + /** + * Convert the instance into URL query string. + * + * @return URL query string + */ + public String toUrlQueryString() { + return toUrlQueryString(null); + } + + /** + * Convert the instance into URL query string. + * + * @param prefix prefix of the query string + * @return URL query string + */ + public String toUrlQueryString(String prefix) { + String suffix = ""; + String containerSuffix = ""; + String containerPrefix = ""; + if (prefix == null) { + // style=form, explode=true, e.g. /pet?name=cat&type=manx + prefix = ""; + } else { + // deepObject style e.g. /pet?id[name]=cat&id[type]=manx + prefix = prefix + "["; + suffix = "]"; + containerSuffix = "]"; + containerPrefix = "["; + } + + StringJoiner joiner = new StringJoiner("&"); + + // add `error` to the URL query string + if (getError() != null) { + try { + joiner.add( + String.format( + "%serror%s=%s", + prefix, + suffix, + URLEncoder.encode(String.valueOf(getError()), "UTF-8").replaceAll("\\+", "%20"))); + } catch (UnsupportedEncodingException e) { + // Should never happen, UTF-8 is always supported + throw new RuntimeException(e); + } + } + + // add `code` to the URL query string + if (getCode() != null) { + try { + joiner.add( + String.format( + "%scode%s=%s", + prefix, + suffix, + URLEncoder.encode(String.valueOf(getCode()), "UTF-8").replaceAll("\\+", "%20"))); + } catch (UnsupportedEncodingException e) { + // Should never happen, UTF-8 is always supported + throw new RuntimeException(e); + } + } + + // add `type` to the URL query string + if (getType() != null) { + try { + joiner.add( + String.format( + "%stype%s=%s", + prefix, + suffix, + URLEncoder.encode(String.valueOf(getType()), "UTF-8").replaceAll("\\+", "%20"))); + } catch (UnsupportedEncodingException e) { + // Should never happen, UTF-8 is always supported + throw new RuntimeException(e); + } + } + + // add `detail` to the URL query string + if (getDetail() != null) { + try { + joiner.add( + String.format( + "%sdetail%s=%s", + prefix, + suffix, + URLEncoder.encode(String.valueOf(getDetail()), "UTF-8").replaceAll("\\+", "%20"))); + } catch (UnsupportedEncodingException e) { + // Should never happen, UTF-8 is always supported + throw new RuntimeException(e); + } + } + + // add `instance` to the URL query string + if (getInstance() != null) { + try { + joiner.add( + String.format( + "%sinstance%s=%s", + prefix, + suffix, + URLEncoder.encode(String.valueOf(getInstance()), "UTF-8") + .replaceAll("\\+", "%20"))); + } catch (UnsupportedEncodingException e) { + // Should never happen, UTF-8 is always supported + throw new RuntimeException(e); + } + } + + return joiner.toString(); + } +} diff --git a/java/lance-namespace-apache-client/src/main/java/org/lance/namespace/model/MergeInsertIntoTable400Response.java b/java/lance-namespace-apache-client/src/main/java/org/lance/namespace/model/MergeInsertIntoTable400Response.java new file mode 100644 index 00000000..530250dd --- /dev/null +++ b/java/lance-namespace-apache-client/src/main/java/org/lance/namespace/model/MergeInsertIntoTable400Response.java @@ -0,0 +1,399 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package org.lance.namespace.model; + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; + +import java.io.UnsupportedEncodingException; +import java.net.URLEncoder; +import java.util.Objects; +import java.util.StringJoiner; + +/** MergeInsertIntoTable400Response */ +@JsonPropertyOrder({ + MergeInsertIntoTable400Response.JSON_PROPERTY_ERROR, + MergeInsertIntoTable400Response.JSON_PROPERTY_CODE, + MergeInsertIntoTable400Response.JSON_PROPERTY_TYPE, + MergeInsertIntoTable400Response.JSON_PROPERTY_DETAIL, + MergeInsertIntoTable400Response.JSON_PROPERTY_INSTANCE +}) +@JsonTypeName("MergeInsertIntoTable_400_response") +@javax.annotation.Generated( + value = "org.openapitools.codegen.languages.JavaClientCodegen", + comments = "Generator version: 7.12.0") +public class MergeInsertIntoTable400Response { + public static final String JSON_PROPERTY_ERROR = "error"; + @javax.annotation.Nonnull private String error; + + /** HTTP status code */ + public enum CodeEnum { + NUMBER_400(Integer.valueOf(400)); + + private Integer value; + + CodeEnum(Integer value) { + this.value = value; + } + + @JsonValue + public Integer getValue() { + return value; + } + + @Override + public String toString() { + return String.valueOf(value); + } + + @JsonCreator + public static CodeEnum fromValue(Integer value) { + for (CodeEnum b : CodeEnum.values()) { + if (b.value.equals(value)) { + return b; + } + } + throw new IllegalArgumentException("Unexpected value '" + value + "'"); + } + } + + public static final String JSON_PROPERTY_CODE = "code"; + @javax.annotation.Nonnull private CodeEnum code; + + /** Error type identifier */ + public enum TypeEnum { + LANCE_NAMESPACE_601(String.valueOf("lance-namespace:601")), + + LANCE_NAMESPACE_204(String.valueOf("lance-namespace:204")), + + LANCE_NAMESPACE_206(String.valueOf("lance-namespace:206")); + + private String value; + + TypeEnum(String value) { + this.value = value; + } + + @JsonValue + public String getValue() { + return value; + } + + @Override + public String toString() { + return String.valueOf(value); + } + + @JsonCreator + public static TypeEnum fromValue(String value) { + for (TypeEnum b : TypeEnum.values()) { + if (b.value.equals(value)) { + return b; + } + } + throw new IllegalArgumentException("Unexpected value '" + value + "'"); + } + } + + public static final String JSON_PROPERTY_TYPE = "type"; + @javax.annotation.Nonnull private TypeEnum type; + + public static final String JSON_PROPERTY_DETAIL = "detail"; + @javax.annotation.Nullable private String detail; + + public static final String JSON_PROPERTY_INSTANCE = "instance"; + @javax.annotation.Nullable private String instance; + + public MergeInsertIntoTable400Response() {} + + public MergeInsertIntoTable400Response error(@javax.annotation.Nonnull String error) { + + this.error = error; + return this; + } + + /** + * Brief error message + * + * @return error + */ + @javax.annotation.Nonnull + @JsonProperty(JSON_PROPERTY_ERROR) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public String getError() { + return error; + } + + @JsonProperty(JSON_PROPERTY_ERROR) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public void setError(@javax.annotation.Nonnull String error) { + this.error = error; + } + + public MergeInsertIntoTable400Response code(@javax.annotation.Nonnull CodeEnum code) { + + this.code = code; + return this; + } + + /** + * HTTP status code + * + * @return code + */ + @javax.annotation.Nonnull + @JsonProperty(JSON_PROPERTY_CODE) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public CodeEnum getCode() { + return code; + } + + @JsonProperty(JSON_PROPERTY_CODE) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public void setCode(@javax.annotation.Nonnull CodeEnum code) { + this.code = code; + } + + public MergeInsertIntoTable400Response type(@javax.annotation.Nonnull TypeEnum type) { + + this.type = type; + return this; + } + + /** + * Error type identifier + * + * @return type + */ + @javax.annotation.Nonnull + @JsonProperty(JSON_PROPERTY_TYPE) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public TypeEnum getType() { + return type; + } + + @JsonProperty(JSON_PROPERTY_TYPE) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public void setType(@javax.annotation.Nonnull TypeEnum type) { + this.type = type; + } + + public MergeInsertIntoTable400Response detail(@javax.annotation.Nullable String detail) { + + this.detail = detail; + return this; + } + + /** + * Detailed error explanation + * + * @return detail + */ + @javax.annotation.Nullable + @JsonProperty(JSON_PROPERTY_DETAIL) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getDetail() { + return detail; + } + + @JsonProperty(JSON_PROPERTY_DETAIL) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setDetail(@javax.annotation.Nullable String detail) { + this.detail = detail; + } + + public MergeInsertIntoTable400Response instance(@javax.annotation.Nullable String instance) { + + this.instance = instance; + return this; + } + + /** + * Specific occurrence identifier + * + * @return instance + */ + @javax.annotation.Nullable + @JsonProperty(JSON_PROPERTY_INSTANCE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getInstance() { + return instance; + } + + @JsonProperty(JSON_PROPERTY_INSTANCE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setInstance(@javax.annotation.Nullable String instance) { + this.instance = instance; + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + MergeInsertIntoTable400Response mergeInsertIntoTable400Response = + (MergeInsertIntoTable400Response) o; + return Objects.equals(this.error, mergeInsertIntoTable400Response.error) + && Objects.equals(this.code, mergeInsertIntoTable400Response.code) + && Objects.equals(this.type, mergeInsertIntoTable400Response.type) + && Objects.equals(this.detail, mergeInsertIntoTable400Response.detail) + && Objects.equals(this.instance, mergeInsertIntoTable400Response.instance); + } + + @Override + public int hashCode() { + return Objects.hash(error, code, type, detail, instance); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class MergeInsertIntoTable400Response {\n"); + sb.append(" error: ").append(toIndentedString(error)).append("\n"); + sb.append(" code: ").append(toIndentedString(code)).append("\n"); + sb.append(" type: ").append(toIndentedString(type)).append("\n"); + sb.append(" detail: ").append(toIndentedString(detail)).append("\n"); + sb.append(" instance: ").append(toIndentedString(instance)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + + /** + * Convert the instance into URL query string. + * + * @return URL query string + */ + public String toUrlQueryString() { + return toUrlQueryString(null); + } + + /** + * Convert the instance into URL query string. + * + * @param prefix prefix of the query string + * @return URL query string + */ + public String toUrlQueryString(String prefix) { + String suffix = ""; + String containerSuffix = ""; + String containerPrefix = ""; + if (prefix == null) { + // style=form, explode=true, e.g. /pet?name=cat&type=manx + prefix = ""; + } else { + // deepObject style e.g. /pet?id[name]=cat&id[type]=manx + prefix = prefix + "["; + suffix = "]"; + containerSuffix = "]"; + containerPrefix = "["; + } + + StringJoiner joiner = new StringJoiner("&"); + + // add `error` to the URL query string + if (getError() != null) { + try { + joiner.add( + String.format( + "%serror%s=%s", + prefix, + suffix, + URLEncoder.encode(String.valueOf(getError()), "UTF-8").replaceAll("\\+", "%20"))); + } catch (UnsupportedEncodingException e) { + // Should never happen, UTF-8 is always supported + throw new RuntimeException(e); + } + } + + // add `code` to the URL query string + if (getCode() != null) { + try { + joiner.add( + String.format( + "%scode%s=%s", + prefix, + suffix, + URLEncoder.encode(String.valueOf(getCode()), "UTF-8").replaceAll("\\+", "%20"))); + } catch (UnsupportedEncodingException e) { + // Should never happen, UTF-8 is always supported + throw new RuntimeException(e); + } + } + + // add `type` to the URL query string + if (getType() != null) { + try { + joiner.add( + String.format( + "%stype%s=%s", + prefix, + suffix, + URLEncoder.encode(String.valueOf(getType()), "UTF-8").replaceAll("\\+", "%20"))); + } catch (UnsupportedEncodingException e) { + // Should never happen, UTF-8 is always supported + throw new RuntimeException(e); + } + } + + // add `detail` to the URL query string + if (getDetail() != null) { + try { + joiner.add( + String.format( + "%sdetail%s=%s", + prefix, + suffix, + URLEncoder.encode(String.valueOf(getDetail()), "UTF-8").replaceAll("\\+", "%20"))); + } catch (UnsupportedEncodingException e) { + // Should never happen, UTF-8 is always supported + throw new RuntimeException(e); + } + } + + // add `instance` to the URL query string + if (getInstance() != null) { + try { + joiner.add( + String.format( + "%sinstance%s=%s", + prefix, + suffix, + URLEncoder.encode(String.valueOf(getInstance()), "UTF-8") + .replaceAll("\\+", "%20"))); + } catch (UnsupportedEncodingException e) { + // Should never happen, UTF-8 is always supported + throw new RuntimeException(e); + } + } + + return joiner.toString(); + } +} diff --git a/java/lance-namespace-apache-client/src/main/java/org/lance/namespace/model/NamespaceAlreadyExistsError.java b/java/lance-namespace-apache-client/src/main/java/org/lance/namespace/model/NamespaceAlreadyExistsError.java new file mode 100644 index 00000000..17e244d9 --- /dev/null +++ b/java/lance-namespace-apache-client/src/main/java/org/lance/namespace/model/NamespaceAlreadyExistsError.java @@ -0,0 +1,392 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package org.lance.namespace.model; + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.annotation.JsonValue; + +import java.io.UnsupportedEncodingException; +import java.net.URLEncoder; +import java.util.Objects; +import java.util.StringJoiner; + +/** A namespace with the same name already exists */ +@JsonPropertyOrder({ + NamespaceAlreadyExistsError.JSON_PROPERTY_ERROR, + NamespaceAlreadyExistsError.JSON_PROPERTY_CODE, + NamespaceAlreadyExistsError.JSON_PROPERTY_TYPE, + NamespaceAlreadyExistsError.JSON_PROPERTY_DETAIL, + NamespaceAlreadyExistsError.JSON_PROPERTY_INSTANCE +}) +@javax.annotation.Generated( + value = "org.openapitools.codegen.languages.JavaClientCodegen", + comments = "Generator version: 7.12.0") +public class NamespaceAlreadyExistsError { + public static final String JSON_PROPERTY_ERROR = "error"; + @javax.annotation.Nonnull private String error; + + /** HTTP status code */ + public enum CodeEnum { + NUMBER_409(Integer.valueOf(409)); + + private Integer value; + + CodeEnum(Integer value) { + this.value = value; + } + + @JsonValue + public Integer getValue() { + return value; + } + + @Override + public String toString() { + return String.valueOf(value); + } + + @JsonCreator + public static CodeEnum fromValue(Integer value) { + for (CodeEnum b : CodeEnum.values()) { + if (b.value.equals(value)) { + return b; + } + } + throw new IllegalArgumentException("Unexpected value '" + value + "'"); + } + } + + public static final String JSON_PROPERTY_CODE = "code"; + @javax.annotation.Nonnull private CodeEnum code; + + /** Error type identifier */ + public enum TypeEnum { + LANCE_NAMESPACE_102(String.valueOf("lance-namespace:102")); + + private String value; + + TypeEnum(String value) { + this.value = value; + } + + @JsonValue + public String getValue() { + return value; + } + + @Override + public String toString() { + return String.valueOf(value); + } + + @JsonCreator + public static TypeEnum fromValue(String value) { + for (TypeEnum b : TypeEnum.values()) { + if (b.value.equals(value)) { + return b; + } + } + throw new IllegalArgumentException("Unexpected value '" + value + "'"); + } + } + + public static final String JSON_PROPERTY_TYPE = "type"; + @javax.annotation.Nonnull private TypeEnum type; + + public static final String JSON_PROPERTY_DETAIL = "detail"; + @javax.annotation.Nullable private String detail; + + public static final String JSON_PROPERTY_INSTANCE = "instance"; + @javax.annotation.Nullable private String instance; + + public NamespaceAlreadyExistsError() {} + + public NamespaceAlreadyExistsError error(@javax.annotation.Nonnull String error) { + + this.error = error; + return this; + } + + /** + * Brief error message + * + * @return error + */ + @javax.annotation.Nonnull + @JsonProperty(JSON_PROPERTY_ERROR) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public String getError() { + return error; + } + + @JsonProperty(JSON_PROPERTY_ERROR) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public void setError(@javax.annotation.Nonnull String error) { + this.error = error; + } + + public NamespaceAlreadyExistsError code(@javax.annotation.Nonnull CodeEnum code) { + + this.code = code; + return this; + } + + /** + * HTTP status code + * + * @return code + */ + @javax.annotation.Nonnull + @JsonProperty(JSON_PROPERTY_CODE) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public CodeEnum getCode() { + return code; + } + + @JsonProperty(JSON_PROPERTY_CODE) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public void setCode(@javax.annotation.Nonnull CodeEnum code) { + this.code = code; + } + + public NamespaceAlreadyExistsError type(@javax.annotation.Nonnull TypeEnum type) { + + this.type = type; + return this; + } + + /** + * Error type identifier + * + * @return type + */ + @javax.annotation.Nonnull + @JsonProperty(JSON_PROPERTY_TYPE) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public TypeEnum getType() { + return type; + } + + @JsonProperty(JSON_PROPERTY_TYPE) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public void setType(@javax.annotation.Nonnull TypeEnum type) { + this.type = type; + } + + public NamespaceAlreadyExistsError detail(@javax.annotation.Nullable String detail) { + + this.detail = detail; + return this; + } + + /** + * Detailed error explanation + * + * @return detail + */ + @javax.annotation.Nullable + @JsonProperty(JSON_PROPERTY_DETAIL) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getDetail() { + return detail; + } + + @JsonProperty(JSON_PROPERTY_DETAIL) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setDetail(@javax.annotation.Nullable String detail) { + this.detail = detail; + } + + public NamespaceAlreadyExistsError instance(@javax.annotation.Nullable String instance) { + + this.instance = instance; + return this; + } + + /** + * Specific occurrence identifier + * + * @return instance + */ + @javax.annotation.Nullable + @JsonProperty(JSON_PROPERTY_INSTANCE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getInstance() { + return instance; + } + + @JsonProperty(JSON_PROPERTY_INSTANCE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setInstance(@javax.annotation.Nullable String instance) { + this.instance = instance; + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + NamespaceAlreadyExistsError namespaceAlreadyExistsError = (NamespaceAlreadyExistsError) o; + return Objects.equals(this.error, namespaceAlreadyExistsError.error) + && Objects.equals(this.code, namespaceAlreadyExistsError.code) + && Objects.equals(this.type, namespaceAlreadyExistsError.type) + && Objects.equals(this.detail, namespaceAlreadyExistsError.detail) + && Objects.equals(this.instance, namespaceAlreadyExistsError.instance); + } + + @Override + public int hashCode() { + return Objects.hash(error, code, type, detail, instance); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class NamespaceAlreadyExistsError {\n"); + sb.append(" error: ").append(toIndentedString(error)).append("\n"); + sb.append(" code: ").append(toIndentedString(code)).append("\n"); + sb.append(" type: ").append(toIndentedString(type)).append("\n"); + sb.append(" detail: ").append(toIndentedString(detail)).append("\n"); + sb.append(" instance: ").append(toIndentedString(instance)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + + /** + * Convert the instance into URL query string. + * + * @return URL query string + */ + public String toUrlQueryString() { + return toUrlQueryString(null); + } + + /** + * Convert the instance into URL query string. + * + * @param prefix prefix of the query string + * @return URL query string + */ + public String toUrlQueryString(String prefix) { + String suffix = ""; + String containerSuffix = ""; + String containerPrefix = ""; + if (prefix == null) { + // style=form, explode=true, e.g. /pet?name=cat&type=manx + prefix = ""; + } else { + // deepObject style e.g. /pet?id[name]=cat&id[type]=manx + prefix = prefix + "["; + suffix = "]"; + containerSuffix = "]"; + containerPrefix = "["; + } + + StringJoiner joiner = new StringJoiner("&"); + + // add `error` to the URL query string + if (getError() != null) { + try { + joiner.add( + String.format( + "%serror%s=%s", + prefix, + suffix, + URLEncoder.encode(String.valueOf(getError()), "UTF-8").replaceAll("\\+", "%20"))); + } catch (UnsupportedEncodingException e) { + // Should never happen, UTF-8 is always supported + throw new RuntimeException(e); + } + } + + // add `code` to the URL query string + if (getCode() != null) { + try { + joiner.add( + String.format( + "%scode%s=%s", + prefix, + suffix, + URLEncoder.encode(String.valueOf(getCode()), "UTF-8").replaceAll("\\+", "%20"))); + } catch (UnsupportedEncodingException e) { + // Should never happen, UTF-8 is always supported + throw new RuntimeException(e); + } + } + + // add `type` to the URL query string + if (getType() != null) { + try { + joiner.add( + String.format( + "%stype%s=%s", + prefix, + suffix, + URLEncoder.encode(String.valueOf(getType()), "UTF-8").replaceAll("\\+", "%20"))); + } catch (UnsupportedEncodingException e) { + // Should never happen, UTF-8 is always supported + throw new RuntimeException(e); + } + } + + // add `detail` to the URL query string + if (getDetail() != null) { + try { + joiner.add( + String.format( + "%sdetail%s=%s", + prefix, + suffix, + URLEncoder.encode(String.valueOf(getDetail()), "UTF-8").replaceAll("\\+", "%20"))); + } catch (UnsupportedEncodingException e) { + // Should never happen, UTF-8 is always supported + throw new RuntimeException(e); + } + } + + // add `instance` to the URL query string + if (getInstance() != null) { + try { + joiner.add( + String.format( + "%sinstance%s=%s", + prefix, + suffix, + URLEncoder.encode(String.valueOf(getInstance()), "UTF-8") + .replaceAll("\\+", "%20"))); + } catch (UnsupportedEncodingException e) { + // Should never happen, UTF-8 is always supported + throw new RuntimeException(e); + } + } + + return joiner.toString(); + } +} diff --git a/java/lance-namespace-apache-client/src/main/java/org/lance/namespace/model/NamespaceNotEmptyError.java b/java/lance-namespace-apache-client/src/main/java/org/lance/namespace/model/NamespaceNotEmptyError.java new file mode 100644 index 00000000..29537a58 --- /dev/null +++ b/java/lance-namespace-apache-client/src/main/java/org/lance/namespace/model/NamespaceNotEmptyError.java @@ -0,0 +1,392 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package org.lance.namespace.model; + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.annotation.JsonValue; + +import java.io.UnsupportedEncodingException; +import java.net.URLEncoder; +import java.util.Objects; +import java.util.StringJoiner; + +/** Cannot drop namespace because it contains tables or child namespaces */ +@JsonPropertyOrder({ + NamespaceNotEmptyError.JSON_PROPERTY_ERROR, + NamespaceNotEmptyError.JSON_PROPERTY_CODE, + NamespaceNotEmptyError.JSON_PROPERTY_TYPE, + NamespaceNotEmptyError.JSON_PROPERTY_DETAIL, + NamespaceNotEmptyError.JSON_PROPERTY_INSTANCE +}) +@javax.annotation.Generated( + value = "org.openapitools.codegen.languages.JavaClientCodegen", + comments = "Generator version: 7.12.0") +public class NamespaceNotEmptyError { + public static final String JSON_PROPERTY_ERROR = "error"; + @javax.annotation.Nonnull private String error; + + /** HTTP status code */ + public enum CodeEnum { + NUMBER_409(Integer.valueOf(409)); + + private Integer value; + + CodeEnum(Integer value) { + this.value = value; + } + + @JsonValue + public Integer getValue() { + return value; + } + + @Override + public String toString() { + return String.valueOf(value); + } + + @JsonCreator + public static CodeEnum fromValue(Integer value) { + for (CodeEnum b : CodeEnum.values()) { + if (b.value.equals(value)) { + return b; + } + } + throw new IllegalArgumentException("Unexpected value '" + value + "'"); + } + } + + public static final String JSON_PROPERTY_CODE = "code"; + @javax.annotation.Nonnull private CodeEnum code; + + /** Error type identifier */ + public enum TypeEnum { + LANCE_NAMESPACE_104(String.valueOf("lance-namespace:104")); + + private String value; + + TypeEnum(String value) { + this.value = value; + } + + @JsonValue + public String getValue() { + return value; + } + + @Override + public String toString() { + return String.valueOf(value); + } + + @JsonCreator + public static TypeEnum fromValue(String value) { + for (TypeEnum b : TypeEnum.values()) { + if (b.value.equals(value)) { + return b; + } + } + throw new IllegalArgumentException("Unexpected value '" + value + "'"); + } + } + + public static final String JSON_PROPERTY_TYPE = "type"; + @javax.annotation.Nonnull private TypeEnum type; + + public static final String JSON_PROPERTY_DETAIL = "detail"; + @javax.annotation.Nullable private String detail; + + public static final String JSON_PROPERTY_INSTANCE = "instance"; + @javax.annotation.Nullable private String instance; + + public NamespaceNotEmptyError() {} + + public NamespaceNotEmptyError error(@javax.annotation.Nonnull String error) { + + this.error = error; + return this; + } + + /** + * Brief error message + * + * @return error + */ + @javax.annotation.Nonnull + @JsonProperty(JSON_PROPERTY_ERROR) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public String getError() { + return error; + } + + @JsonProperty(JSON_PROPERTY_ERROR) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public void setError(@javax.annotation.Nonnull String error) { + this.error = error; + } + + public NamespaceNotEmptyError code(@javax.annotation.Nonnull CodeEnum code) { + + this.code = code; + return this; + } + + /** + * HTTP status code + * + * @return code + */ + @javax.annotation.Nonnull + @JsonProperty(JSON_PROPERTY_CODE) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public CodeEnum getCode() { + return code; + } + + @JsonProperty(JSON_PROPERTY_CODE) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public void setCode(@javax.annotation.Nonnull CodeEnum code) { + this.code = code; + } + + public NamespaceNotEmptyError type(@javax.annotation.Nonnull TypeEnum type) { + + this.type = type; + return this; + } + + /** + * Error type identifier + * + * @return type + */ + @javax.annotation.Nonnull + @JsonProperty(JSON_PROPERTY_TYPE) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public TypeEnum getType() { + return type; + } + + @JsonProperty(JSON_PROPERTY_TYPE) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public void setType(@javax.annotation.Nonnull TypeEnum type) { + this.type = type; + } + + public NamespaceNotEmptyError detail(@javax.annotation.Nullable String detail) { + + this.detail = detail; + return this; + } + + /** + * Detailed error explanation + * + * @return detail + */ + @javax.annotation.Nullable + @JsonProperty(JSON_PROPERTY_DETAIL) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getDetail() { + return detail; + } + + @JsonProperty(JSON_PROPERTY_DETAIL) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setDetail(@javax.annotation.Nullable String detail) { + this.detail = detail; + } + + public NamespaceNotEmptyError instance(@javax.annotation.Nullable String instance) { + + this.instance = instance; + return this; + } + + /** + * Specific occurrence identifier + * + * @return instance + */ + @javax.annotation.Nullable + @JsonProperty(JSON_PROPERTY_INSTANCE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getInstance() { + return instance; + } + + @JsonProperty(JSON_PROPERTY_INSTANCE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setInstance(@javax.annotation.Nullable String instance) { + this.instance = instance; + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + NamespaceNotEmptyError namespaceNotEmptyError = (NamespaceNotEmptyError) o; + return Objects.equals(this.error, namespaceNotEmptyError.error) + && Objects.equals(this.code, namespaceNotEmptyError.code) + && Objects.equals(this.type, namespaceNotEmptyError.type) + && Objects.equals(this.detail, namespaceNotEmptyError.detail) + && Objects.equals(this.instance, namespaceNotEmptyError.instance); + } + + @Override + public int hashCode() { + return Objects.hash(error, code, type, detail, instance); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class NamespaceNotEmptyError {\n"); + sb.append(" error: ").append(toIndentedString(error)).append("\n"); + sb.append(" code: ").append(toIndentedString(code)).append("\n"); + sb.append(" type: ").append(toIndentedString(type)).append("\n"); + sb.append(" detail: ").append(toIndentedString(detail)).append("\n"); + sb.append(" instance: ").append(toIndentedString(instance)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + + /** + * Convert the instance into URL query string. + * + * @return URL query string + */ + public String toUrlQueryString() { + return toUrlQueryString(null); + } + + /** + * Convert the instance into URL query string. + * + * @param prefix prefix of the query string + * @return URL query string + */ + public String toUrlQueryString(String prefix) { + String suffix = ""; + String containerSuffix = ""; + String containerPrefix = ""; + if (prefix == null) { + // style=form, explode=true, e.g. /pet?name=cat&type=manx + prefix = ""; + } else { + // deepObject style e.g. /pet?id[name]=cat&id[type]=manx + prefix = prefix + "["; + suffix = "]"; + containerSuffix = "]"; + containerPrefix = "["; + } + + StringJoiner joiner = new StringJoiner("&"); + + // add `error` to the URL query string + if (getError() != null) { + try { + joiner.add( + String.format( + "%serror%s=%s", + prefix, + suffix, + URLEncoder.encode(String.valueOf(getError()), "UTF-8").replaceAll("\\+", "%20"))); + } catch (UnsupportedEncodingException e) { + // Should never happen, UTF-8 is always supported + throw new RuntimeException(e); + } + } + + // add `code` to the URL query string + if (getCode() != null) { + try { + joiner.add( + String.format( + "%scode%s=%s", + prefix, + suffix, + URLEncoder.encode(String.valueOf(getCode()), "UTF-8").replaceAll("\\+", "%20"))); + } catch (UnsupportedEncodingException e) { + // Should never happen, UTF-8 is always supported + throw new RuntimeException(e); + } + } + + // add `type` to the URL query string + if (getType() != null) { + try { + joiner.add( + String.format( + "%stype%s=%s", + prefix, + suffix, + URLEncoder.encode(String.valueOf(getType()), "UTF-8").replaceAll("\\+", "%20"))); + } catch (UnsupportedEncodingException e) { + // Should never happen, UTF-8 is always supported + throw new RuntimeException(e); + } + } + + // add `detail` to the URL query string + if (getDetail() != null) { + try { + joiner.add( + String.format( + "%sdetail%s=%s", + prefix, + suffix, + URLEncoder.encode(String.valueOf(getDetail()), "UTF-8").replaceAll("\\+", "%20"))); + } catch (UnsupportedEncodingException e) { + // Should never happen, UTF-8 is always supported + throw new RuntimeException(e); + } + } + + // add `instance` to the URL query string + if (getInstance() != null) { + try { + joiner.add( + String.format( + "%sinstance%s=%s", + prefix, + suffix, + URLEncoder.encode(String.valueOf(getInstance()), "UTF-8") + .replaceAll("\\+", "%20"))); + } catch (UnsupportedEncodingException e) { + // Should never happen, UTF-8 is always supported + throw new RuntimeException(e); + } + } + + return joiner.toString(); + } +} diff --git a/java/lance-namespace-apache-client/src/main/java/org/lance/namespace/model/NamespaceNotFoundError.java b/java/lance-namespace-apache-client/src/main/java/org/lance/namespace/model/NamespaceNotFoundError.java new file mode 100644 index 00000000..e0d3fc77 --- /dev/null +++ b/java/lance-namespace-apache-client/src/main/java/org/lance/namespace/model/NamespaceNotFoundError.java @@ -0,0 +1,392 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package org.lance.namespace.model; + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.annotation.JsonValue; + +import java.io.UnsupportedEncodingException; +import java.net.URLEncoder; +import java.util.Objects; +import java.util.StringJoiner; + +/** The requested namespace does not exist */ +@JsonPropertyOrder({ + NamespaceNotFoundError.JSON_PROPERTY_ERROR, + NamespaceNotFoundError.JSON_PROPERTY_CODE, + NamespaceNotFoundError.JSON_PROPERTY_TYPE, + NamespaceNotFoundError.JSON_PROPERTY_DETAIL, + NamespaceNotFoundError.JSON_PROPERTY_INSTANCE +}) +@javax.annotation.Generated( + value = "org.openapitools.codegen.languages.JavaClientCodegen", + comments = "Generator version: 7.12.0") +public class NamespaceNotFoundError { + public static final String JSON_PROPERTY_ERROR = "error"; + @javax.annotation.Nonnull private String error; + + /** HTTP status code */ + public enum CodeEnum { + NUMBER_404(Integer.valueOf(404)); + + private Integer value; + + CodeEnum(Integer value) { + this.value = value; + } + + @JsonValue + public Integer getValue() { + return value; + } + + @Override + public String toString() { + return String.valueOf(value); + } + + @JsonCreator + public static CodeEnum fromValue(Integer value) { + for (CodeEnum b : CodeEnum.values()) { + if (b.value.equals(value)) { + return b; + } + } + throw new IllegalArgumentException("Unexpected value '" + value + "'"); + } + } + + public static final String JSON_PROPERTY_CODE = "code"; + @javax.annotation.Nonnull private CodeEnum code; + + /** Error type identifier */ + public enum TypeEnum { + LANCE_NAMESPACE_101(String.valueOf("lance-namespace:101")); + + private String value; + + TypeEnum(String value) { + this.value = value; + } + + @JsonValue + public String getValue() { + return value; + } + + @Override + public String toString() { + return String.valueOf(value); + } + + @JsonCreator + public static TypeEnum fromValue(String value) { + for (TypeEnum b : TypeEnum.values()) { + if (b.value.equals(value)) { + return b; + } + } + throw new IllegalArgumentException("Unexpected value '" + value + "'"); + } + } + + public static final String JSON_PROPERTY_TYPE = "type"; + @javax.annotation.Nonnull private TypeEnum type; + + public static final String JSON_PROPERTY_DETAIL = "detail"; + @javax.annotation.Nullable private String detail; + + public static final String JSON_PROPERTY_INSTANCE = "instance"; + @javax.annotation.Nullable private String instance; + + public NamespaceNotFoundError() {} + + public NamespaceNotFoundError error(@javax.annotation.Nonnull String error) { + + this.error = error; + return this; + } + + /** + * Brief error message + * + * @return error + */ + @javax.annotation.Nonnull + @JsonProperty(JSON_PROPERTY_ERROR) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public String getError() { + return error; + } + + @JsonProperty(JSON_PROPERTY_ERROR) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public void setError(@javax.annotation.Nonnull String error) { + this.error = error; + } + + public NamespaceNotFoundError code(@javax.annotation.Nonnull CodeEnum code) { + + this.code = code; + return this; + } + + /** + * HTTP status code + * + * @return code + */ + @javax.annotation.Nonnull + @JsonProperty(JSON_PROPERTY_CODE) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public CodeEnum getCode() { + return code; + } + + @JsonProperty(JSON_PROPERTY_CODE) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public void setCode(@javax.annotation.Nonnull CodeEnum code) { + this.code = code; + } + + public NamespaceNotFoundError type(@javax.annotation.Nonnull TypeEnum type) { + + this.type = type; + return this; + } + + /** + * Error type identifier + * + * @return type + */ + @javax.annotation.Nonnull + @JsonProperty(JSON_PROPERTY_TYPE) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public TypeEnum getType() { + return type; + } + + @JsonProperty(JSON_PROPERTY_TYPE) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public void setType(@javax.annotation.Nonnull TypeEnum type) { + this.type = type; + } + + public NamespaceNotFoundError detail(@javax.annotation.Nullable String detail) { + + this.detail = detail; + return this; + } + + /** + * Detailed error explanation + * + * @return detail + */ + @javax.annotation.Nullable + @JsonProperty(JSON_PROPERTY_DETAIL) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getDetail() { + return detail; + } + + @JsonProperty(JSON_PROPERTY_DETAIL) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setDetail(@javax.annotation.Nullable String detail) { + this.detail = detail; + } + + public NamespaceNotFoundError instance(@javax.annotation.Nullable String instance) { + + this.instance = instance; + return this; + } + + /** + * Specific occurrence identifier + * + * @return instance + */ + @javax.annotation.Nullable + @JsonProperty(JSON_PROPERTY_INSTANCE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getInstance() { + return instance; + } + + @JsonProperty(JSON_PROPERTY_INSTANCE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setInstance(@javax.annotation.Nullable String instance) { + this.instance = instance; + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + NamespaceNotFoundError namespaceNotFoundError = (NamespaceNotFoundError) o; + return Objects.equals(this.error, namespaceNotFoundError.error) + && Objects.equals(this.code, namespaceNotFoundError.code) + && Objects.equals(this.type, namespaceNotFoundError.type) + && Objects.equals(this.detail, namespaceNotFoundError.detail) + && Objects.equals(this.instance, namespaceNotFoundError.instance); + } + + @Override + public int hashCode() { + return Objects.hash(error, code, type, detail, instance); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class NamespaceNotFoundError {\n"); + sb.append(" error: ").append(toIndentedString(error)).append("\n"); + sb.append(" code: ").append(toIndentedString(code)).append("\n"); + sb.append(" type: ").append(toIndentedString(type)).append("\n"); + sb.append(" detail: ").append(toIndentedString(detail)).append("\n"); + sb.append(" instance: ").append(toIndentedString(instance)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + + /** + * Convert the instance into URL query string. + * + * @return URL query string + */ + public String toUrlQueryString() { + return toUrlQueryString(null); + } + + /** + * Convert the instance into URL query string. + * + * @param prefix prefix of the query string + * @return URL query string + */ + public String toUrlQueryString(String prefix) { + String suffix = ""; + String containerSuffix = ""; + String containerPrefix = ""; + if (prefix == null) { + // style=form, explode=true, e.g. /pet?name=cat&type=manx + prefix = ""; + } else { + // deepObject style e.g. /pet?id[name]=cat&id[type]=manx + prefix = prefix + "["; + suffix = "]"; + containerSuffix = "]"; + containerPrefix = "["; + } + + StringJoiner joiner = new StringJoiner("&"); + + // add `error` to the URL query string + if (getError() != null) { + try { + joiner.add( + String.format( + "%serror%s=%s", + prefix, + suffix, + URLEncoder.encode(String.valueOf(getError()), "UTF-8").replaceAll("\\+", "%20"))); + } catch (UnsupportedEncodingException e) { + // Should never happen, UTF-8 is always supported + throw new RuntimeException(e); + } + } + + // add `code` to the URL query string + if (getCode() != null) { + try { + joiner.add( + String.format( + "%scode%s=%s", + prefix, + suffix, + URLEncoder.encode(String.valueOf(getCode()), "UTF-8").replaceAll("\\+", "%20"))); + } catch (UnsupportedEncodingException e) { + // Should never happen, UTF-8 is always supported + throw new RuntimeException(e); + } + } + + // add `type` to the URL query string + if (getType() != null) { + try { + joiner.add( + String.format( + "%stype%s=%s", + prefix, + suffix, + URLEncoder.encode(String.valueOf(getType()), "UTF-8").replaceAll("\\+", "%20"))); + } catch (UnsupportedEncodingException e) { + // Should never happen, UTF-8 is always supported + throw new RuntimeException(e); + } + } + + // add `detail` to the URL query string + if (getDetail() != null) { + try { + joiner.add( + String.format( + "%sdetail%s=%s", + prefix, + suffix, + URLEncoder.encode(String.valueOf(getDetail()), "UTF-8").replaceAll("\\+", "%20"))); + } catch (UnsupportedEncodingException e) { + // Should never happen, UTF-8 is always supported + throw new RuntimeException(e); + } + } + + // add `instance` to the URL query string + if (getInstance() != null) { + try { + joiner.add( + String.format( + "%sinstance%s=%s", + prefix, + suffix, + URLEncoder.encode(String.valueOf(getInstance()), "UTF-8") + .replaceAll("\\+", "%20"))); + } catch (UnsupportedEncodingException e) { + // Should never happen, UTF-8 is always supported + throw new RuntimeException(e); + } + } + + return joiner.toString(); + } +} diff --git a/java/lance-namespace-apache-client/src/main/java/org/lance/namespace/model/ParentNamespaceNotFoundError.java b/java/lance-namespace-apache-client/src/main/java/org/lance/namespace/model/ParentNamespaceNotFoundError.java new file mode 100644 index 00000000..8e0a4064 --- /dev/null +++ b/java/lance-namespace-apache-client/src/main/java/org/lance/namespace/model/ParentNamespaceNotFoundError.java @@ -0,0 +1,392 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package org.lance.namespace.model; + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.annotation.JsonValue; + +import java.io.UnsupportedEncodingException; +import java.net.URLEncoder; +import java.util.Objects; +import java.util.StringJoiner; + +/** The parent namespace does not exist */ +@JsonPropertyOrder({ + ParentNamespaceNotFoundError.JSON_PROPERTY_ERROR, + ParentNamespaceNotFoundError.JSON_PROPERTY_CODE, + ParentNamespaceNotFoundError.JSON_PROPERTY_TYPE, + ParentNamespaceNotFoundError.JSON_PROPERTY_DETAIL, + ParentNamespaceNotFoundError.JSON_PROPERTY_INSTANCE +}) +@javax.annotation.Generated( + value = "org.openapitools.codegen.languages.JavaClientCodegen", + comments = "Generator version: 7.12.0") +public class ParentNamespaceNotFoundError { + public static final String JSON_PROPERTY_ERROR = "error"; + @javax.annotation.Nonnull private String error; + + /** HTTP status code */ + public enum CodeEnum { + NUMBER_404(Integer.valueOf(404)); + + private Integer value; + + CodeEnum(Integer value) { + this.value = value; + } + + @JsonValue + public Integer getValue() { + return value; + } + + @Override + public String toString() { + return String.valueOf(value); + } + + @JsonCreator + public static CodeEnum fromValue(Integer value) { + for (CodeEnum b : CodeEnum.values()) { + if (b.value.equals(value)) { + return b; + } + } + throw new IllegalArgumentException("Unexpected value '" + value + "'"); + } + } + + public static final String JSON_PROPERTY_CODE = "code"; + @javax.annotation.Nonnull private CodeEnum code; + + /** Error type identifier */ + public enum TypeEnum { + LANCE_NAMESPACE_103(String.valueOf("lance-namespace:103")); + + private String value; + + TypeEnum(String value) { + this.value = value; + } + + @JsonValue + public String getValue() { + return value; + } + + @Override + public String toString() { + return String.valueOf(value); + } + + @JsonCreator + public static TypeEnum fromValue(String value) { + for (TypeEnum b : TypeEnum.values()) { + if (b.value.equals(value)) { + return b; + } + } + throw new IllegalArgumentException("Unexpected value '" + value + "'"); + } + } + + public static final String JSON_PROPERTY_TYPE = "type"; + @javax.annotation.Nonnull private TypeEnum type; + + public static final String JSON_PROPERTY_DETAIL = "detail"; + @javax.annotation.Nullable private String detail; + + public static final String JSON_PROPERTY_INSTANCE = "instance"; + @javax.annotation.Nullable private String instance; + + public ParentNamespaceNotFoundError() {} + + public ParentNamespaceNotFoundError error(@javax.annotation.Nonnull String error) { + + this.error = error; + return this; + } + + /** + * Brief error message + * + * @return error + */ + @javax.annotation.Nonnull + @JsonProperty(JSON_PROPERTY_ERROR) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public String getError() { + return error; + } + + @JsonProperty(JSON_PROPERTY_ERROR) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public void setError(@javax.annotation.Nonnull String error) { + this.error = error; + } + + public ParentNamespaceNotFoundError code(@javax.annotation.Nonnull CodeEnum code) { + + this.code = code; + return this; + } + + /** + * HTTP status code + * + * @return code + */ + @javax.annotation.Nonnull + @JsonProperty(JSON_PROPERTY_CODE) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public CodeEnum getCode() { + return code; + } + + @JsonProperty(JSON_PROPERTY_CODE) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public void setCode(@javax.annotation.Nonnull CodeEnum code) { + this.code = code; + } + + public ParentNamespaceNotFoundError type(@javax.annotation.Nonnull TypeEnum type) { + + this.type = type; + return this; + } + + /** + * Error type identifier + * + * @return type + */ + @javax.annotation.Nonnull + @JsonProperty(JSON_PROPERTY_TYPE) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public TypeEnum getType() { + return type; + } + + @JsonProperty(JSON_PROPERTY_TYPE) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public void setType(@javax.annotation.Nonnull TypeEnum type) { + this.type = type; + } + + public ParentNamespaceNotFoundError detail(@javax.annotation.Nullable String detail) { + + this.detail = detail; + return this; + } + + /** + * Detailed error explanation + * + * @return detail + */ + @javax.annotation.Nullable + @JsonProperty(JSON_PROPERTY_DETAIL) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getDetail() { + return detail; + } + + @JsonProperty(JSON_PROPERTY_DETAIL) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setDetail(@javax.annotation.Nullable String detail) { + this.detail = detail; + } + + public ParentNamespaceNotFoundError instance(@javax.annotation.Nullable String instance) { + + this.instance = instance; + return this; + } + + /** + * Specific occurrence identifier + * + * @return instance + */ + @javax.annotation.Nullable + @JsonProperty(JSON_PROPERTY_INSTANCE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getInstance() { + return instance; + } + + @JsonProperty(JSON_PROPERTY_INSTANCE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setInstance(@javax.annotation.Nullable String instance) { + this.instance = instance; + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + ParentNamespaceNotFoundError parentNamespaceNotFoundError = (ParentNamespaceNotFoundError) o; + return Objects.equals(this.error, parentNamespaceNotFoundError.error) + && Objects.equals(this.code, parentNamespaceNotFoundError.code) + && Objects.equals(this.type, parentNamespaceNotFoundError.type) + && Objects.equals(this.detail, parentNamespaceNotFoundError.detail) + && Objects.equals(this.instance, parentNamespaceNotFoundError.instance); + } + + @Override + public int hashCode() { + return Objects.hash(error, code, type, detail, instance); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ParentNamespaceNotFoundError {\n"); + sb.append(" error: ").append(toIndentedString(error)).append("\n"); + sb.append(" code: ").append(toIndentedString(code)).append("\n"); + sb.append(" type: ").append(toIndentedString(type)).append("\n"); + sb.append(" detail: ").append(toIndentedString(detail)).append("\n"); + sb.append(" instance: ").append(toIndentedString(instance)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + + /** + * Convert the instance into URL query string. + * + * @return URL query string + */ + public String toUrlQueryString() { + return toUrlQueryString(null); + } + + /** + * Convert the instance into URL query string. + * + * @param prefix prefix of the query string + * @return URL query string + */ + public String toUrlQueryString(String prefix) { + String suffix = ""; + String containerSuffix = ""; + String containerPrefix = ""; + if (prefix == null) { + // style=form, explode=true, e.g. /pet?name=cat&type=manx + prefix = ""; + } else { + // deepObject style e.g. /pet?id[name]=cat&id[type]=manx + prefix = prefix + "["; + suffix = "]"; + containerSuffix = "]"; + containerPrefix = "["; + } + + StringJoiner joiner = new StringJoiner("&"); + + // add `error` to the URL query string + if (getError() != null) { + try { + joiner.add( + String.format( + "%serror%s=%s", + prefix, + suffix, + URLEncoder.encode(String.valueOf(getError()), "UTF-8").replaceAll("\\+", "%20"))); + } catch (UnsupportedEncodingException e) { + // Should never happen, UTF-8 is always supported + throw new RuntimeException(e); + } + } + + // add `code` to the URL query string + if (getCode() != null) { + try { + joiner.add( + String.format( + "%scode%s=%s", + prefix, + suffix, + URLEncoder.encode(String.valueOf(getCode()), "UTF-8").replaceAll("\\+", "%20"))); + } catch (UnsupportedEncodingException e) { + // Should never happen, UTF-8 is always supported + throw new RuntimeException(e); + } + } + + // add `type` to the URL query string + if (getType() != null) { + try { + joiner.add( + String.format( + "%stype%s=%s", + prefix, + suffix, + URLEncoder.encode(String.valueOf(getType()), "UTF-8").replaceAll("\\+", "%20"))); + } catch (UnsupportedEncodingException e) { + // Should never happen, UTF-8 is always supported + throw new RuntimeException(e); + } + } + + // add `detail` to the URL query string + if (getDetail() != null) { + try { + joiner.add( + String.format( + "%sdetail%s=%s", + prefix, + suffix, + URLEncoder.encode(String.valueOf(getDetail()), "UTF-8").replaceAll("\\+", "%20"))); + } catch (UnsupportedEncodingException e) { + // Should never happen, UTF-8 is always supported + throw new RuntimeException(e); + } + } + + // add `instance` to the URL query string + if (getInstance() != null) { + try { + joiner.add( + String.format( + "%sinstance%s=%s", + prefix, + suffix, + URLEncoder.encode(String.valueOf(getInstance()), "UTF-8") + .replaceAll("\\+", "%20"))); + } catch (UnsupportedEncodingException e) { + // Should never happen, UTF-8 is always supported + throw new RuntimeException(e); + } + } + + return joiner.toString(); + } +} diff --git a/java/lance-namespace-apache-client/src/main/java/org/lance/namespace/model/RestoreTable404Response.java b/java/lance-namespace-apache-client/src/main/java/org/lance/namespace/model/RestoreTable404Response.java new file mode 100644 index 00000000..4f8ea762 --- /dev/null +++ b/java/lance-namespace-apache-client/src/main/java/org/lance/namespace/model/RestoreTable404Response.java @@ -0,0 +1,396 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package org.lance.namespace.model; + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; + +import java.io.UnsupportedEncodingException; +import java.net.URLEncoder; +import java.util.Objects; +import java.util.StringJoiner; + +/** RestoreTable404Response */ +@JsonPropertyOrder({ + RestoreTable404Response.JSON_PROPERTY_ERROR, + RestoreTable404Response.JSON_PROPERTY_CODE, + RestoreTable404Response.JSON_PROPERTY_TYPE, + RestoreTable404Response.JSON_PROPERTY_DETAIL, + RestoreTable404Response.JSON_PROPERTY_INSTANCE +}) +@JsonTypeName("RestoreTable_404_response") +@javax.annotation.Generated( + value = "org.openapitools.codegen.languages.JavaClientCodegen", + comments = "Generator version: 7.12.0") +public class RestoreTable404Response { + public static final String JSON_PROPERTY_ERROR = "error"; + @javax.annotation.Nonnull private String error; + + /** HTTP status code */ + public enum CodeEnum { + NUMBER_404(Integer.valueOf(404)); + + private Integer value; + + CodeEnum(Integer value) { + this.value = value; + } + + @JsonValue + public Integer getValue() { + return value; + } + + @Override + public String toString() { + return String.valueOf(value); + } + + @JsonCreator + public static CodeEnum fromValue(Integer value) { + for (CodeEnum b : CodeEnum.values()) { + if (b.value.equals(value)) { + return b; + } + } + throw new IllegalArgumentException("Unexpected value '" + value + "'"); + } + } + + public static final String JSON_PROPERTY_CODE = "code"; + @javax.annotation.Nonnull private CodeEnum code; + + /** Error type identifier */ + public enum TypeEnum { + LANCE_NAMESPACE_201(String.valueOf("lance-namespace:201")), + + LANCE_NAMESPACE_203(String.valueOf("lance-namespace:203")); + + private String value; + + TypeEnum(String value) { + this.value = value; + } + + @JsonValue + public String getValue() { + return value; + } + + @Override + public String toString() { + return String.valueOf(value); + } + + @JsonCreator + public static TypeEnum fromValue(String value) { + for (TypeEnum b : TypeEnum.values()) { + if (b.value.equals(value)) { + return b; + } + } + throw new IllegalArgumentException("Unexpected value '" + value + "'"); + } + } + + public static final String JSON_PROPERTY_TYPE = "type"; + @javax.annotation.Nonnull private TypeEnum type; + + public static final String JSON_PROPERTY_DETAIL = "detail"; + @javax.annotation.Nullable private String detail; + + public static final String JSON_PROPERTY_INSTANCE = "instance"; + @javax.annotation.Nullable private String instance; + + public RestoreTable404Response() {} + + public RestoreTable404Response error(@javax.annotation.Nonnull String error) { + + this.error = error; + return this; + } + + /** + * Brief error message + * + * @return error + */ + @javax.annotation.Nonnull + @JsonProperty(JSON_PROPERTY_ERROR) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public String getError() { + return error; + } + + @JsonProperty(JSON_PROPERTY_ERROR) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public void setError(@javax.annotation.Nonnull String error) { + this.error = error; + } + + public RestoreTable404Response code(@javax.annotation.Nonnull CodeEnum code) { + + this.code = code; + return this; + } + + /** + * HTTP status code + * + * @return code + */ + @javax.annotation.Nonnull + @JsonProperty(JSON_PROPERTY_CODE) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public CodeEnum getCode() { + return code; + } + + @JsonProperty(JSON_PROPERTY_CODE) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public void setCode(@javax.annotation.Nonnull CodeEnum code) { + this.code = code; + } + + public RestoreTable404Response type(@javax.annotation.Nonnull TypeEnum type) { + + this.type = type; + return this; + } + + /** + * Error type identifier + * + * @return type + */ + @javax.annotation.Nonnull + @JsonProperty(JSON_PROPERTY_TYPE) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public TypeEnum getType() { + return type; + } + + @JsonProperty(JSON_PROPERTY_TYPE) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public void setType(@javax.annotation.Nonnull TypeEnum type) { + this.type = type; + } + + public RestoreTable404Response detail(@javax.annotation.Nullable String detail) { + + this.detail = detail; + return this; + } + + /** + * Detailed error explanation + * + * @return detail + */ + @javax.annotation.Nullable + @JsonProperty(JSON_PROPERTY_DETAIL) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getDetail() { + return detail; + } + + @JsonProperty(JSON_PROPERTY_DETAIL) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setDetail(@javax.annotation.Nullable String detail) { + this.detail = detail; + } + + public RestoreTable404Response instance(@javax.annotation.Nullable String instance) { + + this.instance = instance; + return this; + } + + /** + * Specific occurrence identifier + * + * @return instance + */ + @javax.annotation.Nullable + @JsonProperty(JSON_PROPERTY_INSTANCE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getInstance() { + return instance; + } + + @JsonProperty(JSON_PROPERTY_INSTANCE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setInstance(@javax.annotation.Nullable String instance) { + this.instance = instance; + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + RestoreTable404Response restoreTable404Response = (RestoreTable404Response) o; + return Objects.equals(this.error, restoreTable404Response.error) + && Objects.equals(this.code, restoreTable404Response.code) + && Objects.equals(this.type, restoreTable404Response.type) + && Objects.equals(this.detail, restoreTable404Response.detail) + && Objects.equals(this.instance, restoreTable404Response.instance); + } + + @Override + public int hashCode() { + return Objects.hash(error, code, type, detail, instance); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class RestoreTable404Response {\n"); + sb.append(" error: ").append(toIndentedString(error)).append("\n"); + sb.append(" code: ").append(toIndentedString(code)).append("\n"); + sb.append(" type: ").append(toIndentedString(type)).append("\n"); + sb.append(" detail: ").append(toIndentedString(detail)).append("\n"); + sb.append(" instance: ").append(toIndentedString(instance)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + + /** + * Convert the instance into URL query string. + * + * @return URL query string + */ + public String toUrlQueryString() { + return toUrlQueryString(null); + } + + /** + * Convert the instance into URL query string. + * + * @param prefix prefix of the query string + * @return URL query string + */ + public String toUrlQueryString(String prefix) { + String suffix = ""; + String containerSuffix = ""; + String containerPrefix = ""; + if (prefix == null) { + // style=form, explode=true, e.g. /pet?name=cat&type=manx + prefix = ""; + } else { + // deepObject style e.g. /pet?id[name]=cat&id[type]=manx + prefix = prefix + "["; + suffix = "]"; + containerSuffix = "]"; + containerPrefix = "["; + } + + StringJoiner joiner = new StringJoiner("&"); + + // add `error` to the URL query string + if (getError() != null) { + try { + joiner.add( + String.format( + "%serror%s=%s", + prefix, + suffix, + URLEncoder.encode(String.valueOf(getError()), "UTF-8").replaceAll("\\+", "%20"))); + } catch (UnsupportedEncodingException e) { + // Should never happen, UTF-8 is always supported + throw new RuntimeException(e); + } + } + + // add `code` to the URL query string + if (getCode() != null) { + try { + joiner.add( + String.format( + "%scode%s=%s", + prefix, + suffix, + URLEncoder.encode(String.valueOf(getCode()), "UTF-8").replaceAll("\\+", "%20"))); + } catch (UnsupportedEncodingException e) { + // Should never happen, UTF-8 is always supported + throw new RuntimeException(e); + } + } + + // add `type` to the URL query string + if (getType() != null) { + try { + joiner.add( + String.format( + "%stype%s=%s", + prefix, + suffix, + URLEncoder.encode(String.valueOf(getType()), "UTF-8").replaceAll("\\+", "%20"))); + } catch (UnsupportedEncodingException e) { + // Should never happen, UTF-8 is always supported + throw new RuntimeException(e); + } + } + + // add `detail` to the URL query string + if (getDetail() != null) { + try { + joiner.add( + String.format( + "%sdetail%s=%s", + prefix, + suffix, + URLEncoder.encode(String.valueOf(getDetail()), "UTF-8").replaceAll("\\+", "%20"))); + } catch (UnsupportedEncodingException e) { + // Should never happen, UTF-8 is always supported + throw new RuntimeException(e); + } + } + + // add `instance` to the URL query string + if (getInstance() != null) { + try { + joiner.add( + String.format( + "%sinstance%s=%s", + prefix, + suffix, + URLEncoder.encode(String.valueOf(getInstance()), "UTF-8") + .replaceAll("\\+", "%20"))); + } catch (UnsupportedEncodingException e) { + // Should never happen, UTF-8 is always supported + throw new RuntimeException(e); + } + } + + return joiner.toString(); + } +} diff --git a/java/lance-namespace-apache-client/src/main/java/org/lance/namespace/model/TableAlreadyExistsError.java b/java/lance-namespace-apache-client/src/main/java/org/lance/namespace/model/TableAlreadyExistsError.java new file mode 100644 index 00000000..0cd70f00 --- /dev/null +++ b/java/lance-namespace-apache-client/src/main/java/org/lance/namespace/model/TableAlreadyExistsError.java @@ -0,0 +1,392 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package org.lance.namespace.model; + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.annotation.JsonValue; + +import java.io.UnsupportedEncodingException; +import java.net.URLEncoder; +import java.util.Objects; +import java.util.StringJoiner; + +/** A table with the same name already exists */ +@JsonPropertyOrder({ + TableAlreadyExistsError.JSON_PROPERTY_ERROR, + TableAlreadyExistsError.JSON_PROPERTY_CODE, + TableAlreadyExistsError.JSON_PROPERTY_TYPE, + TableAlreadyExistsError.JSON_PROPERTY_DETAIL, + TableAlreadyExistsError.JSON_PROPERTY_INSTANCE +}) +@javax.annotation.Generated( + value = "org.openapitools.codegen.languages.JavaClientCodegen", + comments = "Generator version: 7.12.0") +public class TableAlreadyExistsError { + public static final String JSON_PROPERTY_ERROR = "error"; + @javax.annotation.Nonnull private String error; + + /** HTTP status code */ + public enum CodeEnum { + NUMBER_409(Integer.valueOf(409)); + + private Integer value; + + CodeEnum(Integer value) { + this.value = value; + } + + @JsonValue + public Integer getValue() { + return value; + } + + @Override + public String toString() { + return String.valueOf(value); + } + + @JsonCreator + public static CodeEnum fromValue(Integer value) { + for (CodeEnum b : CodeEnum.values()) { + if (b.value.equals(value)) { + return b; + } + } + throw new IllegalArgumentException("Unexpected value '" + value + "'"); + } + } + + public static final String JSON_PROPERTY_CODE = "code"; + @javax.annotation.Nonnull private CodeEnum code; + + /** Error type identifier */ + public enum TypeEnum { + LANCE_NAMESPACE_202(String.valueOf("lance-namespace:202")); + + private String value; + + TypeEnum(String value) { + this.value = value; + } + + @JsonValue + public String getValue() { + return value; + } + + @Override + public String toString() { + return String.valueOf(value); + } + + @JsonCreator + public static TypeEnum fromValue(String value) { + for (TypeEnum b : TypeEnum.values()) { + if (b.value.equals(value)) { + return b; + } + } + throw new IllegalArgumentException("Unexpected value '" + value + "'"); + } + } + + public static final String JSON_PROPERTY_TYPE = "type"; + @javax.annotation.Nonnull private TypeEnum type; + + public static final String JSON_PROPERTY_DETAIL = "detail"; + @javax.annotation.Nullable private String detail; + + public static final String JSON_PROPERTY_INSTANCE = "instance"; + @javax.annotation.Nullable private String instance; + + public TableAlreadyExistsError() {} + + public TableAlreadyExistsError error(@javax.annotation.Nonnull String error) { + + this.error = error; + return this; + } + + /** + * Brief error message + * + * @return error + */ + @javax.annotation.Nonnull + @JsonProperty(JSON_PROPERTY_ERROR) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public String getError() { + return error; + } + + @JsonProperty(JSON_PROPERTY_ERROR) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public void setError(@javax.annotation.Nonnull String error) { + this.error = error; + } + + public TableAlreadyExistsError code(@javax.annotation.Nonnull CodeEnum code) { + + this.code = code; + return this; + } + + /** + * HTTP status code + * + * @return code + */ + @javax.annotation.Nonnull + @JsonProperty(JSON_PROPERTY_CODE) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public CodeEnum getCode() { + return code; + } + + @JsonProperty(JSON_PROPERTY_CODE) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public void setCode(@javax.annotation.Nonnull CodeEnum code) { + this.code = code; + } + + public TableAlreadyExistsError type(@javax.annotation.Nonnull TypeEnum type) { + + this.type = type; + return this; + } + + /** + * Error type identifier + * + * @return type + */ + @javax.annotation.Nonnull + @JsonProperty(JSON_PROPERTY_TYPE) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public TypeEnum getType() { + return type; + } + + @JsonProperty(JSON_PROPERTY_TYPE) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public void setType(@javax.annotation.Nonnull TypeEnum type) { + this.type = type; + } + + public TableAlreadyExistsError detail(@javax.annotation.Nullable String detail) { + + this.detail = detail; + return this; + } + + /** + * Detailed error explanation + * + * @return detail + */ + @javax.annotation.Nullable + @JsonProperty(JSON_PROPERTY_DETAIL) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getDetail() { + return detail; + } + + @JsonProperty(JSON_PROPERTY_DETAIL) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setDetail(@javax.annotation.Nullable String detail) { + this.detail = detail; + } + + public TableAlreadyExistsError instance(@javax.annotation.Nullable String instance) { + + this.instance = instance; + return this; + } + + /** + * Specific occurrence identifier + * + * @return instance + */ + @javax.annotation.Nullable + @JsonProperty(JSON_PROPERTY_INSTANCE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getInstance() { + return instance; + } + + @JsonProperty(JSON_PROPERTY_INSTANCE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setInstance(@javax.annotation.Nullable String instance) { + this.instance = instance; + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + TableAlreadyExistsError tableAlreadyExistsError = (TableAlreadyExistsError) o; + return Objects.equals(this.error, tableAlreadyExistsError.error) + && Objects.equals(this.code, tableAlreadyExistsError.code) + && Objects.equals(this.type, tableAlreadyExistsError.type) + && Objects.equals(this.detail, tableAlreadyExistsError.detail) + && Objects.equals(this.instance, tableAlreadyExistsError.instance); + } + + @Override + public int hashCode() { + return Objects.hash(error, code, type, detail, instance); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class TableAlreadyExistsError {\n"); + sb.append(" error: ").append(toIndentedString(error)).append("\n"); + sb.append(" code: ").append(toIndentedString(code)).append("\n"); + sb.append(" type: ").append(toIndentedString(type)).append("\n"); + sb.append(" detail: ").append(toIndentedString(detail)).append("\n"); + sb.append(" instance: ").append(toIndentedString(instance)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + + /** + * Convert the instance into URL query string. + * + * @return URL query string + */ + public String toUrlQueryString() { + return toUrlQueryString(null); + } + + /** + * Convert the instance into URL query string. + * + * @param prefix prefix of the query string + * @return URL query string + */ + public String toUrlQueryString(String prefix) { + String suffix = ""; + String containerSuffix = ""; + String containerPrefix = ""; + if (prefix == null) { + // style=form, explode=true, e.g. /pet?name=cat&type=manx + prefix = ""; + } else { + // deepObject style e.g. /pet?id[name]=cat&id[type]=manx + prefix = prefix + "["; + suffix = "]"; + containerSuffix = "]"; + containerPrefix = "["; + } + + StringJoiner joiner = new StringJoiner("&"); + + // add `error` to the URL query string + if (getError() != null) { + try { + joiner.add( + String.format( + "%serror%s=%s", + prefix, + suffix, + URLEncoder.encode(String.valueOf(getError()), "UTF-8").replaceAll("\\+", "%20"))); + } catch (UnsupportedEncodingException e) { + // Should never happen, UTF-8 is always supported + throw new RuntimeException(e); + } + } + + // add `code` to the URL query string + if (getCode() != null) { + try { + joiner.add( + String.format( + "%scode%s=%s", + prefix, + suffix, + URLEncoder.encode(String.valueOf(getCode()), "UTF-8").replaceAll("\\+", "%20"))); + } catch (UnsupportedEncodingException e) { + // Should never happen, UTF-8 is always supported + throw new RuntimeException(e); + } + } + + // add `type` to the URL query string + if (getType() != null) { + try { + joiner.add( + String.format( + "%stype%s=%s", + prefix, + suffix, + URLEncoder.encode(String.valueOf(getType()), "UTF-8").replaceAll("\\+", "%20"))); + } catch (UnsupportedEncodingException e) { + // Should never happen, UTF-8 is always supported + throw new RuntimeException(e); + } + } + + // add `detail` to the URL query string + if (getDetail() != null) { + try { + joiner.add( + String.format( + "%sdetail%s=%s", + prefix, + suffix, + URLEncoder.encode(String.valueOf(getDetail()), "UTF-8").replaceAll("\\+", "%20"))); + } catch (UnsupportedEncodingException e) { + // Should never happen, UTF-8 is always supported + throw new RuntimeException(e); + } + } + + // add `instance` to the URL query string + if (getInstance() != null) { + try { + joiner.add( + String.format( + "%sinstance%s=%s", + prefix, + suffix, + URLEncoder.encode(String.valueOf(getInstance()), "UTF-8") + .replaceAll("\\+", "%20"))); + } catch (UnsupportedEncodingException e) { + // Should never happen, UTF-8 is always supported + throw new RuntimeException(e); + } + } + + return joiner.toString(); + } +} diff --git a/java/lance-namespace-apache-client/src/main/java/org/lance/namespace/model/TableColumnNotFoundError.java b/java/lance-namespace-apache-client/src/main/java/org/lance/namespace/model/TableColumnNotFoundError.java new file mode 100644 index 00000000..08ae6465 --- /dev/null +++ b/java/lance-namespace-apache-client/src/main/java/org/lance/namespace/model/TableColumnNotFoundError.java @@ -0,0 +1,392 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package org.lance.namespace.model; + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.annotation.JsonValue; + +import java.io.UnsupportedEncodingException; +import java.net.URLEncoder; +import java.util.Objects; +import java.util.StringJoiner; + +/** The specified column does not exist in the table */ +@JsonPropertyOrder({ + TableColumnNotFoundError.JSON_PROPERTY_ERROR, + TableColumnNotFoundError.JSON_PROPERTY_CODE, + TableColumnNotFoundError.JSON_PROPERTY_TYPE, + TableColumnNotFoundError.JSON_PROPERTY_DETAIL, + TableColumnNotFoundError.JSON_PROPERTY_INSTANCE +}) +@javax.annotation.Generated( + value = "org.openapitools.codegen.languages.JavaClientCodegen", + comments = "Generator version: 7.12.0") +public class TableColumnNotFoundError { + public static final String JSON_PROPERTY_ERROR = "error"; + @javax.annotation.Nonnull private String error; + + /** HTTP status code */ + public enum CodeEnum { + NUMBER_400(Integer.valueOf(400)); + + private Integer value; + + CodeEnum(Integer value) { + this.value = value; + } + + @JsonValue + public Integer getValue() { + return value; + } + + @Override + public String toString() { + return String.valueOf(value); + } + + @JsonCreator + public static CodeEnum fromValue(Integer value) { + for (CodeEnum b : CodeEnum.values()) { + if (b.value.equals(value)) { + return b; + } + } + throw new IllegalArgumentException("Unexpected value '" + value + "'"); + } + } + + public static final String JSON_PROPERTY_CODE = "code"; + @javax.annotation.Nonnull private CodeEnum code; + + /** Error type identifier */ + public enum TypeEnum { + LANCE_NAMESPACE_204(String.valueOf("lance-namespace:204")); + + private String value; + + TypeEnum(String value) { + this.value = value; + } + + @JsonValue + public String getValue() { + return value; + } + + @Override + public String toString() { + return String.valueOf(value); + } + + @JsonCreator + public static TypeEnum fromValue(String value) { + for (TypeEnum b : TypeEnum.values()) { + if (b.value.equals(value)) { + return b; + } + } + throw new IllegalArgumentException("Unexpected value '" + value + "'"); + } + } + + public static final String JSON_PROPERTY_TYPE = "type"; + @javax.annotation.Nonnull private TypeEnum type; + + public static final String JSON_PROPERTY_DETAIL = "detail"; + @javax.annotation.Nullable private String detail; + + public static final String JSON_PROPERTY_INSTANCE = "instance"; + @javax.annotation.Nullable private String instance; + + public TableColumnNotFoundError() {} + + public TableColumnNotFoundError error(@javax.annotation.Nonnull String error) { + + this.error = error; + return this; + } + + /** + * Brief error message + * + * @return error + */ + @javax.annotation.Nonnull + @JsonProperty(JSON_PROPERTY_ERROR) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public String getError() { + return error; + } + + @JsonProperty(JSON_PROPERTY_ERROR) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public void setError(@javax.annotation.Nonnull String error) { + this.error = error; + } + + public TableColumnNotFoundError code(@javax.annotation.Nonnull CodeEnum code) { + + this.code = code; + return this; + } + + /** + * HTTP status code + * + * @return code + */ + @javax.annotation.Nonnull + @JsonProperty(JSON_PROPERTY_CODE) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public CodeEnum getCode() { + return code; + } + + @JsonProperty(JSON_PROPERTY_CODE) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public void setCode(@javax.annotation.Nonnull CodeEnum code) { + this.code = code; + } + + public TableColumnNotFoundError type(@javax.annotation.Nonnull TypeEnum type) { + + this.type = type; + return this; + } + + /** + * Error type identifier + * + * @return type + */ + @javax.annotation.Nonnull + @JsonProperty(JSON_PROPERTY_TYPE) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public TypeEnum getType() { + return type; + } + + @JsonProperty(JSON_PROPERTY_TYPE) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public void setType(@javax.annotation.Nonnull TypeEnum type) { + this.type = type; + } + + public TableColumnNotFoundError detail(@javax.annotation.Nullable String detail) { + + this.detail = detail; + return this; + } + + /** + * Detailed error explanation + * + * @return detail + */ + @javax.annotation.Nullable + @JsonProperty(JSON_PROPERTY_DETAIL) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getDetail() { + return detail; + } + + @JsonProperty(JSON_PROPERTY_DETAIL) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setDetail(@javax.annotation.Nullable String detail) { + this.detail = detail; + } + + public TableColumnNotFoundError instance(@javax.annotation.Nullable String instance) { + + this.instance = instance; + return this; + } + + /** + * Specific occurrence identifier + * + * @return instance + */ + @javax.annotation.Nullable + @JsonProperty(JSON_PROPERTY_INSTANCE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getInstance() { + return instance; + } + + @JsonProperty(JSON_PROPERTY_INSTANCE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setInstance(@javax.annotation.Nullable String instance) { + this.instance = instance; + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + TableColumnNotFoundError tableColumnNotFoundError = (TableColumnNotFoundError) o; + return Objects.equals(this.error, tableColumnNotFoundError.error) + && Objects.equals(this.code, tableColumnNotFoundError.code) + && Objects.equals(this.type, tableColumnNotFoundError.type) + && Objects.equals(this.detail, tableColumnNotFoundError.detail) + && Objects.equals(this.instance, tableColumnNotFoundError.instance); + } + + @Override + public int hashCode() { + return Objects.hash(error, code, type, detail, instance); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class TableColumnNotFoundError {\n"); + sb.append(" error: ").append(toIndentedString(error)).append("\n"); + sb.append(" code: ").append(toIndentedString(code)).append("\n"); + sb.append(" type: ").append(toIndentedString(type)).append("\n"); + sb.append(" detail: ").append(toIndentedString(detail)).append("\n"); + sb.append(" instance: ").append(toIndentedString(instance)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + + /** + * Convert the instance into URL query string. + * + * @return URL query string + */ + public String toUrlQueryString() { + return toUrlQueryString(null); + } + + /** + * Convert the instance into URL query string. + * + * @param prefix prefix of the query string + * @return URL query string + */ + public String toUrlQueryString(String prefix) { + String suffix = ""; + String containerSuffix = ""; + String containerPrefix = ""; + if (prefix == null) { + // style=form, explode=true, e.g. /pet?name=cat&type=manx + prefix = ""; + } else { + // deepObject style e.g. /pet?id[name]=cat&id[type]=manx + prefix = prefix + "["; + suffix = "]"; + containerSuffix = "]"; + containerPrefix = "["; + } + + StringJoiner joiner = new StringJoiner("&"); + + // add `error` to the URL query string + if (getError() != null) { + try { + joiner.add( + String.format( + "%serror%s=%s", + prefix, + suffix, + URLEncoder.encode(String.valueOf(getError()), "UTF-8").replaceAll("\\+", "%20"))); + } catch (UnsupportedEncodingException e) { + // Should never happen, UTF-8 is always supported + throw new RuntimeException(e); + } + } + + // add `code` to the URL query string + if (getCode() != null) { + try { + joiner.add( + String.format( + "%scode%s=%s", + prefix, + suffix, + URLEncoder.encode(String.valueOf(getCode()), "UTF-8").replaceAll("\\+", "%20"))); + } catch (UnsupportedEncodingException e) { + // Should never happen, UTF-8 is always supported + throw new RuntimeException(e); + } + } + + // add `type` to the URL query string + if (getType() != null) { + try { + joiner.add( + String.format( + "%stype%s=%s", + prefix, + suffix, + URLEncoder.encode(String.valueOf(getType()), "UTF-8").replaceAll("\\+", "%20"))); + } catch (UnsupportedEncodingException e) { + // Should never happen, UTF-8 is always supported + throw new RuntimeException(e); + } + } + + // add `detail` to the URL query string + if (getDetail() != null) { + try { + joiner.add( + String.format( + "%sdetail%s=%s", + prefix, + suffix, + URLEncoder.encode(String.valueOf(getDetail()), "UTF-8").replaceAll("\\+", "%20"))); + } catch (UnsupportedEncodingException e) { + // Should never happen, UTF-8 is always supported + throw new RuntimeException(e); + } + } + + // add `instance` to the URL query string + if (getInstance() != null) { + try { + joiner.add( + String.format( + "%sinstance%s=%s", + prefix, + suffix, + URLEncoder.encode(String.valueOf(getInstance()), "UTF-8") + .replaceAll("\\+", "%20"))); + } catch (UnsupportedEncodingException e) { + // Should never happen, UTF-8 is always supported + throw new RuntimeException(e); + } + } + + return joiner.toString(); + } +} diff --git a/java/lance-namespace-apache-client/src/main/java/org/lance/namespace/model/TableIndexAlreadyExistsError.java b/java/lance-namespace-apache-client/src/main/java/org/lance/namespace/model/TableIndexAlreadyExistsError.java new file mode 100644 index 00000000..79e8a2c4 --- /dev/null +++ b/java/lance-namespace-apache-client/src/main/java/org/lance/namespace/model/TableIndexAlreadyExistsError.java @@ -0,0 +1,392 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package org.lance.namespace.model; + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.annotation.JsonValue; + +import java.io.UnsupportedEncodingException; +import java.net.URLEncoder; +import java.util.Objects; +import java.util.StringJoiner; + +/** An index with the same name already exists */ +@JsonPropertyOrder({ + TableIndexAlreadyExistsError.JSON_PROPERTY_ERROR, + TableIndexAlreadyExistsError.JSON_PROPERTY_CODE, + TableIndexAlreadyExistsError.JSON_PROPERTY_TYPE, + TableIndexAlreadyExistsError.JSON_PROPERTY_DETAIL, + TableIndexAlreadyExistsError.JSON_PROPERTY_INSTANCE +}) +@javax.annotation.Generated( + value = "org.openapitools.codegen.languages.JavaClientCodegen", + comments = "Generator version: 7.12.0") +public class TableIndexAlreadyExistsError { + public static final String JSON_PROPERTY_ERROR = "error"; + @javax.annotation.Nonnull private String error; + + /** HTTP status code */ + public enum CodeEnum { + NUMBER_409(Integer.valueOf(409)); + + private Integer value; + + CodeEnum(Integer value) { + this.value = value; + } + + @JsonValue + public Integer getValue() { + return value; + } + + @Override + public String toString() { + return String.valueOf(value); + } + + @JsonCreator + public static CodeEnum fromValue(Integer value) { + for (CodeEnum b : CodeEnum.values()) { + if (b.value.equals(value)) { + return b; + } + } + throw new IllegalArgumentException("Unexpected value '" + value + "'"); + } + } + + public static final String JSON_PROPERTY_CODE = "code"; + @javax.annotation.Nonnull private CodeEnum code; + + /** Error type identifier */ + public enum TypeEnum { + LANCE_NAMESPACE_302(String.valueOf("lance-namespace:302")); + + private String value; + + TypeEnum(String value) { + this.value = value; + } + + @JsonValue + public String getValue() { + return value; + } + + @Override + public String toString() { + return String.valueOf(value); + } + + @JsonCreator + public static TypeEnum fromValue(String value) { + for (TypeEnum b : TypeEnum.values()) { + if (b.value.equals(value)) { + return b; + } + } + throw new IllegalArgumentException("Unexpected value '" + value + "'"); + } + } + + public static final String JSON_PROPERTY_TYPE = "type"; + @javax.annotation.Nonnull private TypeEnum type; + + public static final String JSON_PROPERTY_DETAIL = "detail"; + @javax.annotation.Nullable private String detail; + + public static final String JSON_PROPERTY_INSTANCE = "instance"; + @javax.annotation.Nullable private String instance; + + public TableIndexAlreadyExistsError() {} + + public TableIndexAlreadyExistsError error(@javax.annotation.Nonnull String error) { + + this.error = error; + return this; + } + + /** + * Brief error message + * + * @return error + */ + @javax.annotation.Nonnull + @JsonProperty(JSON_PROPERTY_ERROR) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public String getError() { + return error; + } + + @JsonProperty(JSON_PROPERTY_ERROR) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public void setError(@javax.annotation.Nonnull String error) { + this.error = error; + } + + public TableIndexAlreadyExistsError code(@javax.annotation.Nonnull CodeEnum code) { + + this.code = code; + return this; + } + + /** + * HTTP status code + * + * @return code + */ + @javax.annotation.Nonnull + @JsonProperty(JSON_PROPERTY_CODE) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public CodeEnum getCode() { + return code; + } + + @JsonProperty(JSON_PROPERTY_CODE) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public void setCode(@javax.annotation.Nonnull CodeEnum code) { + this.code = code; + } + + public TableIndexAlreadyExistsError type(@javax.annotation.Nonnull TypeEnum type) { + + this.type = type; + return this; + } + + /** + * Error type identifier + * + * @return type + */ + @javax.annotation.Nonnull + @JsonProperty(JSON_PROPERTY_TYPE) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public TypeEnum getType() { + return type; + } + + @JsonProperty(JSON_PROPERTY_TYPE) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public void setType(@javax.annotation.Nonnull TypeEnum type) { + this.type = type; + } + + public TableIndexAlreadyExistsError detail(@javax.annotation.Nullable String detail) { + + this.detail = detail; + return this; + } + + /** + * Detailed error explanation + * + * @return detail + */ + @javax.annotation.Nullable + @JsonProperty(JSON_PROPERTY_DETAIL) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getDetail() { + return detail; + } + + @JsonProperty(JSON_PROPERTY_DETAIL) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setDetail(@javax.annotation.Nullable String detail) { + this.detail = detail; + } + + public TableIndexAlreadyExistsError instance(@javax.annotation.Nullable String instance) { + + this.instance = instance; + return this; + } + + /** + * Specific occurrence identifier + * + * @return instance + */ + @javax.annotation.Nullable + @JsonProperty(JSON_PROPERTY_INSTANCE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getInstance() { + return instance; + } + + @JsonProperty(JSON_PROPERTY_INSTANCE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setInstance(@javax.annotation.Nullable String instance) { + this.instance = instance; + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + TableIndexAlreadyExistsError tableIndexAlreadyExistsError = (TableIndexAlreadyExistsError) o; + return Objects.equals(this.error, tableIndexAlreadyExistsError.error) + && Objects.equals(this.code, tableIndexAlreadyExistsError.code) + && Objects.equals(this.type, tableIndexAlreadyExistsError.type) + && Objects.equals(this.detail, tableIndexAlreadyExistsError.detail) + && Objects.equals(this.instance, tableIndexAlreadyExistsError.instance); + } + + @Override + public int hashCode() { + return Objects.hash(error, code, type, detail, instance); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class TableIndexAlreadyExistsError {\n"); + sb.append(" error: ").append(toIndentedString(error)).append("\n"); + sb.append(" code: ").append(toIndentedString(code)).append("\n"); + sb.append(" type: ").append(toIndentedString(type)).append("\n"); + sb.append(" detail: ").append(toIndentedString(detail)).append("\n"); + sb.append(" instance: ").append(toIndentedString(instance)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + + /** + * Convert the instance into URL query string. + * + * @return URL query string + */ + public String toUrlQueryString() { + return toUrlQueryString(null); + } + + /** + * Convert the instance into URL query string. + * + * @param prefix prefix of the query string + * @return URL query string + */ + public String toUrlQueryString(String prefix) { + String suffix = ""; + String containerSuffix = ""; + String containerPrefix = ""; + if (prefix == null) { + // style=form, explode=true, e.g. /pet?name=cat&type=manx + prefix = ""; + } else { + // deepObject style e.g. /pet?id[name]=cat&id[type]=manx + prefix = prefix + "["; + suffix = "]"; + containerSuffix = "]"; + containerPrefix = "["; + } + + StringJoiner joiner = new StringJoiner("&"); + + // add `error` to the URL query string + if (getError() != null) { + try { + joiner.add( + String.format( + "%serror%s=%s", + prefix, + suffix, + URLEncoder.encode(String.valueOf(getError()), "UTF-8").replaceAll("\\+", "%20"))); + } catch (UnsupportedEncodingException e) { + // Should never happen, UTF-8 is always supported + throw new RuntimeException(e); + } + } + + // add `code` to the URL query string + if (getCode() != null) { + try { + joiner.add( + String.format( + "%scode%s=%s", + prefix, + suffix, + URLEncoder.encode(String.valueOf(getCode()), "UTF-8").replaceAll("\\+", "%20"))); + } catch (UnsupportedEncodingException e) { + // Should never happen, UTF-8 is always supported + throw new RuntimeException(e); + } + } + + // add `type` to the URL query string + if (getType() != null) { + try { + joiner.add( + String.format( + "%stype%s=%s", + prefix, + suffix, + URLEncoder.encode(String.valueOf(getType()), "UTF-8").replaceAll("\\+", "%20"))); + } catch (UnsupportedEncodingException e) { + // Should never happen, UTF-8 is always supported + throw new RuntimeException(e); + } + } + + // add `detail` to the URL query string + if (getDetail() != null) { + try { + joiner.add( + String.format( + "%sdetail%s=%s", + prefix, + suffix, + URLEncoder.encode(String.valueOf(getDetail()), "UTF-8").replaceAll("\\+", "%20"))); + } catch (UnsupportedEncodingException e) { + // Should never happen, UTF-8 is always supported + throw new RuntimeException(e); + } + } + + // add `instance` to the URL query string + if (getInstance() != null) { + try { + joiner.add( + String.format( + "%sinstance%s=%s", + prefix, + suffix, + URLEncoder.encode(String.valueOf(getInstance()), "UTF-8") + .replaceAll("\\+", "%20"))); + } catch (UnsupportedEncodingException e) { + // Should never happen, UTF-8 is always supported + throw new RuntimeException(e); + } + } + + return joiner.toString(); + } +} diff --git a/java/lance-namespace-apache-client/src/main/java/org/lance/namespace/model/TableIndexNotFoundError.java b/java/lance-namespace-apache-client/src/main/java/org/lance/namespace/model/TableIndexNotFoundError.java new file mode 100644 index 00000000..f25b2b95 --- /dev/null +++ b/java/lance-namespace-apache-client/src/main/java/org/lance/namespace/model/TableIndexNotFoundError.java @@ -0,0 +1,392 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package org.lance.namespace.model; + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.annotation.JsonValue; + +import java.io.UnsupportedEncodingException; +import java.net.URLEncoder; +import java.util.Objects; +import java.util.StringJoiner; + +/** The requested index does not exist */ +@JsonPropertyOrder({ + TableIndexNotFoundError.JSON_PROPERTY_ERROR, + TableIndexNotFoundError.JSON_PROPERTY_CODE, + TableIndexNotFoundError.JSON_PROPERTY_TYPE, + TableIndexNotFoundError.JSON_PROPERTY_DETAIL, + TableIndexNotFoundError.JSON_PROPERTY_INSTANCE +}) +@javax.annotation.Generated( + value = "org.openapitools.codegen.languages.JavaClientCodegen", + comments = "Generator version: 7.12.0") +public class TableIndexNotFoundError { + public static final String JSON_PROPERTY_ERROR = "error"; + @javax.annotation.Nonnull private String error; + + /** HTTP status code */ + public enum CodeEnum { + NUMBER_404(Integer.valueOf(404)); + + private Integer value; + + CodeEnum(Integer value) { + this.value = value; + } + + @JsonValue + public Integer getValue() { + return value; + } + + @Override + public String toString() { + return String.valueOf(value); + } + + @JsonCreator + public static CodeEnum fromValue(Integer value) { + for (CodeEnum b : CodeEnum.values()) { + if (b.value.equals(value)) { + return b; + } + } + throw new IllegalArgumentException("Unexpected value '" + value + "'"); + } + } + + public static final String JSON_PROPERTY_CODE = "code"; + @javax.annotation.Nonnull private CodeEnum code; + + /** Error type identifier */ + public enum TypeEnum { + LANCE_NAMESPACE_301(String.valueOf("lance-namespace:301")); + + private String value; + + TypeEnum(String value) { + this.value = value; + } + + @JsonValue + public String getValue() { + return value; + } + + @Override + public String toString() { + return String.valueOf(value); + } + + @JsonCreator + public static TypeEnum fromValue(String value) { + for (TypeEnum b : TypeEnum.values()) { + if (b.value.equals(value)) { + return b; + } + } + throw new IllegalArgumentException("Unexpected value '" + value + "'"); + } + } + + public static final String JSON_PROPERTY_TYPE = "type"; + @javax.annotation.Nonnull private TypeEnum type; + + public static final String JSON_PROPERTY_DETAIL = "detail"; + @javax.annotation.Nullable private String detail; + + public static final String JSON_PROPERTY_INSTANCE = "instance"; + @javax.annotation.Nullable private String instance; + + public TableIndexNotFoundError() {} + + public TableIndexNotFoundError error(@javax.annotation.Nonnull String error) { + + this.error = error; + return this; + } + + /** + * Brief error message + * + * @return error + */ + @javax.annotation.Nonnull + @JsonProperty(JSON_PROPERTY_ERROR) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public String getError() { + return error; + } + + @JsonProperty(JSON_PROPERTY_ERROR) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public void setError(@javax.annotation.Nonnull String error) { + this.error = error; + } + + public TableIndexNotFoundError code(@javax.annotation.Nonnull CodeEnum code) { + + this.code = code; + return this; + } + + /** + * HTTP status code + * + * @return code + */ + @javax.annotation.Nonnull + @JsonProperty(JSON_PROPERTY_CODE) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public CodeEnum getCode() { + return code; + } + + @JsonProperty(JSON_PROPERTY_CODE) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public void setCode(@javax.annotation.Nonnull CodeEnum code) { + this.code = code; + } + + public TableIndexNotFoundError type(@javax.annotation.Nonnull TypeEnum type) { + + this.type = type; + return this; + } + + /** + * Error type identifier + * + * @return type + */ + @javax.annotation.Nonnull + @JsonProperty(JSON_PROPERTY_TYPE) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public TypeEnum getType() { + return type; + } + + @JsonProperty(JSON_PROPERTY_TYPE) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public void setType(@javax.annotation.Nonnull TypeEnum type) { + this.type = type; + } + + public TableIndexNotFoundError detail(@javax.annotation.Nullable String detail) { + + this.detail = detail; + return this; + } + + /** + * Detailed error explanation + * + * @return detail + */ + @javax.annotation.Nullable + @JsonProperty(JSON_PROPERTY_DETAIL) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getDetail() { + return detail; + } + + @JsonProperty(JSON_PROPERTY_DETAIL) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setDetail(@javax.annotation.Nullable String detail) { + this.detail = detail; + } + + public TableIndexNotFoundError instance(@javax.annotation.Nullable String instance) { + + this.instance = instance; + return this; + } + + /** + * Specific occurrence identifier + * + * @return instance + */ + @javax.annotation.Nullable + @JsonProperty(JSON_PROPERTY_INSTANCE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getInstance() { + return instance; + } + + @JsonProperty(JSON_PROPERTY_INSTANCE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setInstance(@javax.annotation.Nullable String instance) { + this.instance = instance; + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + TableIndexNotFoundError tableIndexNotFoundError = (TableIndexNotFoundError) o; + return Objects.equals(this.error, tableIndexNotFoundError.error) + && Objects.equals(this.code, tableIndexNotFoundError.code) + && Objects.equals(this.type, tableIndexNotFoundError.type) + && Objects.equals(this.detail, tableIndexNotFoundError.detail) + && Objects.equals(this.instance, tableIndexNotFoundError.instance); + } + + @Override + public int hashCode() { + return Objects.hash(error, code, type, detail, instance); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class TableIndexNotFoundError {\n"); + sb.append(" error: ").append(toIndentedString(error)).append("\n"); + sb.append(" code: ").append(toIndentedString(code)).append("\n"); + sb.append(" type: ").append(toIndentedString(type)).append("\n"); + sb.append(" detail: ").append(toIndentedString(detail)).append("\n"); + sb.append(" instance: ").append(toIndentedString(instance)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + + /** + * Convert the instance into URL query string. + * + * @return URL query string + */ + public String toUrlQueryString() { + return toUrlQueryString(null); + } + + /** + * Convert the instance into URL query string. + * + * @param prefix prefix of the query string + * @return URL query string + */ + public String toUrlQueryString(String prefix) { + String suffix = ""; + String containerSuffix = ""; + String containerPrefix = ""; + if (prefix == null) { + // style=form, explode=true, e.g. /pet?name=cat&type=manx + prefix = ""; + } else { + // deepObject style e.g. /pet?id[name]=cat&id[type]=manx + prefix = prefix + "["; + suffix = "]"; + containerSuffix = "]"; + containerPrefix = "["; + } + + StringJoiner joiner = new StringJoiner("&"); + + // add `error` to the URL query string + if (getError() != null) { + try { + joiner.add( + String.format( + "%serror%s=%s", + prefix, + suffix, + URLEncoder.encode(String.valueOf(getError()), "UTF-8").replaceAll("\\+", "%20"))); + } catch (UnsupportedEncodingException e) { + // Should never happen, UTF-8 is always supported + throw new RuntimeException(e); + } + } + + // add `code` to the URL query string + if (getCode() != null) { + try { + joiner.add( + String.format( + "%scode%s=%s", + prefix, + suffix, + URLEncoder.encode(String.valueOf(getCode()), "UTF-8").replaceAll("\\+", "%20"))); + } catch (UnsupportedEncodingException e) { + // Should never happen, UTF-8 is always supported + throw new RuntimeException(e); + } + } + + // add `type` to the URL query string + if (getType() != null) { + try { + joiner.add( + String.format( + "%stype%s=%s", + prefix, + suffix, + URLEncoder.encode(String.valueOf(getType()), "UTF-8").replaceAll("\\+", "%20"))); + } catch (UnsupportedEncodingException e) { + // Should never happen, UTF-8 is always supported + throw new RuntimeException(e); + } + } + + // add `detail` to the URL query string + if (getDetail() != null) { + try { + joiner.add( + String.format( + "%sdetail%s=%s", + prefix, + suffix, + URLEncoder.encode(String.valueOf(getDetail()), "UTF-8").replaceAll("\\+", "%20"))); + } catch (UnsupportedEncodingException e) { + // Should never happen, UTF-8 is always supported + throw new RuntimeException(e); + } + } + + // add `instance` to the URL query string + if (getInstance() != null) { + try { + joiner.add( + String.format( + "%sinstance%s=%s", + prefix, + suffix, + URLEncoder.encode(String.valueOf(getInstance()), "UTF-8") + .replaceAll("\\+", "%20"))); + } catch (UnsupportedEncodingException e) { + // Should never happen, UTF-8 is always supported + throw new RuntimeException(e); + } + } + + return joiner.toString(); + } +} diff --git a/java/lance-namespace-apache-client/src/main/java/org/lance/namespace/model/TableNotFoundError.java b/java/lance-namespace-apache-client/src/main/java/org/lance/namespace/model/TableNotFoundError.java new file mode 100644 index 00000000..28f139a7 --- /dev/null +++ b/java/lance-namespace-apache-client/src/main/java/org/lance/namespace/model/TableNotFoundError.java @@ -0,0 +1,392 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package org.lance.namespace.model; + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.annotation.JsonValue; + +import java.io.UnsupportedEncodingException; +import java.net.URLEncoder; +import java.util.Objects; +import java.util.StringJoiner; + +/** The requested table does not exist */ +@JsonPropertyOrder({ + TableNotFoundError.JSON_PROPERTY_ERROR, + TableNotFoundError.JSON_PROPERTY_CODE, + TableNotFoundError.JSON_PROPERTY_TYPE, + TableNotFoundError.JSON_PROPERTY_DETAIL, + TableNotFoundError.JSON_PROPERTY_INSTANCE +}) +@javax.annotation.Generated( + value = "org.openapitools.codegen.languages.JavaClientCodegen", + comments = "Generator version: 7.12.0") +public class TableNotFoundError { + public static final String JSON_PROPERTY_ERROR = "error"; + @javax.annotation.Nonnull private String error; + + /** HTTP status code */ + public enum CodeEnum { + NUMBER_404(Integer.valueOf(404)); + + private Integer value; + + CodeEnum(Integer value) { + this.value = value; + } + + @JsonValue + public Integer getValue() { + return value; + } + + @Override + public String toString() { + return String.valueOf(value); + } + + @JsonCreator + public static CodeEnum fromValue(Integer value) { + for (CodeEnum b : CodeEnum.values()) { + if (b.value.equals(value)) { + return b; + } + } + throw new IllegalArgumentException("Unexpected value '" + value + "'"); + } + } + + public static final String JSON_PROPERTY_CODE = "code"; + @javax.annotation.Nonnull private CodeEnum code; + + /** Error type identifier */ + public enum TypeEnum { + LANCE_NAMESPACE_201(String.valueOf("lance-namespace:201")); + + private String value; + + TypeEnum(String value) { + this.value = value; + } + + @JsonValue + public String getValue() { + return value; + } + + @Override + public String toString() { + return String.valueOf(value); + } + + @JsonCreator + public static TypeEnum fromValue(String value) { + for (TypeEnum b : TypeEnum.values()) { + if (b.value.equals(value)) { + return b; + } + } + throw new IllegalArgumentException("Unexpected value '" + value + "'"); + } + } + + public static final String JSON_PROPERTY_TYPE = "type"; + @javax.annotation.Nonnull private TypeEnum type; + + public static final String JSON_PROPERTY_DETAIL = "detail"; + @javax.annotation.Nullable private String detail; + + public static final String JSON_PROPERTY_INSTANCE = "instance"; + @javax.annotation.Nullable private String instance; + + public TableNotFoundError() {} + + public TableNotFoundError error(@javax.annotation.Nonnull String error) { + + this.error = error; + return this; + } + + /** + * Brief error message + * + * @return error + */ + @javax.annotation.Nonnull + @JsonProperty(JSON_PROPERTY_ERROR) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public String getError() { + return error; + } + + @JsonProperty(JSON_PROPERTY_ERROR) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public void setError(@javax.annotation.Nonnull String error) { + this.error = error; + } + + public TableNotFoundError code(@javax.annotation.Nonnull CodeEnum code) { + + this.code = code; + return this; + } + + /** + * HTTP status code + * + * @return code + */ + @javax.annotation.Nonnull + @JsonProperty(JSON_PROPERTY_CODE) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public CodeEnum getCode() { + return code; + } + + @JsonProperty(JSON_PROPERTY_CODE) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public void setCode(@javax.annotation.Nonnull CodeEnum code) { + this.code = code; + } + + public TableNotFoundError type(@javax.annotation.Nonnull TypeEnum type) { + + this.type = type; + return this; + } + + /** + * Error type identifier + * + * @return type + */ + @javax.annotation.Nonnull + @JsonProperty(JSON_PROPERTY_TYPE) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public TypeEnum getType() { + return type; + } + + @JsonProperty(JSON_PROPERTY_TYPE) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public void setType(@javax.annotation.Nonnull TypeEnum type) { + this.type = type; + } + + public TableNotFoundError detail(@javax.annotation.Nullable String detail) { + + this.detail = detail; + return this; + } + + /** + * Detailed error explanation + * + * @return detail + */ + @javax.annotation.Nullable + @JsonProperty(JSON_PROPERTY_DETAIL) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getDetail() { + return detail; + } + + @JsonProperty(JSON_PROPERTY_DETAIL) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setDetail(@javax.annotation.Nullable String detail) { + this.detail = detail; + } + + public TableNotFoundError instance(@javax.annotation.Nullable String instance) { + + this.instance = instance; + return this; + } + + /** + * Specific occurrence identifier + * + * @return instance + */ + @javax.annotation.Nullable + @JsonProperty(JSON_PROPERTY_INSTANCE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getInstance() { + return instance; + } + + @JsonProperty(JSON_PROPERTY_INSTANCE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setInstance(@javax.annotation.Nullable String instance) { + this.instance = instance; + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + TableNotFoundError tableNotFoundError = (TableNotFoundError) o; + return Objects.equals(this.error, tableNotFoundError.error) + && Objects.equals(this.code, tableNotFoundError.code) + && Objects.equals(this.type, tableNotFoundError.type) + && Objects.equals(this.detail, tableNotFoundError.detail) + && Objects.equals(this.instance, tableNotFoundError.instance); + } + + @Override + public int hashCode() { + return Objects.hash(error, code, type, detail, instance); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class TableNotFoundError {\n"); + sb.append(" error: ").append(toIndentedString(error)).append("\n"); + sb.append(" code: ").append(toIndentedString(code)).append("\n"); + sb.append(" type: ").append(toIndentedString(type)).append("\n"); + sb.append(" detail: ").append(toIndentedString(detail)).append("\n"); + sb.append(" instance: ").append(toIndentedString(instance)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + + /** + * Convert the instance into URL query string. + * + * @return URL query string + */ + public String toUrlQueryString() { + return toUrlQueryString(null); + } + + /** + * Convert the instance into URL query string. + * + * @param prefix prefix of the query string + * @return URL query string + */ + public String toUrlQueryString(String prefix) { + String suffix = ""; + String containerSuffix = ""; + String containerPrefix = ""; + if (prefix == null) { + // style=form, explode=true, e.g. /pet?name=cat&type=manx + prefix = ""; + } else { + // deepObject style e.g. /pet?id[name]=cat&id[type]=manx + prefix = prefix + "["; + suffix = "]"; + containerSuffix = "]"; + containerPrefix = "["; + } + + StringJoiner joiner = new StringJoiner("&"); + + // add `error` to the URL query string + if (getError() != null) { + try { + joiner.add( + String.format( + "%serror%s=%s", + prefix, + suffix, + URLEncoder.encode(String.valueOf(getError()), "UTF-8").replaceAll("\\+", "%20"))); + } catch (UnsupportedEncodingException e) { + // Should never happen, UTF-8 is always supported + throw new RuntimeException(e); + } + } + + // add `code` to the URL query string + if (getCode() != null) { + try { + joiner.add( + String.format( + "%scode%s=%s", + prefix, + suffix, + URLEncoder.encode(String.valueOf(getCode()), "UTF-8").replaceAll("\\+", "%20"))); + } catch (UnsupportedEncodingException e) { + // Should never happen, UTF-8 is always supported + throw new RuntimeException(e); + } + } + + // add `type` to the URL query string + if (getType() != null) { + try { + joiner.add( + String.format( + "%stype%s=%s", + prefix, + suffix, + URLEncoder.encode(String.valueOf(getType()), "UTF-8").replaceAll("\\+", "%20"))); + } catch (UnsupportedEncodingException e) { + // Should never happen, UTF-8 is always supported + throw new RuntimeException(e); + } + } + + // add `detail` to the URL query string + if (getDetail() != null) { + try { + joiner.add( + String.format( + "%sdetail%s=%s", + prefix, + suffix, + URLEncoder.encode(String.valueOf(getDetail()), "UTF-8").replaceAll("\\+", "%20"))); + } catch (UnsupportedEncodingException e) { + // Should never happen, UTF-8 is always supported + throw new RuntimeException(e); + } + } + + // add `instance` to the URL query string + if (getInstance() != null) { + try { + joiner.add( + String.format( + "%sinstance%s=%s", + prefix, + suffix, + URLEncoder.encode(String.valueOf(getInstance()), "UTF-8") + .replaceAll("\\+", "%20"))); + } catch (UnsupportedEncodingException e) { + // Should never happen, UTF-8 is always supported + throw new RuntimeException(e); + } + } + + return joiner.toString(); + } +} diff --git a/java/lance-namespace-apache-client/src/main/java/org/lance/namespace/model/TableSchemaMismatchError.java b/java/lance-namespace-apache-client/src/main/java/org/lance/namespace/model/TableSchemaMismatchError.java new file mode 100644 index 00000000..b47c92d7 --- /dev/null +++ b/java/lance-namespace-apache-client/src/main/java/org/lance/namespace/model/TableSchemaMismatchError.java @@ -0,0 +1,392 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package org.lance.namespace.model; + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.annotation.JsonValue; + +import java.io.UnsupportedEncodingException; +import java.net.URLEncoder; +import java.util.Objects; +import java.util.StringJoiner; + +/** The data schema does not match the table schema */ +@JsonPropertyOrder({ + TableSchemaMismatchError.JSON_PROPERTY_ERROR, + TableSchemaMismatchError.JSON_PROPERTY_CODE, + TableSchemaMismatchError.JSON_PROPERTY_TYPE, + TableSchemaMismatchError.JSON_PROPERTY_DETAIL, + TableSchemaMismatchError.JSON_PROPERTY_INSTANCE +}) +@javax.annotation.Generated( + value = "org.openapitools.codegen.languages.JavaClientCodegen", + comments = "Generator version: 7.12.0") +public class TableSchemaMismatchError { + public static final String JSON_PROPERTY_ERROR = "error"; + @javax.annotation.Nonnull private String error; + + /** HTTP status code */ + public enum CodeEnum { + NUMBER_400(Integer.valueOf(400)); + + private Integer value; + + CodeEnum(Integer value) { + this.value = value; + } + + @JsonValue + public Integer getValue() { + return value; + } + + @Override + public String toString() { + return String.valueOf(value); + } + + @JsonCreator + public static CodeEnum fromValue(Integer value) { + for (CodeEnum b : CodeEnum.values()) { + if (b.value.equals(value)) { + return b; + } + } + throw new IllegalArgumentException("Unexpected value '" + value + "'"); + } + } + + public static final String JSON_PROPERTY_CODE = "code"; + @javax.annotation.Nonnull private CodeEnum code; + + /** Error type identifier */ + public enum TypeEnum { + LANCE_NAMESPACE_206(String.valueOf("lance-namespace:206")); + + private String value; + + TypeEnum(String value) { + this.value = value; + } + + @JsonValue + public String getValue() { + return value; + } + + @Override + public String toString() { + return String.valueOf(value); + } + + @JsonCreator + public static TypeEnum fromValue(String value) { + for (TypeEnum b : TypeEnum.values()) { + if (b.value.equals(value)) { + return b; + } + } + throw new IllegalArgumentException("Unexpected value '" + value + "'"); + } + } + + public static final String JSON_PROPERTY_TYPE = "type"; + @javax.annotation.Nonnull private TypeEnum type; + + public static final String JSON_PROPERTY_DETAIL = "detail"; + @javax.annotation.Nullable private String detail; + + public static final String JSON_PROPERTY_INSTANCE = "instance"; + @javax.annotation.Nullable private String instance; + + public TableSchemaMismatchError() {} + + public TableSchemaMismatchError error(@javax.annotation.Nonnull String error) { + + this.error = error; + return this; + } + + /** + * Brief error message + * + * @return error + */ + @javax.annotation.Nonnull + @JsonProperty(JSON_PROPERTY_ERROR) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public String getError() { + return error; + } + + @JsonProperty(JSON_PROPERTY_ERROR) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public void setError(@javax.annotation.Nonnull String error) { + this.error = error; + } + + public TableSchemaMismatchError code(@javax.annotation.Nonnull CodeEnum code) { + + this.code = code; + return this; + } + + /** + * HTTP status code + * + * @return code + */ + @javax.annotation.Nonnull + @JsonProperty(JSON_PROPERTY_CODE) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public CodeEnum getCode() { + return code; + } + + @JsonProperty(JSON_PROPERTY_CODE) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public void setCode(@javax.annotation.Nonnull CodeEnum code) { + this.code = code; + } + + public TableSchemaMismatchError type(@javax.annotation.Nonnull TypeEnum type) { + + this.type = type; + return this; + } + + /** + * Error type identifier + * + * @return type + */ + @javax.annotation.Nonnull + @JsonProperty(JSON_PROPERTY_TYPE) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public TypeEnum getType() { + return type; + } + + @JsonProperty(JSON_PROPERTY_TYPE) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public void setType(@javax.annotation.Nonnull TypeEnum type) { + this.type = type; + } + + public TableSchemaMismatchError detail(@javax.annotation.Nullable String detail) { + + this.detail = detail; + return this; + } + + /** + * Detailed error explanation + * + * @return detail + */ + @javax.annotation.Nullable + @JsonProperty(JSON_PROPERTY_DETAIL) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getDetail() { + return detail; + } + + @JsonProperty(JSON_PROPERTY_DETAIL) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setDetail(@javax.annotation.Nullable String detail) { + this.detail = detail; + } + + public TableSchemaMismatchError instance(@javax.annotation.Nullable String instance) { + + this.instance = instance; + return this; + } + + /** + * Specific occurrence identifier + * + * @return instance + */ + @javax.annotation.Nullable + @JsonProperty(JSON_PROPERTY_INSTANCE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getInstance() { + return instance; + } + + @JsonProperty(JSON_PROPERTY_INSTANCE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setInstance(@javax.annotation.Nullable String instance) { + this.instance = instance; + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + TableSchemaMismatchError tableSchemaMismatchError = (TableSchemaMismatchError) o; + return Objects.equals(this.error, tableSchemaMismatchError.error) + && Objects.equals(this.code, tableSchemaMismatchError.code) + && Objects.equals(this.type, tableSchemaMismatchError.type) + && Objects.equals(this.detail, tableSchemaMismatchError.detail) + && Objects.equals(this.instance, tableSchemaMismatchError.instance); + } + + @Override + public int hashCode() { + return Objects.hash(error, code, type, detail, instance); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class TableSchemaMismatchError {\n"); + sb.append(" error: ").append(toIndentedString(error)).append("\n"); + sb.append(" code: ").append(toIndentedString(code)).append("\n"); + sb.append(" type: ").append(toIndentedString(type)).append("\n"); + sb.append(" detail: ").append(toIndentedString(detail)).append("\n"); + sb.append(" instance: ").append(toIndentedString(instance)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + + /** + * Convert the instance into URL query string. + * + * @return URL query string + */ + public String toUrlQueryString() { + return toUrlQueryString(null); + } + + /** + * Convert the instance into URL query string. + * + * @param prefix prefix of the query string + * @return URL query string + */ + public String toUrlQueryString(String prefix) { + String suffix = ""; + String containerSuffix = ""; + String containerPrefix = ""; + if (prefix == null) { + // style=form, explode=true, e.g. /pet?name=cat&type=manx + prefix = ""; + } else { + // deepObject style e.g. /pet?id[name]=cat&id[type]=manx + prefix = prefix + "["; + suffix = "]"; + containerSuffix = "]"; + containerPrefix = "["; + } + + StringJoiner joiner = new StringJoiner("&"); + + // add `error` to the URL query string + if (getError() != null) { + try { + joiner.add( + String.format( + "%serror%s=%s", + prefix, + suffix, + URLEncoder.encode(String.valueOf(getError()), "UTF-8").replaceAll("\\+", "%20"))); + } catch (UnsupportedEncodingException e) { + // Should never happen, UTF-8 is always supported + throw new RuntimeException(e); + } + } + + // add `code` to the URL query string + if (getCode() != null) { + try { + joiner.add( + String.format( + "%scode%s=%s", + prefix, + suffix, + URLEncoder.encode(String.valueOf(getCode()), "UTF-8").replaceAll("\\+", "%20"))); + } catch (UnsupportedEncodingException e) { + // Should never happen, UTF-8 is always supported + throw new RuntimeException(e); + } + } + + // add `type` to the URL query string + if (getType() != null) { + try { + joiner.add( + String.format( + "%stype%s=%s", + prefix, + suffix, + URLEncoder.encode(String.valueOf(getType()), "UTF-8").replaceAll("\\+", "%20"))); + } catch (UnsupportedEncodingException e) { + // Should never happen, UTF-8 is always supported + throw new RuntimeException(e); + } + } + + // add `detail` to the URL query string + if (getDetail() != null) { + try { + joiner.add( + String.format( + "%sdetail%s=%s", + prefix, + suffix, + URLEncoder.encode(String.valueOf(getDetail()), "UTF-8").replaceAll("\\+", "%20"))); + } catch (UnsupportedEncodingException e) { + // Should never happen, UTF-8 is always supported + throw new RuntimeException(e); + } + } + + // add `instance` to the URL query string + if (getInstance() != null) { + try { + joiner.add( + String.format( + "%sinstance%s=%s", + prefix, + suffix, + URLEncoder.encode(String.valueOf(getInstance()), "UTF-8") + .replaceAll("\\+", "%20"))); + } catch (UnsupportedEncodingException e) { + // Should never happen, UTF-8 is always supported + throw new RuntimeException(e); + } + } + + return joiner.toString(); + } +} diff --git a/java/lance-namespace-apache-client/src/main/java/org/lance/namespace/model/TableTagAlreadyExistsError.java b/java/lance-namespace-apache-client/src/main/java/org/lance/namespace/model/TableTagAlreadyExistsError.java new file mode 100644 index 00000000..ee23f9cf --- /dev/null +++ b/java/lance-namespace-apache-client/src/main/java/org/lance/namespace/model/TableTagAlreadyExistsError.java @@ -0,0 +1,392 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package org.lance.namespace.model; + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.annotation.JsonValue; + +import java.io.UnsupportedEncodingException; +import java.net.URLEncoder; +import java.util.Objects; +import java.util.StringJoiner; + +/** A tag with the same name already exists */ +@JsonPropertyOrder({ + TableTagAlreadyExistsError.JSON_PROPERTY_ERROR, + TableTagAlreadyExistsError.JSON_PROPERTY_CODE, + TableTagAlreadyExistsError.JSON_PROPERTY_TYPE, + TableTagAlreadyExistsError.JSON_PROPERTY_DETAIL, + TableTagAlreadyExistsError.JSON_PROPERTY_INSTANCE +}) +@javax.annotation.Generated( + value = "org.openapitools.codegen.languages.JavaClientCodegen", + comments = "Generator version: 7.12.0") +public class TableTagAlreadyExistsError { + public static final String JSON_PROPERTY_ERROR = "error"; + @javax.annotation.Nonnull private String error; + + /** HTTP status code */ + public enum CodeEnum { + NUMBER_409(Integer.valueOf(409)); + + private Integer value; + + CodeEnum(Integer value) { + this.value = value; + } + + @JsonValue + public Integer getValue() { + return value; + } + + @Override + public String toString() { + return String.valueOf(value); + } + + @JsonCreator + public static CodeEnum fromValue(Integer value) { + for (CodeEnum b : CodeEnum.values()) { + if (b.value.equals(value)) { + return b; + } + } + throw new IllegalArgumentException("Unexpected value '" + value + "'"); + } + } + + public static final String JSON_PROPERTY_CODE = "code"; + @javax.annotation.Nonnull private CodeEnum code; + + /** Error type identifier */ + public enum TypeEnum { + LANCE_NAMESPACE_402(String.valueOf("lance-namespace:402")); + + private String value; + + TypeEnum(String value) { + this.value = value; + } + + @JsonValue + public String getValue() { + return value; + } + + @Override + public String toString() { + return String.valueOf(value); + } + + @JsonCreator + public static TypeEnum fromValue(String value) { + for (TypeEnum b : TypeEnum.values()) { + if (b.value.equals(value)) { + return b; + } + } + throw new IllegalArgumentException("Unexpected value '" + value + "'"); + } + } + + public static final String JSON_PROPERTY_TYPE = "type"; + @javax.annotation.Nonnull private TypeEnum type; + + public static final String JSON_PROPERTY_DETAIL = "detail"; + @javax.annotation.Nullable private String detail; + + public static final String JSON_PROPERTY_INSTANCE = "instance"; + @javax.annotation.Nullable private String instance; + + public TableTagAlreadyExistsError() {} + + public TableTagAlreadyExistsError error(@javax.annotation.Nonnull String error) { + + this.error = error; + return this; + } + + /** + * Brief error message + * + * @return error + */ + @javax.annotation.Nonnull + @JsonProperty(JSON_PROPERTY_ERROR) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public String getError() { + return error; + } + + @JsonProperty(JSON_PROPERTY_ERROR) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public void setError(@javax.annotation.Nonnull String error) { + this.error = error; + } + + public TableTagAlreadyExistsError code(@javax.annotation.Nonnull CodeEnum code) { + + this.code = code; + return this; + } + + /** + * HTTP status code + * + * @return code + */ + @javax.annotation.Nonnull + @JsonProperty(JSON_PROPERTY_CODE) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public CodeEnum getCode() { + return code; + } + + @JsonProperty(JSON_PROPERTY_CODE) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public void setCode(@javax.annotation.Nonnull CodeEnum code) { + this.code = code; + } + + public TableTagAlreadyExistsError type(@javax.annotation.Nonnull TypeEnum type) { + + this.type = type; + return this; + } + + /** + * Error type identifier + * + * @return type + */ + @javax.annotation.Nonnull + @JsonProperty(JSON_PROPERTY_TYPE) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public TypeEnum getType() { + return type; + } + + @JsonProperty(JSON_PROPERTY_TYPE) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public void setType(@javax.annotation.Nonnull TypeEnum type) { + this.type = type; + } + + public TableTagAlreadyExistsError detail(@javax.annotation.Nullable String detail) { + + this.detail = detail; + return this; + } + + /** + * Detailed error explanation + * + * @return detail + */ + @javax.annotation.Nullable + @JsonProperty(JSON_PROPERTY_DETAIL) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getDetail() { + return detail; + } + + @JsonProperty(JSON_PROPERTY_DETAIL) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setDetail(@javax.annotation.Nullable String detail) { + this.detail = detail; + } + + public TableTagAlreadyExistsError instance(@javax.annotation.Nullable String instance) { + + this.instance = instance; + return this; + } + + /** + * Specific occurrence identifier + * + * @return instance + */ + @javax.annotation.Nullable + @JsonProperty(JSON_PROPERTY_INSTANCE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getInstance() { + return instance; + } + + @JsonProperty(JSON_PROPERTY_INSTANCE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setInstance(@javax.annotation.Nullable String instance) { + this.instance = instance; + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + TableTagAlreadyExistsError tableTagAlreadyExistsError = (TableTagAlreadyExistsError) o; + return Objects.equals(this.error, tableTagAlreadyExistsError.error) + && Objects.equals(this.code, tableTagAlreadyExistsError.code) + && Objects.equals(this.type, tableTagAlreadyExistsError.type) + && Objects.equals(this.detail, tableTagAlreadyExistsError.detail) + && Objects.equals(this.instance, tableTagAlreadyExistsError.instance); + } + + @Override + public int hashCode() { + return Objects.hash(error, code, type, detail, instance); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class TableTagAlreadyExistsError {\n"); + sb.append(" error: ").append(toIndentedString(error)).append("\n"); + sb.append(" code: ").append(toIndentedString(code)).append("\n"); + sb.append(" type: ").append(toIndentedString(type)).append("\n"); + sb.append(" detail: ").append(toIndentedString(detail)).append("\n"); + sb.append(" instance: ").append(toIndentedString(instance)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + + /** + * Convert the instance into URL query string. + * + * @return URL query string + */ + public String toUrlQueryString() { + return toUrlQueryString(null); + } + + /** + * Convert the instance into URL query string. + * + * @param prefix prefix of the query string + * @return URL query string + */ + public String toUrlQueryString(String prefix) { + String suffix = ""; + String containerSuffix = ""; + String containerPrefix = ""; + if (prefix == null) { + // style=form, explode=true, e.g. /pet?name=cat&type=manx + prefix = ""; + } else { + // deepObject style e.g. /pet?id[name]=cat&id[type]=manx + prefix = prefix + "["; + suffix = "]"; + containerSuffix = "]"; + containerPrefix = "["; + } + + StringJoiner joiner = new StringJoiner("&"); + + // add `error` to the URL query string + if (getError() != null) { + try { + joiner.add( + String.format( + "%serror%s=%s", + prefix, + suffix, + URLEncoder.encode(String.valueOf(getError()), "UTF-8").replaceAll("\\+", "%20"))); + } catch (UnsupportedEncodingException e) { + // Should never happen, UTF-8 is always supported + throw new RuntimeException(e); + } + } + + // add `code` to the URL query string + if (getCode() != null) { + try { + joiner.add( + String.format( + "%scode%s=%s", + prefix, + suffix, + URLEncoder.encode(String.valueOf(getCode()), "UTF-8").replaceAll("\\+", "%20"))); + } catch (UnsupportedEncodingException e) { + // Should never happen, UTF-8 is always supported + throw new RuntimeException(e); + } + } + + // add `type` to the URL query string + if (getType() != null) { + try { + joiner.add( + String.format( + "%stype%s=%s", + prefix, + suffix, + URLEncoder.encode(String.valueOf(getType()), "UTF-8").replaceAll("\\+", "%20"))); + } catch (UnsupportedEncodingException e) { + // Should never happen, UTF-8 is always supported + throw new RuntimeException(e); + } + } + + // add `detail` to the URL query string + if (getDetail() != null) { + try { + joiner.add( + String.format( + "%sdetail%s=%s", + prefix, + suffix, + URLEncoder.encode(String.valueOf(getDetail()), "UTF-8").replaceAll("\\+", "%20"))); + } catch (UnsupportedEncodingException e) { + // Should never happen, UTF-8 is always supported + throw new RuntimeException(e); + } + } + + // add `instance` to the URL query string + if (getInstance() != null) { + try { + joiner.add( + String.format( + "%sinstance%s=%s", + prefix, + suffix, + URLEncoder.encode(String.valueOf(getInstance()), "UTF-8") + .replaceAll("\\+", "%20"))); + } catch (UnsupportedEncodingException e) { + // Should never happen, UTF-8 is always supported + throw new RuntimeException(e); + } + } + + return joiner.toString(); + } +} diff --git a/java/lance-namespace-apache-client/src/main/java/org/lance/namespace/model/TableTagNotFoundError.java b/java/lance-namespace-apache-client/src/main/java/org/lance/namespace/model/TableTagNotFoundError.java new file mode 100644 index 00000000..8aeb6b8c --- /dev/null +++ b/java/lance-namespace-apache-client/src/main/java/org/lance/namespace/model/TableTagNotFoundError.java @@ -0,0 +1,392 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package org.lance.namespace.model; + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.annotation.JsonValue; + +import java.io.UnsupportedEncodingException; +import java.net.URLEncoder; +import java.util.Objects; +import java.util.StringJoiner; + +/** The requested tag does not exist */ +@JsonPropertyOrder({ + TableTagNotFoundError.JSON_PROPERTY_ERROR, + TableTagNotFoundError.JSON_PROPERTY_CODE, + TableTagNotFoundError.JSON_PROPERTY_TYPE, + TableTagNotFoundError.JSON_PROPERTY_DETAIL, + TableTagNotFoundError.JSON_PROPERTY_INSTANCE +}) +@javax.annotation.Generated( + value = "org.openapitools.codegen.languages.JavaClientCodegen", + comments = "Generator version: 7.12.0") +public class TableTagNotFoundError { + public static final String JSON_PROPERTY_ERROR = "error"; + @javax.annotation.Nonnull private String error; + + /** HTTP status code */ + public enum CodeEnum { + NUMBER_404(Integer.valueOf(404)); + + private Integer value; + + CodeEnum(Integer value) { + this.value = value; + } + + @JsonValue + public Integer getValue() { + return value; + } + + @Override + public String toString() { + return String.valueOf(value); + } + + @JsonCreator + public static CodeEnum fromValue(Integer value) { + for (CodeEnum b : CodeEnum.values()) { + if (b.value.equals(value)) { + return b; + } + } + throw new IllegalArgumentException("Unexpected value '" + value + "'"); + } + } + + public static final String JSON_PROPERTY_CODE = "code"; + @javax.annotation.Nonnull private CodeEnum code; + + /** Error type identifier */ + public enum TypeEnum { + LANCE_NAMESPACE_401(String.valueOf("lance-namespace:401")); + + private String value; + + TypeEnum(String value) { + this.value = value; + } + + @JsonValue + public String getValue() { + return value; + } + + @Override + public String toString() { + return String.valueOf(value); + } + + @JsonCreator + public static TypeEnum fromValue(String value) { + for (TypeEnum b : TypeEnum.values()) { + if (b.value.equals(value)) { + return b; + } + } + throw new IllegalArgumentException("Unexpected value '" + value + "'"); + } + } + + public static final String JSON_PROPERTY_TYPE = "type"; + @javax.annotation.Nonnull private TypeEnum type; + + public static final String JSON_PROPERTY_DETAIL = "detail"; + @javax.annotation.Nullable private String detail; + + public static final String JSON_PROPERTY_INSTANCE = "instance"; + @javax.annotation.Nullable private String instance; + + public TableTagNotFoundError() {} + + public TableTagNotFoundError error(@javax.annotation.Nonnull String error) { + + this.error = error; + return this; + } + + /** + * Brief error message + * + * @return error + */ + @javax.annotation.Nonnull + @JsonProperty(JSON_PROPERTY_ERROR) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public String getError() { + return error; + } + + @JsonProperty(JSON_PROPERTY_ERROR) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public void setError(@javax.annotation.Nonnull String error) { + this.error = error; + } + + public TableTagNotFoundError code(@javax.annotation.Nonnull CodeEnum code) { + + this.code = code; + return this; + } + + /** + * HTTP status code + * + * @return code + */ + @javax.annotation.Nonnull + @JsonProperty(JSON_PROPERTY_CODE) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public CodeEnum getCode() { + return code; + } + + @JsonProperty(JSON_PROPERTY_CODE) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public void setCode(@javax.annotation.Nonnull CodeEnum code) { + this.code = code; + } + + public TableTagNotFoundError type(@javax.annotation.Nonnull TypeEnum type) { + + this.type = type; + return this; + } + + /** + * Error type identifier + * + * @return type + */ + @javax.annotation.Nonnull + @JsonProperty(JSON_PROPERTY_TYPE) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public TypeEnum getType() { + return type; + } + + @JsonProperty(JSON_PROPERTY_TYPE) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public void setType(@javax.annotation.Nonnull TypeEnum type) { + this.type = type; + } + + public TableTagNotFoundError detail(@javax.annotation.Nullable String detail) { + + this.detail = detail; + return this; + } + + /** + * Detailed error explanation + * + * @return detail + */ + @javax.annotation.Nullable + @JsonProperty(JSON_PROPERTY_DETAIL) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getDetail() { + return detail; + } + + @JsonProperty(JSON_PROPERTY_DETAIL) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setDetail(@javax.annotation.Nullable String detail) { + this.detail = detail; + } + + public TableTagNotFoundError instance(@javax.annotation.Nullable String instance) { + + this.instance = instance; + return this; + } + + /** + * Specific occurrence identifier + * + * @return instance + */ + @javax.annotation.Nullable + @JsonProperty(JSON_PROPERTY_INSTANCE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getInstance() { + return instance; + } + + @JsonProperty(JSON_PROPERTY_INSTANCE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setInstance(@javax.annotation.Nullable String instance) { + this.instance = instance; + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + TableTagNotFoundError tableTagNotFoundError = (TableTagNotFoundError) o; + return Objects.equals(this.error, tableTagNotFoundError.error) + && Objects.equals(this.code, tableTagNotFoundError.code) + && Objects.equals(this.type, tableTagNotFoundError.type) + && Objects.equals(this.detail, tableTagNotFoundError.detail) + && Objects.equals(this.instance, tableTagNotFoundError.instance); + } + + @Override + public int hashCode() { + return Objects.hash(error, code, type, detail, instance); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class TableTagNotFoundError {\n"); + sb.append(" error: ").append(toIndentedString(error)).append("\n"); + sb.append(" code: ").append(toIndentedString(code)).append("\n"); + sb.append(" type: ").append(toIndentedString(type)).append("\n"); + sb.append(" detail: ").append(toIndentedString(detail)).append("\n"); + sb.append(" instance: ").append(toIndentedString(instance)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + + /** + * Convert the instance into URL query string. + * + * @return URL query string + */ + public String toUrlQueryString() { + return toUrlQueryString(null); + } + + /** + * Convert the instance into URL query string. + * + * @param prefix prefix of the query string + * @return URL query string + */ + public String toUrlQueryString(String prefix) { + String suffix = ""; + String containerSuffix = ""; + String containerPrefix = ""; + if (prefix == null) { + // style=form, explode=true, e.g. /pet?name=cat&type=manx + prefix = ""; + } else { + // deepObject style e.g. /pet?id[name]=cat&id[type]=manx + prefix = prefix + "["; + suffix = "]"; + containerSuffix = "]"; + containerPrefix = "["; + } + + StringJoiner joiner = new StringJoiner("&"); + + // add `error` to the URL query string + if (getError() != null) { + try { + joiner.add( + String.format( + "%serror%s=%s", + prefix, + suffix, + URLEncoder.encode(String.valueOf(getError()), "UTF-8").replaceAll("\\+", "%20"))); + } catch (UnsupportedEncodingException e) { + // Should never happen, UTF-8 is always supported + throw new RuntimeException(e); + } + } + + // add `code` to the URL query string + if (getCode() != null) { + try { + joiner.add( + String.format( + "%scode%s=%s", + prefix, + suffix, + URLEncoder.encode(String.valueOf(getCode()), "UTF-8").replaceAll("\\+", "%20"))); + } catch (UnsupportedEncodingException e) { + // Should never happen, UTF-8 is always supported + throw new RuntimeException(e); + } + } + + // add `type` to the URL query string + if (getType() != null) { + try { + joiner.add( + String.format( + "%stype%s=%s", + prefix, + suffix, + URLEncoder.encode(String.valueOf(getType()), "UTF-8").replaceAll("\\+", "%20"))); + } catch (UnsupportedEncodingException e) { + // Should never happen, UTF-8 is always supported + throw new RuntimeException(e); + } + } + + // add `detail` to the URL query string + if (getDetail() != null) { + try { + joiner.add( + String.format( + "%sdetail%s=%s", + prefix, + suffix, + URLEncoder.encode(String.valueOf(getDetail()), "UTF-8").replaceAll("\\+", "%20"))); + } catch (UnsupportedEncodingException e) { + // Should never happen, UTF-8 is always supported + throw new RuntimeException(e); + } + } + + // add `instance` to the URL query string + if (getInstance() != null) { + try { + joiner.add( + String.format( + "%sinstance%s=%s", + prefix, + suffix, + URLEncoder.encode(String.valueOf(getInstance()), "UTF-8") + .replaceAll("\\+", "%20"))); + } catch (UnsupportedEncodingException e) { + // Should never happen, UTF-8 is always supported + throw new RuntimeException(e); + } + } + + return joiner.toString(); + } +} diff --git a/java/lance-namespace-apache-client/src/main/java/org/lance/namespace/model/TableVersionNotFoundError.java b/java/lance-namespace-apache-client/src/main/java/org/lance/namespace/model/TableVersionNotFoundError.java new file mode 100644 index 00000000..a77e13db --- /dev/null +++ b/java/lance-namespace-apache-client/src/main/java/org/lance/namespace/model/TableVersionNotFoundError.java @@ -0,0 +1,392 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package org.lance.namespace.model; + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.annotation.JsonValue; + +import java.io.UnsupportedEncodingException; +import java.net.URLEncoder; +import java.util.Objects; +import java.util.StringJoiner; + +/** The requested table version does not exist */ +@JsonPropertyOrder({ + TableVersionNotFoundError.JSON_PROPERTY_ERROR, + TableVersionNotFoundError.JSON_PROPERTY_CODE, + TableVersionNotFoundError.JSON_PROPERTY_TYPE, + TableVersionNotFoundError.JSON_PROPERTY_DETAIL, + TableVersionNotFoundError.JSON_PROPERTY_INSTANCE +}) +@javax.annotation.Generated( + value = "org.openapitools.codegen.languages.JavaClientCodegen", + comments = "Generator version: 7.12.0") +public class TableVersionNotFoundError { + public static final String JSON_PROPERTY_ERROR = "error"; + @javax.annotation.Nonnull private String error; + + /** HTTP status code */ + public enum CodeEnum { + NUMBER_404(Integer.valueOf(404)); + + private Integer value; + + CodeEnum(Integer value) { + this.value = value; + } + + @JsonValue + public Integer getValue() { + return value; + } + + @Override + public String toString() { + return String.valueOf(value); + } + + @JsonCreator + public static CodeEnum fromValue(Integer value) { + for (CodeEnum b : CodeEnum.values()) { + if (b.value.equals(value)) { + return b; + } + } + throw new IllegalArgumentException("Unexpected value '" + value + "'"); + } + } + + public static final String JSON_PROPERTY_CODE = "code"; + @javax.annotation.Nonnull private CodeEnum code; + + /** Error type identifier */ + public enum TypeEnum { + LANCE_NAMESPACE_203(String.valueOf("lance-namespace:203")); + + private String value; + + TypeEnum(String value) { + this.value = value; + } + + @JsonValue + public String getValue() { + return value; + } + + @Override + public String toString() { + return String.valueOf(value); + } + + @JsonCreator + public static TypeEnum fromValue(String value) { + for (TypeEnum b : TypeEnum.values()) { + if (b.value.equals(value)) { + return b; + } + } + throw new IllegalArgumentException("Unexpected value '" + value + "'"); + } + } + + public static final String JSON_PROPERTY_TYPE = "type"; + @javax.annotation.Nonnull private TypeEnum type; + + public static final String JSON_PROPERTY_DETAIL = "detail"; + @javax.annotation.Nullable private String detail; + + public static final String JSON_PROPERTY_INSTANCE = "instance"; + @javax.annotation.Nullable private String instance; + + public TableVersionNotFoundError() {} + + public TableVersionNotFoundError error(@javax.annotation.Nonnull String error) { + + this.error = error; + return this; + } + + /** + * Brief error message + * + * @return error + */ + @javax.annotation.Nonnull + @JsonProperty(JSON_PROPERTY_ERROR) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public String getError() { + return error; + } + + @JsonProperty(JSON_PROPERTY_ERROR) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public void setError(@javax.annotation.Nonnull String error) { + this.error = error; + } + + public TableVersionNotFoundError code(@javax.annotation.Nonnull CodeEnum code) { + + this.code = code; + return this; + } + + /** + * HTTP status code + * + * @return code + */ + @javax.annotation.Nonnull + @JsonProperty(JSON_PROPERTY_CODE) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public CodeEnum getCode() { + return code; + } + + @JsonProperty(JSON_PROPERTY_CODE) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public void setCode(@javax.annotation.Nonnull CodeEnum code) { + this.code = code; + } + + public TableVersionNotFoundError type(@javax.annotation.Nonnull TypeEnum type) { + + this.type = type; + return this; + } + + /** + * Error type identifier + * + * @return type + */ + @javax.annotation.Nonnull + @JsonProperty(JSON_PROPERTY_TYPE) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public TypeEnum getType() { + return type; + } + + @JsonProperty(JSON_PROPERTY_TYPE) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public void setType(@javax.annotation.Nonnull TypeEnum type) { + this.type = type; + } + + public TableVersionNotFoundError detail(@javax.annotation.Nullable String detail) { + + this.detail = detail; + return this; + } + + /** + * Detailed error explanation + * + * @return detail + */ + @javax.annotation.Nullable + @JsonProperty(JSON_PROPERTY_DETAIL) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getDetail() { + return detail; + } + + @JsonProperty(JSON_PROPERTY_DETAIL) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setDetail(@javax.annotation.Nullable String detail) { + this.detail = detail; + } + + public TableVersionNotFoundError instance(@javax.annotation.Nullable String instance) { + + this.instance = instance; + return this; + } + + /** + * Specific occurrence identifier + * + * @return instance + */ + @javax.annotation.Nullable + @JsonProperty(JSON_PROPERTY_INSTANCE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getInstance() { + return instance; + } + + @JsonProperty(JSON_PROPERTY_INSTANCE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setInstance(@javax.annotation.Nullable String instance) { + this.instance = instance; + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + TableVersionNotFoundError tableVersionNotFoundError = (TableVersionNotFoundError) o; + return Objects.equals(this.error, tableVersionNotFoundError.error) + && Objects.equals(this.code, tableVersionNotFoundError.code) + && Objects.equals(this.type, tableVersionNotFoundError.type) + && Objects.equals(this.detail, tableVersionNotFoundError.detail) + && Objects.equals(this.instance, tableVersionNotFoundError.instance); + } + + @Override + public int hashCode() { + return Objects.hash(error, code, type, detail, instance); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class TableVersionNotFoundError {\n"); + sb.append(" error: ").append(toIndentedString(error)).append("\n"); + sb.append(" code: ").append(toIndentedString(code)).append("\n"); + sb.append(" type: ").append(toIndentedString(type)).append("\n"); + sb.append(" detail: ").append(toIndentedString(detail)).append("\n"); + sb.append(" instance: ").append(toIndentedString(instance)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + + /** + * Convert the instance into URL query string. + * + * @return URL query string + */ + public String toUrlQueryString() { + return toUrlQueryString(null); + } + + /** + * Convert the instance into URL query string. + * + * @param prefix prefix of the query string + * @return URL query string + */ + public String toUrlQueryString(String prefix) { + String suffix = ""; + String containerSuffix = ""; + String containerPrefix = ""; + if (prefix == null) { + // style=form, explode=true, e.g. /pet?name=cat&type=manx + prefix = ""; + } else { + // deepObject style e.g. /pet?id[name]=cat&id[type]=manx + prefix = prefix + "["; + suffix = "]"; + containerSuffix = "]"; + containerPrefix = "["; + } + + StringJoiner joiner = new StringJoiner("&"); + + // add `error` to the URL query string + if (getError() != null) { + try { + joiner.add( + String.format( + "%serror%s=%s", + prefix, + suffix, + URLEncoder.encode(String.valueOf(getError()), "UTF-8").replaceAll("\\+", "%20"))); + } catch (UnsupportedEncodingException e) { + // Should never happen, UTF-8 is always supported + throw new RuntimeException(e); + } + } + + // add `code` to the URL query string + if (getCode() != null) { + try { + joiner.add( + String.format( + "%scode%s=%s", + prefix, + suffix, + URLEncoder.encode(String.valueOf(getCode()), "UTF-8").replaceAll("\\+", "%20"))); + } catch (UnsupportedEncodingException e) { + // Should never happen, UTF-8 is always supported + throw new RuntimeException(e); + } + } + + // add `type` to the URL query string + if (getType() != null) { + try { + joiner.add( + String.format( + "%stype%s=%s", + prefix, + suffix, + URLEncoder.encode(String.valueOf(getType()), "UTF-8").replaceAll("\\+", "%20"))); + } catch (UnsupportedEncodingException e) { + // Should never happen, UTF-8 is always supported + throw new RuntimeException(e); + } + } + + // add `detail` to the URL query string + if (getDetail() != null) { + try { + joiner.add( + String.format( + "%sdetail%s=%s", + prefix, + suffix, + URLEncoder.encode(String.valueOf(getDetail()), "UTF-8").replaceAll("\\+", "%20"))); + } catch (UnsupportedEncodingException e) { + // Should never happen, UTF-8 is always supported + throw new RuntimeException(e); + } + } + + // add `instance` to the URL query string + if (getInstance() != null) { + try { + joiner.add( + String.format( + "%sinstance%s=%s", + prefix, + suffix, + URLEncoder.encode(String.valueOf(getInstance()), "UTF-8") + .replaceAll("\\+", "%20"))); + } catch (UnsupportedEncodingException e) { + // Should never happen, UTF-8 is always supported + throw new RuntimeException(e); + } + } + + return joiner.toString(); + } +} diff --git a/java/lance-namespace-apache-client/src/main/java/org/lance/namespace/model/TransactionConflictError.java b/java/lance-namespace-apache-client/src/main/java/org/lance/namespace/model/TransactionConflictError.java new file mode 100644 index 00000000..c0ceb308 --- /dev/null +++ b/java/lance-namespace-apache-client/src/main/java/org/lance/namespace/model/TransactionConflictError.java @@ -0,0 +1,392 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package org.lance.namespace.model; + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.annotation.JsonValue; + +import java.io.UnsupportedEncodingException; +import java.net.URLEncoder; +import java.util.Objects; +import java.util.StringJoiner; + +/** Transaction failed due to concurrent modification */ +@JsonPropertyOrder({ + TransactionConflictError.JSON_PROPERTY_ERROR, + TransactionConflictError.JSON_PROPERTY_CODE, + TransactionConflictError.JSON_PROPERTY_TYPE, + TransactionConflictError.JSON_PROPERTY_DETAIL, + TransactionConflictError.JSON_PROPERTY_INSTANCE +}) +@javax.annotation.Generated( + value = "org.openapitools.codegen.languages.JavaClientCodegen", + comments = "Generator version: 7.12.0") +public class TransactionConflictError { + public static final String JSON_PROPERTY_ERROR = "error"; + @javax.annotation.Nonnull private String error; + + /** HTTP status code */ + public enum CodeEnum { + NUMBER_409(Integer.valueOf(409)); + + private Integer value; + + CodeEnum(Integer value) { + this.value = value; + } + + @JsonValue + public Integer getValue() { + return value; + } + + @Override + public String toString() { + return String.valueOf(value); + } + + @JsonCreator + public static CodeEnum fromValue(Integer value) { + for (CodeEnum b : CodeEnum.values()) { + if (b.value.equals(value)) { + return b; + } + } + throw new IllegalArgumentException("Unexpected value '" + value + "'"); + } + } + + public static final String JSON_PROPERTY_CODE = "code"; + @javax.annotation.Nonnull private CodeEnum code; + + /** Error type identifier */ + public enum TypeEnum { + LANCE_NAMESPACE_502(String.valueOf("lance-namespace:502")); + + private String value; + + TypeEnum(String value) { + this.value = value; + } + + @JsonValue + public String getValue() { + return value; + } + + @Override + public String toString() { + return String.valueOf(value); + } + + @JsonCreator + public static TypeEnum fromValue(String value) { + for (TypeEnum b : TypeEnum.values()) { + if (b.value.equals(value)) { + return b; + } + } + throw new IllegalArgumentException("Unexpected value '" + value + "'"); + } + } + + public static final String JSON_PROPERTY_TYPE = "type"; + @javax.annotation.Nonnull private TypeEnum type; + + public static final String JSON_PROPERTY_DETAIL = "detail"; + @javax.annotation.Nullable private String detail; + + public static final String JSON_PROPERTY_INSTANCE = "instance"; + @javax.annotation.Nullable private String instance; + + public TransactionConflictError() {} + + public TransactionConflictError error(@javax.annotation.Nonnull String error) { + + this.error = error; + return this; + } + + /** + * Brief error message + * + * @return error + */ + @javax.annotation.Nonnull + @JsonProperty(JSON_PROPERTY_ERROR) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public String getError() { + return error; + } + + @JsonProperty(JSON_PROPERTY_ERROR) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public void setError(@javax.annotation.Nonnull String error) { + this.error = error; + } + + public TransactionConflictError code(@javax.annotation.Nonnull CodeEnum code) { + + this.code = code; + return this; + } + + /** + * HTTP status code + * + * @return code + */ + @javax.annotation.Nonnull + @JsonProperty(JSON_PROPERTY_CODE) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public CodeEnum getCode() { + return code; + } + + @JsonProperty(JSON_PROPERTY_CODE) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public void setCode(@javax.annotation.Nonnull CodeEnum code) { + this.code = code; + } + + public TransactionConflictError type(@javax.annotation.Nonnull TypeEnum type) { + + this.type = type; + return this; + } + + /** + * Error type identifier + * + * @return type + */ + @javax.annotation.Nonnull + @JsonProperty(JSON_PROPERTY_TYPE) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public TypeEnum getType() { + return type; + } + + @JsonProperty(JSON_PROPERTY_TYPE) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public void setType(@javax.annotation.Nonnull TypeEnum type) { + this.type = type; + } + + public TransactionConflictError detail(@javax.annotation.Nullable String detail) { + + this.detail = detail; + return this; + } + + /** + * Detailed error explanation + * + * @return detail + */ + @javax.annotation.Nullable + @JsonProperty(JSON_PROPERTY_DETAIL) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getDetail() { + return detail; + } + + @JsonProperty(JSON_PROPERTY_DETAIL) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setDetail(@javax.annotation.Nullable String detail) { + this.detail = detail; + } + + public TransactionConflictError instance(@javax.annotation.Nullable String instance) { + + this.instance = instance; + return this; + } + + /** + * Specific occurrence identifier + * + * @return instance + */ + @javax.annotation.Nullable + @JsonProperty(JSON_PROPERTY_INSTANCE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getInstance() { + return instance; + } + + @JsonProperty(JSON_PROPERTY_INSTANCE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setInstance(@javax.annotation.Nullable String instance) { + this.instance = instance; + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + TransactionConflictError transactionConflictError = (TransactionConflictError) o; + return Objects.equals(this.error, transactionConflictError.error) + && Objects.equals(this.code, transactionConflictError.code) + && Objects.equals(this.type, transactionConflictError.type) + && Objects.equals(this.detail, transactionConflictError.detail) + && Objects.equals(this.instance, transactionConflictError.instance); + } + + @Override + public int hashCode() { + return Objects.hash(error, code, type, detail, instance); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class TransactionConflictError {\n"); + sb.append(" error: ").append(toIndentedString(error)).append("\n"); + sb.append(" code: ").append(toIndentedString(code)).append("\n"); + sb.append(" type: ").append(toIndentedString(type)).append("\n"); + sb.append(" detail: ").append(toIndentedString(detail)).append("\n"); + sb.append(" instance: ").append(toIndentedString(instance)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + + /** + * Convert the instance into URL query string. + * + * @return URL query string + */ + public String toUrlQueryString() { + return toUrlQueryString(null); + } + + /** + * Convert the instance into URL query string. + * + * @param prefix prefix of the query string + * @return URL query string + */ + public String toUrlQueryString(String prefix) { + String suffix = ""; + String containerSuffix = ""; + String containerPrefix = ""; + if (prefix == null) { + // style=form, explode=true, e.g. /pet?name=cat&type=manx + prefix = ""; + } else { + // deepObject style e.g. /pet?id[name]=cat&id[type]=manx + prefix = prefix + "["; + suffix = "]"; + containerSuffix = "]"; + containerPrefix = "["; + } + + StringJoiner joiner = new StringJoiner("&"); + + // add `error` to the URL query string + if (getError() != null) { + try { + joiner.add( + String.format( + "%serror%s=%s", + prefix, + suffix, + URLEncoder.encode(String.valueOf(getError()), "UTF-8").replaceAll("\\+", "%20"))); + } catch (UnsupportedEncodingException e) { + // Should never happen, UTF-8 is always supported + throw new RuntimeException(e); + } + } + + // add `code` to the URL query string + if (getCode() != null) { + try { + joiner.add( + String.format( + "%scode%s=%s", + prefix, + suffix, + URLEncoder.encode(String.valueOf(getCode()), "UTF-8").replaceAll("\\+", "%20"))); + } catch (UnsupportedEncodingException e) { + // Should never happen, UTF-8 is always supported + throw new RuntimeException(e); + } + } + + // add `type` to the URL query string + if (getType() != null) { + try { + joiner.add( + String.format( + "%stype%s=%s", + prefix, + suffix, + URLEncoder.encode(String.valueOf(getType()), "UTF-8").replaceAll("\\+", "%20"))); + } catch (UnsupportedEncodingException e) { + // Should never happen, UTF-8 is always supported + throw new RuntimeException(e); + } + } + + // add `detail` to the URL query string + if (getDetail() != null) { + try { + joiner.add( + String.format( + "%sdetail%s=%s", + prefix, + suffix, + URLEncoder.encode(String.valueOf(getDetail()), "UTF-8").replaceAll("\\+", "%20"))); + } catch (UnsupportedEncodingException e) { + // Should never happen, UTF-8 is always supported + throw new RuntimeException(e); + } + } + + // add `instance` to the URL query string + if (getInstance() != null) { + try { + joiner.add( + String.format( + "%sinstance%s=%s", + prefix, + suffix, + URLEncoder.encode(String.valueOf(getInstance()), "UTF-8") + .replaceAll("\\+", "%20"))); + } catch (UnsupportedEncodingException e) { + // Should never happen, UTF-8 is always supported + throw new RuntimeException(e); + } + } + + return joiner.toString(); + } +} diff --git a/java/lance-namespace-apache-client/src/main/java/org/lance/namespace/model/TransactionNotFoundError.java b/java/lance-namespace-apache-client/src/main/java/org/lance/namespace/model/TransactionNotFoundError.java new file mode 100644 index 00000000..8813a452 --- /dev/null +++ b/java/lance-namespace-apache-client/src/main/java/org/lance/namespace/model/TransactionNotFoundError.java @@ -0,0 +1,392 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package org.lance.namespace.model; + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.annotation.JsonValue; + +import java.io.UnsupportedEncodingException; +import java.net.URLEncoder; +import java.util.Objects; +import java.util.StringJoiner; + +/** The requested transaction does not exist */ +@JsonPropertyOrder({ + TransactionNotFoundError.JSON_PROPERTY_ERROR, + TransactionNotFoundError.JSON_PROPERTY_CODE, + TransactionNotFoundError.JSON_PROPERTY_TYPE, + TransactionNotFoundError.JSON_PROPERTY_DETAIL, + TransactionNotFoundError.JSON_PROPERTY_INSTANCE +}) +@javax.annotation.Generated( + value = "org.openapitools.codegen.languages.JavaClientCodegen", + comments = "Generator version: 7.12.0") +public class TransactionNotFoundError { + public static final String JSON_PROPERTY_ERROR = "error"; + @javax.annotation.Nonnull private String error; + + /** HTTP status code */ + public enum CodeEnum { + NUMBER_404(Integer.valueOf(404)); + + private Integer value; + + CodeEnum(Integer value) { + this.value = value; + } + + @JsonValue + public Integer getValue() { + return value; + } + + @Override + public String toString() { + return String.valueOf(value); + } + + @JsonCreator + public static CodeEnum fromValue(Integer value) { + for (CodeEnum b : CodeEnum.values()) { + if (b.value.equals(value)) { + return b; + } + } + throw new IllegalArgumentException("Unexpected value '" + value + "'"); + } + } + + public static final String JSON_PROPERTY_CODE = "code"; + @javax.annotation.Nonnull private CodeEnum code; + + /** Error type identifier */ + public enum TypeEnum { + LANCE_NAMESPACE_501(String.valueOf("lance-namespace:501")); + + private String value; + + TypeEnum(String value) { + this.value = value; + } + + @JsonValue + public String getValue() { + return value; + } + + @Override + public String toString() { + return String.valueOf(value); + } + + @JsonCreator + public static TypeEnum fromValue(String value) { + for (TypeEnum b : TypeEnum.values()) { + if (b.value.equals(value)) { + return b; + } + } + throw new IllegalArgumentException("Unexpected value '" + value + "'"); + } + } + + public static final String JSON_PROPERTY_TYPE = "type"; + @javax.annotation.Nonnull private TypeEnum type; + + public static final String JSON_PROPERTY_DETAIL = "detail"; + @javax.annotation.Nullable private String detail; + + public static final String JSON_PROPERTY_INSTANCE = "instance"; + @javax.annotation.Nullable private String instance; + + public TransactionNotFoundError() {} + + public TransactionNotFoundError error(@javax.annotation.Nonnull String error) { + + this.error = error; + return this; + } + + /** + * Brief error message + * + * @return error + */ + @javax.annotation.Nonnull + @JsonProperty(JSON_PROPERTY_ERROR) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public String getError() { + return error; + } + + @JsonProperty(JSON_PROPERTY_ERROR) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public void setError(@javax.annotation.Nonnull String error) { + this.error = error; + } + + public TransactionNotFoundError code(@javax.annotation.Nonnull CodeEnum code) { + + this.code = code; + return this; + } + + /** + * HTTP status code + * + * @return code + */ + @javax.annotation.Nonnull + @JsonProperty(JSON_PROPERTY_CODE) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public CodeEnum getCode() { + return code; + } + + @JsonProperty(JSON_PROPERTY_CODE) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public void setCode(@javax.annotation.Nonnull CodeEnum code) { + this.code = code; + } + + public TransactionNotFoundError type(@javax.annotation.Nonnull TypeEnum type) { + + this.type = type; + return this; + } + + /** + * Error type identifier + * + * @return type + */ + @javax.annotation.Nonnull + @JsonProperty(JSON_PROPERTY_TYPE) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public TypeEnum getType() { + return type; + } + + @JsonProperty(JSON_PROPERTY_TYPE) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public void setType(@javax.annotation.Nonnull TypeEnum type) { + this.type = type; + } + + public TransactionNotFoundError detail(@javax.annotation.Nullable String detail) { + + this.detail = detail; + return this; + } + + /** + * Detailed error explanation + * + * @return detail + */ + @javax.annotation.Nullable + @JsonProperty(JSON_PROPERTY_DETAIL) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getDetail() { + return detail; + } + + @JsonProperty(JSON_PROPERTY_DETAIL) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setDetail(@javax.annotation.Nullable String detail) { + this.detail = detail; + } + + public TransactionNotFoundError instance(@javax.annotation.Nullable String instance) { + + this.instance = instance; + return this; + } + + /** + * Specific occurrence identifier + * + * @return instance + */ + @javax.annotation.Nullable + @JsonProperty(JSON_PROPERTY_INSTANCE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getInstance() { + return instance; + } + + @JsonProperty(JSON_PROPERTY_INSTANCE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setInstance(@javax.annotation.Nullable String instance) { + this.instance = instance; + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + TransactionNotFoundError transactionNotFoundError = (TransactionNotFoundError) o; + return Objects.equals(this.error, transactionNotFoundError.error) + && Objects.equals(this.code, transactionNotFoundError.code) + && Objects.equals(this.type, transactionNotFoundError.type) + && Objects.equals(this.detail, transactionNotFoundError.detail) + && Objects.equals(this.instance, transactionNotFoundError.instance); + } + + @Override + public int hashCode() { + return Objects.hash(error, code, type, detail, instance); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class TransactionNotFoundError {\n"); + sb.append(" error: ").append(toIndentedString(error)).append("\n"); + sb.append(" code: ").append(toIndentedString(code)).append("\n"); + sb.append(" type: ").append(toIndentedString(type)).append("\n"); + sb.append(" detail: ").append(toIndentedString(detail)).append("\n"); + sb.append(" instance: ").append(toIndentedString(instance)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + + /** + * Convert the instance into URL query string. + * + * @return URL query string + */ + public String toUrlQueryString() { + return toUrlQueryString(null); + } + + /** + * Convert the instance into URL query string. + * + * @param prefix prefix of the query string + * @return URL query string + */ + public String toUrlQueryString(String prefix) { + String suffix = ""; + String containerSuffix = ""; + String containerPrefix = ""; + if (prefix == null) { + // style=form, explode=true, e.g. /pet?name=cat&type=manx + prefix = ""; + } else { + // deepObject style e.g. /pet?id[name]=cat&id[type]=manx + prefix = prefix + "["; + suffix = "]"; + containerSuffix = "]"; + containerPrefix = "["; + } + + StringJoiner joiner = new StringJoiner("&"); + + // add `error` to the URL query string + if (getError() != null) { + try { + joiner.add( + String.format( + "%serror%s=%s", + prefix, + suffix, + URLEncoder.encode(String.valueOf(getError()), "UTF-8").replaceAll("\\+", "%20"))); + } catch (UnsupportedEncodingException e) { + // Should never happen, UTF-8 is always supported + throw new RuntimeException(e); + } + } + + // add `code` to the URL query string + if (getCode() != null) { + try { + joiner.add( + String.format( + "%scode%s=%s", + prefix, + suffix, + URLEncoder.encode(String.valueOf(getCode()), "UTF-8").replaceAll("\\+", "%20"))); + } catch (UnsupportedEncodingException e) { + // Should never happen, UTF-8 is always supported + throw new RuntimeException(e); + } + } + + // add `type` to the URL query string + if (getType() != null) { + try { + joiner.add( + String.format( + "%stype%s=%s", + prefix, + suffix, + URLEncoder.encode(String.valueOf(getType()), "UTF-8").replaceAll("\\+", "%20"))); + } catch (UnsupportedEncodingException e) { + // Should never happen, UTF-8 is always supported + throw new RuntimeException(e); + } + } + + // add `detail` to the URL query string + if (getDetail() != null) { + try { + joiner.add( + String.format( + "%sdetail%s=%s", + prefix, + suffix, + URLEncoder.encode(String.valueOf(getDetail()), "UTF-8").replaceAll("\\+", "%20"))); + } catch (UnsupportedEncodingException e) { + // Should never happen, UTF-8 is always supported + throw new RuntimeException(e); + } + } + + // add `instance` to the URL query string + if (getInstance() != null) { + try { + joiner.add( + String.format( + "%sinstance%s=%s", + prefix, + suffix, + URLEncoder.encode(String.valueOf(getInstance()), "UTF-8") + .replaceAll("\\+", "%20"))); + } catch (UnsupportedEncodingException e) { + // Should never happen, UTF-8 is always supported + throw new RuntimeException(e); + } + } + + return joiner.toString(); + } +} diff --git a/java/lance-namespace-apache-client/src/main/java/org/lance/namespace/model/UnknownError.java b/java/lance-namespace-apache-client/src/main/java/org/lance/namespace/model/UnknownError.java new file mode 100644 index 00000000..84b8a806 --- /dev/null +++ b/java/lance-namespace-apache-client/src/main/java/org/lance/namespace/model/UnknownError.java @@ -0,0 +1,392 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package org.lance.namespace.model; + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.annotation.JsonValue; + +import java.io.UnsupportedEncodingException; +import java.net.URLEncoder; +import java.util.Objects; +import java.util.StringJoiner; + +/** Unknown or unclassified error */ +@JsonPropertyOrder({ + UnknownError.JSON_PROPERTY_ERROR, + UnknownError.JSON_PROPERTY_CODE, + UnknownError.JSON_PROPERTY_TYPE, + UnknownError.JSON_PROPERTY_DETAIL, + UnknownError.JSON_PROPERTY_INSTANCE +}) +@javax.annotation.Generated( + value = "org.openapitools.codegen.languages.JavaClientCodegen", + comments = "Generator version: 7.12.0") +public class UnknownError { + public static final String JSON_PROPERTY_ERROR = "error"; + @javax.annotation.Nonnull private String error; + + /** HTTP status code */ + public enum CodeEnum { + NUMBER_500(Integer.valueOf(500)); + + private Integer value; + + CodeEnum(Integer value) { + this.value = value; + } + + @JsonValue + public Integer getValue() { + return value; + } + + @Override + public String toString() { + return String.valueOf(value); + } + + @JsonCreator + public static CodeEnum fromValue(Integer value) { + for (CodeEnum b : CodeEnum.values()) { + if (b.value.equals(value)) { + return b; + } + } + throw new IllegalArgumentException("Unexpected value '" + value + "'"); + } + } + + public static final String JSON_PROPERTY_CODE = "code"; + @javax.annotation.Nonnull private CodeEnum code; + + /** Error type identifier */ + public enum TypeEnum { + LANCE_NAMESPACE_0(String.valueOf("lance-namespace:0")); + + private String value; + + TypeEnum(String value) { + this.value = value; + } + + @JsonValue + public String getValue() { + return value; + } + + @Override + public String toString() { + return String.valueOf(value); + } + + @JsonCreator + public static TypeEnum fromValue(String value) { + for (TypeEnum b : TypeEnum.values()) { + if (b.value.equals(value)) { + return b; + } + } + throw new IllegalArgumentException("Unexpected value '" + value + "'"); + } + } + + public static final String JSON_PROPERTY_TYPE = "type"; + @javax.annotation.Nonnull private TypeEnum type; + + public static final String JSON_PROPERTY_DETAIL = "detail"; + @javax.annotation.Nullable private String detail; + + public static final String JSON_PROPERTY_INSTANCE = "instance"; + @javax.annotation.Nullable private String instance; + + public UnknownError() {} + + public UnknownError error(@javax.annotation.Nonnull String error) { + + this.error = error; + return this; + } + + /** + * Brief error message + * + * @return error + */ + @javax.annotation.Nonnull + @JsonProperty(JSON_PROPERTY_ERROR) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public String getError() { + return error; + } + + @JsonProperty(JSON_PROPERTY_ERROR) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public void setError(@javax.annotation.Nonnull String error) { + this.error = error; + } + + public UnknownError code(@javax.annotation.Nonnull CodeEnum code) { + + this.code = code; + return this; + } + + /** + * HTTP status code + * + * @return code + */ + @javax.annotation.Nonnull + @JsonProperty(JSON_PROPERTY_CODE) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public CodeEnum getCode() { + return code; + } + + @JsonProperty(JSON_PROPERTY_CODE) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public void setCode(@javax.annotation.Nonnull CodeEnum code) { + this.code = code; + } + + public UnknownError type(@javax.annotation.Nonnull TypeEnum type) { + + this.type = type; + return this; + } + + /** + * Error type identifier + * + * @return type + */ + @javax.annotation.Nonnull + @JsonProperty(JSON_PROPERTY_TYPE) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public TypeEnum getType() { + return type; + } + + @JsonProperty(JSON_PROPERTY_TYPE) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public void setType(@javax.annotation.Nonnull TypeEnum type) { + this.type = type; + } + + public UnknownError detail(@javax.annotation.Nullable String detail) { + + this.detail = detail; + return this; + } + + /** + * Detailed error explanation + * + * @return detail + */ + @javax.annotation.Nullable + @JsonProperty(JSON_PROPERTY_DETAIL) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getDetail() { + return detail; + } + + @JsonProperty(JSON_PROPERTY_DETAIL) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setDetail(@javax.annotation.Nullable String detail) { + this.detail = detail; + } + + public UnknownError instance(@javax.annotation.Nullable String instance) { + + this.instance = instance; + return this; + } + + /** + * Specific occurrence identifier + * + * @return instance + */ + @javax.annotation.Nullable + @JsonProperty(JSON_PROPERTY_INSTANCE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getInstance() { + return instance; + } + + @JsonProperty(JSON_PROPERTY_INSTANCE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setInstance(@javax.annotation.Nullable String instance) { + this.instance = instance; + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + UnknownError unknownError = (UnknownError) o; + return Objects.equals(this.error, unknownError.error) + && Objects.equals(this.code, unknownError.code) + && Objects.equals(this.type, unknownError.type) + && Objects.equals(this.detail, unknownError.detail) + && Objects.equals(this.instance, unknownError.instance); + } + + @Override + public int hashCode() { + return Objects.hash(error, code, type, detail, instance); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class UnknownError {\n"); + sb.append(" error: ").append(toIndentedString(error)).append("\n"); + sb.append(" code: ").append(toIndentedString(code)).append("\n"); + sb.append(" type: ").append(toIndentedString(type)).append("\n"); + sb.append(" detail: ").append(toIndentedString(detail)).append("\n"); + sb.append(" instance: ").append(toIndentedString(instance)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + + /** + * Convert the instance into URL query string. + * + * @return URL query string + */ + public String toUrlQueryString() { + return toUrlQueryString(null); + } + + /** + * Convert the instance into URL query string. + * + * @param prefix prefix of the query string + * @return URL query string + */ + public String toUrlQueryString(String prefix) { + String suffix = ""; + String containerSuffix = ""; + String containerPrefix = ""; + if (prefix == null) { + // style=form, explode=true, e.g. /pet?name=cat&type=manx + prefix = ""; + } else { + // deepObject style e.g. /pet?id[name]=cat&id[type]=manx + prefix = prefix + "["; + suffix = "]"; + containerSuffix = "]"; + containerPrefix = "["; + } + + StringJoiner joiner = new StringJoiner("&"); + + // add `error` to the URL query string + if (getError() != null) { + try { + joiner.add( + String.format( + "%serror%s=%s", + prefix, + suffix, + URLEncoder.encode(String.valueOf(getError()), "UTF-8").replaceAll("\\+", "%20"))); + } catch (UnsupportedEncodingException e) { + // Should never happen, UTF-8 is always supported + throw new RuntimeException(e); + } + } + + // add `code` to the URL query string + if (getCode() != null) { + try { + joiner.add( + String.format( + "%scode%s=%s", + prefix, + suffix, + URLEncoder.encode(String.valueOf(getCode()), "UTF-8").replaceAll("\\+", "%20"))); + } catch (UnsupportedEncodingException e) { + // Should never happen, UTF-8 is always supported + throw new RuntimeException(e); + } + } + + // add `type` to the URL query string + if (getType() != null) { + try { + joiner.add( + String.format( + "%stype%s=%s", + prefix, + suffix, + URLEncoder.encode(String.valueOf(getType()), "UTF-8").replaceAll("\\+", "%20"))); + } catch (UnsupportedEncodingException e) { + // Should never happen, UTF-8 is always supported + throw new RuntimeException(e); + } + } + + // add `detail` to the URL query string + if (getDetail() != null) { + try { + joiner.add( + String.format( + "%sdetail%s=%s", + prefix, + suffix, + URLEncoder.encode(String.valueOf(getDetail()), "UTF-8").replaceAll("\\+", "%20"))); + } catch (UnsupportedEncodingException e) { + // Should never happen, UTF-8 is always supported + throw new RuntimeException(e); + } + } + + // add `instance` to the URL query string + if (getInstance() != null) { + try { + joiner.add( + String.format( + "%sinstance%s=%s", + prefix, + suffix, + URLEncoder.encode(String.valueOf(getInstance()), "UTF-8") + .replaceAll("\\+", "%20"))); + } catch (UnsupportedEncodingException e) { + // Should never happen, UTF-8 is always supported + throw new RuntimeException(e); + } + } + + return joiner.toString(); + } +} diff --git a/java/lance-namespace-apache-client/src/main/java/org/lance/namespace/model/UpdateTable400Response.java b/java/lance-namespace-apache-client/src/main/java/org/lance/namespace/model/UpdateTable400Response.java new file mode 100644 index 00000000..7156ef53 --- /dev/null +++ b/java/lance-namespace-apache-client/src/main/java/org/lance/namespace/model/UpdateTable400Response.java @@ -0,0 +1,398 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package org.lance.namespace.model; + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; + +import java.io.UnsupportedEncodingException; +import java.net.URLEncoder; +import java.util.Objects; +import java.util.StringJoiner; + +/** UpdateTable400Response */ +@JsonPropertyOrder({ + UpdateTable400Response.JSON_PROPERTY_ERROR, + UpdateTable400Response.JSON_PROPERTY_CODE, + UpdateTable400Response.JSON_PROPERTY_TYPE, + UpdateTable400Response.JSON_PROPERTY_DETAIL, + UpdateTable400Response.JSON_PROPERTY_INSTANCE +}) +@JsonTypeName("UpdateTable_400_response") +@javax.annotation.Generated( + value = "org.openapitools.codegen.languages.JavaClientCodegen", + comments = "Generator version: 7.12.0") +public class UpdateTable400Response { + public static final String JSON_PROPERTY_ERROR = "error"; + @javax.annotation.Nonnull private String error; + + /** HTTP status code */ + public enum CodeEnum { + NUMBER_400(Integer.valueOf(400)); + + private Integer value; + + CodeEnum(Integer value) { + this.value = value; + } + + @JsonValue + public Integer getValue() { + return value; + } + + @Override + public String toString() { + return String.valueOf(value); + } + + @JsonCreator + public static CodeEnum fromValue(Integer value) { + for (CodeEnum b : CodeEnum.values()) { + if (b.value.equals(value)) { + return b; + } + } + throw new IllegalArgumentException("Unexpected value '" + value + "'"); + } + } + + public static final String JSON_PROPERTY_CODE = "code"; + @javax.annotation.Nonnull private CodeEnum code; + + /** Error type identifier */ + public enum TypeEnum { + LANCE_NAMESPACE_601(String.valueOf("lance-namespace:601")), + + LANCE_NAMESPACE_204(String.valueOf("lance-namespace:204")), + + LANCE_NAMESPACE_602(String.valueOf("lance-namespace:602")); + + private String value; + + TypeEnum(String value) { + this.value = value; + } + + @JsonValue + public String getValue() { + return value; + } + + @Override + public String toString() { + return String.valueOf(value); + } + + @JsonCreator + public static TypeEnum fromValue(String value) { + for (TypeEnum b : TypeEnum.values()) { + if (b.value.equals(value)) { + return b; + } + } + throw new IllegalArgumentException("Unexpected value '" + value + "'"); + } + } + + public static final String JSON_PROPERTY_TYPE = "type"; + @javax.annotation.Nonnull private TypeEnum type; + + public static final String JSON_PROPERTY_DETAIL = "detail"; + @javax.annotation.Nullable private String detail; + + public static final String JSON_PROPERTY_INSTANCE = "instance"; + @javax.annotation.Nullable private String instance; + + public UpdateTable400Response() {} + + public UpdateTable400Response error(@javax.annotation.Nonnull String error) { + + this.error = error; + return this; + } + + /** + * Brief error message + * + * @return error + */ + @javax.annotation.Nonnull + @JsonProperty(JSON_PROPERTY_ERROR) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public String getError() { + return error; + } + + @JsonProperty(JSON_PROPERTY_ERROR) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public void setError(@javax.annotation.Nonnull String error) { + this.error = error; + } + + public UpdateTable400Response code(@javax.annotation.Nonnull CodeEnum code) { + + this.code = code; + return this; + } + + /** + * HTTP status code + * + * @return code + */ + @javax.annotation.Nonnull + @JsonProperty(JSON_PROPERTY_CODE) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public CodeEnum getCode() { + return code; + } + + @JsonProperty(JSON_PROPERTY_CODE) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public void setCode(@javax.annotation.Nonnull CodeEnum code) { + this.code = code; + } + + public UpdateTable400Response type(@javax.annotation.Nonnull TypeEnum type) { + + this.type = type; + return this; + } + + /** + * Error type identifier + * + * @return type + */ + @javax.annotation.Nonnull + @JsonProperty(JSON_PROPERTY_TYPE) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public TypeEnum getType() { + return type; + } + + @JsonProperty(JSON_PROPERTY_TYPE) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public void setType(@javax.annotation.Nonnull TypeEnum type) { + this.type = type; + } + + public UpdateTable400Response detail(@javax.annotation.Nullable String detail) { + + this.detail = detail; + return this; + } + + /** + * Detailed error explanation + * + * @return detail + */ + @javax.annotation.Nullable + @JsonProperty(JSON_PROPERTY_DETAIL) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getDetail() { + return detail; + } + + @JsonProperty(JSON_PROPERTY_DETAIL) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setDetail(@javax.annotation.Nullable String detail) { + this.detail = detail; + } + + public UpdateTable400Response instance(@javax.annotation.Nullable String instance) { + + this.instance = instance; + return this; + } + + /** + * Specific occurrence identifier + * + * @return instance + */ + @javax.annotation.Nullable + @JsonProperty(JSON_PROPERTY_INSTANCE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getInstance() { + return instance; + } + + @JsonProperty(JSON_PROPERTY_INSTANCE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setInstance(@javax.annotation.Nullable String instance) { + this.instance = instance; + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + UpdateTable400Response updateTable400Response = (UpdateTable400Response) o; + return Objects.equals(this.error, updateTable400Response.error) + && Objects.equals(this.code, updateTable400Response.code) + && Objects.equals(this.type, updateTable400Response.type) + && Objects.equals(this.detail, updateTable400Response.detail) + && Objects.equals(this.instance, updateTable400Response.instance); + } + + @Override + public int hashCode() { + return Objects.hash(error, code, type, detail, instance); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class UpdateTable400Response {\n"); + sb.append(" error: ").append(toIndentedString(error)).append("\n"); + sb.append(" code: ").append(toIndentedString(code)).append("\n"); + sb.append(" type: ").append(toIndentedString(type)).append("\n"); + sb.append(" detail: ").append(toIndentedString(detail)).append("\n"); + sb.append(" instance: ").append(toIndentedString(instance)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + + /** + * Convert the instance into URL query string. + * + * @return URL query string + */ + public String toUrlQueryString() { + return toUrlQueryString(null); + } + + /** + * Convert the instance into URL query string. + * + * @param prefix prefix of the query string + * @return URL query string + */ + public String toUrlQueryString(String prefix) { + String suffix = ""; + String containerSuffix = ""; + String containerPrefix = ""; + if (prefix == null) { + // style=form, explode=true, e.g. /pet?name=cat&type=manx + prefix = ""; + } else { + // deepObject style e.g. /pet?id[name]=cat&id[type]=manx + prefix = prefix + "["; + suffix = "]"; + containerSuffix = "]"; + containerPrefix = "["; + } + + StringJoiner joiner = new StringJoiner("&"); + + // add `error` to the URL query string + if (getError() != null) { + try { + joiner.add( + String.format( + "%serror%s=%s", + prefix, + suffix, + URLEncoder.encode(String.valueOf(getError()), "UTF-8").replaceAll("\\+", "%20"))); + } catch (UnsupportedEncodingException e) { + // Should never happen, UTF-8 is always supported + throw new RuntimeException(e); + } + } + + // add `code` to the URL query string + if (getCode() != null) { + try { + joiner.add( + String.format( + "%scode%s=%s", + prefix, + suffix, + URLEncoder.encode(String.valueOf(getCode()), "UTF-8").replaceAll("\\+", "%20"))); + } catch (UnsupportedEncodingException e) { + // Should never happen, UTF-8 is always supported + throw new RuntimeException(e); + } + } + + // add `type` to the URL query string + if (getType() != null) { + try { + joiner.add( + String.format( + "%stype%s=%s", + prefix, + suffix, + URLEncoder.encode(String.valueOf(getType()), "UTF-8").replaceAll("\\+", "%20"))); + } catch (UnsupportedEncodingException e) { + // Should never happen, UTF-8 is always supported + throw new RuntimeException(e); + } + } + + // add `detail` to the URL query string + if (getDetail() != null) { + try { + joiner.add( + String.format( + "%sdetail%s=%s", + prefix, + suffix, + URLEncoder.encode(String.valueOf(getDetail()), "UTF-8").replaceAll("\\+", "%20"))); + } catch (UnsupportedEncodingException e) { + // Should never happen, UTF-8 is always supported + throw new RuntimeException(e); + } + } + + // add `instance` to the URL query string + if (getInstance() != null) { + try { + joiner.add( + String.format( + "%sinstance%s=%s", + prefix, + suffix, + URLEncoder.encode(String.valueOf(getInstance()), "UTF-8") + .replaceAll("\\+", "%20"))); + } catch (UnsupportedEncodingException e) { + // Should never happen, UTF-8 is always supported + throw new RuntimeException(e); + } + } + + return joiner.toString(); + } +} diff --git a/java/lance-namespace-apache-client/src/main/java/org/lance/namespace/model/UpdateTableTag404Response.java b/java/lance-namespace-apache-client/src/main/java/org/lance/namespace/model/UpdateTableTag404Response.java new file mode 100644 index 00000000..81b9418d --- /dev/null +++ b/java/lance-namespace-apache-client/src/main/java/org/lance/namespace/model/UpdateTableTag404Response.java @@ -0,0 +1,398 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package org.lance.namespace.model; + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; + +import java.io.UnsupportedEncodingException; +import java.net.URLEncoder; +import java.util.Objects; +import java.util.StringJoiner; + +/** UpdateTableTag404Response */ +@JsonPropertyOrder({ + UpdateTableTag404Response.JSON_PROPERTY_ERROR, + UpdateTableTag404Response.JSON_PROPERTY_CODE, + UpdateTableTag404Response.JSON_PROPERTY_TYPE, + UpdateTableTag404Response.JSON_PROPERTY_DETAIL, + UpdateTableTag404Response.JSON_PROPERTY_INSTANCE +}) +@JsonTypeName("UpdateTableTag_404_response") +@javax.annotation.Generated( + value = "org.openapitools.codegen.languages.JavaClientCodegen", + comments = "Generator version: 7.12.0") +public class UpdateTableTag404Response { + public static final String JSON_PROPERTY_ERROR = "error"; + @javax.annotation.Nonnull private String error; + + /** HTTP status code */ + public enum CodeEnum { + NUMBER_404(Integer.valueOf(404)); + + private Integer value; + + CodeEnum(Integer value) { + this.value = value; + } + + @JsonValue + public Integer getValue() { + return value; + } + + @Override + public String toString() { + return String.valueOf(value); + } + + @JsonCreator + public static CodeEnum fromValue(Integer value) { + for (CodeEnum b : CodeEnum.values()) { + if (b.value.equals(value)) { + return b; + } + } + throw new IllegalArgumentException("Unexpected value '" + value + "'"); + } + } + + public static final String JSON_PROPERTY_CODE = "code"; + @javax.annotation.Nonnull private CodeEnum code; + + /** Error type identifier */ + public enum TypeEnum { + LANCE_NAMESPACE_201(String.valueOf("lance-namespace:201")), + + LANCE_NAMESPACE_401(String.valueOf("lance-namespace:401")), + + LANCE_NAMESPACE_203(String.valueOf("lance-namespace:203")); + + private String value; + + TypeEnum(String value) { + this.value = value; + } + + @JsonValue + public String getValue() { + return value; + } + + @Override + public String toString() { + return String.valueOf(value); + } + + @JsonCreator + public static TypeEnum fromValue(String value) { + for (TypeEnum b : TypeEnum.values()) { + if (b.value.equals(value)) { + return b; + } + } + throw new IllegalArgumentException("Unexpected value '" + value + "'"); + } + } + + public static final String JSON_PROPERTY_TYPE = "type"; + @javax.annotation.Nonnull private TypeEnum type; + + public static final String JSON_PROPERTY_DETAIL = "detail"; + @javax.annotation.Nullable private String detail; + + public static final String JSON_PROPERTY_INSTANCE = "instance"; + @javax.annotation.Nullable private String instance; + + public UpdateTableTag404Response() {} + + public UpdateTableTag404Response error(@javax.annotation.Nonnull String error) { + + this.error = error; + return this; + } + + /** + * Brief error message + * + * @return error + */ + @javax.annotation.Nonnull + @JsonProperty(JSON_PROPERTY_ERROR) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public String getError() { + return error; + } + + @JsonProperty(JSON_PROPERTY_ERROR) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public void setError(@javax.annotation.Nonnull String error) { + this.error = error; + } + + public UpdateTableTag404Response code(@javax.annotation.Nonnull CodeEnum code) { + + this.code = code; + return this; + } + + /** + * HTTP status code + * + * @return code + */ + @javax.annotation.Nonnull + @JsonProperty(JSON_PROPERTY_CODE) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public CodeEnum getCode() { + return code; + } + + @JsonProperty(JSON_PROPERTY_CODE) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public void setCode(@javax.annotation.Nonnull CodeEnum code) { + this.code = code; + } + + public UpdateTableTag404Response type(@javax.annotation.Nonnull TypeEnum type) { + + this.type = type; + return this; + } + + /** + * Error type identifier + * + * @return type + */ + @javax.annotation.Nonnull + @JsonProperty(JSON_PROPERTY_TYPE) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public TypeEnum getType() { + return type; + } + + @JsonProperty(JSON_PROPERTY_TYPE) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public void setType(@javax.annotation.Nonnull TypeEnum type) { + this.type = type; + } + + public UpdateTableTag404Response detail(@javax.annotation.Nullable String detail) { + + this.detail = detail; + return this; + } + + /** + * Detailed error explanation + * + * @return detail + */ + @javax.annotation.Nullable + @JsonProperty(JSON_PROPERTY_DETAIL) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getDetail() { + return detail; + } + + @JsonProperty(JSON_PROPERTY_DETAIL) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setDetail(@javax.annotation.Nullable String detail) { + this.detail = detail; + } + + public UpdateTableTag404Response instance(@javax.annotation.Nullable String instance) { + + this.instance = instance; + return this; + } + + /** + * Specific occurrence identifier + * + * @return instance + */ + @javax.annotation.Nullable + @JsonProperty(JSON_PROPERTY_INSTANCE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getInstance() { + return instance; + } + + @JsonProperty(JSON_PROPERTY_INSTANCE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setInstance(@javax.annotation.Nullable String instance) { + this.instance = instance; + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + UpdateTableTag404Response updateTableTag404Response = (UpdateTableTag404Response) o; + return Objects.equals(this.error, updateTableTag404Response.error) + && Objects.equals(this.code, updateTableTag404Response.code) + && Objects.equals(this.type, updateTableTag404Response.type) + && Objects.equals(this.detail, updateTableTag404Response.detail) + && Objects.equals(this.instance, updateTableTag404Response.instance); + } + + @Override + public int hashCode() { + return Objects.hash(error, code, type, detail, instance); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class UpdateTableTag404Response {\n"); + sb.append(" error: ").append(toIndentedString(error)).append("\n"); + sb.append(" code: ").append(toIndentedString(code)).append("\n"); + sb.append(" type: ").append(toIndentedString(type)).append("\n"); + sb.append(" detail: ").append(toIndentedString(detail)).append("\n"); + sb.append(" instance: ").append(toIndentedString(instance)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + + /** + * Convert the instance into URL query string. + * + * @return URL query string + */ + public String toUrlQueryString() { + return toUrlQueryString(null); + } + + /** + * Convert the instance into URL query string. + * + * @param prefix prefix of the query string + * @return URL query string + */ + public String toUrlQueryString(String prefix) { + String suffix = ""; + String containerSuffix = ""; + String containerPrefix = ""; + if (prefix == null) { + // style=form, explode=true, e.g. /pet?name=cat&type=manx + prefix = ""; + } else { + // deepObject style e.g. /pet?id[name]=cat&id[type]=manx + prefix = prefix + "["; + suffix = "]"; + containerSuffix = "]"; + containerPrefix = "["; + } + + StringJoiner joiner = new StringJoiner("&"); + + // add `error` to the URL query string + if (getError() != null) { + try { + joiner.add( + String.format( + "%serror%s=%s", + prefix, + suffix, + URLEncoder.encode(String.valueOf(getError()), "UTF-8").replaceAll("\\+", "%20"))); + } catch (UnsupportedEncodingException e) { + // Should never happen, UTF-8 is always supported + throw new RuntimeException(e); + } + } + + // add `code` to the URL query string + if (getCode() != null) { + try { + joiner.add( + String.format( + "%scode%s=%s", + prefix, + suffix, + URLEncoder.encode(String.valueOf(getCode()), "UTF-8").replaceAll("\\+", "%20"))); + } catch (UnsupportedEncodingException e) { + // Should never happen, UTF-8 is always supported + throw new RuntimeException(e); + } + } + + // add `type` to the URL query string + if (getType() != null) { + try { + joiner.add( + String.format( + "%stype%s=%s", + prefix, + suffix, + URLEncoder.encode(String.valueOf(getType()), "UTF-8").replaceAll("\\+", "%20"))); + } catch (UnsupportedEncodingException e) { + // Should never happen, UTF-8 is always supported + throw new RuntimeException(e); + } + } + + // add `detail` to the URL query string + if (getDetail() != null) { + try { + joiner.add( + String.format( + "%sdetail%s=%s", + prefix, + suffix, + URLEncoder.encode(String.valueOf(getDetail()), "UTF-8").replaceAll("\\+", "%20"))); + } catch (UnsupportedEncodingException e) { + // Should never happen, UTF-8 is always supported + throw new RuntimeException(e); + } + } + + // add `instance` to the URL query string + if (getInstance() != null) { + try { + joiner.add( + String.format( + "%sinstance%s=%s", + prefix, + suffix, + URLEncoder.encode(String.valueOf(getInstance()), "UTF-8") + .replaceAll("\\+", "%20"))); + } catch (UnsupportedEncodingException e) { + // Should never happen, UTF-8 is always supported + throw new RuntimeException(e); + } + } + + return joiner.toString(); + } +} diff --git a/java/lance-namespace-springboot-server/src/main/java/org/lance/namespace/server/springboot/api/NamespaceApi.java b/java/lance-namespace-springboot-server/src/main/java/org/lance/namespace/server/springboot/api/NamespaceApi.java index 0aecdf3b..b7bb22c6 100644 --- a/java/lance-namespace-springboot-server/src/main/java/org/lance/namespace/server/springboot/api/NamespaceApi.java +++ b/java/lance-namespace-springboot-server/src/main/java/org/lance/namespace/server/springboot/api/NamespaceApi.java @@ -13,6 +13,7 @@ */ package org.lance.namespace.server.springboot.api; +import org.lance.namespace.server.springboot.model.CreateNamespace400Response; import org.lance.namespace.server.springboot.model.CreateNamespaceRequest; import org.lance.namespace.server.springboot.model.CreateNamespaceResponse; import org.lance.namespace.server.springboot.model.DescribeNamespaceRequest; @@ -20,9 +21,15 @@ import org.lance.namespace.server.springboot.model.DropNamespaceRequest; import org.lance.namespace.server.springboot.model.DropNamespaceResponse; import org.lance.namespace.server.springboot.model.ErrorResponse; +import org.lance.namespace.server.springboot.model.InvalidRequestError; import org.lance.namespace.server.springboot.model.ListNamespacesResponse; import org.lance.namespace.server.springboot.model.ListTablesResponse; +import org.lance.namespace.server.springboot.model.NamespaceAlreadyExistsError; import org.lance.namespace.server.springboot.model.NamespaceExistsRequest; +import org.lance.namespace.server.springboot.model.NamespaceNotEmptyError; +import org.lance.namespace.server.springboot.model.NamespaceNotFoundError; +import org.lance.namespace.server.springboot.model.ParentNamespaceNotFoundError; +import org.lance.namespace.server.springboot.model.UnknownError; import io.swagger.v3.oas.annotations.Operation; import io.swagger.v3.oas.annotations.Parameter; @@ -69,20 +76,15 @@ default Optional getRequest() { * @param delimiter An optional delimiter of the `string identifier`, following the * Lance Namespace spec. When not specified, the `$` delimiter must be used. * (optional) - * @return Result of creating a namespace (status code 200) or Indicates a bad request error. It - * could be caused by an unexpected request body format or other forms of request validation - * failure, such as invalid json. Usually serves application/json content, although in some - * cases simple text/plain content might be returned by the server's middleware. (status - * code 400) or Unauthorized. The request lacks valid authentication credentials for the - * operation. (status code 401) or Forbidden. Authenticated user does not have the necessary - * permissions. (status code 403) or A server-side problem that means can not find the - * specified resource. (status code 404) or Not Acceptable / Unsupported Operation. The server - * does not support this operation. (status code 406) or The request conflicts with the - * current state of the target resource. (status code 409) or The service is not ready to - * handle the request. The client should wait and retry. The service may additionally send a - * Retry-After header to indicate when to retry. (status code 503) or A server-side problem - * that might not be addressable from the client side. Used for server 5xx errors without more - * specific documentation in individual routes. (status code 5XX) + * @return Result of creating a namespace (status code 200) or Bad request - invalid request + * format or identifier (status code 400) or Unauthorized. The request lacks valid + * authentication credentials for the operation. (status code 401) or Forbidden. Authenticated + * user does not have the necessary permissions. (status code 403) or The parent namespace + * does not exist (status code 404) or Not Acceptable / Unsupported Operation. The server does + * not support this operation. (status code 406) or A namespace with the same name already + * exists (status code 409) or The service is not ready to handle the request. The client + * should wait and retry. The service may additionally send a Retry-After header to indicate + * when to retry. (status code 503) or Unknown or unclassified error (status code 5XX) */ @Operation( operationId = "createNamespace", @@ -101,12 +103,11 @@ default Optional getRequest() { }), @ApiResponse( responseCode = "400", - description = - "Indicates a bad request error. It could be caused by an unexpected request body format or other forms of request validation failure, such as invalid json. Usually serves application/json content, although in some cases simple text/plain content might be returned by the server's middleware.", + description = "Bad request - invalid request format or identifier", content = { @Content( mediaType = "application/json", - schema = @Schema(implementation = ErrorResponse.class)) + schema = @Schema(implementation = CreateNamespace400Response.class)) }), @ApiResponse( responseCode = "401", @@ -127,11 +128,11 @@ default Optional getRequest() { }), @ApiResponse( responseCode = "404", - description = "A server-side problem that means can not find the specified resource.", + description = "The parent namespace does not exist", content = { @Content( mediaType = "application/json", - schema = @Schema(implementation = ErrorResponse.class)) + schema = @Schema(implementation = ParentNamespaceNotFoundError.class)) }), @ApiResponse( responseCode = "406", @@ -144,11 +145,11 @@ default Optional getRequest() { }), @ApiResponse( responseCode = "409", - description = "The request conflicts with the current state of the target resource.", + description = "A namespace with the same name already exists", content = { @Content( mediaType = "application/json", - schema = @Schema(implementation = ErrorResponse.class)) + schema = @Schema(implementation = NamespaceAlreadyExistsError.class)) }), @ApiResponse( responseCode = "503", @@ -161,12 +162,11 @@ default Optional getRequest() { }), @ApiResponse( responseCode = "5XX", - description = - "A server-side problem that might not be addressable from the client side. Used for server 5xx errors without more specific documentation in individual routes.", + description = "Unknown or unclassified error", content = { @Content( mediaType = "application/json", - schema = @Schema(implementation = ErrorResponse.class)) + schema = @Schema(implementation = UnknownError.class)) }) }) @RequestMapping( @@ -206,7 +206,7 @@ default ResponseEntity createNamespace( } if (mediaType.isCompatibleWith(MediaType.valueOf("application/json"))) { String exampleString = - "{ \"code\" : 404, \"instance\" : \"/login/log/abc123\", \"detail\" : \"Authentication failed due to incorrect username or password\", \"error\" : \"Incorrect username or password\", \"type\" : \"/errors/incorrect-user-pass\" }"; + "{ \"code\" : 0, \"instance\" : \"instance\", \"detail\" : \"detail\", \"error\" : \"Invalid request\", \"type\" : \"lance-namespace:601\" }"; ApiUtil.setExampleResponse(request, "application/json", exampleString); break; } @@ -224,7 +224,7 @@ default ResponseEntity createNamespace( } if (mediaType.isCompatibleWith(MediaType.valueOf("application/json"))) { String exampleString = - "{ \"code\" : 404, \"instance\" : \"/login/log/abc123\", \"detail\" : \"Authentication failed due to incorrect username or password\", \"error\" : \"Incorrect username or password\", \"type\" : \"/errors/incorrect-user-pass\" }"; + "{ \"code\" : 6, \"instance\" : \"instance\", \"detail\" : \"detail\", \"error\" : \"Parent namespace not found\", \"type\" : \"lance-namespace:103\" }"; ApiUtil.setExampleResponse(request, "application/json", exampleString); break; } @@ -236,7 +236,7 @@ default ResponseEntity createNamespace( } if (mediaType.isCompatibleWith(MediaType.valueOf("application/json"))) { String exampleString = - "{ \"code\" : 404, \"instance\" : \"/login/log/abc123\", \"detail\" : \"Authentication failed due to incorrect username or password\", \"error\" : \"Incorrect username or password\", \"type\" : \"/errors/incorrect-user-pass\" }"; + "{ \"code\" : 1, \"instance\" : \"instance\", \"detail\" : \"detail\", \"error\" : \"Namespace already exists\", \"type\" : \"lance-namespace:102\" }"; ApiUtil.setExampleResponse(request, "application/json", exampleString); break; } @@ -248,7 +248,7 @@ default ResponseEntity createNamespace( } if (mediaType.isCompatibleWith(MediaType.valueOf("application/json"))) { String exampleString = - "{ \"code\" : 404, \"instance\" : \"/login/log/abc123\", \"detail\" : \"Authentication failed due to incorrect username or password\", \"error\" : \"Incorrect username or password\", \"type\" : \"/errors/incorrect-user-pass\" }"; + "{ \"code\" : 5, \"instance\" : \"instance\", \"detail\" : \"detail\", \"error\" : \"Unknown error\", \"type\" : \"lance-namespace:0\" }"; ApiUtil.setExampleResponse(request, "application/json", exampleString); break; } @@ -270,18 +270,14 @@ default ResponseEntity createNamespace( * Lance Namespace spec. When not specified, the `$` delimiter must be used. * (optional) * @return Returns a namespace, as well as any properties stored on the namespace if namespace - * properties are supported by the server. (status code 200) or Indicates a bad request error. - * It could be caused by an unexpected request body format or other forms of request - * validation failure, such as invalid json. Usually serves application/json content, although - * in some cases simple text/plain content might be returned by the server's middleware. - * (status code 400) or Unauthorized. The request lacks valid authentication credentials for - * the operation. (status code 401) or Forbidden. Authenticated user does not have the - * necessary permissions. (status code 403) or A server-side problem that means can not find - * the specified resource. (status code 404) or The service is not ready to handle the - * request. The client should wait and retry. The service may additionally send a Retry-After - * header to indicate when to retry. (status code 503) or A server-side problem that might not - * be addressable from the client side. Used for server 5xx errors without more specific - * documentation in individual routes. (status code 5XX) + * properties are supported by the server. (status code 200) or Malformed request or + * validation failure (status code 400) or Unauthorized. The request lacks valid + * authentication credentials for the operation. (status code 401) or Forbidden. Authenticated + * user does not have the necessary permissions. (status code 403) or The requested namespace + * does not exist (status code 404) or The service is not ready to handle the request. The + * client should wait and retry. The service may additionally send a Retry-After header to + * indicate when to retry. (status code 503) or Unknown or unclassified error (status code + * 5XX) */ @Operation( operationId = "describeNamespace", @@ -300,12 +296,11 @@ default ResponseEntity createNamespace( }), @ApiResponse( responseCode = "400", - description = - "Indicates a bad request error. It could be caused by an unexpected request body format or other forms of request validation failure, such as invalid json. Usually serves application/json content, although in some cases simple text/plain content might be returned by the server's middleware.", + description = "Malformed request or validation failure", content = { @Content( mediaType = "application/json", - schema = @Schema(implementation = ErrorResponse.class)) + schema = @Schema(implementation = InvalidRequestError.class)) }), @ApiResponse( responseCode = "401", @@ -326,11 +321,11 @@ default ResponseEntity createNamespace( }), @ApiResponse( responseCode = "404", - description = "A server-side problem that means can not find the specified resource.", + description = "The requested namespace does not exist", content = { @Content( mediaType = "application/json", - schema = @Schema(implementation = ErrorResponse.class)) + schema = @Schema(implementation = NamespaceNotFoundError.class)) }), @ApiResponse( responseCode = "503", @@ -343,12 +338,11 @@ default ResponseEntity createNamespace( }), @ApiResponse( responseCode = "5XX", - description = - "A server-side problem that might not be addressable from the client side. Used for server 5xx errors without more specific documentation in individual routes.", + description = "Unknown or unclassified error", content = { @Content( mediaType = "application/json", - schema = @Schema(implementation = ErrorResponse.class)) + schema = @Schema(implementation = UnknownError.class)) }) }) @RequestMapping( @@ -389,7 +383,7 @@ default ResponseEntity describeNamespace( } if (mediaType.isCompatibleWith(MediaType.valueOf("application/json"))) { String exampleString = - "{ \"code\" : 404, \"instance\" : \"/login/log/abc123\", \"detail\" : \"Authentication failed due to incorrect username or password\", \"error\" : \"Incorrect username or password\", \"type\" : \"/errors/incorrect-user-pass\" }"; + "{ \"code\" : 0, \"instance\" : \"instance\", \"detail\" : \"detail\", \"error\" : \"Invalid request\", \"type\" : \"lance-namespace:601\" }"; ApiUtil.setExampleResponse(request, "application/json", exampleString); break; } @@ -407,7 +401,7 @@ default ResponseEntity describeNamespace( } if (mediaType.isCompatibleWith(MediaType.valueOf("application/json"))) { String exampleString = - "{ \"code\" : 404, \"instance\" : \"/login/log/abc123\", \"detail\" : \"Authentication failed due to incorrect username or password\", \"error\" : \"Incorrect username or password\", \"type\" : \"/errors/incorrect-user-pass\" }"; + "{ \"code\" : 0, \"instance\" : \"instance\", \"detail\" : \"detail\", \"error\" : \"Namespace not found\", \"type\" : \"lance-namespace:101\" }"; ApiUtil.setExampleResponse(request, "application/json", exampleString); break; } @@ -419,7 +413,7 @@ default ResponseEntity describeNamespace( } if (mediaType.isCompatibleWith(MediaType.valueOf("application/json"))) { String exampleString = - "{ \"code\" : 404, \"instance\" : \"/login/log/abc123\", \"detail\" : \"Authentication failed due to incorrect username or password\", \"error\" : \"Incorrect username or password\", \"type\" : \"/errors/incorrect-user-pass\" }"; + "{ \"code\" : 5, \"instance\" : \"instance\", \"detail\" : \"detail\", \"error\" : \"Unknown error\", \"type\" : \"lance-namespace:0\" }"; ApiUtil.setExampleResponse(request, "application/json", exampleString); break; } @@ -440,19 +434,14 @@ default ResponseEntity describeNamespace( * @param delimiter An optional delimiter of the `string identifier`, following the * Lance Namespace spec. When not specified, the `$` delimiter must be used. * (optional) - * @return Result of dropping a namespace (status code 200) or Indicates a bad request error. It - * could be caused by an unexpected request body format or other forms of request validation - * failure, such as invalid json. Usually serves application/json content, although in some - * cases simple text/plain content might be returned by the server's middleware. (status - * code 400) or Unauthorized. The request lacks valid authentication credentials for the - * operation. (status code 401) or Forbidden. Authenticated user does not have the necessary - * permissions. (status code 403) or A server-side problem that means can not find the - * specified resource. (status code 404) or The request conflicts with the current state of - * the target resource. (status code 409) or The service is not ready to handle the request. - * The client should wait and retry. The service may additionally send a Retry-After header to - * indicate when to retry. (status code 503) or A server-side problem that might not be - * addressable from the client side. Used for server 5xx errors without more specific - * documentation in individual routes. (status code 5XX) + * @return Result of dropping a namespace (status code 200) or Malformed request or validation + * failure (status code 400) or Unauthorized. The request lacks valid authentication + * credentials for the operation. (status code 401) or Forbidden. Authenticated user does not + * have the necessary permissions. (status code 403) or The requested namespace does not exist + * (status code 404) or Cannot drop namespace because it contains tables or child namespaces + * (status code 409) or The service is not ready to handle the request. The client should wait + * and retry. The service may additionally send a Retry-After header to indicate when to + * retry. (status code 503) or Unknown or unclassified error (status code 5XX) */ @Operation( operationId = "dropNamespace", @@ -470,12 +459,11 @@ default ResponseEntity describeNamespace( }), @ApiResponse( responseCode = "400", - description = - "Indicates a bad request error. It could be caused by an unexpected request body format or other forms of request validation failure, such as invalid json. Usually serves application/json content, although in some cases simple text/plain content might be returned by the server's middleware.", + description = "Malformed request or validation failure", content = { @Content( mediaType = "application/json", - schema = @Schema(implementation = ErrorResponse.class)) + schema = @Schema(implementation = InvalidRequestError.class)) }), @ApiResponse( responseCode = "401", @@ -496,19 +484,19 @@ default ResponseEntity describeNamespace( }), @ApiResponse( responseCode = "404", - description = "A server-side problem that means can not find the specified resource.", + description = "The requested namespace does not exist", content = { @Content( mediaType = "application/json", - schema = @Schema(implementation = ErrorResponse.class)) + schema = @Schema(implementation = NamespaceNotFoundError.class)) }), @ApiResponse( responseCode = "409", - description = "The request conflicts with the current state of the target resource.", + description = "Cannot drop namespace because it contains tables or child namespaces", content = { @Content( mediaType = "application/json", - schema = @Schema(implementation = ErrorResponse.class)) + schema = @Schema(implementation = NamespaceNotEmptyError.class)) }), @ApiResponse( responseCode = "503", @@ -521,12 +509,11 @@ default ResponseEntity describeNamespace( }), @ApiResponse( responseCode = "5XX", - description = - "A server-side problem that might not be addressable from the client side. Used for server 5xx errors without more specific documentation in individual routes.", + description = "Unknown or unclassified error", content = { @Content( mediaType = "application/json", - schema = @Schema(implementation = ErrorResponse.class)) + schema = @Schema(implementation = UnknownError.class)) }) }) @RequestMapping( @@ -567,7 +554,7 @@ default ResponseEntity dropNamespace( } if (mediaType.isCompatibleWith(MediaType.valueOf("application/json"))) { String exampleString = - "{ \"code\" : 404, \"instance\" : \"/login/log/abc123\", \"detail\" : \"Authentication failed due to incorrect username or password\", \"error\" : \"Incorrect username or password\", \"type\" : \"/errors/incorrect-user-pass\" }"; + "{ \"code\" : 0, \"instance\" : \"instance\", \"detail\" : \"detail\", \"error\" : \"Invalid request\", \"type\" : \"lance-namespace:601\" }"; ApiUtil.setExampleResponse(request, "application/json", exampleString); break; } @@ -585,13 +572,13 @@ default ResponseEntity dropNamespace( } if (mediaType.isCompatibleWith(MediaType.valueOf("application/json"))) { String exampleString = - "{ \"code\" : 404, \"instance\" : \"/login/log/abc123\", \"detail\" : \"Authentication failed due to incorrect username or password\", \"error\" : \"Incorrect username or password\", \"type\" : \"/errors/incorrect-user-pass\" }"; + "{ \"code\" : 0, \"instance\" : \"instance\", \"detail\" : \"detail\", \"error\" : \"Namespace not found\", \"type\" : \"lance-namespace:101\" }"; ApiUtil.setExampleResponse(request, "application/json", exampleString); break; } if (mediaType.isCompatibleWith(MediaType.valueOf("application/json"))) { String exampleString = - "{ \"code\" : 404, \"instance\" : \"/login/log/abc123\", \"detail\" : \"Authentication failed due to incorrect username or password\", \"error\" : \"Incorrect username or password\", \"type\" : \"/errors/incorrect-user-pass\" }"; + "{ \"code\" : 0, \"instance\" : \"instance\", \"detail\" : \"detail\", \"error\" : \"Namespace not empty\", \"type\" : \"lance-namespace:104\" }"; ApiUtil.setExampleResponse(request, "application/json", exampleString); break; } @@ -603,7 +590,7 @@ default ResponseEntity dropNamespace( } if (mediaType.isCompatibleWith(MediaType.valueOf("application/json"))) { String exampleString = - "{ \"code\" : 404, \"instance\" : \"/login/log/abc123\", \"detail\" : \"Authentication failed due to incorrect username or password\", \"error\" : \"Incorrect username or password\", \"type\" : \"/errors/incorrect-user-pass\" }"; + "{ \"code\" : 5, \"instance\" : \"instance\", \"detail\" : \"detail\", \"error\" : \"Unknown error\", \"type\" : \"lance-namespace:0\" }"; ApiUtil.setExampleResponse(request, "application/json", exampleString); break; } @@ -629,19 +616,14 @@ default ResponseEntity dropNamespace( * (optional) * @param pageToken (optional) * @param limit (optional) - * @return A list of namespaces (status code 200) or Indicates a bad request error. It could be - * caused by an unexpected request body format or other forms of request validation failure, - * such as invalid json. Usually serves application/json content, although in some cases - * simple text/plain content might be returned by the server's middleware. (status code - * 400) or Unauthorized. The request lacks valid authentication credentials for the operation. - * (status code 401) or Forbidden. Authenticated user does not have the necessary permissions. - * (status code 403) or A server-side problem that means can not find the specified resource. - * (status code 404) or Not Acceptable / Unsupported Operation. The server does not support - * this operation. (status code 406) or The service is not ready to handle the request. The - * client should wait and retry. The service may additionally send a Retry-After header to - * indicate when to retry. (status code 503) or A server-side problem that might not be - * addressable from the client side. Used for server 5xx errors without more specific - * documentation in individual routes. (status code 5XX) + * @return A list of namespaces (status code 200) or Malformed request or validation failure + * (status code 400) or Unauthorized. The request lacks valid authentication credentials for + * the operation. (status code 401) or Forbidden. Authenticated user does not have the + * necessary permissions. (status code 403) or The requested namespace does not exist (status + * code 404) or Not Acceptable / Unsupported Operation. The server does not support this + * operation. (status code 406) or The service is not ready to handle the request. The client + * should wait and retry. The service may additionally send a Retry-After header to indicate + * when to retry. (status code 503) or Unknown or unclassified error (status code 5XX) */ @Operation( operationId = "listNamespaces", @@ -660,12 +642,11 @@ default ResponseEntity dropNamespace( }), @ApiResponse( responseCode = "400", - description = - "Indicates a bad request error. It could be caused by an unexpected request body format or other forms of request validation failure, such as invalid json. Usually serves application/json content, although in some cases simple text/plain content might be returned by the server's middleware.", + description = "Malformed request or validation failure", content = { @Content( mediaType = "application/json", - schema = @Schema(implementation = ErrorResponse.class)) + schema = @Schema(implementation = InvalidRequestError.class)) }), @ApiResponse( responseCode = "401", @@ -686,11 +667,11 @@ default ResponseEntity dropNamespace( }), @ApiResponse( responseCode = "404", - description = "A server-side problem that means can not find the specified resource.", + description = "The requested namespace does not exist", content = { @Content( mediaType = "application/json", - schema = @Schema(implementation = ErrorResponse.class)) + schema = @Schema(implementation = NamespaceNotFoundError.class)) }), @ApiResponse( responseCode = "406", @@ -712,12 +693,11 @@ default ResponseEntity dropNamespace( }), @ApiResponse( responseCode = "5XX", - description = - "A server-side problem that might not be addressable from the client side. Used for server 5xx errors without more specific documentation in individual routes.", + description = "Unknown or unclassified error", content = { @Content( mediaType = "application/json", - schema = @Schema(implementation = ErrorResponse.class)) + schema = @Schema(implementation = UnknownError.class)) }) }) @RequestMapping( @@ -761,7 +741,7 @@ default ResponseEntity listNamespaces( } if (mediaType.isCompatibleWith(MediaType.valueOf("application/json"))) { String exampleString = - "{ \"code\" : 404, \"instance\" : \"/login/log/abc123\", \"detail\" : \"Authentication failed due to incorrect username or password\", \"error\" : \"Incorrect username or password\", \"type\" : \"/errors/incorrect-user-pass\" }"; + "{ \"code\" : 0, \"instance\" : \"instance\", \"detail\" : \"detail\", \"error\" : \"Invalid request\", \"type\" : \"lance-namespace:601\" }"; ApiUtil.setExampleResponse(request, "application/json", exampleString); break; } @@ -779,7 +759,7 @@ default ResponseEntity listNamespaces( } if (mediaType.isCompatibleWith(MediaType.valueOf("application/json"))) { String exampleString = - "{ \"code\" : 404, \"instance\" : \"/login/log/abc123\", \"detail\" : \"Authentication failed due to incorrect username or password\", \"error\" : \"Incorrect username or password\", \"type\" : \"/errors/incorrect-user-pass\" }"; + "{ \"code\" : 0, \"instance\" : \"instance\", \"detail\" : \"detail\", \"error\" : \"Namespace not found\", \"type\" : \"lance-namespace:101\" }"; ApiUtil.setExampleResponse(request, "application/json", exampleString); break; } @@ -797,7 +777,7 @@ default ResponseEntity listNamespaces( } if (mediaType.isCompatibleWith(MediaType.valueOf("application/json"))) { String exampleString = - "{ \"code\" : 404, \"instance\" : \"/login/log/abc123\", \"detail\" : \"Authentication failed due to incorrect username or password\", \"error\" : \"Incorrect username or password\", \"type\" : \"/errors/incorrect-user-pass\" }"; + "{ \"code\" : 5, \"instance\" : \"instance\", \"detail\" : \"detail\", \"error\" : \"Unknown error\", \"type\" : \"lance-namespace:0\" }"; ApiUtil.setExampleResponse(request, "application/json", exampleString); break; } @@ -823,19 +803,14 @@ default ResponseEntity listNamespaces( * (optional) * @param pageToken (optional) * @param limit (optional) - * @return A list of tables (status code 200) or Indicates a bad request error. It could be caused - * by an unexpected request body format or other forms of request validation failure, such as - * invalid json. Usually serves application/json content, although in some cases simple - * text/plain content might be returned by the server's middleware. (status code 400) or - * Unauthorized. The request lacks valid authentication credentials for the operation. (status - * code 401) or Forbidden. Authenticated user does not have the necessary permissions. (status - * code 403) or A server-side problem that means can not find the specified resource. (status - * code 404) or Not Acceptable / Unsupported Operation. The server does not support this - * operation. (status code 406) or The service is not ready to handle the request. The client - * should wait and retry. The service may additionally send a Retry-After header to indicate - * when to retry. (status code 503) or A server-side problem that might not be addressable - * from the client side. Used for server 5xx errors without more specific documentation in - * individual routes. (status code 5XX) + * @return A list of tables (status code 200) or Malformed request or validation failure (status + * code 400) or Unauthorized. The request lacks valid authentication credentials for the + * operation. (status code 401) or Forbidden. Authenticated user does not have the necessary + * permissions. (status code 403) or The requested namespace does not exist (status code 404) + * or Not Acceptable / Unsupported Operation. The server does not support this operation. + * (status code 406) or The service is not ready to handle the request. The client should wait + * and retry. The service may additionally send a Retry-After header to indicate when to + * retry. (status code 503) or Unknown or unclassified error (status code 5XX) */ @Operation( operationId = "listTables", @@ -854,12 +829,11 @@ default ResponseEntity listNamespaces( }), @ApiResponse( responseCode = "400", - description = - "Indicates a bad request error. It could be caused by an unexpected request body format or other forms of request validation failure, such as invalid json. Usually serves application/json content, although in some cases simple text/plain content might be returned by the server's middleware.", + description = "Malformed request or validation failure", content = { @Content( mediaType = "application/json", - schema = @Schema(implementation = ErrorResponse.class)) + schema = @Schema(implementation = InvalidRequestError.class)) }), @ApiResponse( responseCode = "401", @@ -880,11 +854,11 @@ default ResponseEntity listNamespaces( }), @ApiResponse( responseCode = "404", - description = "A server-side problem that means can not find the specified resource.", + description = "The requested namespace does not exist", content = { @Content( mediaType = "application/json", - schema = @Schema(implementation = ErrorResponse.class)) + schema = @Schema(implementation = NamespaceNotFoundError.class)) }), @ApiResponse( responseCode = "406", @@ -906,12 +880,11 @@ default ResponseEntity listNamespaces( }), @ApiResponse( responseCode = "5XX", - description = - "A server-side problem that might not be addressable from the client side. Used for server 5xx errors without more specific documentation in individual routes.", + description = "Unknown or unclassified error", content = { @Content( mediaType = "application/json", - schema = @Schema(implementation = ErrorResponse.class)) + schema = @Schema(implementation = UnknownError.class)) }) }) @RequestMapping( @@ -955,7 +928,7 @@ default ResponseEntity listTables( } if (mediaType.isCompatibleWith(MediaType.valueOf("application/json"))) { String exampleString = - "{ \"code\" : 404, \"instance\" : \"/login/log/abc123\", \"detail\" : \"Authentication failed due to incorrect username or password\", \"error\" : \"Incorrect username or password\", \"type\" : \"/errors/incorrect-user-pass\" }"; + "{ \"code\" : 0, \"instance\" : \"instance\", \"detail\" : \"detail\", \"error\" : \"Invalid request\", \"type\" : \"lance-namespace:601\" }"; ApiUtil.setExampleResponse(request, "application/json", exampleString); break; } @@ -973,7 +946,7 @@ default ResponseEntity listTables( } if (mediaType.isCompatibleWith(MediaType.valueOf("application/json"))) { String exampleString = - "{ \"code\" : 404, \"instance\" : \"/login/log/abc123\", \"detail\" : \"Authentication failed due to incorrect username or password\", \"error\" : \"Incorrect username or password\", \"type\" : \"/errors/incorrect-user-pass\" }"; + "{ \"code\" : 0, \"instance\" : \"instance\", \"detail\" : \"detail\", \"error\" : \"Namespace not found\", \"type\" : \"lance-namespace:101\" }"; ApiUtil.setExampleResponse(request, "application/json", exampleString); break; } @@ -991,7 +964,7 @@ default ResponseEntity listTables( } if (mediaType.isCompatibleWith(MediaType.valueOf("application/json"))) { String exampleString = - "{ \"code\" : 404, \"instance\" : \"/login/log/abc123\", \"detail\" : \"Authentication failed due to incorrect username or password\", \"error\" : \"Incorrect username or password\", \"type\" : \"/errors/incorrect-user-pass\" }"; + "{ \"code\" : 5, \"instance\" : \"instance\", \"detail\" : \"detail\", \"error\" : \"Unknown error\", \"type\" : \"lance-namespace:0\" }"; ApiUtil.setExampleResponse(request, "application/json", exampleString); break; } @@ -1013,18 +986,13 @@ default ResponseEntity listTables( * @param delimiter An optional delimiter of the `string identifier`, following the * Lance Namespace spec. When not specified, the `$` delimiter must be used. * (optional) - * @return Success, no content (status code 200) or Indicates a bad request error. It could be - * caused by an unexpected request body format or other forms of request validation failure, - * such as invalid json. Usually serves application/json content, although in some cases - * simple text/plain content might be returned by the server's middleware. (status code - * 400) or Unauthorized. The request lacks valid authentication credentials for the operation. - * (status code 401) or Forbidden. Authenticated user does not have the necessary permissions. - * (status code 403) or A server-side problem that means can not find the specified resource. - * (status code 404) or The service is not ready to handle the request. The client should wait - * and retry. The service may additionally send a Retry-After header to indicate when to - * retry. (status code 503) or A server-side problem that might not be addressable from the - * client side. Used for server 5xx errors without more specific documentation in individual - * routes. (status code 5XX) + * @return Success, no content (status code 200) or Malformed request or validation failure + * (status code 400) or Unauthorized. The request lacks valid authentication credentials for + * the operation. (status code 401) or Forbidden. Authenticated user does not have the + * necessary permissions. (status code 403) or The requested namespace does not exist (status + * code 404) or The service is not ready to handle the request. The client should wait and + * retry. The service may additionally send a Retry-After header to indicate when to retry. + * (status code 503) or Unknown or unclassified error (status code 5XX) */ @Operation( operationId = "namespaceExists", @@ -1036,12 +1004,11 @@ default ResponseEntity listTables( @ApiResponse(responseCode = "200", description = "Success, no content"), @ApiResponse( responseCode = "400", - description = - "Indicates a bad request error. It could be caused by an unexpected request body format or other forms of request validation failure, such as invalid json. Usually serves application/json content, although in some cases simple text/plain content might be returned by the server's middleware.", + description = "Malformed request or validation failure", content = { @Content( mediaType = "application/json", - schema = @Schema(implementation = ErrorResponse.class)) + schema = @Schema(implementation = InvalidRequestError.class)) }), @ApiResponse( responseCode = "401", @@ -1062,11 +1029,11 @@ default ResponseEntity listTables( }), @ApiResponse( responseCode = "404", - description = "A server-side problem that means can not find the specified resource.", + description = "The requested namespace does not exist", content = { @Content( mediaType = "application/json", - schema = @Schema(implementation = ErrorResponse.class)) + schema = @Schema(implementation = NamespaceNotFoundError.class)) }), @ApiResponse( responseCode = "503", @@ -1079,12 +1046,11 @@ default ResponseEntity listTables( }), @ApiResponse( responseCode = "5XX", - description = - "A server-side problem that might not be addressable from the client side. Used for server 5xx errors without more specific documentation in individual routes.", + description = "Unknown or unclassified error", content = { @Content( mediaType = "application/json", - schema = @Schema(implementation = ErrorResponse.class)) + schema = @Schema(implementation = UnknownError.class)) }) }) @RequestMapping( @@ -1119,7 +1085,7 @@ default ResponseEntity namespaceExists( for (MediaType mediaType : MediaType.parseMediaTypes(request.getHeader("Accept"))) { if (mediaType.isCompatibleWith(MediaType.valueOf("application/json"))) { String exampleString = - "{ \"code\" : 404, \"instance\" : \"/login/log/abc123\", \"detail\" : \"Authentication failed due to incorrect username or password\", \"error\" : \"Incorrect username or password\", \"type\" : \"/errors/incorrect-user-pass\" }"; + "{ \"code\" : 0, \"instance\" : \"instance\", \"detail\" : \"detail\", \"error\" : \"Invalid request\", \"type\" : \"lance-namespace:601\" }"; ApiUtil.setExampleResponse(request, "application/json", exampleString); break; } @@ -1137,7 +1103,7 @@ default ResponseEntity namespaceExists( } if (mediaType.isCompatibleWith(MediaType.valueOf("application/json"))) { String exampleString = - "{ \"code\" : 404, \"instance\" : \"/login/log/abc123\", \"detail\" : \"Authentication failed due to incorrect username or password\", \"error\" : \"Incorrect username or password\", \"type\" : \"/errors/incorrect-user-pass\" }"; + "{ \"code\" : 0, \"instance\" : \"instance\", \"detail\" : \"detail\", \"error\" : \"Namespace not found\", \"type\" : \"lance-namespace:101\" }"; ApiUtil.setExampleResponse(request, "application/json", exampleString); break; } @@ -1149,7 +1115,7 @@ default ResponseEntity namespaceExists( } if (mediaType.isCompatibleWith(MediaType.valueOf("application/json"))) { String exampleString = - "{ \"code\" : 404, \"instance\" : \"/login/log/abc123\", \"detail\" : \"Authentication failed due to incorrect username or password\", \"error\" : \"Incorrect username or password\", \"type\" : \"/errors/incorrect-user-pass\" }"; + "{ \"code\" : 5, \"instance\" : \"instance\", \"detail\" : \"detail\", \"error\" : \"Unknown error\", \"type\" : \"lance-namespace:0\" }"; ApiUtil.setExampleResponse(request, "application/json", exampleString); break; } diff --git a/java/lance-namespace-springboot-server/src/main/java/org/lance/namespace/server/springboot/api/TableApi.java b/java/lance-namespace-springboot-server/src/main/java/org/lance/namespace/server/springboot/api/TableApi.java index e9bc7e93..39de9c04 100644 --- a/java/lance-namespace-springboot-server/src/main/java/org/lance/namespace/server/springboot/api/TableApi.java +++ b/java/lance-namespace-springboot-server/src/main/java/org/lance/namespace/server/springboot/api/TableApi.java @@ -13,8 +13,10 @@ */ package org.lance.namespace.server.springboot.api; +import org.lance.namespace.server.springboot.model.AlterTableAddColumns400Response; import org.lance.namespace.server.springboot.model.AlterTableAddColumnsRequest; import org.lance.namespace.server.springboot.model.AlterTableAddColumnsResponse; +import org.lance.namespace.server.springboot.model.AlterTableAlterColumns400Response; import org.lance.namespace.server.springboot.model.AlterTableAlterColumnsRequest; import org.lance.namespace.server.springboot.model.AlterTableAlterColumnsResponse; import org.lance.namespace.server.springboot.model.AlterTableDropColumnsRequest; @@ -24,15 +26,19 @@ import org.lance.namespace.server.springboot.model.CountTableRowsRequest; import org.lance.namespace.server.springboot.model.CreateEmptyTableRequest; import org.lance.namespace.server.springboot.model.CreateEmptyTableResponse; +import org.lance.namespace.server.springboot.model.CreateTable400Response; +import org.lance.namespace.server.springboot.model.CreateTableIndex400Response; import org.lance.namespace.server.springboot.model.CreateTableIndexRequest; import org.lance.namespace.server.springboot.model.CreateTableIndexResponse; import org.lance.namespace.server.springboot.model.CreateTableResponse; import org.lance.namespace.server.springboot.model.CreateTableTagRequest; +import org.lance.namespace.server.springboot.model.DeleteFromTable400Response; import org.lance.namespace.server.springboot.model.DeleteFromTableRequest; import org.lance.namespace.server.springboot.model.DeleteFromTableResponse; import org.lance.namespace.server.springboot.model.DeleteTableTagRequest; import org.lance.namespace.server.springboot.model.DeregisterTableRequest; import org.lance.namespace.server.springboot.model.DeregisterTableResponse; +import org.lance.namespace.server.springboot.model.DescribeTableIndexStats404Response; import org.lance.namespace.server.springboot.model.DescribeTableIndexStatsRequest; import org.lance.namespace.server.springboot.model.DescribeTableIndexStatsResponse; import org.lance.namespace.server.springboot.model.DescribeTableRequest; @@ -46,23 +52,36 @@ import org.lance.namespace.server.springboot.model.ExplainTableQueryPlanResponse; import org.lance.namespace.server.springboot.model.GetTableStatsRequest; import org.lance.namespace.server.springboot.model.GetTableStatsResponse; +import org.lance.namespace.server.springboot.model.GetTableTagVersion404Response; import org.lance.namespace.server.springboot.model.GetTableTagVersionRequest; import org.lance.namespace.server.springboot.model.GetTableTagVersionResponse; +import org.lance.namespace.server.springboot.model.InsertIntoTable400Response; import org.lance.namespace.server.springboot.model.InsertIntoTableResponse; +import org.lance.namespace.server.springboot.model.InvalidRequestError; import org.lance.namespace.server.springboot.model.ListTableIndicesRequest; import org.lance.namespace.server.springboot.model.ListTableIndicesResponse; import org.lance.namespace.server.springboot.model.ListTableTagsResponse; import org.lance.namespace.server.springboot.model.ListTableVersionsRequest; import org.lance.namespace.server.springboot.model.ListTableVersionsResponse; +import org.lance.namespace.server.springboot.model.MergeInsertIntoTable400Response; import org.lance.namespace.server.springboot.model.MergeInsertIntoTableResponse; +import org.lance.namespace.server.springboot.model.ParentNamespaceNotFoundError; import org.lance.namespace.server.springboot.model.QueryTableRequest; import org.lance.namespace.server.springboot.model.RegisterTableRequest; import org.lance.namespace.server.springboot.model.RegisterTableResponse; +import org.lance.namespace.server.springboot.model.RestoreTable404Response; import org.lance.namespace.server.springboot.model.RestoreTableRequest; import org.lance.namespace.server.springboot.model.RestoreTableResponse; +import org.lance.namespace.server.springboot.model.TableAlreadyExistsError; import org.lance.namespace.server.springboot.model.TableExistsRequest; +import org.lance.namespace.server.springboot.model.TableIndexAlreadyExistsError; +import org.lance.namespace.server.springboot.model.TableNotFoundError; +import org.lance.namespace.server.springboot.model.TableTagAlreadyExistsError; +import org.lance.namespace.server.springboot.model.UnknownError; +import org.lance.namespace.server.springboot.model.UpdateTable400Response; import org.lance.namespace.server.springboot.model.UpdateTableRequest; import org.lance.namespace.server.springboot.model.UpdateTableResponse; +import org.lance.namespace.server.springboot.model.UpdateTableTag404Response; import org.lance.namespace.server.springboot.model.UpdateTableTagRequest; import io.swagger.v3.oas.annotations.Operation; @@ -107,18 +126,13 @@ default Optional getRequest() { * @param delimiter An optional delimiter of the `string identifier`, following the * Lance Namespace spec. When not specified, the `$` delimiter must be used. * (optional) - * @return Add columns operation result (status code 200) or Indicates a bad request error. It - * could be caused by an unexpected request body format or other forms of request validation - * failure, such as invalid json. Usually serves application/json content, although in some - * cases simple text/plain content might be returned by the server's middleware. (status - * code 400) or Unauthorized. The request lacks valid authentication credentials for the - * operation. (status code 401) or Forbidden. Authenticated user does not have the necessary - * permissions. (status code 403) or A server-side problem that means can not find the - * specified resource. (status code 404) or The service is not ready to handle the request. - * The client should wait and retry. The service may additionally send a Retry-After header to - * indicate when to retry. (status code 503) or A server-side problem that might not be - * addressable from the client side. Used for server 5xx errors without more specific - * documentation in individual routes. (status code 5XX) + * @return Add columns operation result (status code 200) or Bad request - invalid request, + * invalid schema, or invalid SQL (status code 400) or Unauthorized. The request lacks valid + * authentication credentials for the operation. (status code 401) or Forbidden. Authenticated + * user does not have the necessary permissions. (status code 403) or The requested table does + * not exist (status code 404) or The service is not ready to handle the request. The client + * should wait and retry. The service may additionally send a Retry-After header to indicate + * when to retry. (status code 503) or Unknown or unclassified error (status code 5XX) */ @Operation( operationId = "alterTableAddColumns", @@ -136,12 +150,11 @@ default Optional getRequest() { }), @ApiResponse( responseCode = "400", - description = - "Indicates a bad request error. It could be caused by an unexpected request body format or other forms of request validation failure, such as invalid json. Usually serves application/json content, although in some cases simple text/plain content might be returned by the server's middleware.", + description = "Bad request - invalid request, invalid schema, or invalid SQL", content = { @Content( mediaType = "application/json", - schema = @Schema(implementation = ErrorResponse.class)) + schema = @Schema(implementation = AlterTableAddColumns400Response.class)) }), @ApiResponse( responseCode = "401", @@ -162,11 +175,11 @@ default Optional getRequest() { }), @ApiResponse( responseCode = "404", - description = "A server-side problem that means can not find the specified resource.", + description = "The requested table does not exist", content = { @Content( mediaType = "application/json", - schema = @Schema(implementation = ErrorResponse.class)) + schema = @Schema(implementation = TableNotFoundError.class)) }), @ApiResponse( responseCode = "503", @@ -179,12 +192,11 @@ default Optional getRequest() { }), @ApiResponse( responseCode = "5XX", - description = - "A server-side problem that might not be addressable from the client side. Used for server 5xx errors without more specific documentation in individual routes.", + description = "Unknown or unclassified error", content = { @Content( mediaType = "application/json", - schema = @Schema(implementation = ErrorResponse.class)) + schema = @Schema(implementation = UnknownError.class)) }) }) @RequestMapping( @@ -224,7 +236,7 @@ default ResponseEntity alterTableAddColumns( } if (mediaType.isCompatibleWith(MediaType.valueOf("application/json"))) { String exampleString = - "{ \"code\" : 404, \"instance\" : \"/login/log/abc123\", \"detail\" : \"Authentication failed due to incorrect username or password\", \"error\" : \"Incorrect username or password\", \"type\" : \"/errors/incorrect-user-pass\" }"; + "{ \"code\" : 0, \"instance\" : \"instance\", \"detail\" : \"detail\", \"error\" : \"Invalid request\", \"type\" : \"lance-namespace:601\" }"; ApiUtil.setExampleResponse(request, "application/json", exampleString); break; } @@ -242,7 +254,7 @@ default ResponseEntity alterTableAddColumns( } if (mediaType.isCompatibleWith(MediaType.valueOf("application/json"))) { String exampleString = - "{ \"code\" : 404, \"instance\" : \"/login/log/abc123\", \"detail\" : \"Authentication failed due to incorrect username or password\", \"error\" : \"Incorrect username or password\", \"type\" : \"/errors/incorrect-user-pass\" }"; + "{ \"code\" : 1, \"instance\" : \"instance\", \"detail\" : \"detail\", \"error\" : \"Table not found\", \"type\" : \"lance-namespace:201\" }"; ApiUtil.setExampleResponse(request, "application/json", exampleString); break; } @@ -254,7 +266,7 @@ default ResponseEntity alterTableAddColumns( } if (mediaType.isCompatibleWith(MediaType.valueOf("application/json"))) { String exampleString = - "{ \"code\" : 404, \"instance\" : \"/login/log/abc123\", \"detail\" : \"Authentication failed due to incorrect username or password\", \"error\" : \"Incorrect username or password\", \"type\" : \"/errors/incorrect-user-pass\" }"; + "{ \"code\" : 5, \"instance\" : \"instance\", \"detail\" : \"detail\", \"error\" : \"Unknown error\", \"type\" : \"lance-namespace:0\" }"; ApiUtil.setExampleResponse(request, "application/json", exampleString); break; } @@ -275,18 +287,13 @@ default ResponseEntity alterTableAddColumns( * @param delimiter An optional delimiter of the `string identifier`, following the * Lance Namespace spec. When not specified, the `$` delimiter must be used. * (optional) - * @return Alter columns operation result (status code 200) or Indicates a bad request error. It - * could be caused by an unexpected request body format or other forms of request validation - * failure, such as invalid json. Usually serves application/json content, although in some - * cases simple text/plain content might be returned by the server's middleware. (status - * code 400) or Unauthorized. The request lacks valid authentication credentials for the - * operation. (status code 401) or Forbidden. Authenticated user does not have the necessary - * permissions. (status code 403) or A server-side problem that means can not find the - * specified resource. (status code 404) or The service is not ready to handle the request. - * The client should wait and retry. The service may additionally send a Retry-After header to - * indicate when to retry. (status code 503) or A server-side problem that might not be - * addressable from the client side. Used for server 5xx errors without more specific - * documentation in individual routes. (status code 5XX) + * @return Alter columns operation result (status code 200) or Bad request - invalid request or + * column not found (status code 400) or Unauthorized. The request lacks valid authentication + * credentials for the operation. (status code 401) or Forbidden. Authenticated user does not + * have the necessary permissions. (status code 403) or The requested table does not exist + * (status code 404) or The service is not ready to handle the request. The client should wait + * and retry. The service may additionally send a Retry-After header to indicate when to + * retry. (status code 503) or Unknown or unclassified error (status code 5XX) */ @Operation( operationId = "alterTableAlterColumns", @@ -305,12 +312,11 @@ default ResponseEntity alterTableAddColumns( }), @ApiResponse( responseCode = "400", - description = - "Indicates a bad request error. It could be caused by an unexpected request body format or other forms of request validation failure, such as invalid json. Usually serves application/json content, although in some cases simple text/plain content might be returned by the server's middleware.", + description = "Bad request - invalid request or column not found", content = { @Content( mediaType = "application/json", - schema = @Schema(implementation = ErrorResponse.class)) + schema = @Schema(implementation = AlterTableAlterColumns400Response.class)) }), @ApiResponse( responseCode = "401", @@ -331,11 +337,11 @@ default ResponseEntity alterTableAddColumns( }), @ApiResponse( responseCode = "404", - description = "A server-side problem that means can not find the specified resource.", + description = "The requested table does not exist", content = { @Content( mediaType = "application/json", - schema = @Schema(implementation = ErrorResponse.class)) + schema = @Schema(implementation = TableNotFoundError.class)) }), @ApiResponse( responseCode = "503", @@ -348,12 +354,11 @@ default ResponseEntity alterTableAddColumns( }), @ApiResponse( responseCode = "5XX", - description = - "A server-side problem that might not be addressable from the client side. Used for server 5xx errors without more specific documentation in individual routes.", + description = "Unknown or unclassified error", content = { @Content( mediaType = "application/json", - schema = @Schema(implementation = ErrorResponse.class)) + schema = @Schema(implementation = UnknownError.class)) }) }) @RequestMapping( @@ -393,7 +398,7 @@ default ResponseEntity alterTableAlterColumns( } if (mediaType.isCompatibleWith(MediaType.valueOf("application/json"))) { String exampleString = - "{ \"code\" : 404, \"instance\" : \"/login/log/abc123\", \"detail\" : \"Authentication failed due to incorrect username or password\", \"error\" : \"Incorrect username or password\", \"type\" : \"/errors/incorrect-user-pass\" }"; + "{ \"code\" : 0, \"instance\" : \"instance\", \"detail\" : \"detail\", \"error\" : \"Invalid request\", \"type\" : \"lance-namespace:601\" }"; ApiUtil.setExampleResponse(request, "application/json", exampleString); break; } @@ -411,7 +416,7 @@ default ResponseEntity alterTableAlterColumns( } if (mediaType.isCompatibleWith(MediaType.valueOf("application/json"))) { String exampleString = - "{ \"code\" : 404, \"instance\" : \"/login/log/abc123\", \"detail\" : \"Authentication failed due to incorrect username or password\", \"error\" : \"Incorrect username or password\", \"type\" : \"/errors/incorrect-user-pass\" }"; + "{ \"code\" : 1, \"instance\" : \"instance\", \"detail\" : \"detail\", \"error\" : \"Table not found\", \"type\" : \"lance-namespace:201\" }"; ApiUtil.setExampleResponse(request, "application/json", exampleString); break; } @@ -423,7 +428,7 @@ default ResponseEntity alterTableAlterColumns( } if (mediaType.isCompatibleWith(MediaType.valueOf("application/json"))) { String exampleString = - "{ \"code\" : 404, \"instance\" : \"/login/log/abc123\", \"detail\" : \"Authentication failed due to incorrect username or password\", \"error\" : \"Incorrect username or password\", \"type\" : \"/errors/incorrect-user-pass\" }"; + "{ \"code\" : 5, \"instance\" : \"instance\", \"detail\" : \"detail\", \"error\" : \"Unknown error\", \"type\" : \"lance-namespace:0\" }"; ApiUtil.setExampleResponse(request, "application/json", exampleString); break; } @@ -444,18 +449,13 @@ default ResponseEntity alterTableAlterColumns( * @param delimiter An optional delimiter of the `string identifier`, following the * Lance Namespace spec. When not specified, the `$` delimiter must be used. * (optional) - * @return Drop columns operation result (status code 200) or Indicates a bad request error. It - * could be caused by an unexpected request body format or other forms of request validation - * failure, such as invalid json. Usually serves application/json content, although in some - * cases simple text/plain content might be returned by the server's middleware. (status - * code 400) or Unauthorized. The request lacks valid authentication credentials for the - * operation. (status code 401) or Forbidden. Authenticated user does not have the necessary - * permissions. (status code 403) or A server-side problem that means can not find the - * specified resource. (status code 404) or The service is not ready to handle the request. - * The client should wait and retry. The service may additionally send a Retry-After header to - * indicate when to retry. (status code 503) or A server-side problem that might not be - * addressable from the client side. Used for server 5xx errors without more specific - * documentation in individual routes. (status code 5XX) + * @return Drop columns operation result (status code 200) or Bad request - invalid request or + * column not found (status code 400) or Unauthorized. The request lacks valid authentication + * credentials for the operation. (status code 401) or Forbidden. Authenticated user does not + * have the necessary permissions. (status code 403) or The requested table does not exist + * (status code 404) or The service is not ready to handle the request. The client should wait + * and retry. The service may additionally send a Retry-After header to indicate when to + * retry. (status code 503) or Unknown or unclassified error (status code 5XX) */ @Operation( operationId = "alterTableDropColumns", @@ -473,12 +473,11 @@ default ResponseEntity alterTableAlterColumns( }), @ApiResponse( responseCode = "400", - description = - "Indicates a bad request error. It could be caused by an unexpected request body format or other forms of request validation failure, such as invalid json. Usually serves application/json content, although in some cases simple text/plain content might be returned by the server's middleware.", + description = "Bad request - invalid request or column not found", content = { @Content( mediaType = "application/json", - schema = @Schema(implementation = ErrorResponse.class)) + schema = @Schema(implementation = AlterTableAlterColumns400Response.class)) }), @ApiResponse( responseCode = "401", @@ -499,11 +498,11 @@ default ResponseEntity alterTableAlterColumns( }), @ApiResponse( responseCode = "404", - description = "A server-side problem that means can not find the specified resource.", + description = "The requested table does not exist", content = { @Content( mediaType = "application/json", - schema = @Schema(implementation = ErrorResponse.class)) + schema = @Schema(implementation = TableNotFoundError.class)) }), @ApiResponse( responseCode = "503", @@ -516,12 +515,11 @@ default ResponseEntity alterTableAlterColumns( }), @ApiResponse( responseCode = "5XX", - description = - "A server-side problem that might not be addressable from the client side. Used for server 5xx errors without more specific documentation in individual routes.", + description = "Unknown or unclassified error", content = { @Content( mediaType = "application/json", - schema = @Schema(implementation = ErrorResponse.class)) + schema = @Schema(implementation = UnknownError.class)) }) }) @RequestMapping( @@ -561,7 +559,7 @@ default ResponseEntity alterTableDropColumns( } if (mediaType.isCompatibleWith(MediaType.valueOf("application/json"))) { String exampleString = - "{ \"code\" : 404, \"instance\" : \"/login/log/abc123\", \"detail\" : \"Authentication failed due to incorrect username or password\", \"error\" : \"Incorrect username or password\", \"type\" : \"/errors/incorrect-user-pass\" }"; + "{ \"code\" : 0, \"instance\" : \"instance\", \"detail\" : \"detail\", \"error\" : \"Invalid request\", \"type\" : \"lance-namespace:601\" }"; ApiUtil.setExampleResponse(request, "application/json", exampleString); break; } @@ -579,7 +577,7 @@ default ResponseEntity alterTableDropColumns( } if (mediaType.isCompatibleWith(MediaType.valueOf("application/json"))) { String exampleString = - "{ \"code\" : 404, \"instance\" : \"/login/log/abc123\", \"detail\" : \"Authentication failed due to incorrect username or password\", \"error\" : \"Incorrect username or password\", \"type\" : \"/errors/incorrect-user-pass\" }"; + "{ \"code\" : 1, \"instance\" : \"instance\", \"detail\" : \"detail\", \"error\" : \"Table not found\", \"type\" : \"lance-namespace:201\" }"; ApiUtil.setExampleResponse(request, "application/json", exampleString); break; } @@ -591,7 +589,7 @@ default ResponseEntity alterTableDropColumns( } if (mediaType.isCompatibleWith(MediaType.valueOf("application/json"))) { String exampleString = - "{ \"code\" : 404, \"instance\" : \"/login/log/abc123\", \"detail\" : \"Authentication failed due to incorrect username or password\", \"error\" : \"Incorrect username or password\", \"type\" : \"/errors/incorrect-user-pass\" }"; + "{ \"code\" : 5, \"instance\" : \"instance\", \"detail\" : \"detail\", \"error\" : \"Unknown error\", \"type\" : \"lance-namespace:0\" }"; ApiUtil.setExampleResponse(request, "application/json", exampleString); break; } @@ -613,18 +611,13 @@ default ResponseEntity alterTableDropColumns( * @param delimiter An optional delimiter of the `string identifier`, following the * Lance Namespace spec. When not specified, the `$` delimiter must be used. * (optional) - * @return Query execution plan analysis (status code 200) or Indicates a bad request error. It - * could be caused by an unexpected request body format or other forms of request validation - * failure, such as invalid json. Usually serves application/json content, although in some - * cases simple text/plain content might be returned by the server's middleware. (status - * code 400) or Unauthorized. The request lacks valid authentication credentials for the - * operation. (status code 401) or Forbidden. Authenticated user does not have the necessary - * permissions. (status code 403) or A server-side problem that means can not find the - * specified resource. (status code 404) or The service is not ready to handle the request. - * The client should wait and retry. The service may additionally send a Retry-After header to - * indicate when to retry. (status code 503) or A server-side problem that might not be - * addressable from the client side. Used for server 5xx errors without more specific - * documentation in individual routes. (status code 5XX) + * @return Query execution plan analysis (status code 200) or Bad request - invalid request or + * invalid SQL (status code 400) or Unauthorized. The request lacks valid authentication + * credentials for the operation. (status code 401) or Forbidden. Authenticated user does not + * have the necessary permissions. (status code 403) or The requested table does not exist + * (status code 404) or The service is not ready to handle the request. The client should wait + * and retry. The service may additionally send a Retry-After header to indicate when to + * retry. (status code 503) or Unknown or unclassified error (status code 5XX) */ @Operation( operationId = "analyzeTableQueryPlan", @@ -643,12 +636,11 @@ default ResponseEntity alterTableDropColumns( }), @ApiResponse( responseCode = "400", - description = - "Indicates a bad request error. It could be caused by an unexpected request body format or other forms of request validation failure, such as invalid json. Usually serves application/json content, although in some cases simple text/plain content might be returned by the server's middleware.", + description = "Bad request - invalid request or invalid SQL", content = { @Content( mediaType = "application/json", - schema = @Schema(implementation = ErrorResponse.class)) + schema = @Schema(implementation = DeleteFromTable400Response.class)) }), @ApiResponse( responseCode = "401", @@ -669,11 +661,11 @@ default ResponseEntity alterTableDropColumns( }), @ApiResponse( responseCode = "404", - description = "A server-side problem that means can not find the specified resource.", + description = "The requested table does not exist", content = { @Content( mediaType = "application/json", - schema = @Schema(implementation = ErrorResponse.class)) + schema = @Schema(implementation = TableNotFoundError.class)) }), @ApiResponse( responseCode = "503", @@ -686,12 +678,11 @@ default ResponseEntity alterTableDropColumns( }), @ApiResponse( responseCode = "5XX", - description = - "A server-side problem that might not be addressable from the client side. Used for server 5xx errors without more specific documentation in individual routes.", + description = "Unknown or unclassified error", content = { @Content( mediaType = "application/json", - schema = @Schema(implementation = ErrorResponse.class)) + schema = @Schema(implementation = UnknownError.class)) }) }) @RequestMapping( @@ -731,7 +722,7 @@ default ResponseEntity analyzeTableQueryPlan( } if (mediaType.isCompatibleWith(MediaType.valueOf("application/json"))) { String exampleString = - "{ \"code\" : 404, \"instance\" : \"/login/log/abc123\", \"detail\" : \"Authentication failed due to incorrect username or password\", \"error\" : \"Incorrect username or password\", \"type\" : \"/errors/incorrect-user-pass\" }"; + "{ \"code\" : 0, \"instance\" : \"instance\", \"detail\" : \"detail\", \"error\" : \"Invalid request\", \"type\" : \"lance-namespace:601\" }"; ApiUtil.setExampleResponse(request, "application/json", exampleString); break; } @@ -749,7 +740,7 @@ default ResponseEntity analyzeTableQueryPlan( } if (mediaType.isCompatibleWith(MediaType.valueOf("application/json"))) { String exampleString = - "{ \"code\" : 404, \"instance\" : \"/login/log/abc123\", \"detail\" : \"Authentication failed due to incorrect username or password\", \"error\" : \"Incorrect username or password\", \"type\" : \"/errors/incorrect-user-pass\" }"; + "{ \"code\" : 1, \"instance\" : \"instance\", \"detail\" : \"detail\", \"error\" : \"Table not found\", \"type\" : \"lance-namespace:201\" }"; ApiUtil.setExampleResponse(request, "application/json", exampleString); break; } @@ -761,7 +752,7 @@ default ResponseEntity analyzeTableQueryPlan( } if (mediaType.isCompatibleWith(MediaType.valueOf("application/json"))) { String exampleString = - "{ \"code\" : 404, \"instance\" : \"/login/log/abc123\", \"detail\" : \"Authentication failed due to incorrect username or password\", \"error\" : \"Incorrect username or password\", \"type\" : \"/errors/incorrect-user-pass\" }"; + "{ \"code\" : 5, \"instance\" : \"instance\", \"detail\" : \"detail\", \"error\" : \"Unknown error\", \"type\" : \"lance-namespace:0\" }"; ApiUtil.setExampleResponse(request, "application/json", exampleString); break; } @@ -782,18 +773,13 @@ default ResponseEntity analyzeTableQueryPlan( * @param delimiter An optional delimiter of the `string identifier`, following the * Lance Namespace spec. When not specified, the `$` delimiter must be used. * (optional) - * @return Result of counting rows in a table (status code 200) or Indicates a bad request error. - * It could be caused by an unexpected request body format or other forms of request - * validation failure, such as invalid json. Usually serves application/json content, although - * in some cases simple text/plain content might be returned by the server's middleware. - * (status code 400) or Unauthorized. The request lacks valid authentication credentials for - * the operation. (status code 401) or Forbidden. Authenticated user does not have the - * necessary permissions. (status code 403) or A server-side problem that means can not find - * the specified resource. (status code 404) or The service is not ready to handle the - * request. The client should wait and retry. The service may additionally send a Retry-After - * header to indicate when to retry. (status code 503) or A server-side problem that might not - * be addressable from the client side. Used for server 5xx errors without more specific - * documentation in individual routes. (status code 5XX) + * @return Result of counting rows in a table (status code 200) or Bad request - invalid request + * or invalid SQL (status code 400) or Unauthorized. The request lacks valid authentication + * credentials for the operation. (status code 401) or Forbidden. Authenticated user does not + * have the necessary permissions. (status code 403) or The requested table does not exist + * (status code 404) or The service is not ready to handle the request. The client should wait + * and retry. The service may additionally send a Retry-After header to indicate when to + * retry. (status code 503) or Unknown or unclassified error (status code 5XX) */ @Operation( operationId = "countTableRows", @@ -811,12 +797,11 @@ default ResponseEntity analyzeTableQueryPlan( }), @ApiResponse( responseCode = "400", - description = - "Indicates a bad request error. It could be caused by an unexpected request body format or other forms of request validation failure, such as invalid json. Usually serves application/json content, although in some cases simple text/plain content might be returned by the server's middleware.", + description = "Bad request - invalid request or invalid SQL", content = { @Content( mediaType = "application/json", - schema = @Schema(implementation = ErrorResponse.class)) + schema = @Schema(implementation = DeleteFromTable400Response.class)) }), @ApiResponse( responseCode = "401", @@ -837,11 +822,11 @@ default ResponseEntity analyzeTableQueryPlan( }), @ApiResponse( responseCode = "404", - description = "A server-side problem that means can not find the specified resource.", + description = "The requested table does not exist", content = { @Content( mediaType = "application/json", - schema = @Schema(implementation = ErrorResponse.class)) + schema = @Schema(implementation = TableNotFoundError.class)) }), @ApiResponse( responseCode = "503", @@ -854,12 +839,11 @@ default ResponseEntity analyzeTableQueryPlan( }), @ApiResponse( responseCode = "5XX", - description = - "A server-side problem that might not be addressable from the client side. Used for server 5xx errors without more specific documentation in individual routes.", + description = "Unknown or unclassified error", content = { @Content( mediaType = "application/json", - schema = @Schema(implementation = ErrorResponse.class)) + schema = @Schema(implementation = UnknownError.class)) }) }) @RequestMapping( @@ -894,7 +878,7 @@ default ResponseEntity countTableRows( for (MediaType mediaType : MediaType.parseMediaTypes(request.getHeader("Accept"))) { if (mediaType.isCompatibleWith(MediaType.valueOf("application/json"))) { String exampleString = - "{ \"code\" : 404, \"instance\" : \"/login/log/abc123\", \"detail\" : \"Authentication failed due to incorrect username or password\", \"error\" : \"Incorrect username or password\", \"type\" : \"/errors/incorrect-user-pass\" }"; + "{ \"code\" : 0, \"instance\" : \"instance\", \"detail\" : \"detail\", \"error\" : \"Invalid request\", \"type\" : \"lance-namespace:601\" }"; ApiUtil.setExampleResponse(request, "application/json", exampleString); break; } @@ -912,7 +896,7 @@ default ResponseEntity countTableRows( } if (mediaType.isCompatibleWith(MediaType.valueOf("application/json"))) { String exampleString = - "{ \"code\" : 404, \"instance\" : \"/login/log/abc123\", \"detail\" : \"Authentication failed due to incorrect username or password\", \"error\" : \"Incorrect username or password\", \"type\" : \"/errors/incorrect-user-pass\" }"; + "{ \"code\" : 1, \"instance\" : \"instance\", \"detail\" : \"detail\", \"error\" : \"Table not found\", \"type\" : \"lance-namespace:201\" }"; ApiUtil.setExampleResponse(request, "application/json", exampleString); break; } @@ -924,7 +908,7 @@ default ResponseEntity countTableRows( } if (mediaType.isCompatibleWith(MediaType.valueOf("application/json"))) { String exampleString = - "{ \"code\" : 404, \"instance\" : \"/login/log/abc123\", \"detail\" : \"Authentication failed due to incorrect username or password\", \"error\" : \"Incorrect username or password\", \"type\" : \"/errors/incorrect-user-pass\" }"; + "{ \"code\" : 5, \"instance\" : \"instance\", \"detail\" : \"detail\", \"error\" : \"Unknown error\", \"type\" : \"lance-namespace:0\" }"; ApiUtil.setExampleResponse(request, "application/json", exampleString); break; } @@ -954,13 +938,13 @@ default ResponseEntity countTableRows( * content, although in some cases simple text/plain content might be returned by the * server's middleware. (status code 400) or Unauthorized. The request lacks valid * authentication credentials for the operation. (status code 401) or Forbidden. Authenticated - * user does not have the necessary permissions. (status code 403) or A server-side problem - * that means can not find the specified resource. (status code 404) or The request conflicts - * with the current state of the target resource. (status code 409) or The service is not - * ready to handle the request. The client should wait and retry. The service may additionally - * send a Retry-After header to indicate when to retry. (status code 503) or A server-side - * problem that might not be addressable from the client side. Used for server 5xx errors - * without more specific documentation in individual routes. (status code 5XX) + * user does not have the necessary permissions. (status code 403) or The parent namespace + * does not exist (status code 404) or A table with the same name already exists (status code + * 409) or The service is not ready to handle the request. The client should wait and retry. + * The service may additionally send a Retry-After header to indicate when to retry. (status + * code 503) or A server-side problem that might not be addressable from the client side. Used + * for server 5xx errors without more specific documentation in individual routes. (status + * code 5XX) */ @Operation( operationId = "createEmptyTable", @@ -1005,19 +989,19 @@ default ResponseEntity countTableRows( }), @ApiResponse( responseCode = "404", - description = "A server-side problem that means can not find the specified resource.", + description = "The parent namespace does not exist", content = { @Content( mediaType = "application/json", - schema = @Schema(implementation = ErrorResponse.class)) + schema = @Schema(implementation = ParentNamespaceNotFoundError.class)) }), @ApiResponse( responseCode = "409", - description = "The request conflicts with the current state of the target resource.", + description = "A table with the same name already exists", content = { @Content( mediaType = "application/json", - schema = @Schema(implementation = ErrorResponse.class)) + schema = @Schema(implementation = TableAlreadyExistsError.class)) }), @ApiResponse( responseCode = "503", @@ -1094,13 +1078,13 @@ default ResponseEntity createEmptyTable( } if (mediaType.isCompatibleWith(MediaType.valueOf("application/json"))) { String exampleString = - "{ \"code\" : 404, \"instance\" : \"/login/log/abc123\", \"detail\" : \"Authentication failed due to incorrect username or password\", \"error\" : \"Incorrect username or password\", \"type\" : \"/errors/incorrect-user-pass\" }"; + "{ \"code\" : 6, \"instance\" : \"instance\", \"detail\" : \"detail\", \"error\" : \"Parent namespace not found\", \"type\" : \"lance-namespace:103\" }"; ApiUtil.setExampleResponse(request, "application/json", exampleString); break; } if (mediaType.isCompatibleWith(MediaType.valueOf("application/json"))) { String exampleString = - "{ \"code\" : 404, \"instance\" : \"/login/log/abc123\", \"detail\" : \"Authentication failed due to incorrect username or password\", \"error\" : \"Incorrect username or password\", \"type\" : \"/errors/incorrect-user-pass\" }"; + "{ \"code\" : 0, \"instance\" : \"instance\", \"detail\" : \"detail\", \"error\" : \"Table already exists\", \"type\" : \"lance-namespace:202\" }"; ApiUtil.setExampleResponse(request, "application/json", exampleString); break; } @@ -1143,18 +1127,14 @@ default ResponseEntity createEmptyTable( * @param xLanceTableLocation URI pointing to root location to create the table at (optional) * @param xLanceTableProperties JSON-encoded string map (e.g. { \"owner\": * \"jack\" }) (optional) - * @return Table properties result when creating a table (status code 200) or Indicates a bad - * request error. It could be caused by an unexpected request body format or other forms of - * request validation failure, such as invalid json. Usually serves application/json content, - * although in some cases simple text/plain content might be returned by the server's - * middleware. (status code 400) or Unauthorized. The request lacks valid authentication - * credentials for the operation. (status code 401) or Forbidden. Authenticated user does not - * have the necessary permissions. (status code 403) or A server-side problem that means can - * not find the specified resource. (status code 404) or The service is not ready to handle - * the request. The client should wait and retry. The service may additionally send a - * Retry-After header to indicate when to retry. (status code 503) or A server-side problem - * that might not be addressable from the client side. Used for server 5xx errors without more - * specific documentation in individual routes. (status code 5XX) + * @return Table properties result when creating a table (status code 200) or Bad request - + * invalid request or invalid schema (status code 400) or Unauthorized. The request lacks + * valid authentication credentials for the operation. (status code 401) or Forbidden. + * Authenticated user does not have the necessary permissions. (status code 403) or The parent + * namespace does not exist (status code 404) or A table with the same name already exists + * (status code 409) or The service is not ready to handle the request. The client should wait + * and retry. The service may additionally send a Retry-After header to indicate when to + * retry. (status code 503) or Unknown or unclassified error (status code 5XX) */ @Operation( operationId = "createTable", @@ -1173,12 +1153,11 @@ default ResponseEntity createEmptyTable( }), @ApiResponse( responseCode = "400", - description = - "Indicates a bad request error. It could be caused by an unexpected request body format or other forms of request validation failure, such as invalid json. Usually serves application/json content, although in some cases simple text/plain content might be returned by the server's middleware.", + description = "Bad request - invalid request or invalid schema", content = { @Content( mediaType = "application/json", - schema = @Schema(implementation = ErrorResponse.class)) + schema = @Schema(implementation = CreateTable400Response.class)) }), @ApiResponse( responseCode = "401", @@ -1199,11 +1178,19 @@ default ResponseEntity createEmptyTable( }), @ApiResponse( responseCode = "404", - description = "A server-side problem that means can not find the specified resource.", + description = "The parent namespace does not exist", content = { @Content( mediaType = "application/json", - schema = @Schema(implementation = ErrorResponse.class)) + schema = @Schema(implementation = ParentNamespaceNotFoundError.class)) + }), + @ApiResponse( + responseCode = "409", + description = "A table with the same name already exists", + content = { + @Content( + mediaType = "application/json", + schema = @Schema(implementation = TableAlreadyExistsError.class)) }), @ApiResponse( responseCode = "503", @@ -1216,12 +1203,11 @@ default ResponseEntity createEmptyTable( }), @ApiResponse( responseCode = "5XX", - description = - "A server-side problem that might not be addressable from the client side. Used for server 5xx errors without more specific documentation in individual routes.", + description = "Unknown or unclassified error", content = { @Content( mediaType = "application/json", - schema = @Schema(implementation = ErrorResponse.class)) + schema = @Schema(implementation = UnknownError.class)) }) }) @RequestMapping( @@ -1276,7 +1262,7 @@ default ResponseEntity createTable( } if (mediaType.isCompatibleWith(MediaType.valueOf("application/json"))) { String exampleString = - "{ \"code\" : 404, \"instance\" : \"/login/log/abc123\", \"detail\" : \"Authentication failed due to incorrect username or password\", \"error\" : \"Incorrect username or password\", \"type\" : \"/errors/incorrect-user-pass\" }"; + "{ \"code\" : 0, \"instance\" : \"instance\", \"detail\" : \"detail\", \"error\" : \"Invalid request\", \"type\" : \"lance-namespace:601\" }"; ApiUtil.setExampleResponse(request, "application/json", exampleString); break; } @@ -1294,13 +1280,13 @@ default ResponseEntity createTable( } if (mediaType.isCompatibleWith(MediaType.valueOf("application/json"))) { String exampleString = - "{ \"code\" : 404, \"instance\" : \"/login/log/abc123\", \"detail\" : \"Authentication failed due to incorrect username or password\", \"error\" : \"Incorrect username or password\", \"type\" : \"/errors/incorrect-user-pass\" }"; + "{ \"code\" : 6, \"instance\" : \"instance\", \"detail\" : \"detail\", \"error\" : \"Parent namespace not found\", \"type\" : \"lance-namespace:103\" }"; ApiUtil.setExampleResponse(request, "application/json", exampleString); break; } if (mediaType.isCompatibleWith(MediaType.valueOf("application/json"))) { String exampleString = - "{ \"code\" : 404, \"instance\" : \"/login/log/abc123\", \"detail\" : \"Authentication failed due to incorrect username or password\", \"error\" : \"Incorrect username or password\", \"type\" : \"/errors/incorrect-user-pass\" }"; + "{ \"code\" : 0, \"instance\" : \"instance\", \"detail\" : \"detail\", \"error\" : \"Table already exists\", \"type\" : \"lance-namespace:202\" }"; ApiUtil.setExampleResponse(request, "application/json", exampleString); break; } @@ -1310,6 +1296,12 @@ default ResponseEntity createTable( ApiUtil.setExampleResponse(request, "application/json", exampleString); break; } + if (mediaType.isCompatibleWith(MediaType.valueOf("application/json"))) { + String exampleString = + "{ \"code\" : 5, \"instance\" : \"instance\", \"detail\" : \"detail\", \"error\" : \"Unknown error\", \"type\" : \"lance-namespace:0\" }"; + ApiUtil.setExampleResponse(request, "application/json", exampleString); + break; + } } }); return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); @@ -1330,18 +1322,14 @@ default ResponseEntity createTable( * @param delimiter An optional delimiter of the `string identifier`, following the * Lance Namespace spec. When not specified, the `$` delimiter must be used. * (optional) - * @return Index created successfully (status code 200) or Indicates a bad request error. It could - * be caused by an unexpected request body format or other forms of request validation - * failure, such as invalid json. Usually serves application/json content, although in some - * cases simple text/plain content might be returned by the server's middleware. (status - * code 400) or Unauthorized. The request lacks valid authentication credentials for the - * operation. (status code 401) or Forbidden. Authenticated user does not have the necessary - * permissions. (status code 403) or A server-side problem that means can not find the - * specified resource. (status code 404) or The service is not ready to handle the request. - * The client should wait and retry. The service may additionally send a Retry-After header to - * indicate when to retry. (status code 503) or A server-side problem that might not be - * addressable from the client side. Used for server 5xx errors without more specific - * documentation in individual routes. (status code 5XX) + * @return Index created successfully (status code 200) or Bad request - invalid request, column + * not found, or invalid index config (status code 400) or Unauthorized. The request lacks + * valid authentication credentials for the operation. (status code 401) or Forbidden. + * Authenticated user does not have the necessary permissions. (status code 403) or The + * requested table does not exist (status code 404) or An index with the same name already + * exists (status code 409) or The service is not ready to handle the request. The client + * should wait and retry. The service may additionally send a Retry-After header to indicate + * when to retry. (status code 503) or Unknown or unclassified error (status code 5XX) */ @Operation( operationId = "createTableIndex", @@ -1361,11 +1349,11 @@ default ResponseEntity createTable( @ApiResponse( responseCode = "400", description = - "Indicates a bad request error. It could be caused by an unexpected request body format or other forms of request validation failure, such as invalid json. Usually serves application/json content, although in some cases simple text/plain content might be returned by the server's middleware.", + "Bad request - invalid request, column not found, or invalid index config", content = { @Content( mediaType = "application/json", - schema = @Schema(implementation = ErrorResponse.class)) + schema = @Schema(implementation = CreateTableIndex400Response.class)) }), @ApiResponse( responseCode = "401", @@ -1386,11 +1374,19 @@ default ResponseEntity createTable( }), @ApiResponse( responseCode = "404", - description = "A server-side problem that means can not find the specified resource.", + description = "The requested table does not exist", content = { @Content( mediaType = "application/json", - schema = @Schema(implementation = ErrorResponse.class)) + schema = @Schema(implementation = TableNotFoundError.class)) + }), + @ApiResponse( + responseCode = "409", + description = "An index with the same name already exists", + content = { + @Content( + mediaType = "application/json", + schema = @Schema(implementation = TableIndexAlreadyExistsError.class)) }), @ApiResponse( responseCode = "503", @@ -1403,12 +1399,11 @@ default ResponseEntity createTable( }), @ApiResponse( responseCode = "5XX", - description = - "A server-side problem that might not be addressable from the client side. Used for server 5xx errors without more specific documentation in individual routes.", + description = "Unknown or unclassified error", content = { @Content( mediaType = "application/json", - schema = @Schema(implementation = ErrorResponse.class)) + schema = @Schema(implementation = UnknownError.class)) }) }) @RequestMapping( @@ -1452,7 +1447,7 @@ default ResponseEntity createTableIndex( } if (mediaType.isCompatibleWith(MediaType.valueOf("application/json"))) { String exampleString = - "{ \"code\" : 404, \"instance\" : \"/login/log/abc123\", \"detail\" : \"Authentication failed due to incorrect username or password\", \"error\" : \"Incorrect username or password\", \"type\" : \"/errors/incorrect-user-pass\" }"; + "{ \"code\" : 0, \"instance\" : \"instance\", \"detail\" : \"detail\", \"error\" : \"Invalid request\", \"type\" : \"lance-namespace:601\" }"; ApiUtil.setExampleResponse(request, "application/json", exampleString); break; } @@ -1470,13 +1465,13 @@ default ResponseEntity createTableIndex( } if (mediaType.isCompatibleWith(MediaType.valueOf("application/json"))) { String exampleString = - "{ \"code\" : 404, \"instance\" : \"/login/log/abc123\", \"detail\" : \"Authentication failed due to incorrect username or password\", \"error\" : \"Incorrect username or password\", \"type\" : \"/errors/incorrect-user-pass\" }"; + "{ \"code\" : 1, \"instance\" : \"instance\", \"detail\" : \"detail\", \"error\" : \"Table not found\", \"type\" : \"lance-namespace:201\" }"; ApiUtil.setExampleResponse(request, "application/json", exampleString); break; } if (mediaType.isCompatibleWith(MediaType.valueOf("application/json"))) { String exampleString = - "{ \"code\" : 404, \"instance\" : \"/login/log/abc123\", \"detail\" : \"Authentication failed due to incorrect username or password\", \"error\" : \"Incorrect username or password\", \"type\" : \"/errors/incorrect-user-pass\" }"; + "{ \"code\" : 0, \"instance\" : \"instance\", \"detail\" : \"detail\", \"error\" : \"Index already exists\", \"type\" : \"lance-namespace:302\" }"; ApiUtil.setExampleResponse(request, "application/json", exampleString); break; } @@ -1486,6 +1481,12 @@ default ResponseEntity createTableIndex( ApiUtil.setExampleResponse(request, "application/json", exampleString); break; } + if (mediaType.isCompatibleWith(MediaType.valueOf("application/json"))) { + String exampleString = + "{ \"code\" : 5, \"instance\" : \"instance\", \"detail\" : \"detail\", \"error\" : \"Unknown error\", \"type\" : \"lance-namespace:0\" }"; + ApiUtil.setExampleResponse(request, "application/json", exampleString); + break; + } } }); return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); @@ -1509,13 +1510,12 @@ default ResponseEntity createTableIndex( * simple text/plain content might be returned by the server's middleware. (status code * 400) or Unauthorized. The request lacks valid authentication credentials for the operation. * (status code 401) or Forbidden. Authenticated user does not have the necessary permissions. - * (status code 403) or A server-side problem that means can not find the specified resource. - * (status code 404) or The request conflicts with the current state of the target resource. - * (status code 409) or The service is not ready to handle the request. The client should wait - * and retry. The service may additionally send a Retry-After header to indicate when to - * retry. (status code 503) or A server-side problem that might not be addressable from the - * client side. Used for server 5xx errors without more specific documentation in individual - * routes. (status code 5XX) + * (status code 403) or Not found - table or version does not exist (status code 404) or A tag + * with the same name already exists (status code 409) or The service is not ready to handle + * the request. The client should wait and retry. The service may additionally send a + * Retry-After header to indicate when to retry. (status code 503) or A server-side problem + * that might not be addressable from the client side. Used for server 5xx errors without more + * specific documentation in individual routes. (status code 5XX) */ @Operation( operationId = "createTableTag", @@ -1552,19 +1552,19 @@ default ResponseEntity createTableIndex( }), @ApiResponse( responseCode = "404", - description = "A server-side problem that means can not find the specified resource.", + description = "Not found - table or version does not exist", content = { @Content( mediaType = "application/json", - schema = @Schema(implementation = ErrorResponse.class)) + schema = @Schema(implementation = RestoreTable404Response.class)) }), @ApiResponse( responseCode = "409", - description = "The request conflicts with the current state of the target resource.", + description = "A tag with the same name already exists", content = { @Content( mediaType = "application/json", - schema = @Schema(implementation = ErrorResponse.class)) + schema = @Schema(implementation = TableTagAlreadyExistsError.class)) }), @ApiResponse( responseCode = "503", @@ -1635,13 +1635,13 @@ default ResponseEntity createTableTag( } if (mediaType.isCompatibleWith(MediaType.valueOf("application/json"))) { String exampleString = - "{ \"code\" : 404, \"instance\" : \"/login/log/abc123\", \"detail\" : \"Authentication failed due to incorrect username or password\", \"error\" : \"Incorrect username or password\", \"type\" : \"/errors/incorrect-user-pass\" }"; + "{ \"code\" : 1, \"instance\" : \"instance\", \"detail\" : \"detail\", \"error\" : \"Table not found\", \"type\" : \"lance-namespace:201\" }"; ApiUtil.setExampleResponse(request, "application/json", exampleString); break; } if (mediaType.isCompatibleWith(MediaType.valueOf("application/json"))) { String exampleString = - "{ \"code\" : 404, \"instance\" : \"/login/log/abc123\", \"detail\" : \"Authentication failed due to incorrect username or password\", \"error\" : \"Incorrect username or password\", \"type\" : \"/errors/incorrect-user-pass\" }"; + "{ \"code\" : 0, \"instance\" : \"instance\", \"detail\" : \"detail\", \"error\" : \"Tag already exists\", \"type\" : \"lance-namespace:402\" }"; ApiUtil.setExampleResponse(request, "application/json", exampleString); break; } @@ -1673,18 +1673,13 @@ default ResponseEntity createTableTag( * @param delimiter An optional delimiter of the `string identifier`, following the * Lance Namespace spec. When not specified, the `$` delimiter must be used. * (optional) - * @return Delete successful (status code 200) or Indicates a bad request error. It could be - * caused by an unexpected request body format or other forms of request validation failure, - * such as invalid json. Usually serves application/json content, although in some cases - * simple text/plain content might be returned by the server's middleware. (status code - * 400) or Unauthorized. The request lacks valid authentication credentials for the operation. - * (status code 401) or Forbidden. Authenticated user does not have the necessary permissions. - * (status code 403) or A server-side problem that means can not find the specified resource. - * (status code 404) or The service is not ready to handle the request. The client should wait - * and retry. The service may additionally send a Retry-After header to indicate when to - * retry. (status code 503) or A server-side problem that might not be addressable from the - * client side. Used for server 5xx errors without more specific documentation in individual - * routes. (status code 5XX) + * @return Delete successful (status code 200) or Bad request - invalid request or invalid SQL + * (status code 400) or Unauthorized. The request lacks valid authentication credentials for + * the operation. (status code 401) or Forbidden. Authenticated user does not have the + * necessary permissions. (status code 403) or The requested table does not exist (status code + * 404) or The service is not ready to handle the request. The client should wait and retry. + * The service may additionally send a Retry-After header to indicate when to retry. (status + * code 503) or Unknown or unclassified error (status code 5XX) */ @Operation( operationId = "deleteFromTable", @@ -1702,12 +1697,11 @@ default ResponseEntity createTableTag( }), @ApiResponse( responseCode = "400", - description = - "Indicates a bad request error. It could be caused by an unexpected request body format or other forms of request validation failure, such as invalid json. Usually serves application/json content, although in some cases simple text/plain content might be returned by the server's middleware.", + description = "Bad request - invalid request or invalid SQL", content = { @Content( mediaType = "application/json", - schema = @Schema(implementation = ErrorResponse.class)) + schema = @Schema(implementation = DeleteFromTable400Response.class)) }), @ApiResponse( responseCode = "401", @@ -1728,11 +1722,11 @@ default ResponseEntity createTableTag( }), @ApiResponse( responseCode = "404", - description = "A server-side problem that means can not find the specified resource.", + description = "The requested table does not exist", content = { @Content( mediaType = "application/json", - schema = @Schema(implementation = ErrorResponse.class)) + schema = @Schema(implementation = TableNotFoundError.class)) }), @ApiResponse( responseCode = "503", @@ -1745,12 +1739,11 @@ default ResponseEntity createTableTag( }), @ApiResponse( responseCode = "5XX", - description = - "A server-side problem that might not be addressable from the client side. Used for server 5xx errors without more specific documentation in individual routes.", + description = "Unknown or unclassified error", content = { @Content( mediaType = "application/json", - schema = @Schema(implementation = ErrorResponse.class)) + schema = @Schema(implementation = UnknownError.class)) }) }) @RequestMapping( @@ -1790,7 +1783,7 @@ default ResponseEntity deleteFromTable( } if (mediaType.isCompatibleWith(MediaType.valueOf("application/json"))) { String exampleString = - "{ \"code\" : 404, \"instance\" : \"/login/log/abc123\", \"detail\" : \"Authentication failed due to incorrect username or password\", \"error\" : \"Incorrect username or password\", \"type\" : \"/errors/incorrect-user-pass\" }"; + "{ \"code\" : 0, \"instance\" : \"instance\", \"detail\" : \"detail\", \"error\" : \"Invalid request\", \"type\" : \"lance-namespace:601\" }"; ApiUtil.setExampleResponse(request, "application/json", exampleString); break; } @@ -1808,7 +1801,7 @@ default ResponseEntity deleteFromTable( } if (mediaType.isCompatibleWith(MediaType.valueOf("application/json"))) { String exampleString = - "{ \"code\" : 404, \"instance\" : \"/login/log/abc123\", \"detail\" : \"Authentication failed due to incorrect username or password\", \"error\" : \"Incorrect username or password\", \"type\" : \"/errors/incorrect-user-pass\" }"; + "{ \"code\" : 1, \"instance\" : \"instance\", \"detail\" : \"detail\", \"error\" : \"Table not found\", \"type\" : \"lance-namespace:201\" }"; ApiUtil.setExampleResponse(request, "application/json", exampleString); break; } @@ -1820,7 +1813,7 @@ default ResponseEntity deleteFromTable( } if (mediaType.isCompatibleWith(MediaType.valueOf("application/json"))) { String exampleString = - "{ \"code\" : 404, \"instance\" : \"/login/log/abc123\", \"detail\" : \"Authentication failed due to incorrect username or password\", \"error\" : \"Incorrect username or password\", \"type\" : \"/errors/incorrect-user-pass\" }"; + "{ \"code\" : 5, \"instance\" : \"instance\", \"detail\" : \"detail\", \"error\" : \"Unknown error\", \"type\" : \"lance-namespace:0\" }"; ApiUtil.setExampleResponse(request, "application/json", exampleString); break; } @@ -1847,12 +1840,11 @@ default ResponseEntity deleteFromTable( * simple text/plain content might be returned by the server's middleware. (status code * 400) or Unauthorized. The request lacks valid authentication credentials for the operation. * (status code 401) or Forbidden. Authenticated user does not have the necessary permissions. - * (status code 403) or A server-side problem that means can not find the specified resource. - * (status code 404) or The service is not ready to handle the request. The client should wait - * and retry. The service may additionally send a Retry-After header to indicate when to - * retry. (status code 503) or A server-side problem that might not be addressable from the - * client side. Used for server 5xx errors without more specific documentation in individual - * routes. (status code 5XX) + * (status code 403) or Not found - table or tag does not exist (status code 404) or The + * service is not ready to handle the request. The client should wait and retry. The service + * may additionally send a Retry-After header to indicate when to retry. (status code 503) or + * A server-side problem that might not be addressable from the client side. Used for server + * 5xx errors without more specific documentation in individual routes. (status code 5XX) */ @Operation( operationId = "deleteTableTag", @@ -1889,11 +1881,11 @@ default ResponseEntity deleteFromTable( }), @ApiResponse( responseCode = "404", - description = "A server-side problem that means can not find the specified resource.", + description = "Not found - table or tag does not exist", content = { @Content( mediaType = "application/json", - schema = @Schema(implementation = ErrorResponse.class)) + schema = @Schema(implementation = GetTableTagVersion404Response.class)) }), @ApiResponse( responseCode = "503", @@ -1964,7 +1956,7 @@ default ResponseEntity deleteTableTag( } if (mediaType.isCompatibleWith(MediaType.valueOf("application/json"))) { String exampleString = - "{ \"code\" : 404, \"instance\" : \"/login/log/abc123\", \"detail\" : \"Authentication failed due to incorrect username or password\", \"error\" : \"Incorrect username or password\", \"type\" : \"/errors/incorrect-user-pass\" }"; + "{ \"code\" : 1, \"instance\" : \"instance\", \"detail\" : \"detail\", \"error\" : \"Table not found\", \"type\" : \"lance-namespace:201\" }"; ApiUtil.setExampleResponse(request, "application/json", exampleString); break; } @@ -1997,18 +1989,13 @@ default ResponseEntity deleteTableTag( * @param delimiter An optional delimiter of the `string identifier`, following the * Lance Namespace spec. When not specified, the `$` delimiter must be used. * (optional) - * @return Response of DeregisterTable (status code 200) or Indicates a bad request error. It - * could be caused by an unexpected request body format or other forms of request validation - * failure, such as invalid json. Usually serves application/json content, although in some - * cases simple text/plain content might be returned by the server's middleware. (status - * code 400) or Unauthorized. The request lacks valid authentication credentials for the - * operation. (status code 401) or Forbidden. Authenticated user does not have the necessary - * permissions. (status code 403) or A server-side problem that means can not find the - * specified resource. (status code 404) or The service is not ready to handle the request. - * The client should wait and retry. The service may additionally send a Retry-After header to - * indicate when to retry. (status code 503) or A server-side problem that might not be - * addressable from the client side. Used for server 5xx errors without more specific - * documentation in individual routes. (status code 5XX) + * @return Response of DeregisterTable (status code 200) or Malformed request or validation + * failure (status code 400) or Unauthorized. The request lacks valid authentication + * credentials for the operation. (status code 401) or Forbidden. Authenticated user does not + * have the necessary permissions. (status code 403) or The requested table does not exist + * (status code 404) or The service is not ready to handle the request. The client should wait + * and retry. The service may additionally send a Retry-After header to indicate when to + * retry. (status code 503) or Unknown or unclassified error (status code 5XX) */ @Operation( operationId = "deregisterTable", @@ -2026,12 +2013,11 @@ default ResponseEntity deleteTableTag( }), @ApiResponse( responseCode = "400", - description = - "Indicates a bad request error. It could be caused by an unexpected request body format or other forms of request validation failure, such as invalid json. Usually serves application/json content, although in some cases simple text/plain content might be returned by the server's middleware.", + description = "Malformed request or validation failure", content = { @Content( mediaType = "application/json", - schema = @Schema(implementation = ErrorResponse.class)) + schema = @Schema(implementation = InvalidRequestError.class)) }), @ApiResponse( responseCode = "401", @@ -2052,11 +2038,11 @@ default ResponseEntity deleteTableTag( }), @ApiResponse( responseCode = "404", - description = "A server-side problem that means can not find the specified resource.", + description = "The requested table does not exist", content = { @Content( mediaType = "application/json", - schema = @Schema(implementation = ErrorResponse.class)) + schema = @Schema(implementation = TableNotFoundError.class)) }), @ApiResponse( responseCode = "503", @@ -2069,12 +2055,11 @@ default ResponseEntity deleteTableTag( }), @ApiResponse( responseCode = "5XX", - description = - "A server-side problem that might not be addressable from the client side. Used for server 5xx errors without more specific documentation in individual routes.", + description = "Unknown or unclassified error", content = { @Content( mediaType = "application/json", - schema = @Schema(implementation = ErrorResponse.class)) + schema = @Schema(implementation = UnknownError.class)) }) }) @RequestMapping( @@ -2115,7 +2100,7 @@ default ResponseEntity deregisterTable( } if (mediaType.isCompatibleWith(MediaType.valueOf("application/json"))) { String exampleString = - "{ \"code\" : 404, \"instance\" : \"/login/log/abc123\", \"detail\" : \"Authentication failed due to incorrect username or password\", \"error\" : \"Incorrect username or password\", \"type\" : \"/errors/incorrect-user-pass\" }"; + "{ \"code\" : 0, \"instance\" : \"instance\", \"detail\" : \"detail\", \"error\" : \"Invalid request\", \"type\" : \"lance-namespace:601\" }"; ApiUtil.setExampleResponse(request, "application/json", exampleString); break; } @@ -2133,7 +2118,7 @@ default ResponseEntity deregisterTable( } if (mediaType.isCompatibleWith(MediaType.valueOf("application/json"))) { String exampleString = - "{ \"code\" : 404, \"instance\" : \"/login/log/abc123\", \"detail\" : \"Authentication failed due to incorrect username or password\", \"error\" : \"Incorrect username or password\", \"type\" : \"/errors/incorrect-user-pass\" }"; + "{ \"code\" : 1, \"instance\" : \"instance\", \"detail\" : \"detail\", \"error\" : \"Table not found\", \"type\" : \"lance-namespace:201\" }"; ApiUtil.setExampleResponse(request, "application/json", exampleString); break; } @@ -2145,7 +2130,7 @@ default ResponseEntity deregisterTable( } if (mediaType.isCompatibleWith(MediaType.valueOf("application/json"))) { String exampleString = - "{ \"code\" : 404, \"instance\" : \"/login/log/abc123\", \"detail\" : \"Authentication failed due to incorrect username or password\", \"error\" : \"Incorrect username or password\", \"type\" : \"/errors/incorrect-user-pass\" }"; + "{ \"code\" : 5, \"instance\" : \"instance\", \"detail\" : \"detail\", \"error\" : \"Unknown error\", \"type\" : \"lance-namespace:0\" }"; ApiUtil.setExampleResponse(request, "application/json", exampleString); break; } @@ -2166,18 +2151,13 @@ default ResponseEntity deregisterTable( * @param delimiter An optional delimiter of the `string identifier`, following the * Lance Namespace spec. When not specified, the `$` delimiter must be used. * (optional) - * @return Table properties result when loading a table (status code 200) or Indicates a bad - * request error. It could be caused by an unexpected request body format or other forms of - * request validation failure, such as invalid json. Usually serves application/json content, - * although in some cases simple text/plain content might be returned by the server's - * middleware. (status code 400) or Unauthorized. The request lacks valid authentication - * credentials for the operation. (status code 401) or Forbidden. Authenticated user does not - * have the necessary permissions. (status code 403) or A server-side problem that means can - * not find the specified resource. (status code 404) or The service is not ready to handle - * the request. The client should wait and retry. The service may additionally send a - * Retry-After header to indicate when to retry. (status code 503) or A server-side problem - * that might not be addressable from the client side. Used for server 5xx errors without more - * specific documentation in individual routes. (status code 5XX) + * @return Table properties result when loading a table (status code 200) or Malformed request or + * validation failure (status code 400) or Unauthorized. The request lacks valid + * authentication credentials for the operation. (status code 401) or Forbidden. Authenticated + * user does not have the necessary permissions. (status code 403) or The requested table does + * not exist (status code 404) or The service is not ready to handle the request. The client + * should wait and retry. The service may additionally send a Retry-After header to indicate + * when to retry. (status code 503) or Unknown or unclassified error (status code 5XX) */ @Operation( operationId = "describeTable", @@ -2195,12 +2175,11 @@ default ResponseEntity deregisterTable( }), @ApiResponse( responseCode = "400", - description = - "Indicates a bad request error. It could be caused by an unexpected request body format or other forms of request validation failure, such as invalid json. Usually serves application/json content, although in some cases simple text/plain content might be returned by the server's middleware.", + description = "Malformed request or validation failure", content = { @Content( mediaType = "application/json", - schema = @Schema(implementation = ErrorResponse.class)) + schema = @Schema(implementation = InvalidRequestError.class)) }), @ApiResponse( responseCode = "401", @@ -2221,11 +2200,11 @@ default ResponseEntity deregisterTable( }), @ApiResponse( responseCode = "404", - description = "A server-side problem that means can not find the specified resource.", + description = "The requested table does not exist", content = { @Content( mediaType = "application/json", - schema = @Schema(implementation = ErrorResponse.class)) + schema = @Schema(implementation = TableNotFoundError.class)) }), @ApiResponse( responseCode = "503", @@ -2238,12 +2217,11 @@ default ResponseEntity deregisterTable( }), @ApiResponse( responseCode = "5XX", - description = - "A server-side problem that might not be addressable from the client side. Used for server 5xx errors without more specific documentation in individual routes.", + description = "Unknown or unclassified error", content = { @Content( mediaType = "application/json", - schema = @Schema(implementation = ErrorResponse.class)) + schema = @Schema(implementation = UnknownError.class)) }) }) @RequestMapping( @@ -2284,7 +2262,7 @@ default ResponseEntity describeTable( } if (mediaType.isCompatibleWith(MediaType.valueOf("application/json"))) { String exampleString = - "{ \"code\" : 404, \"instance\" : \"/login/log/abc123\", \"detail\" : \"Authentication failed due to incorrect username or password\", \"error\" : \"Incorrect username or password\", \"type\" : \"/errors/incorrect-user-pass\" }"; + "{ \"code\" : 0, \"instance\" : \"instance\", \"detail\" : \"detail\", \"error\" : \"Invalid request\", \"type\" : \"lance-namespace:601\" }"; ApiUtil.setExampleResponse(request, "application/json", exampleString); break; } @@ -2302,7 +2280,7 @@ default ResponseEntity describeTable( } if (mediaType.isCompatibleWith(MediaType.valueOf("application/json"))) { String exampleString = - "{ \"code\" : 404, \"instance\" : \"/login/log/abc123\", \"detail\" : \"Authentication failed due to incorrect username or password\", \"error\" : \"Incorrect username or password\", \"type\" : \"/errors/incorrect-user-pass\" }"; + "{ \"code\" : 1, \"instance\" : \"instance\", \"detail\" : \"detail\", \"error\" : \"Table not found\", \"type\" : \"lance-namespace:201\" }"; ApiUtil.setExampleResponse(request, "application/json", exampleString); break; } @@ -2314,7 +2292,7 @@ default ResponseEntity describeTable( } if (mediaType.isCompatibleWith(MediaType.valueOf("application/json"))) { String exampleString = - "{ \"code\" : 404, \"instance\" : \"/login/log/abc123\", \"detail\" : \"Authentication failed due to incorrect username or password\", \"error\" : \"Incorrect username or password\", \"type\" : \"/errors/incorrect-user-pass\" }"; + "{ \"code\" : 5, \"instance\" : \"instance\", \"detail\" : \"detail\", \"error\" : \"Unknown error\", \"type\" : \"lance-namespace:0\" }"; ApiUtil.setExampleResponse(request, "application/json", exampleString); break; } @@ -2337,18 +2315,13 @@ default ResponseEntity describeTable( * @param delimiter An optional delimiter of the `string identifier`, following the * Lance Namespace spec. When not specified, the `$` delimiter must be used. * (optional) - * @return Index statistics (status code 200) or Indicates a bad request error. It could be caused - * by an unexpected request body format or other forms of request validation failure, such as - * invalid json. Usually serves application/json content, although in some cases simple - * text/plain content might be returned by the server's middleware. (status code 400) or - * Unauthorized. The request lacks valid authentication credentials for the operation. (status - * code 401) or Forbidden. Authenticated user does not have the necessary permissions. (status - * code 403) or A server-side problem that means can not find the specified resource. (status - * code 404) or The service is not ready to handle the request. The client should wait and - * retry. The service may additionally send a Retry-After header to indicate when to retry. - * (status code 503) or A server-side problem that might not be addressable from the client - * side. Used for server 5xx errors without more specific documentation in individual routes. - * (status code 5XX) + * @return Index statistics (status code 200) or Malformed request or validation failure (status + * code 400) or Unauthorized. The request lacks valid authentication credentials for the + * operation. (status code 401) or Forbidden. Authenticated user does not have the necessary + * permissions. (status code 403) or Not found - table or index does not exist (status code + * 404) or The service is not ready to handle the request. The client should wait and retry. + * The service may additionally send a Retry-After header to indicate when to retry. (status + * code 503) or Unknown or unclassified error (status code 5XX) */ @Operation( operationId = "describeTableIndexStats", @@ -2367,12 +2340,11 @@ default ResponseEntity describeTable( }), @ApiResponse( responseCode = "400", - description = - "Indicates a bad request error. It could be caused by an unexpected request body format or other forms of request validation failure, such as invalid json. Usually serves application/json content, although in some cases simple text/plain content might be returned by the server's middleware.", + description = "Malformed request or validation failure", content = { @Content( mediaType = "application/json", - schema = @Schema(implementation = ErrorResponse.class)) + schema = @Schema(implementation = InvalidRequestError.class)) }), @ApiResponse( responseCode = "401", @@ -2393,11 +2365,11 @@ default ResponseEntity describeTable( }), @ApiResponse( responseCode = "404", - description = "A server-side problem that means can not find the specified resource.", + description = "Not found - table or index does not exist", content = { @Content( mediaType = "application/json", - schema = @Schema(implementation = ErrorResponse.class)) + schema = @Schema(implementation = DescribeTableIndexStats404Response.class)) }), @ApiResponse( responseCode = "503", @@ -2410,12 +2382,11 @@ default ResponseEntity describeTable( }), @ApiResponse( responseCode = "5XX", - description = - "A server-side problem that might not be addressable from the client side. Used for server 5xx errors without more specific documentation in individual routes.", + description = "Unknown or unclassified error", content = { @Content( mediaType = "application/json", - schema = @Schema(implementation = ErrorResponse.class)) + schema = @Schema(implementation = UnknownError.class)) }) }) @RequestMapping( @@ -2466,7 +2437,7 @@ default ResponseEntity describeTableIndexStats( } if (mediaType.isCompatibleWith(MediaType.valueOf("application/json"))) { String exampleString = - "{ \"code\" : 404, \"instance\" : \"/login/log/abc123\", \"detail\" : \"Authentication failed due to incorrect username or password\", \"error\" : \"Incorrect username or password\", \"type\" : \"/errors/incorrect-user-pass\" }"; + "{ \"code\" : 0, \"instance\" : \"instance\", \"detail\" : \"detail\", \"error\" : \"Invalid request\", \"type\" : \"lance-namespace:601\" }"; ApiUtil.setExampleResponse(request, "application/json", exampleString); break; } @@ -2484,7 +2455,7 @@ default ResponseEntity describeTableIndexStats( } if (mediaType.isCompatibleWith(MediaType.valueOf("application/json"))) { String exampleString = - "{ \"code\" : 404, \"instance\" : \"/login/log/abc123\", \"detail\" : \"Authentication failed due to incorrect username or password\", \"error\" : \"Incorrect username or password\", \"type\" : \"/errors/incorrect-user-pass\" }"; + "{ \"code\" : 1, \"instance\" : \"instance\", \"detail\" : \"detail\", \"error\" : \"Table not found\", \"type\" : \"lance-namespace:201\" }"; ApiUtil.setExampleResponse(request, "application/json", exampleString); break; } @@ -2496,7 +2467,7 @@ default ResponseEntity describeTableIndexStats( } if (mediaType.isCompatibleWith(MediaType.valueOf("application/json"))) { String exampleString = - "{ \"code\" : 404, \"instance\" : \"/login/log/abc123\", \"detail\" : \"Authentication failed due to incorrect username or password\", \"error\" : \"Incorrect username or password\", \"type\" : \"/errors/incorrect-user-pass\" }"; + "{ \"code\" : 5, \"instance\" : \"instance\", \"detail\" : \"detail\", \"error\" : \"Unknown error\", \"type\" : \"lance-namespace:0\" }"; ApiUtil.setExampleResponse(request, "application/json", exampleString); break; } @@ -2516,18 +2487,13 @@ default ResponseEntity describeTableIndexStats( * @param delimiter An optional delimiter of the `string identifier`, following the * Lance Namespace spec. When not specified, the `$` delimiter must be used. * (optional) - * @return Response of DropTable (status code 200) or Indicates a bad request error. It could be - * caused by an unexpected request body format or other forms of request validation failure, - * such as invalid json. Usually serves application/json content, although in some cases - * simple text/plain content might be returned by the server's middleware. (status code - * 400) or Unauthorized. The request lacks valid authentication credentials for the operation. - * (status code 401) or Forbidden. Authenticated user does not have the necessary permissions. - * (status code 403) or A server-side problem that means can not find the specified resource. - * (status code 404) or The service is not ready to handle the request. The client should wait - * and retry. The service may additionally send a Retry-After header to indicate when to - * retry. (status code 503) or A server-side problem that might not be addressable from the - * client side. Used for server 5xx errors without more specific documentation in individual - * routes. (status code 5XX) + * @return Response of DropTable (status code 200) or Malformed request or validation failure + * (status code 400) or Unauthorized. The request lacks valid authentication credentials for + * the operation. (status code 401) or Forbidden. Authenticated user does not have the + * necessary permissions. (status code 403) or The requested table does not exist (status code + * 404) or The service is not ready to handle the request. The client should wait and retry. + * The service may additionally send a Retry-After header to indicate when to retry. (status + * code 503) or Unknown or unclassified error (status code 5XX) */ @Operation( operationId = "dropTable", @@ -2545,12 +2511,11 @@ default ResponseEntity describeTableIndexStats( }), @ApiResponse( responseCode = "400", - description = - "Indicates a bad request error. It could be caused by an unexpected request body format or other forms of request validation failure, such as invalid json. Usually serves application/json content, although in some cases simple text/plain content might be returned by the server's middleware.", + description = "Malformed request or validation failure", content = { @Content( mediaType = "application/json", - schema = @Schema(implementation = ErrorResponse.class)) + schema = @Schema(implementation = InvalidRequestError.class)) }), @ApiResponse( responseCode = "401", @@ -2571,11 +2536,11 @@ default ResponseEntity describeTableIndexStats( }), @ApiResponse( responseCode = "404", - description = "A server-side problem that means can not find the specified resource.", + description = "The requested table does not exist", content = { @Content( mediaType = "application/json", - schema = @Schema(implementation = ErrorResponse.class)) + schema = @Schema(implementation = TableNotFoundError.class)) }), @ApiResponse( responseCode = "503", @@ -2588,12 +2553,11 @@ default ResponseEntity describeTableIndexStats( }), @ApiResponse( responseCode = "5XX", - description = - "A server-side problem that might not be addressable from the client side. Used for server 5xx errors without more specific documentation in individual routes.", + description = "Unknown or unclassified error", content = { @Content( mediaType = "application/json", - schema = @Schema(implementation = ErrorResponse.class)) + schema = @Schema(implementation = UnknownError.class)) }) }) @RequestMapping( @@ -2632,7 +2596,7 @@ default ResponseEntity dropTable( } if (mediaType.isCompatibleWith(MediaType.valueOf("application/json"))) { String exampleString = - "{ \"code\" : 404, \"instance\" : \"/login/log/abc123\", \"detail\" : \"Authentication failed due to incorrect username or password\", \"error\" : \"Incorrect username or password\", \"type\" : \"/errors/incorrect-user-pass\" }"; + "{ \"code\" : 0, \"instance\" : \"instance\", \"detail\" : \"detail\", \"error\" : \"Invalid request\", \"type\" : \"lance-namespace:601\" }"; ApiUtil.setExampleResponse(request, "application/json", exampleString); break; } @@ -2650,7 +2614,7 @@ default ResponseEntity dropTable( } if (mediaType.isCompatibleWith(MediaType.valueOf("application/json"))) { String exampleString = - "{ \"code\" : 404, \"instance\" : \"/login/log/abc123\", \"detail\" : \"Authentication failed due to incorrect username or password\", \"error\" : \"Incorrect username or password\", \"type\" : \"/errors/incorrect-user-pass\" }"; + "{ \"code\" : 1, \"instance\" : \"instance\", \"detail\" : \"detail\", \"error\" : \"Table not found\", \"type\" : \"lance-namespace:201\" }"; ApiUtil.setExampleResponse(request, "application/json", exampleString); break; } @@ -2662,7 +2626,7 @@ default ResponseEntity dropTable( } if (mediaType.isCompatibleWith(MediaType.valueOf("application/json"))) { String exampleString = - "{ \"code\" : 404, \"instance\" : \"/login/log/abc123\", \"detail\" : \"Authentication failed due to incorrect username or password\", \"error\" : \"Incorrect username or password\", \"type\" : \"/errors/incorrect-user-pass\" }"; + "{ \"code\" : 5, \"instance\" : \"instance\", \"detail\" : \"detail\", \"error\" : \"Unknown error\", \"type\" : \"lance-namespace:0\" }"; ApiUtil.setExampleResponse(request, "application/json", exampleString); break; } @@ -2690,12 +2654,12 @@ default ResponseEntity dropTable( * cases simple text/plain content might be returned by the server's middleware. (status * code 400) or Unauthorized. The request lacks valid authentication credentials for the * operation. (status code 401) or Forbidden. Authenticated user does not have the necessary - * permissions. (status code 403) or A server-side problem that means can not find the - * specified resource. (status code 404) or The service is not ready to handle the request. - * The client should wait and retry. The service may additionally send a Retry-After header to - * indicate when to retry. (status code 503) or A server-side problem that might not be - * addressable from the client side. Used for server 5xx errors without more specific - * documentation in individual routes. (status code 5XX) + * permissions. (status code 403) or Not found - table or index does not exist (status code + * 404) or The service is not ready to handle the request. The client should wait and retry. + * The service may additionally send a Retry-After header to indicate when to retry. (status + * code 503) or A server-side problem that might not be addressable from the client side. Used + * for server 5xx errors without more specific documentation in individual routes. (status + * code 5XX) */ @Operation( operationId = "dropTableIndex", @@ -2739,11 +2703,11 @@ default ResponseEntity dropTable( }), @ApiResponse( responseCode = "404", - description = "A server-side problem that means can not find the specified resource.", + description = "Not found - table or index does not exist", content = { @Content( mediaType = "application/json", - schema = @Schema(implementation = ErrorResponse.class)) + schema = @Schema(implementation = DescribeTableIndexStats404Response.class)) }), @ApiResponse( responseCode = "503", @@ -2826,7 +2790,7 @@ default ResponseEntity dropTableIndex( } if (mediaType.isCompatibleWith(MediaType.valueOf("application/json"))) { String exampleString = - "{ \"code\" : 404, \"instance\" : \"/login/log/abc123\", \"detail\" : \"Authentication failed due to incorrect username or password\", \"error\" : \"Incorrect username or password\", \"type\" : \"/errors/incorrect-user-pass\" }"; + "{ \"code\" : 1, \"instance\" : \"instance\", \"detail\" : \"detail\", \"error\" : \"Table not found\", \"type\" : \"lance-namespace:201\" }"; ApiUtil.setExampleResponse(request, "application/json", exampleString); break; } @@ -2860,18 +2824,13 @@ default ResponseEntity dropTableIndex( * @param delimiter An optional delimiter of the `string identifier`, following the * Lance Namespace spec. When not specified, the `$` delimiter must be used. * (optional) - * @return Query execution plan explanation (status code 200) or Indicates a bad request error. It - * could be caused by an unexpected request body format or other forms of request validation - * failure, such as invalid json. Usually serves application/json content, although in some - * cases simple text/plain content might be returned by the server's middleware. (status - * code 400) or Unauthorized. The request lacks valid authentication credentials for the - * operation. (status code 401) or Forbidden. Authenticated user does not have the necessary - * permissions. (status code 403) or A server-side problem that means can not find the - * specified resource. (status code 404) or The service is not ready to handle the request. - * The client should wait and retry. The service may additionally send a Retry-After header to - * indicate when to retry. (status code 503) or A server-side problem that might not be - * addressable from the client side. Used for server 5xx errors without more specific - * documentation in individual routes. (status code 5XX) + * @return Query execution plan explanation (status code 200) or Bad request - invalid request or + * invalid SQL (status code 400) or Unauthorized. The request lacks valid authentication + * credentials for the operation. (status code 401) or Forbidden. Authenticated user does not + * have the necessary permissions. (status code 403) or The requested table does not exist + * (status code 404) or The service is not ready to handle the request. The client should wait + * and retry. The service may additionally send a Retry-After header to indicate when to + * retry. (status code 503) or Unknown or unclassified error (status code 5XX) */ @Operation( operationId = "explainTableQueryPlan", @@ -2890,12 +2849,11 @@ default ResponseEntity dropTableIndex( }), @ApiResponse( responseCode = "400", - description = - "Indicates a bad request error. It could be caused by an unexpected request body format or other forms of request validation failure, such as invalid json. Usually serves application/json content, although in some cases simple text/plain content might be returned by the server's middleware.", + description = "Bad request - invalid request or invalid SQL", content = { @Content( mediaType = "application/json", - schema = @Schema(implementation = ErrorResponse.class)) + schema = @Schema(implementation = DeleteFromTable400Response.class)) }), @ApiResponse( responseCode = "401", @@ -2916,11 +2874,11 @@ default ResponseEntity dropTableIndex( }), @ApiResponse( responseCode = "404", - description = "A server-side problem that means can not find the specified resource.", + description = "The requested table does not exist", content = { @Content( mediaType = "application/json", - schema = @Schema(implementation = ErrorResponse.class)) + schema = @Schema(implementation = TableNotFoundError.class)) }), @ApiResponse( responseCode = "503", @@ -2933,12 +2891,11 @@ default ResponseEntity dropTableIndex( }), @ApiResponse( responseCode = "5XX", - description = - "A server-side problem that might not be addressable from the client side. Used for server 5xx errors without more specific documentation in individual routes.", + description = "Unknown or unclassified error", content = { @Content( mediaType = "application/json", - schema = @Schema(implementation = ErrorResponse.class)) + schema = @Schema(implementation = UnknownError.class)) }) }) @RequestMapping( @@ -2978,7 +2935,7 @@ default ResponseEntity explainTableQueryPlan( } if (mediaType.isCompatibleWith(MediaType.valueOf("application/json"))) { String exampleString = - "{ \"code\" : 404, \"instance\" : \"/login/log/abc123\", \"detail\" : \"Authentication failed due to incorrect username or password\", \"error\" : \"Incorrect username or password\", \"type\" : \"/errors/incorrect-user-pass\" }"; + "{ \"code\" : 0, \"instance\" : \"instance\", \"detail\" : \"detail\", \"error\" : \"Invalid request\", \"type\" : \"lance-namespace:601\" }"; ApiUtil.setExampleResponse(request, "application/json", exampleString); break; } @@ -2996,7 +2953,7 @@ default ResponseEntity explainTableQueryPlan( } if (mediaType.isCompatibleWith(MediaType.valueOf("application/json"))) { String exampleString = - "{ \"code\" : 404, \"instance\" : \"/login/log/abc123\", \"detail\" : \"Authentication failed due to incorrect username or password\", \"error\" : \"Incorrect username or password\", \"type\" : \"/errors/incorrect-user-pass\" }"; + "{ \"code\" : 1, \"instance\" : \"instance\", \"detail\" : \"detail\", \"error\" : \"Table not found\", \"type\" : \"lance-namespace:201\" }"; ApiUtil.setExampleResponse(request, "application/json", exampleString); break; } @@ -3008,7 +2965,7 @@ default ResponseEntity explainTableQueryPlan( } if (mediaType.isCompatibleWith(MediaType.valueOf("application/json"))) { String exampleString = - "{ \"code\" : 404, \"instance\" : \"/login/log/abc123\", \"detail\" : \"Authentication failed due to incorrect username or password\", \"error\" : \"Incorrect username or password\", \"type\" : \"/errors/incorrect-user-pass\" }"; + "{ \"code\" : 5, \"instance\" : \"instance\", \"detail\" : \"detail\", \"error\" : \"Unknown error\", \"type\" : \"lance-namespace:0\" }"; ApiUtil.setExampleResponse(request, "application/json", exampleString); break; } @@ -3029,18 +2986,13 @@ default ResponseEntity explainTableQueryPlan( * @param delimiter An optional delimiter of the `string identifier`, following the * Lance Namespace spec. When not specified, the `$` delimiter must be used. * (optional) - * @return Table statistics (status code 200) or Indicates a bad request error. It could be caused - * by an unexpected request body format or other forms of request validation failure, such as - * invalid json. Usually serves application/json content, although in some cases simple - * text/plain content might be returned by the server's middleware. (status code 400) or - * Unauthorized. The request lacks valid authentication credentials for the operation. (status - * code 401) or Forbidden. Authenticated user does not have the necessary permissions. (status - * code 403) or A server-side problem that means can not find the specified resource. (status - * code 404) or The service is not ready to handle the request. The client should wait and - * retry. The service may additionally send a Retry-After header to indicate when to retry. - * (status code 503) or A server-side problem that might not be addressable from the client - * side. Used for server 5xx errors without more specific documentation in individual routes. - * (status code 5XX) + * @return Table statistics (status code 200) or Malformed request or validation failure (status + * code 400) or Unauthorized. The request lacks valid authentication credentials for the + * operation. (status code 401) or Forbidden. Authenticated user does not have the necessary + * permissions. (status code 403) or The requested table does not exist (status code 404) or + * The service is not ready to handle the request. The client should wait and retry. The + * service may additionally send a Retry-After header to indicate when to retry. (status code + * 503) or Unknown or unclassified error (status code 5XX) */ @Operation( operationId = "getTableStats", @@ -3059,12 +3011,11 @@ default ResponseEntity explainTableQueryPlan( }), @ApiResponse( responseCode = "400", - description = - "Indicates a bad request error. It could be caused by an unexpected request body format or other forms of request validation failure, such as invalid json. Usually serves application/json content, although in some cases simple text/plain content might be returned by the server's middleware.", + description = "Malformed request or validation failure", content = { @Content( mediaType = "application/json", - schema = @Schema(implementation = ErrorResponse.class)) + schema = @Schema(implementation = InvalidRequestError.class)) }), @ApiResponse( responseCode = "401", @@ -3085,11 +3036,11 @@ default ResponseEntity explainTableQueryPlan( }), @ApiResponse( responseCode = "404", - description = "A server-side problem that means can not find the specified resource.", + description = "The requested table does not exist", content = { @Content( mediaType = "application/json", - schema = @Schema(implementation = ErrorResponse.class)) + schema = @Schema(implementation = TableNotFoundError.class)) }), @ApiResponse( responseCode = "503", @@ -3102,12 +3053,11 @@ default ResponseEntity explainTableQueryPlan( }), @ApiResponse( responseCode = "5XX", - description = - "A server-side problem that might not be addressable from the client side. Used for server 5xx errors without more specific documentation in individual routes.", + description = "Unknown or unclassified error", content = { @Content( mediaType = "application/json", - schema = @Schema(implementation = ErrorResponse.class)) + schema = @Schema(implementation = UnknownError.class)) }) }) @RequestMapping( @@ -3148,7 +3098,7 @@ default ResponseEntity getTableStats( } if (mediaType.isCompatibleWith(MediaType.valueOf("application/json"))) { String exampleString = - "{ \"code\" : 404, \"instance\" : \"/login/log/abc123\", \"detail\" : \"Authentication failed due to incorrect username or password\", \"error\" : \"Incorrect username or password\", \"type\" : \"/errors/incorrect-user-pass\" }"; + "{ \"code\" : 0, \"instance\" : \"instance\", \"detail\" : \"detail\", \"error\" : \"Invalid request\", \"type\" : \"lance-namespace:601\" }"; ApiUtil.setExampleResponse(request, "application/json", exampleString); break; } @@ -3166,7 +3116,7 @@ default ResponseEntity getTableStats( } if (mediaType.isCompatibleWith(MediaType.valueOf("application/json"))) { String exampleString = - "{ \"code\" : 404, \"instance\" : \"/login/log/abc123\", \"detail\" : \"Authentication failed due to incorrect username or password\", \"error\" : \"Incorrect username or password\", \"type\" : \"/errors/incorrect-user-pass\" }"; + "{ \"code\" : 1, \"instance\" : \"instance\", \"detail\" : \"detail\", \"error\" : \"Table not found\", \"type\" : \"lance-namespace:201\" }"; ApiUtil.setExampleResponse(request, "application/json", exampleString); break; } @@ -3178,7 +3128,7 @@ default ResponseEntity getTableStats( } if (mediaType.isCompatibleWith(MediaType.valueOf("application/json"))) { String exampleString = - "{ \"code\" : 404, \"instance\" : \"/login/log/abc123\", \"detail\" : \"Authentication failed due to incorrect username or password\", \"error\" : \"Incorrect username or password\", \"type\" : \"/errors/incorrect-user-pass\" }"; + "{ \"code\" : 5, \"instance\" : \"instance\", \"detail\" : \"detail\", \"error\" : \"Unknown error\", \"type\" : \"lance-namespace:0\" }"; ApiUtil.setExampleResponse(request, "application/json", exampleString); break; } @@ -3205,12 +3155,11 @@ default ResponseEntity getTableStats( * simple text/plain content might be returned by the server's middleware. (status code * 400) or Unauthorized. The request lacks valid authentication credentials for the operation. * (status code 401) or Forbidden. Authenticated user does not have the necessary permissions. - * (status code 403) or A server-side problem that means can not find the specified resource. - * (status code 404) or The service is not ready to handle the request. The client should wait - * and retry. The service may additionally send a Retry-After header to indicate when to - * retry. (status code 503) or A server-side problem that might not be addressable from the - * client side. Used for server 5xx errors without more specific documentation in individual - * routes. (status code 5XX) + * (status code 403) or Not found - table or tag does not exist (status code 404) or The + * service is not ready to handle the request. The client should wait and retry. The service + * may additionally send a Retry-After header to indicate when to retry. (status code 503) or + * A server-side problem that might not be addressable from the client side. Used for server + * 5xx errors without more specific documentation in individual routes. (status code 5XX) */ @Operation( operationId = "getTableTagVersion", @@ -3254,11 +3203,11 @@ default ResponseEntity getTableStats( }), @ApiResponse( responseCode = "404", - description = "A server-side problem that means can not find the specified resource.", + description = "Not found - table or tag does not exist", content = { @Content( mediaType = "application/json", - schema = @Schema(implementation = ErrorResponse.class)) + schema = @Schema(implementation = GetTableTagVersion404Response.class)) }), @ApiResponse( responseCode = "503", @@ -3334,7 +3283,7 @@ default ResponseEntity getTableTagVersion( } if (mediaType.isCompatibleWith(MediaType.valueOf("application/json"))) { String exampleString = - "{ \"code\" : 404, \"instance\" : \"/login/log/abc123\", \"detail\" : \"Authentication failed due to incorrect username or password\", \"error\" : \"Incorrect username or password\", \"type\" : \"/errors/incorrect-user-pass\" }"; + "{ \"code\" : 1, \"instance\" : \"instance\", \"detail\" : \"detail\", \"error\" : \"Table not found\", \"type\" : \"lance-namespace:201\" }"; ApiUtil.setExampleResponse(request, "application/json", exampleString); break; } @@ -3373,18 +3322,13 @@ default ResponseEntity getTableTagVersion( * @param mode How the insert should behave: - append (default): insert data to the existing table * - overwrite: remove all data in the table and then insert data to it (optional, default to * append) - * @return Result of inserting records into a table (status code 200) or Indicates a bad request - * error. It could be caused by an unexpected request body format or other forms of request - * validation failure, such as invalid json. Usually serves application/json content, although - * in some cases simple text/plain content might be returned by the server's middleware. - * (status code 400) or Unauthorized. The request lacks valid authentication credentials for - * the operation. (status code 401) or Forbidden. Authenticated user does not have the - * necessary permissions. (status code 403) or A server-side problem that means can not find - * the specified resource. (status code 404) or The service is not ready to handle the - * request. The client should wait and retry. The service may additionally send a Retry-After - * header to indicate when to retry. (status code 503) or A server-side problem that might not - * be addressable from the client side. Used for server 5xx errors without more specific - * documentation in individual routes. (status code 5XX) + * @return Result of inserting records into a table (status code 200) or Bad request - invalid + * request or schema mismatch (status code 400) or Unauthorized. The request lacks valid + * authentication credentials for the operation. (status code 401) or Forbidden. Authenticated + * user does not have the necessary permissions. (status code 403) or The requested table does + * not exist (status code 404) or The service is not ready to handle the request. The client + * should wait and retry. The service may additionally send a Retry-After header to indicate + * when to retry. (status code 503) or Unknown or unclassified error (status code 5XX) */ @Operation( operationId = "insertIntoTable", @@ -3403,12 +3347,11 @@ default ResponseEntity getTableTagVersion( }), @ApiResponse( responseCode = "400", - description = - "Indicates a bad request error. It could be caused by an unexpected request body format or other forms of request validation failure, such as invalid json. Usually serves application/json content, although in some cases simple text/plain content might be returned by the server's middleware.", + description = "Bad request - invalid request or schema mismatch", content = { @Content( mediaType = "application/json", - schema = @Schema(implementation = ErrorResponse.class)) + schema = @Schema(implementation = InsertIntoTable400Response.class)) }), @ApiResponse( responseCode = "401", @@ -3429,11 +3372,11 @@ default ResponseEntity getTableTagVersion( }), @ApiResponse( responseCode = "404", - description = "A server-side problem that means can not find the specified resource.", + description = "The requested table does not exist", content = { @Content( mediaType = "application/json", - schema = @Schema(implementation = ErrorResponse.class)) + schema = @Schema(implementation = TableNotFoundError.class)) }), @ApiResponse( responseCode = "503", @@ -3446,12 +3389,11 @@ default ResponseEntity getTableTagVersion( }), @ApiResponse( responseCode = "5XX", - description = - "A server-side problem that might not be addressable from the client side. Used for server 5xx errors without more specific documentation in individual routes.", + description = "Unknown or unclassified error", content = { @Content( mediaType = "application/json", - schema = @Schema(implementation = ErrorResponse.class)) + schema = @Schema(implementation = UnknownError.class)) }) }) @RequestMapping( @@ -3502,7 +3444,7 @@ default ResponseEntity insertIntoTable( } if (mediaType.isCompatibleWith(MediaType.valueOf("application/json"))) { String exampleString = - "{ \"code\" : 404, \"instance\" : \"/login/log/abc123\", \"detail\" : \"Authentication failed due to incorrect username or password\", \"error\" : \"Incorrect username or password\", \"type\" : \"/errors/incorrect-user-pass\" }"; + "{ \"code\" : 0, \"instance\" : \"instance\", \"detail\" : \"detail\", \"error\" : \"Invalid request\", \"type\" : \"lance-namespace:601\" }"; ApiUtil.setExampleResponse(request, "application/json", exampleString); break; } @@ -3520,7 +3462,7 @@ default ResponseEntity insertIntoTable( } if (mediaType.isCompatibleWith(MediaType.valueOf("application/json"))) { String exampleString = - "{ \"code\" : 404, \"instance\" : \"/login/log/abc123\", \"detail\" : \"Authentication failed due to incorrect username or password\", \"error\" : \"Incorrect username or password\", \"type\" : \"/errors/incorrect-user-pass\" }"; + "{ \"code\" : 1, \"instance\" : \"instance\", \"detail\" : \"detail\", \"error\" : \"Table not found\", \"type\" : \"lance-namespace:201\" }"; ApiUtil.setExampleResponse(request, "application/json", exampleString); break; } @@ -3532,7 +3474,7 @@ default ResponseEntity insertIntoTable( } if (mediaType.isCompatibleWith(MediaType.valueOf("application/json"))) { String exampleString = - "{ \"code\" : 404, \"instance\" : \"/login/log/abc123\", \"detail\" : \"Authentication failed due to incorrect username or password\", \"error\" : \"Incorrect username or password\", \"type\" : \"/errors/incorrect-user-pass\" }"; + "{ \"code\" : 5, \"instance\" : \"instance\", \"detail\" : \"detail\", \"error\" : \"Unknown error\", \"type\" : \"lance-namespace:0\" }"; ApiUtil.setExampleResponse(request, "application/json", exampleString); break; } @@ -3553,18 +3495,13 @@ default ResponseEntity insertIntoTable( * @param delimiter An optional delimiter of the `string identifier`, following the * Lance Namespace spec. When not specified, the `$` delimiter must be used. * (optional) - * @return List of indices on the table (status code 200) or Indicates a bad request error. It - * could be caused by an unexpected request body format or other forms of request validation - * failure, such as invalid json. Usually serves application/json content, although in some - * cases simple text/plain content might be returned by the server's middleware. (status - * code 400) or Unauthorized. The request lacks valid authentication credentials for the - * operation. (status code 401) or Forbidden. Authenticated user does not have the necessary - * permissions. (status code 403) or A server-side problem that means can not find the - * specified resource. (status code 404) or The service is not ready to handle the request. - * The client should wait and retry. The service may additionally send a Retry-After header to - * indicate when to retry. (status code 503) or A server-side problem that might not be - * addressable from the client side. Used for server 5xx errors without more specific - * documentation in individual routes. (status code 5XX) + * @return List of indices on the table (status code 200) or Malformed request or validation + * failure (status code 400) or Unauthorized. The request lacks valid authentication + * credentials for the operation. (status code 401) or Forbidden. Authenticated user does not + * have the necessary permissions. (status code 403) or The requested table does not exist + * (status code 404) or The service is not ready to handle the request. The client should wait + * and retry. The service may additionally send a Retry-After header to indicate when to + * retry. (status code 503) or Unknown or unclassified error (status code 5XX) */ @Operation( operationId = "listTableIndices", @@ -3583,12 +3520,11 @@ default ResponseEntity insertIntoTable( }), @ApiResponse( responseCode = "400", - description = - "Indicates a bad request error. It could be caused by an unexpected request body format or other forms of request validation failure, such as invalid json. Usually serves application/json content, although in some cases simple text/plain content might be returned by the server's middleware.", + description = "Malformed request or validation failure", content = { @Content( mediaType = "application/json", - schema = @Schema(implementation = ErrorResponse.class)) + schema = @Schema(implementation = InvalidRequestError.class)) }), @ApiResponse( responseCode = "401", @@ -3609,11 +3545,11 @@ default ResponseEntity insertIntoTable( }), @ApiResponse( responseCode = "404", - description = "A server-side problem that means can not find the specified resource.", + description = "The requested table does not exist", content = { @Content( mediaType = "application/json", - schema = @Schema(implementation = ErrorResponse.class)) + schema = @Schema(implementation = TableNotFoundError.class)) }), @ApiResponse( responseCode = "503", @@ -3626,12 +3562,11 @@ default ResponseEntity insertIntoTable( }), @ApiResponse( responseCode = "5XX", - description = - "A server-side problem that might not be addressable from the client side. Used for server 5xx errors without more specific documentation in individual routes.", + description = "Unknown or unclassified error", content = { @Content( mediaType = "application/json", - schema = @Schema(implementation = ErrorResponse.class)) + schema = @Schema(implementation = UnknownError.class)) }) }) @RequestMapping( @@ -3675,7 +3610,7 @@ default ResponseEntity listTableIndices( } if (mediaType.isCompatibleWith(MediaType.valueOf("application/json"))) { String exampleString = - "{ \"code\" : 404, \"instance\" : \"/login/log/abc123\", \"detail\" : \"Authentication failed due to incorrect username or password\", \"error\" : \"Incorrect username or password\", \"type\" : \"/errors/incorrect-user-pass\" }"; + "{ \"code\" : 0, \"instance\" : \"instance\", \"detail\" : \"detail\", \"error\" : \"Invalid request\", \"type\" : \"lance-namespace:601\" }"; ApiUtil.setExampleResponse(request, "application/json", exampleString); break; } @@ -3693,7 +3628,7 @@ default ResponseEntity listTableIndices( } if (mediaType.isCompatibleWith(MediaType.valueOf("application/json"))) { String exampleString = - "{ \"code\" : 404, \"instance\" : \"/login/log/abc123\", \"detail\" : \"Authentication failed due to incorrect username or password\", \"error\" : \"Incorrect username or password\", \"type\" : \"/errors/incorrect-user-pass\" }"; + "{ \"code\" : 1, \"instance\" : \"instance\", \"detail\" : \"detail\", \"error\" : \"Table not found\", \"type\" : \"lance-namespace:201\" }"; ApiUtil.setExampleResponse(request, "application/json", exampleString); break; } @@ -3705,7 +3640,7 @@ default ResponseEntity listTableIndices( } if (mediaType.isCompatibleWith(MediaType.valueOf("application/json"))) { String exampleString = - "{ \"code\" : 404, \"instance\" : \"/login/log/abc123\", \"detail\" : \"Authentication failed due to incorrect username or password\", \"error\" : \"Incorrect username or password\", \"type\" : \"/errors/incorrect-user-pass\" }"; + "{ \"code\" : 5, \"instance\" : \"instance\", \"detail\" : \"detail\", \"error\" : \"Unknown error\", \"type\" : \"lance-namespace:0\" }"; ApiUtil.setExampleResponse(request, "application/json", exampleString); break; } @@ -3738,12 +3673,11 @@ default ResponseEntity listTableIndices( * simple text/plain content might be returned by the server's middleware. (status code * 400) or Unauthorized. The request lacks valid authentication credentials for the operation. * (status code 401) or Forbidden. Authenticated user does not have the necessary permissions. - * (status code 403) or A server-side problem that means can not find the specified resource. - * (status code 404) or The service is not ready to handle the request. The client should wait - * and retry. The service may additionally send a Retry-After header to indicate when to - * retry. (status code 503) or A server-side problem that might not be addressable from the - * client side. Used for server 5xx errors without more specific documentation in individual - * routes. (status code 5XX) + * (status code 403) or The requested table does not exist (status code 404) or The service is + * not ready to handle the request. The client should wait and retry. The service may + * additionally send a Retry-After header to indicate when to retry. (status code 503) or A + * server-side problem that might not be addressable from the client side. Used for server 5xx + * errors without more specific documentation in individual routes. (status code 5XX) */ @Operation( operationId = "listTableTags", @@ -3788,11 +3722,11 @@ default ResponseEntity listTableIndices( }), @ApiResponse( responseCode = "404", - description = "A server-side problem that means can not find the specified resource.", + description = "The requested table does not exist", content = { @Content( mediaType = "application/json", - schema = @Schema(implementation = ErrorResponse.class)) + schema = @Schema(implementation = TableNotFoundError.class)) }), @ApiResponse( responseCode = "503", @@ -3871,7 +3805,7 @@ default ResponseEntity listTableTags( } if (mediaType.isCompatibleWith(MediaType.valueOf("application/json"))) { String exampleString = - "{ \"code\" : 404, \"instance\" : \"/login/log/abc123\", \"detail\" : \"Authentication failed due to incorrect username or password\", \"error\" : \"Incorrect username or password\", \"type\" : \"/errors/incorrect-user-pass\" }"; + "{ \"code\" : 1, \"instance\" : \"instance\", \"detail\" : \"detail\", \"error\" : \"Table not found\", \"type\" : \"lance-namespace:201\" }"; ApiUtil.setExampleResponse(request, "application/json", exampleString); break; } @@ -3904,18 +3838,13 @@ default ResponseEntity listTableTags( * @param delimiter An optional delimiter of the `string identifier`, following the * Lance Namespace spec. When not specified, the `$` delimiter must be used. * (optional) - * @return List of table versions (status code 200) or Indicates a bad request error. It could be - * caused by an unexpected request body format or other forms of request validation failure, - * such as invalid json. Usually serves application/json content, although in some cases - * simple text/plain content might be returned by the server's middleware. (status code - * 400) or Unauthorized. The request lacks valid authentication credentials for the operation. - * (status code 401) or Forbidden. Authenticated user does not have the necessary permissions. - * (status code 403) or A server-side problem that means can not find the specified resource. - * (status code 404) or The service is not ready to handle the request. The client should wait - * and retry. The service may additionally send a Retry-After header to indicate when to - * retry. (status code 503) or A server-side problem that might not be addressable from the - * client side. Used for server 5xx errors without more specific documentation in individual - * routes. (status code 5XX) + * @return List of table versions (status code 200) or Malformed request or validation failure + * (status code 400) or Unauthorized. The request lacks valid authentication credentials for + * the operation. (status code 401) or Forbidden. Authenticated user does not have the + * necessary permissions. (status code 403) or The requested table does not exist (status code + * 404) or The service is not ready to handle the request. The client should wait and retry. + * The service may additionally send a Retry-After header to indicate when to retry. (status + * code 503) or Unknown or unclassified error (status code 5XX) */ @Operation( operationId = "listTableVersions", @@ -3933,12 +3862,11 @@ default ResponseEntity listTableTags( }), @ApiResponse( responseCode = "400", - description = - "Indicates a bad request error. It could be caused by an unexpected request body format or other forms of request validation failure, such as invalid json. Usually serves application/json content, although in some cases simple text/plain content might be returned by the server's middleware.", + description = "Malformed request or validation failure", content = { @Content( mediaType = "application/json", - schema = @Schema(implementation = ErrorResponse.class)) + schema = @Schema(implementation = InvalidRequestError.class)) }), @ApiResponse( responseCode = "401", @@ -3959,11 +3887,11 @@ default ResponseEntity listTableTags( }), @ApiResponse( responseCode = "404", - description = "A server-side problem that means can not find the specified resource.", + description = "The requested table does not exist", content = { @Content( mediaType = "application/json", - schema = @Schema(implementation = ErrorResponse.class)) + schema = @Schema(implementation = TableNotFoundError.class)) }), @ApiResponse( responseCode = "503", @@ -3976,12 +3904,11 @@ default ResponseEntity listTableTags( }), @ApiResponse( responseCode = "5XX", - description = - "A server-side problem that might not be addressable from the client side. Used for server 5xx errors without more specific documentation in individual routes.", + description = "Unknown or unclassified error", content = { @Content( mediaType = "application/json", - schema = @Schema(implementation = ErrorResponse.class)) + schema = @Schema(implementation = UnknownError.class)) }) }) @RequestMapping( @@ -4022,7 +3949,7 @@ default ResponseEntity listTableVersions( } if (mediaType.isCompatibleWith(MediaType.valueOf("application/json"))) { String exampleString = - "{ \"code\" : 404, \"instance\" : \"/login/log/abc123\", \"detail\" : \"Authentication failed due to incorrect username or password\", \"error\" : \"Incorrect username or password\", \"type\" : \"/errors/incorrect-user-pass\" }"; + "{ \"code\" : 0, \"instance\" : \"instance\", \"detail\" : \"detail\", \"error\" : \"Invalid request\", \"type\" : \"lance-namespace:601\" }"; ApiUtil.setExampleResponse(request, "application/json", exampleString); break; } @@ -4040,7 +3967,7 @@ default ResponseEntity listTableVersions( } if (mediaType.isCompatibleWith(MediaType.valueOf("application/json"))) { String exampleString = - "{ \"code\" : 404, \"instance\" : \"/login/log/abc123\", \"detail\" : \"Authentication failed due to incorrect username or password\", \"error\" : \"Incorrect username or password\", \"type\" : \"/errors/incorrect-user-pass\" }"; + "{ \"code\" : 1, \"instance\" : \"instance\", \"detail\" : \"detail\", \"error\" : \"Table not found\", \"type\" : \"lance-namespace:201\" }"; ApiUtil.setExampleResponse(request, "application/json", exampleString); break; } @@ -4052,7 +3979,7 @@ default ResponseEntity listTableVersions( } if (mediaType.isCompatibleWith(MediaType.valueOf("application/json"))) { String exampleString = - "{ \"code\" : 404, \"instance\" : \"/login/log/abc123\", \"detail\" : \"Authentication failed due to incorrect username or password\", \"error\" : \"Incorrect username or password\", \"type\" : \"/errors/incorrect-user-pass\" }"; + "{ \"code\" : 5, \"instance\" : \"instance\", \"detail\" : \"detail\", \"error\" : \"Unknown error\", \"type\" : \"lance-namespace:0\" }"; ApiUtil.setExampleResponse(request, "application/json", exampleString); break; } @@ -4093,18 +4020,14 @@ default ResponseEntity listTableVersions( * row in the source table (optional, default to false) * @param whenNotMatchedBySourceDeleteFilt Delete rows from the target table if there is no match * AND the SQL expression evaluates to true (optional) - * @return Result of merge insert operation (status code 200) or Indicates a bad request error. It - * could be caused by an unexpected request body format or other forms of request validation - * failure, such as invalid json. Usually serves application/json content, although in some - * cases simple text/plain content might be returned by the server's middleware. (status - * code 400) or Unauthorized. The request lacks valid authentication credentials for the - * operation. (status code 401) or Forbidden. Authenticated user does not have the necessary - * permissions. (status code 403) or A server-side problem that means can not find the - * specified resource. (status code 404) or The service is not ready to handle the request. - * The client should wait and retry. The service may additionally send a Retry-After header to - * indicate when to retry. (status code 503) or A server-side problem that might not be - * addressable from the client side. Used for server 5xx errors without more specific - * documentation in individual routes. (status code 5XX) + * @return Result of merge insert operation (status code 200) or Bad request - invalid request, + * column not found, or schema mismatch (status code 400) or Unauthorized. The request lacks + * valid authentication credentials for the operation. (status code 401) or Forbidden. + * Authenticated user does not have the necessary permissions. (status code 403) or The + * requested table does not exist (status code 404) or The service is not ready to handle the + * request. The client should wait and retry. The service may additionally send a Retry-After + * header to indicate when to retry. (status code 503) or Unknown or unclassified error + * (status code 5XX) */ @Operation( operationId = "mergeInsertIntoTable", @@ -4123,12 +4046,11 @@ default ResponseEntity listTableVersions( }), @ApiResponse( responseCode = "400", - description = - "Indicates a bad request error. It could be caused by an unexpected request body format or other forms of request validation failure, such as invalid json. Usually serves application/json content, although in some cases simple text/plain content might be returned by the server's middleware.", + description = "Bad request - invalid request, column not found, or schema mismatch", content = { @Content( mediaType = "application/json", - schema = @Schema(implementation = ErrorResponse.class)) + schema = @Schema(implementation = MergeInsertIntoTable400Response.class)) }), @ApiResponse( responseCode = "401", @@ -4149,11 +4071,11 @@ default ResponseEntity listTableVersions( }), @ApiResponse( responseCode = "404", - description = "A server-side problem that means can not find the specified resource.", + description = "The requested table does not exist", content = { @Content( mediaType = "application/json", - schema = @Schema(implementation = ErrorResponse.class)) + schema = @Schema(implementation = TableNotFoundError.class)) }), @ApiResponse( responseCode = "503", @@ -4166,12 +4088,11 @@ default ResponseEntity listTableVersions( }), @ApiResponse( responseCode = "5XX", - description = - "A server-side problem that might not be addressable from the client side. Used for server 5xx errors without more specific documentation in individual routes.", + description = "Unknown or unclassified error", content = { @Content( mediaType = "application/json", - schema = @Schema(implementation = ErrorResponse.class)) + schema = @Schema(implementation = UnknownError.class)) }) }) @RequestMapping( @@ -4268,7 +4189,7 @@ default ResponseEntity mergeInsertIntoTable( } if (mediaType.isCompatibleWith(MediaType.valueOf("application/json"))) { String exampleString = - "{ \"code\" : 404, \"instance\" : \"/login/log/abc123\", \"detail\" : \"Authentication failed due to incorrect username or password\", \"error\" : \"Incorrect username or password\", \"type\" : \"/errors/incorrect-user-pass\" }"; + "{ \"code\" : 0, \"instance\" : \"instance\", \"detail\" : \"detail\", \"error\" : \"Invalid request\", \"type\" : \"lance-namespace:601\" }"; ApiUtil.setExampleResponse(request, "application/json", exampleString); break; } @@ -4286,7 +4207,7 @@ default ResponseEntity mergeInsertIntoTable( } if (mediaType.isCompatibleWith(MediaType.valueOf("application/json"))) { String exampleString = - "{ \"code\" : 404, \"instance\" : \"/login/log/abc123\", \"detail\" : \"Authentication failed due to incorrect username or password\", \"error\" : \"Incorrect username or password\", \"type\" : \"/errors/incorrect-user-pass\" }"; + "{ \"code\" : 1, \"instance\" : \"instance\", \"detail\" : \"detail\", \"error\" : \"Table not found\", \"type\" : \"lance-namespace:201\" }"; ApiUtil.setExampleResponse(request, "application/json", exampleString); break; } @@ -4298,7 +4219,7 @@ default ResponseEntity mergeInsertIntoTable( } if (mediaType.isCompatibleWith(MediaType.valueOf("application/json"))) { String exampleString = - "{ \"code\" : 404, \"instance\" : \"/login/log/abc123\", \"detail\" : \"Authentication failed due to incorrect username or password\", \"error\" : \"Incorrect username or password\", \"type\" : \"/errors/incorrect-user-pass\" }"; + "{ \"code\" : 5, \"instance\" : \"instance\", \"detail\" : \"detail\", \"error\" : \"Unknown error\", \"type\" : \"lance-namespace:0\" }"; ApiUtil.setExampleResponse(request, "application/json", exampleString); break; } @@ -4319,18 +4240,13 @@ default ResponseEntity mergeInsertIntoTable( * @param delimiter An optional delimiter of the `string identifier`, following the * Lance Namespace spec. When not specified, the `$` delimiter must be used. * (optional) - * @return Query results in Arrow IPC file or stream format (status code 200) or Indicates a bad - * request error. It could be caused by an unexpected request body format or other forms of - * request validation failure, such as invalid json. Usually serves application/json content, - * although in some cases simple text/plain content might be returned by the server's - * middleware. (status code 400) or Unauthorized. The request lacks valid authentication - * credentials for the operation. (status code 401) or Forbidden. Authenticated user does not - * have the necessary permissions. (status code 403) or A server-side problem that means can - * not find the specified resource. (status code 404) or The service is not ready to handle - * the request. The client should wait and retry. The service may additionally send a - * Retry-After header to indicate when to retry. (status code 503) or A server-side problem - * that might not be addressable from the client side. Used for server 5xx errors without more - * specific documentation in individual routes. (status code 5XX) + * @return Query results in Arrow IPC file or stream format (status code 200) or Bad request - + * invalid request or invalid SQL (status code 400) or Unauthorized. The request lacks valid + * authentication credentials for the operation. (status code 401) or Forbidden. Authenticated + * user does not have the necessary permissions. (status code 403) or The requested table does + * not exist (status code 404) or The service is not ready to handle the request. The client + * should wait and retry. The service may additionally send a Retry-After header to indicate + * when to retry. (status code 503) or Unknown or unclassified error (status code 5XX) */ @Operation( operationId = "queryTable", @@ -4355,18 +4271,17 @@ default ResponseEntity mergeInsertIntoTable( }), @ApiResponse( responseCode = "400", - description = - "Indicates a bad request error. It could be caused by an unexpected request body format or other forms of request validation failure, such as invalid json. Usually serves application/json content, although in some cases simple text/plain content might be returned by the server's middleware.", + description = "Bad request - invalid request or invalid SQL", content = { @Content( mediaType = "application/vnd.apache.arrow.file", - schema = @Schema(implementation = ErrorResponse.class)), + schema = @Schema(implementation = DeleteFromTable400Response.class)), @Content( mediaType = "application/vnd.apache.arrow.stream", - schema = @Schema(implementation = ErrorResponse.class)), + schema = @Schema(implementation = DeleteFromTable400Response.class)), @Content( mediaType = "application/json", - schema = @Schema(implementation = ErrorResponse.class)) + schema = @Schema(implementation = DeleteFromTable400Response.class)) }), @ApiResponse( responseCode = "401", @@ -4399,17 +4314,17 @@ default ResponseEntity mergeInsertIntoTable( }), @ApiResponse( responseCode = "404", - description = "A server-side problem that means can not find the specified resource.", + description = "The requested table does not exist", content = { @Content( mediaType = "application/vnd.apache.arrow.file", - schema = @Schema(implementation = ErrorResponse.class)), + schema = @Schema(implementation = TableNotFoundError.class)), @Content( mediaType = "application/vnd.apache.arrow.stream", - schema = @Schema(implementation = ErrorResponse.class)), + schema = @Schema(implementation = TableNotFoundError.class)), @Content( mediaType = "application/json", - schema = @Schema(implementation = ErrorResponse.class)) + schema = @Schema(implementation = TableNotFoundError.class)) }), @ApiResponse( responseCode = "503", @@ -4428,18 +4343,17 @@ default ResponseEntity mergeInsertIntoTable( }), @ApiResponse( responseCode = "5XX", - description = - "A server-side problem that might not be addressable from the client side. Used for server 5xx errors without more specific documentation in individual routes.", + description = "Unknown or unclassified error", content = { @Content( mediaType = "application/vnd.apache.arrow.file", - schema = @Schema(implementation = ErrorResponse.class)), + schema = @Schema(implementation = UnknownError.class)), @Content( mediaType = "application/vnd.apache.arrow.stream", - schema = @Schema(implementation = ErrorResponse.class)), + schema = @Schema(implementation = UnknownError.class)), @Content( mediaType = "application/json", - schema = @Schema(implementation = ErrorResponse.class)) + schema = @Schema(implementation = UnknownError.class)) }) }) @RequestMapping( @@ -4478,7 +4392,7 @@ default ResponseEntity queryTable( for (MediaType mediaType : MediaType.parseMediaTypes(request.getHeader("Accept"))) { if (mediaType.isCompatibleWith(MediaType.valueOf("application/json"))) { String exampleString = - "{ \"code\" : 404, \"instance\" : \"/login/log/abc123\", \"detail\" : \"Authentication failed due to incorrect username or password\", \"error\" : \"Incorrect username or password\", \"type\" : \"/errors/incorrect-user-pass\" }"; + "{ \"code\" : 0, \"instance\" : \"instance\", \"detail\" : \"detail\", \"error\" : \"Invalid request\", \"type\" : \"lance-namespace:601\" }"; ApiUtil.setExampleResponse(request, "application/json", exampleString); break; } @@ -4496,7 +4410,7 @@ default ResponseEntity queryTable( } if (mediaType.isCompatibleWith(MediaType.valueOf("application/json"))) { String exampleString = - "{ \"code\" : 404, \"instance\" : \"/login/log/abc123\", \"detail\" : \"Authentication failed due to incorrect username or password\", \"error\" : \"Incorrect username or password\", \"type\" : \"/errors/incorrect-user-pass\" }"; + "{ \"code\" : 1, \"instance\" : \"instance\", \"detail\" : \"detail\", \"error\" : \"Table not found\", \"type\" : \"lance-namespace:201\" }"; ApiUtil.setExampleResponse(request, "application/json", exampleString); break; } @@ -4508,7 +4422,7 @@ default ResponseEntity queryTable( } if (mediaType.isCompatibleWith(MediaType.valueOf("application/json"))) { String exampleString = - "{ \"code\" : 404, \"instance\" : \"/login/log/abc123\", \"detail\" : \"Authentication failed due to incorrect username or password\", \"error\" : \"Incorrect username or password\", \"type\" : \"/errors/incorrect-user-pass\" }"; + "{ \"code\" : 5, \"instance\" : \"instance\", \"detail\" : \"detail\", \"error\" : \"Unknown error\", \"type\" : \"lance-namespace:0\" }"; ApiUtil.setExampleResponse(request, "application/json", exampleString); break; } @@ -4529,20 +4443,15 @@ default ResponseEntity queryTable( * @param delimiter An optional delimiter of the `string identifier`, following the * Lance Namespace spec. When not specified, the `$` delimiter must be used. * (optional) - * @return Table properties result when registering a table (status code 200) or Indicates a bad - * request error. It could be caused by an unexpected request body format or other forms of - * request validation failure, such as invalid json. Usually serves application/json content, - * although in some cases simple text/plain content might be returned by the server's - * middleware. (status code 400) or Unauthorized. The request lacks valid authentication - * credentials for the operation. (status code 401) or Forbidden. Authenticated user does not - * have the necessary permissions. (status code 403) or A server-side problem that means can - * not find the specified resource. (status code 404) or Not Acceptable / Unsupported - * Operation. The server does not support this operation. (status code 406) or The request - * conflicts with the current state of the target resource. (status code 409) or The service - * is not ready to handle the request. The client should wait and retry. The service may - * additionally send a Retry-After header to indicate when to retry. (status code 503) or A - * server-side problem that might not be addressable from the client side. Used for server 5xx - * errors without more specific documentation in individual routes. (status code 5XX) + * @return Table properties result when registering a table (status code 200) or Malformed request + * or validation failure (status code 400) or Unauthorized. The request lacks valid + * authentication credentials for the operation. (status code 401) or Forbidden. Authenticated + * user does not have the necessary permissions. (status code 403) or The parent namespace + * does not exist (status code 404) or Not Acceptable / Unsupported Operation. The server does + * not support this operation. (status code 406) or A table with the same name already exists + * (status code 409) or The service is not ready to handle the request. The client should wait + * and retry. The service may additionally send a Retry-After header to indicate when to + * retry. (status code 503) or Unknown or unclassified error (status code 5XX) */ @Operation( operationId = "registerTable", @@ -4560,12 +4469,11 @@ default ResponseEntity queryTable( }), @ApiResponse( responseCode = "400", - description = - "Indicates a bad request error. It could be caused by an unexpected request body format or other forms of request validation failure, such as invalid json. Usually serves application/json content, although in some cases simple text/plain content might be returned by the server's middleware.", + description = "Malformed request or validation failure", content = { @Content( mediaType = "application/json", - schema = @Schema(implementation = ErrorResponse.class)) + schema = @Schema(implementation = InvalidRequestError.class)) }), @ApiResponse( responseCode = "401", @@ -4586,11 +4494,11 @@ default ResponseEntity queryTable( }), @ApiResponse( responseCode = "404", - description = "A server-side problem that means can not find the specified resource.", + description = "The parent namespace does not exist", content = { @Content( mediaType = "application/json", - schema = @Schema(implementation = ErrorResponse.class)) + schema = @Schema(implementation = ParentNamespaceNotFoundError.class)) }), @ApiResponse( responseCode = "406", @@ -4603,11 +4511,11 @@ default ResponseEntity queryTable( }), @ApiResponse( responseCode = "409", - description = "The request conflicts with the current state of the target resource.", + description = "A table with the same name already exists", content = { @Content( mediaType = "application/json", - schema = @Schema(implementation = ErrorResponse.class)) + schema = @Schema(implementation = TableAlreadyExistsError.class)) }), @ApiResponse( responseCode = "503", @@ -4620,12 +4528,11 @@ default ResponseEntity queryTable( }), @ApiResponse( responseCode = "5XX", - description = - "A server-side problem that might not be addressable from the client side. Used for server 5xx errors without more specific documentation in individual routes.", + description = "Unknown or unclassified error", content = { @Content( mediaType = "application/json", - schema = @Schema(implementation = ErrorResponse.class)) + schema = @Schema(implementation = UnknownError.class)) }) }) @RequestMapping( @@ -4666,7 +4573,7 @@ default ResponseEntity registerTable( } if (mediaType.isCompatibleWith(MediaType.valueOf("application/json"))) { String exampleString = - "{ \"code\" : 404, \"instance\" : \"/login/log/abc123\", \"detail\" : \"Authentication failed due to incorrect username or password\", \"error\" : \"Incorrect username or password\", \"type\" : \"/errors/incorrect-user-pass\" }"; + "{ \"code\" : 0, \"instance\" : \"instance\", \"detail\" : \"detail\", \"error\" : \"Invalid request\", \"type\" : \"lance-namespace:601\" }"; ApiUtil.setExampleResponse(request, "application/json", exampleString); break; } @@ -4684,7 +4591,7 @@ default ResponseEntity registerTable( } if (mediaType.isCompatibleWith(MediaType.valueOf("application/json"))) { String exampleString = - "{ \"code\" : 404, \"instance\" : \"/login/log/abc123\", \"detail\" : \"Authentication failed due to incorrect username or password\", \"error\" : \"Incorrect username or password\", \"type\" : \"/errors/incorrect-user-pass\" }"; + "{ \"code\" : 6, \"instance\" : \"instance\", \"detail\" : \"detail\", \"error\" : \"Parent namespace not found\", \"type\" : \"lance-namespace:103\" }"; ApiUtil.setExampleResponse(request, "application/json", exampleString); break; } @@ -4696,7 +4603,7 @@ default ResponseEntity registerTable( } if (mediaType.isCompatibleWith(MediaType.valueOf("application/json"))) { String exampleString = - "{ \"code\" : 404, \"instance\" : \"/login/log/abc123\", \"detail\" : \"Authentication failed due to incorrect username or password\", \"error\" : \"Incorrect username or password\", \"type\" : \"/errors/incorrect-user-pass\" }"; + "{ \"code\" : 0, \"instance\" : \"instance\", \"detail\" : \"detail\", \"error\" : \"Table already exists\", \"type\" : \"lance-namespace:202\" }"; ApiUtil.setExampleResponse(request, "application/json", exampleString); break; } @@ -4708,7 +4615,7 @@ default ResponseEntity registerTable( } if (mediaType.isCompatibleWith(MediaType.valueOf("application/json"))) { String exampleString = - "{ \"code\" : 404, \"instance\" : \"/login/log/abc123\", \"detail\" : \"Authentication failed due to incorrect username or password\", \"error\" : \"Incorrect username or password\", \"type\" : \"/errors/incorrect-user-pass\" }"; + "{ \"code\" : 5, \"instance\" : \"instance\", \"detail\" : \"detail\", \"error\" : \"Unknown error\", \"type\" : \"lance-namespace:0\" }"; ApiUtil.setExampleResponse(request, "application/json", exampleString); break; } @@ -4729,18 +4636,13 @@ default ResponseEntity registerTable( * @param delimiter An optional delimiter of the `string identifier`, following the * Lance Namespace spec. When not specified, the `$` delimiter must be used. * (optional) - * @return Table restore operation result (status code 200) or Indicates a bad request error. It - * could be caused by an unexpected request body format or other forms of request validation - * failure, such as invalid json. Usually serves application/json content, although in some - * cases simple text/plain content might be returned by the server's middleware. (status - * code 400) or Unauthorized. The request lacks valid authentication credentials for the - * operation. (status code 401) or Forbidden. Authenticated user does not have the necessary - * permissions. (status code 403) or A server-side problem that means can not find the - * specified resource. (status code 404) or The service is not ready to handle the request. - * The client should wait and retry. The service may additionally send a Retry-After header to - * indicate when to retry. (status code 503) or A server-side problem that might not be - * addressable from the client side. Used for server 5xx errors without more specific - * documentation in individual routes. (status code 5XX) + * @return Table restore operation result (status code 200) or Malformed request or validation + * failure (status code 400) or Unauthorized. The request lacks valid authentication + * credentials for the operation. (status code 401) or Forbidden. Authenticated user does not + * have the necessary permissions. (status code 403) or Not found - table or version does not + * exist (status code 404) or The service is not ready to handle the request. The client + * should wait and retry. The service may additionally send a Retry-After header to indicate + * when to retry. (status code 503) or Unknown or unclassified error (status code 5XX) */ @Operation( operationId = "restoreTable", @@ -4758,12 +4660,11 @@ default ResponseEntity registerTable( }), @ApiResponse( responseCode = "400", - description = - "Indicates a bad request error. It could be caused by an unexpected request body format or other forms of request validation failure, such as invalid json. Usually serves application/json content, although in some cases simple text/plain content might be returned by the server's middleware.", + description = "Malformed request or validation failure", content = { @Content( mediaType = "application/json", - schema = @Schema(implementation = ErrorResponse.class)) + schema = @Schema(implementation = InvalidRequestError.class)) }), @ApiResponse( responseCode = "401", @@ -4784,11 +4685,11 @@ default ResponseEntity registerTable( }), @ApiResponse( responseCode = "404", - description = "A server-side problem that means can not find the specified resource.", + description = "Not found - table or version does not exist", content = { @Content( mediaType = "application/json", - schema = @Schema(implementation = ErrorResponse.class)) + schema = @Schema(implementation = RestoreTable404Response.class)) }), @ApiResponse( responseCode = "503", @@ -4801,12 +4702,11 @@ default ResponseEntity registerTable( }), @ApiResponse( responseCode = "5XX", - description = - "A server-side problem that might not be addressable from the client side. Used for server 5xx errors without more specific documentation in individual routes.", + description = "Unknown or unclassified error", content = { @Content( mediaType = "application/json", - schema = @Schema(implementation = ErrorResponse.class)) + schema = @Schema(implementation = UnknownError.class)) }) }) @RequestMapping( @@ -4846,7 +4746,7 @@ default ResponseEntity restoreTable( } if (mediaType.isCompatibleWith(MediaType.valueOf("application/json"))) { String exampleString = - "{ \"code\" : 404, \"instance\" : \"/login/log/abc123\", \"detail\" : \"Authentication failed due to incorrect username or password\", \"error\" : \"Incorrect username or password\", \"type\" : \"/errors/incorrect-user-pass\" }"; + "{ \"code\" : 0, \"instance\" : \"instance\", \"detail\" : \"detail\", \"error\" : \"Invalid request\", \"type\" : \"lance-namespace:601\" }"; ApiUtil.setExampleResponse(request, "application/json", exampleString); break; } @@ -4864,7 +4764,7 @@ default ResponseEntity restoreTable( } if (mediaType.isCompatibleWith(MediaType.valueOf("application/json"))) { String exampleString = - "{ \"code\" : 404, \"instance\" : \"/login/log/abc123\", \"detail\" : \"Authentication failed due to incorrect username or password\", \"error\" : \"Incorrect username or password\", \"type\" : \"/errors/incorrect-user-pass\" }"; + "{ \"code\" : 1, \"instance\" : \"instance\", \"detail\" : \"detail\", \"error\" : \"Table not found\", \"type\" : \"lance-namespace:201\" }"; ApiUtil.setExampleResponse(request, "application/json", exampleString); break; } @@ -4876,7 +4776,7 @@ default ResponseEntity restoreTable( } if (mediaType.isCompatibleWith(MediaType.valueOf("application/json"))) { String exampleString = - "{ \"code\" : 404, \"instance\" : \"/login/log/abc123\", \"detail\" : \"Authentication failed due to incorrect username or password\", \"error\" : \"Incorrect username or password\", \"type\" : \"/errors/incorrect-user-pass\" }"; + "{ \"code\" : 5, \"instance\" : \"instance\", \"detail\" : \"detail\", \"error\" : \"Unknown error\", \"type\" : \"lance-namespace:0\" }"; ApiUtil.setExampleResponse(request, "application/json", exampleString); break; } @@ -4900,18 +4800,13 @@ default ResponseEntity restoreTable( * @param delimiter An optional delimiter of the `string identifier`, following the * Lance Namespace spec. When not specified, the `$` delimiter must be used. * (optional) - * @return Success, no content (status code 200) or Indicates a bad request error. It could be - * caused by an unexpected request body format or other forms of request validation failure, - * such as invalid json. Usually serves application/json content, although in some cases - * simple text/plain content might be returned by the server's middleware. (status code - * 400) or Unauthorized. The request lacks valid authentication credentials for the operation. - * (status code 401) or Forbidden. Authenticated user does not have the necessary permissions. - * (status code 403) or A server-side problem that means can not find the specified resource. - * (status code 404) or The service is not ready to handle the request. The client should wait - * and retry. The service may additionally send a Retry-After header to indicate when to - * retry. (status code 503) or A server-side problem that might not be addressable from the - * client side. Used for server 5xx errors without more specific documentation in individual - * routes. (status code 5XX) + * @return Success, no content (status code 200) or Malformed request or validation failure + * (status code 400) or Unauthorized. The request lacks valid authentication credentials for + * the operation. (status code 401) or Forbidden. Authenticated user does not have the + * necessary permissions. (status code 403) or The requested table does not exist (status code + * 404) or The service is not ready to handle the request. The client should wait and retry. + * The service may additionally send a Retry-After header to indicate when to retry. (status + * code 503) or Unknown or unclassified error (status code 5XX) */ @Operation( operationId = "tableExists", @@ -4923,12 +4818,11 @@ default ResponseEntity restoreTable( @ApiResponse(responseCode = "200", description = "Success, no content"), @ApiResponse( responseCode = "400", - description = - "Indicates a bad request error. It could be caused by an unexpected request body format or other forms of request validation failure, such as invalid json. Usually serves application/json content, although in some cases simple text/plain content might be returned by the server's middleware.", + description = "Malformed request or validation failure", content = { @Content( mediaType = "application/json", - schema = @Schema(implementation = ErrorResponse.class)) + schema = @Schema(implementation = InvalidRequestError.class)) }), @ApiResponse( responseCode = "401", @@ -4949,11 +4843,11 @@ default ResponseEntity restoreTable( }), @ApiResponse( responseCode = "404", - description = "A server-side problem that means can not find the specified resource.", + description = "The requested table does not exist", content = { @Content( mediaType = "application/json", - schema = @Schema(implementation = ErrorResponse.class)) + schema = @Schema(implementation = TableNotFoundError.class)) }), @ApiResponse( responseCode = "503", @@ -4966,12 +4860,11 @@ default ResponseEntity restoreTable( }), @ApiResponse( responseCode = "5XX", - description = - "A server-side problem that might not be addressable from the client side. Used for server 5xx errors without more specific documentation in individual routes.", + description = "Unknown or unclassified error", content = { @Content( mediaType = "application/json", - schema = @Schema(implementation = ErrorResponse.class)) + schema = @Schema(implementation = UnknownError.class)) }) }) @RequestMapping( @@ -5004,7 +4897,7 @@ default ResponseEntity tableExists( for (MediaType mediaType : MediaType.parseMediaTypes(request.getHeader("Accept"))) { if (mediaType.isCompatibleWith(MediaType.valueOf("application/json"))) { String exampleString = - "{ \"code\" : 404, \"instance\" : \"/login/log/abc123\", \"detail\" : \"Authentication failed due to incorrect username or password\", \"error\" : \"Incorrect username or password\", \"type\" : \"/errors/incorrect-user-pass\" }"; + "{ \"code\" : 0, \"instance\" : \"instance\", \"detail\" : \"detail\", \"error\" : \"Invalid request\", \"type\" : \"lance-namespace:601\" }"; ApiUtil.setExampleResponse(request, "application/json", exampleString); break; } @@ -5022,7 +4915,7 @@ default ResponseEntity tableExists( } if (mediaType.isCompatibleWith(MediaType.valueOf("application/json"))) { String exampleString = - "{ \"code\" : 404, \"instance\" : \"/login/log/abc123\", \"detail\" : \"Authentication failed due to incorrect username or password\", \"error\" : \"Incorrect username or password\", \"type\" : \"/errors/incorrect-user-pass\" }"; + "{ \"code\" : 1, \"instance\" : \"instance\", \"detail\" : \"detail\", \"error\" : \"Table not found\", \"type\" : \"lance-namespace:201\" }"; ApiUtil.setExampleResponse(request, "application/json", exampleString); break; } @@ -5034,7 +4927,7 @@ default ResponseEntity tableExists( } if (mediaType.isCompatibleWith(MediaType.valueOf("application/json"))) { String exampleString = - "{ \"code\" : 404, \"instance\" : \"/login/log/abc123\", \"detail\" : \"Authentication failed due to incorrect username or password\", \"error\" : \"Incorrect username or password\", \"type\" : \"/errors/incorrect-user-pass\" }"; + "{ \"code\" : 5, \"instance\" : \"instance\", \"detail\" : \"detail\", \"error\" : \"Unknown error\", \"type\" : \"lance-namespace:0\" }"; ApiUtil.setExampleResponse(request, "application/json", exampleString); break; } @@ -5055,18 +4948,13 @@ default ResponseEntity tableExists( * @param delimiter An optional delimiter of the `string identifier`, following the * Lance Namespace spec. When not specified, the `$` delimiter must be used. * (optional) - * @return Update successful (status code 200) or Indicates a bad request error. It could be - * caused by an unexpected request body format or other forms of request validation failure, - * such as invalid json. Usually serves application/json content, although in some cases - * simple text/plain content might be returned by the server's middleware. (status code - * 400) or Unauthorized. The request lacks valid authentication credentials for the operation. - * (status code 401) or Forbidden. Authenticated user does not have the necessary permissions. - * (status code 403) or A server-side problem that means can not find the specified resource. + * @return Update successful (status code 200) or Bad request - invalid request, column not found, + * or invalid SQL (status code 400) or Unauthorized. The request lacks valid authentication + * credentials for the operation. (status code 401) or Forbidden. Authenticated user does not + * have the necessary permissions. (status code 403) or The requested table does not exist * (status code 404) or The service is not ready to handle the request. The client should wait * and retry. The service may additionally send a Retry-After header to indicate when to - * retry. (status code 503) or A server-side problem that might not be addressable from the - * client side. Used for server 5xx errors without more specific documentation in individual - * routes. (status code 5XX) + * retry. (status code 503) or Unknown or unclassified error (status code 5XX) */ @Operation( operationId = "updateTable", @@ -5084,12 +4972,11 @@ default ResponseEntity tableExists( }), @ApiResponse( responseCode = "400", - description = - "Indicates a bad request error. It could be caused by an unexpected request body format or other forms of request validation failure, such as invalid json. Usually serves application/json content, although in some cases simple text/plain content might be returned by the server's middleware.", + description = "Bad request - invalid request, column not found, or invalid SQL", content = { @Content( mediaType = "application/json", - schema = @Schema(implementation = ErrorResponse.class)) + schema = @Schema(implementation = UpdateTable400Response.class)) }), @ApiResponse( responseCode = "401", @@ -5110,11 +4997,11 @@ default ResponseEntity tableExists( }), @ApiResponse( responseCode = "404", - description = "A server-side problem that means can not find the specified resource.", + description = "The requested table does not exist", content = { @Content( mediaType = "application/json", - schema = @Schema(implementation = ErrorResponse.class)) + schema = @Schema(implementation = TableNotFoundError.class)) }), @ApiResponse( responseCode = "503", @@ -5127,12 +5014,11 @@ default ResponseEntity tableExists( }), @ApiResponse( responseCode = "5XX", - description = - "A server-side problem that might not be addressable from the client side. Used for server 5xx errors without more specific documentation in individual routes.", + description = "Unknown or unclassified error", content = { @Content( mediaType = "application/json", - schema = @Schema(implementation = ErrorResponse.class)) + schema = @Schema(implementation = UnknownError.class)) }) }) @RequestMapping( @@ -5172,7 +5058,7 @@ default ResponseEntity updateTable( } if (mediaType.isCompatibleWith(MediaType.valueOf("application/json"))) { String exampleString = - "{ \"code\" : 404, \"instance\" : \"/login/log/abc123\", \"detail\" : \"Authentication failed due to incorrect username or password\", \"error\" : \"Incorrect username or password\", \"type\" : \"/errors/incorrect-user-pass\" }"; + "{ \"code\" : 0, \"instance\" : \"instance\", \"detail\" : \"detail\", \"error\" : \"Invalid request\", \"type\" : \"lance-namespace:601\" }"; ApiUtil.setExampleResponse(request, "application/json", exampleString); break; } @@ -5190,7 +5076,7 @@ default ResponseEntity updateTable( } if (mediaType.isCompatibleWith(MediaType.valueOf("application/json"))) { String exampleString = - "{ \"code\" : 404, \"instance\" : \"/login/log/abc123\", \"detail\" : \"Authentication failed due to incorrect username or password\", \"error\" : \"Incorrect username or password\", \"type\" : \"/errors/incorrect-user-pass\" }"; + "{ \"code\" : 1, \"instance\" : \"instance\", \"detail\" : \"detail\", \"error\" : \"Table not found\", \"type\" : \"lance-namespace:201\" }"; ApiUtil.setExampleResponse(request, "application/json", exampleString); break; } @@ -5202,7 +5088,7 @@ default ResponseEntity updateTable( } if (mediaType.isCompatibleWith(MediaType.valueOf("application/json"))) { String exampleString = - "{ \"code\" : 404, \"instance\" : \"/login/log/abc123\", \"detail\" : \"Authentication failed due to incorrect username or password\", \"error\" : \"Incorrect username or password\", \"type\" : \"/errors/incorrect-user-pass\" }"; + "{ \"code\" : 5, \"instance\" : \"instance\", \"detail\" : \"detail\", \"error\" : \"Unknown error\", \"type\" : \"lance-namespace:0\" }"; ApiUtil.setExampleResponse(request, "application/json", exampleString); break; } @@ -5229,12 +5115,12 @@ default ResponseEntity updateTable( * simple text/plain content might be returned by the server's middleware. (status code * 400) or Unauthorized. The request lacks valid authentication credentials for the operation. * (status code 401) or Forbidden. Authenticated user does not have the necessary permissions. - * (status code 403) or A server-side problem that means can not find the specified resource. - * (status code 404) or The service is not ready to handle the request. The client should wait - * and retry. The service may additionally send a Retry-After header to indicate when to - * retry. (status code 503) or A server-side problem that might not be addressable from the - * client side. Used for server 5xx errors without more specific documentation in individual - * routes. (status code 5XX) + * (status code 403) or Not found - table, tag, or version does not exist (status code 404) or + * The service is not ready to handle the request. The client should wait and retry. The + * service may additionally send a Retry-After header to indicate when to retry. (status code + * 503) or A server-side problem that might not be addressable from the client side. Used for + * server 5xx errors without more specific documentation in individual routes. (status code + * 5XX) */ @Operation( operationId = "updateTableTag", @@ -5271,11 +5157,11 @@ default ResponseEntity updateTable( }), @ApiResponse( responseCode = "404", - description = "A server-side problem that means can not find the specified resource.", + description = "Not found - table, tag, or version does not exist", content = { @Content( mediaType = "application/json", - schema = @Schema(implementation = ErrorResponse.class)) + schema = @Schema(implementation = UpdateTableTag404Response.class)) }), @ApiResponse( responseCode = "503", @@ -5346,7 +5232,7 @@ default ResponseEntity updateTableTag( } if (mediaType.isCompatibleWith(MediaType.valueOf("application/json"))) { String exampleString = - "{ \"code\" : 404, \"instance\" : \"/login/log/abc123\", \"detail\" : \"Authentication failed due to incorrect username or password\", \"error\" : \"Incorrect username or password\", \"type\" : \"/errors/incorrect-user-pass\" }"; + "{ \"code\" : 1, \"instance\" : \"instance\", \"detail\" : \"detail\", \"error\" : \"Table not found\", \"type\" : \"lance-namespace:201\" }"; ApiUtil.setExampleResponse(request, "application/json", exampleString); break; } diff --git a/java/lance-namespace-springboot-server/src/main/java/org/lance/namespace/server/springboot/api/TransactionApi.java b/java/lance-namespace-springboot-server/src/main/java/org/lance/namespace/server/springboot/api/TransactionApi.java index 87d37669..0b446b5e 100644 --- a/java/lance-namespace-springboot-server/src/main/java/org/lance/namespace/server/springboot/api/TransactionApi.java +++ b/java/lance-namespace-springboot-server/src/main/java/org/lance/namespace/server/springboot/api/TransactionApi.java @@ -18,6 +18,8 @@ import org.lance.namespace.server.springboot.model.DescribeTransactionRequest; import org.lance.namespace.server.springboot.model.DescribeTransactionResponse; import org.lance.namespace.server.springboot.model.ErrorResponse; +import org.lance.namespace.server.springboot.model.TransactionConflictError; +import org.lance.namespace.server.springboot.model.TransactionNotFoundError; import io.swagger.v3.oas.annotations.Operation; import io.swagger.v3.oas.annotations.Parameter; @@ -68,13 +70,12 @@ default Optional getRequest() { * cases simple text/plain content might be returned by the server's middleware. (status * code 400) or Unauthorized. The request lacks valid authentication credentials for the * operation. (status code 401) or Forbidden. Authenticated user does not have the necessary - * permissions. (status code 403) or A server-side problem that means can not find the - * specified resource. (status code 404) or The request conflicts with the current state of - * the target resource. (status code 409) or The service is not ready to handle the request. - * The client should wait and retry. The service may additionally send a Retry-After header to - * indicate when to retry. (status code 503) or A server-side problem that might not be - * addressable from the client side. Used for server 5xx errors without more specific - * documentation in individual routes. (status code 5XX) + * permissions. (status code 403) or The requested transaction does not exist (status code + * 404) or Transaction failed due to concurrent modification (status code 409) or The service + * is not ready to handle the request. The client should wait and retry. The service may + * additionally send a Retry-After header to indicate when to retry. (status code 503) or A + * server-side problem that might not be addressable from the client side. Used for server 5xx + * errors without more specific documentation in individual routes. (status code 5XX) */ @Operation( operationId = "alterTransaction", @@ -119,19 +120,19 @@ default Optional getRequest() { }), @ApiResponse( responseCode = "404", - description = "A server-side problem that means can not find the specified resource.", + description = "The requested transaction does not exist", content = { @Content( mediaType = "application/json", - schema = @Schema(implementation = ErrorResponse.class)) + schema = @Schema(implementation = TransactionNotFoundError.class)) }), @ApiResponse( responseCode = "409", - description = "The request conflicts with the current state of the target resource.", + description = "Transaction failed due to concurrent modification", content = { @Content( mediaType = "application/json", - schema = @Schema(implementation = ErrorResponse.class)) + schema = @Schema(implementation = TransactionConflictError.class)) }), @ApiResponse( responseCode = "503", @@ -208,13 +209,13 @@ default ResponseEntity alterTransaction( } if (mediaType.isCompatibleWith(MediaType.valueOf("application/json"))) { String exampleString = - "{ \"code\" : 404, \"instance\" : \"/login/log/abc123\", \"detail\" : \"Authentication failed due to incorrect username or password\", \"error\" : \"Incorrect username or password\", \"type\" : \"/errors/incorrect-user-pass\" }"; + "{ \"code\" : 0, \"instance\" : \"instance\", \"detail\" : \"detail\", \"error\" : \"Transaction not found\", \"type\" : \"lance-namespace:501\" }"; ApiUtil.setExampleResponse(request, "application/json", exampleString); break; } if (mediaType.isCompatibleWith(MediaType.valueOf("application/json"))) { String exampleString = - "{ \"code\" : 404, \"instance\" : \"/login/log/abc123\", \"detail\" : \"Authentication failed due to incorrect username or password\", \"error\" : \"Incorrect username or password\", \"type\" : \"/errors/incorrect-user-pass\" }"; + "{ \"code\" : 0, \"instance\" : \"instance\", \"detail\" : \"detail\", \"error\" : \"Transaction conflict\", \"type\" : \"lance-namespace:502\" }"; ApiUtil.setExampleResponse(request, "application/json", exampleString); break; } @@ -253,12 +254,12 @@ default ResponseEntity alterTransaction( * cases simple text/plain content might be returned by the server's middleware. (status * code 400) or Unauthorized. The request lacks valid authentication credentials for the * operation. (status code 401) or Forbidden. Authenticated user does not have the necessary - * permissions. (status code 403) or A server-side problem that means can not find the - * specified resource. (status code 404) or The service is not ready to handle the request. - * The client should wait and retry. The service may additionally send a Retry-After header to - * indicate when to retry. (status code 503) or A server-side problem that might not be - * addressable from the client side. Used for server 5xx errors without more specific - * documentation in individual routes. (status code 5XX) + * permissions. (status code 403) or The requested transaction does not exist (status code + * 404) or The service is not ready to handle the request. The client should wait and retry. + * The service may additionally send a Retry-After header to indicate when to retry. (status + * code 503) or A server-side problem that might not be addressable from the client side. Used + * for server 5xx errors without more specific documentation in individual routes. (status + * code 5XX) */ @Operation( operationId = "describeTransaction", @@ -302,11 +303,11 @@ default ResponseEntity alterTransaction( }), @ApiResponse( responseCode = "404", - description = "A server-side problem that means can not find the specified resource.", + description = "The requested transaction does not exist", content = { @Content( mediaType = "application/json", - schema = @Schema(implementation = ErrorResponse.class)) + schema = @Schema(implementation = TransactionNotFoundError.class)) }), @ApiResponse( responseCode = "503", @@ -383,7 +384,7 @@ default ResponseEntity describeTransaction( } if (mediaType.isCompatibleWith(MediaType.valueOf("application/json"))) { String exampleString = - "{ \"code\" : 404, \"instance\" : \"/login/log/abc123\", \"detail\" : \"Authentication failed due to incorrect username or password\", \"error\" : \"Incorrect username or password\", \"type\" : \"/errors/incorrect-user-pass\" }"; + "{ \"code\" : 0, \"instance\" : \"instance\", \"detail\" : \"detail\", \"error\" : \"Transaction not found\", \"type\" : \"lance-namespace:501\" }"; ApiUtil.setExampleResponse(request, "application/json", exampleString); break; } diff --git a/java/lance-namespace-springboot-server/src/main/java/org/lance/namespace/server/springboot/model/AlterTableAddColumns400Response.java b/java/lance-namespace-springboot-server/src/main/java/org/lance/namespace/server/springboot/model/AlterTableAddColumns400Response.java new file mode 100644 index 00000000..1c2f81b7 --- /dev/null +++ b/java/lance-namespace-springboot-server/src/main/java/org/lance/namespace/server/springboot/model/AlterTableAddColumns400Response.java @@ -0,0 +1,24 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package org.lance.namespace.server.springboot.model; + +import jakarta.annotation.Generated; +import jakarta.validation.constraints.*; + +import java.util.*; + +@Generated( + value = "org.openapitools.codegen.languages.SpringCodegen", + comments = "Generator version: 7.12.0") +public interface AlterTableAddColumns400Response {} diff --git a/java/lance-namespace-springboot-server/src/main/java/org/lance/namespace/server/springboot/model/AlterTableAlterColumns400Response.java b/java/lance-namespace-springboot-server/src/main/java/org/lance/namespace/server/springboot/model/AlterTableAlterColumns400Response.java new file mode 100644 index 00000000..3b16d89e --- /dev/null +++ b/java/lance-namespace-springboot-server/src/main/java/org/lance/namespace/server/springboot/model/AlterTableAlterColumns400Response.java @@ -0,0 +1,24 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package org.lance.namespace.server.springboot.model; + +import jakarta.annotation.Generated; +import jakarta.validation.constraints.*; + +import java.util.*; + +@Generated( + value = "org.openapitools.codegen.languages.SpringCodegen", + comments = "Generator version: 7.12.0") +public interface AlterTableAlterColumns400Response {} diff --git a/java/lance-namespace-springboot-server/src/main/java/org/lance/namespace/server/springboot/model/CreateNamespace400Response.java b/java/lance-namespace-springboot-server/src/main/java/org/lance/namespace/server/springboot/model/CreateNamespace400Response.java new file mode 100644 index 00000000..e622f17e --- /dev/null +++ b/java/lance-namespace-springboot-server/src/main/java/org/lance/namespace/server/springboot/model/CreateNamespace400Response.java @@ -0,0 +1,24 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package org.lance.namespace.server.springboot.model; + +import jakarta.annotation.Generated; +import jakarta.validation.constraints.*; + +import java.util.*; + +@Generated( + value = "org.openapitools.codegen.languages.SpringCodegen", + comments = "Generator version: 7.12.0") +public interface CreateNamespace400Response {} diff --git a/java/lance-namespace-springboot-server/src/main/java/org/lance/namespace/server/springboot/model/CreateTable400Response.java b/java/lance-namespace-springboot-server/src/main/java/org/lance/namespace/server/springboot/model/CreateTable400Response.java new file mode 100644 index 00000000..39670685 --- /dev/null +++ b/java/lance-namespace-springboot-server/src/main/java/org/lance/namespace/server/springboot/model/CreateTable400Response.java @@ -0,0 +1,24 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package org.lance.namespace.server.springboot.model; + +import jakarta.annotation.Generated; +import jakarta.validation.constraints.*; + +import java.util.*; + +@Generated( + value = "org.openapitools.codegen.languages.SpringCodegen", + comments = "Generator version: 7.12.0") +public interface CreateTable400Response {} diff --git a/java/lance-namespace-springboot-server/src/main/java/org/lance/namespace/server/springboot/model/CreateTableIndex400Response.java b/java/lance-namespace-springboot-server/src/main/java/org/lance/namespace/server/springboot/model/CreateTableIndex400Response.java new file mode 100644 index 00000000..88ac40b5 --- /dev/null +++ b/java/lance-namespace-springboot-server/src/main/java/org/lance/namespace/server/springboot/model/CreateTableIndex400Response.java @@ -0,0 +1,24 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package org.lance.namespace.server.springboot.model; + +import jakarta.annotation.Generated; +import jakarta.validation.constraints.*; + +import java.util.*; + +@Generated( + value = "org.openapitools.codegen.languages.SpringCodegen", + comments = "Generator version: 7.12.0") +public interface CreateTableIndex400Response {} diff --git a/java/lance-namespace-springboot-server/src/main/java/org/lance/namespace/server/springboot/model/DeleteFromTable400Response.java b/java/lance-namespace-springboot-server/src/main/java/org/lance/namespace/server/springboot/model/DeleteFromTable400Response.java new file mode 100644 index 00000000..85d93fdf --- /dev/null +++ b/java/lance-namespace-springboot-server/src/main/java/org/lance/namespace/server/springboot/model/DeleteFromTable400Response.java @@ -0,0 +1,24 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package org.lance.namespace.server.springboot.model; + +import jakarta.annotation.Generated; +import jakarta.validation.constraints.*; + +import java.util.*; + +@Generated( + value = "org.openapitools.codegen.languages.SpringCodegen", + comments = "Generator version: 7.12.0") +public interface DeleteFromTable400Response {} diff --git a/java/lance-namespace-springboot-server/src/main/java/org/lance/namespace/server/springboot/model/DescribeTableIndexStats404Response.java b/java/lance-namespace-springboot-server/src/main/java/org/lance/namespace/server/springboot/model/DescribeTableIndexStats404Response.java new file mode 100644 index 00000000..c0e346a3 --- /dev/null +++ b/java/lance-namespace-springboot-server/src/main/java/org/lance/namespace/server/springboot/model/DescribeTableIndexStats404Response.java @@ -0,0 +1,24 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package org.lance.namespace.server.springboot.model; + +import jakarta.annotation.Generated; +import jakarta.validation.constraints.*; + +import java.util.*; + +@Generated( + value = "org.openapitools.codegen.languages.SpringCodegen", + comments = "Generator version: 7.12.0") +public interface DescribeTableIndexStats404Response {} diff --git a/java/lance-namespace-springboot-server/src/main/java/org/lance/namespace/server/springboot/model/GetTableTagVersion404Response.java b/java/lance-namespace-springboot-server/src/main/java/org/lance/namespace/server/springboot/model/GetTableTagVersion404Response.java new file mode 100644 index 00000000..c2fdabfd --- /dev/null +++ b/java/lance-namespace-springboot-server/src/main/java/org/lance/namespace/server/springboot/model/GetTableTagVersion404Response.java @@ -0,0 +1,24 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package org.lance.namespace.server.springboot.model; + +import jakarta.annotation.Generated; +import jakarta.validation.constraints.*; + +import java.util.*; + +@Generated( + value = "org.openapitools.codegen.languages.SpringCodegen", + comments = "Generator version: 7.12.0") +public interface GetTableTagVersion404Response {} diff --git a/java/lance-namespace-springboot-server/src/main/java/org/lance/namespace/server/springboot/model/InsertIntoTable400Response.java b/java/lance-namespace-springboot-server/src/main/java/org/lance/namespace/server/springboot/model/InsertIntoTable400Response.java new file mode 100644 index 00000000..d01960f4 --- /dev/null +++ b/java/lance-namespace-springboot-server/src/main/java/org/lance/namespace/server/springboot/model/InsertIntoTable400Response.java @@ -0,0 +1,24 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package org.lance.namespace.server.springboot.model; + +import jakarta.annotation.Generated; +import jakarta.validation.constraints.*; + +import java.util.*; + +@Generated( + value = "org.openapitools.codegen.languages.SpringCodegen", + comments = "Generator version: 7.12.0") +public interface InsertIntoTable400Response {} diff --git a/java/lance-namespace-springboot-server/src/main/java/org/lance/namespace/server/springboot/model/InvalidIdentifierError.java b/java/lance-namespace-springboot-server/src/main/java/org/lance/namespace/server/springboot/model/InvalidIdentifierError.java new file mode 100644 index 00000000..3bfa1d7c --- /dev/null +++ b/java/lance-namespace-springboot-server/src/main/java/org/lance/namespace/server/springboot/model/InvalidIdentifierError.java @@ -0,0 +1,278 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package org.lance.namespace.server.springboot.model; + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonValue; +import io.swagger.v3.oas.annotations.media.Schema; +import jakarta.annotation.Generated; +import jakarta.validation.constraints.*; + +import java.util.*; +import java.util.Objects; + +/** Invalid identifier format */ +@Schema(name = "InvalidIdentifierError", description = "Invalid identifier format") +@Generated( + value = "org.openapitools.codegen.languages.SpringCodegen", + comments = "Generator version: 7.12.0") +public class InvalidIdentifierError implements CreateNamespace400Response { + + private String error; + + /** HTTP status code */ + public enum CodeEnum { + NUMBER_400(400); + + private Integer value; + + CodeEnum(Integer value) { + this.value = value; + } + + @JsonValue + public Integer getValue() { + return value; + } + + @Override + public String toString() { + return String.valueOf(value); + } + + @JsonCreator + public static CodeEnum fromValue(Integer value) { + for (CodeEnum b : CodeEnum.values()) { + if (b.value.equals(value)) { + return b; + } + } + throw new IllegalArgumentException("Unexpected value '" + value + "'"); + } + } + + private CodeEnum code; + + /** Error type identifier */ + public enum TypeEnum { + LANCE_NAMESPACE_603("lance-namespace:603"); + + private String value; + + TypeEnum(String value) { + this.value = value; + } + + @JsonValue + public String getValue() { + return value; + } + + @Override + public String toString() { + return String.valueOf(value); + } + + @JsonCreator + public static TypeEnum fromValue(String value) { + for (TypeEnum b : TypeEnum.values()) { + if (b.value.equals(value)) { + return b; + } + } + throw new IllegalArgumentException("Unexpected value '" + value + "'"); + } + } + + private TypeEnum type; + + private String detail; + + private String instance; + + public InvalidIdentifierError() { + super(); + } + + /** Constructor with only required parameters */ + public InvalidIdentifierError(String error, CodeEnum code, TypeEnum type) { + this.error = error; + this.code = code; + this.type = type; + } + + public InvalidIdentifierError error(String error) { + this.error = error; + return this; + } + + /** + * Brief error message + * + * @return error + */ + @NotNull + @Schema( + name = "error", + example = "Invalid identifier", + description = "Brief error message", + requiredMode = Schema.RequiredMode.REQUIRED) + @JsonProperty("error") + public String getError() { + return error; + } + + public void setError(String error) { + this.error = error; + } + + public InvalidIdentifierError code(CodeEnum code) { + this.code = code; + return this; + } + + /** + * HTTP status code + * + * @return code + */ + @NotNull + @Schema( + name = "code", + description = "HTTP status code", + requiredMode = Schema.RequiredMode.REQUIRED) + @JsonProperty("code") + public CodeEnum getCode() { + return code; + } + + public void setCode(CodeEnum code) { + this.code = code; + } + + public InvalidIdentifierError type(TypeEnum type) { + this.type = type; + return this; + } + + /** + * Error type identifier + * + * @return type + */ + @NotNull + @Schema( + name = "type", + description = "Error type identifier", + requiredMode = Schema.RequiredMode.REQUIRED) + @JsonProperty("type") + public TypeEnum getType() { + return type; + } + + public void setType(TypeEnum type) { + this.type = type; + } + + public InvalidIdentifierError detail(String detail) { + this.detail = detail; + return this; + } + + /** + * Detailed error explanation + * + * @return detail + */ + @Schema( + name = "detail", + description = "Detailed error explanation", + requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("detail") + public String getDetail() { + return detail; + } + + public void setDetail(String detail) { + this.detail = detail; + } + + public InvalidIdentifierError instance(String instance) { + this.instance = instance; + return this; + } + + /** + * Specific occurrence identifier + * + * @return instance + */ + @Schema( + name = "instance", + description = "Specific occurrence identifier", + requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("instance") + public String getInstance() { + return instance; + } + + public void setInstance(String instance) { + this.instance = instance; + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + InvalidIdentifierError invalidIdentifierError = (InvalidIdentifierError) o; + return Objects.equals(this.error, invalidIdentifierError.error) + && Objects.equals(this.code, invalidIdentifierError.code) + && Objects.equals(this.type, invalidIdentifierError.type) + && Objects.equals(this.detail, invalidIdentifierError.detail) + && Objects.equals(this.instance, invalidIdentifierError.instance); + } + + @Override + public int hashCode() { + return Objects.hash(error, code, type, detail, instance); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class InvalidIdentifierError {\n"); + sb.append(" error: ").append(toIndentedString(error)).append("\n"); + sb.append(" code: ").append(toIndentedString(code)).append("\n"); + sb.append(" type: ").append(toIndentedString(type)).append("\n"); + sb.append(" detail: ").append(toIndentedString(detail)).append("\n"); + sb.append(" instance: ").append(toIndentedString(instance)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} diff --git a/java/lance-namespace-springboot-server/src/main/java/org/lance/namespace/server/springboot/model/InvalidRequestError.java b/java/lance-namespace-springboot-server/src/main/java/org/lance/namespace/server/springboot/model/InvalidRequestError.java new file mode 100644 index 00000000..53a2a245 --- /dev/null +++ b/java/lance-namespace-springboot-server/src/main/java/org/lance/namespace/server/springboot/model/InvalidRequestError.java @@ -0,0 +1,287 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package org.lance.namespace.server.springboot.model; + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonValue; +import io.swagger.v3.oas.annotations.media.Schema; +import jakarta.annotation.Generated; +import jakarta.validation.constraints.*; + +import java.util.*; +import java.util.Objects; + +/** Malformed request or validation failure */ +@Schema(name = "InvalidRequestError", description = "Malformed request or validation failure") +@Generated( + value = "org.openapitools.codegen.languages.SpringCodegen", + comments = "Generator version: 7.12.0") +public class InvalidRequestError + implements AlterTableAddColumns400Response, + AlterTableAlterColumns400Response, + CreateNamespace400Response, + CreateTable400Response, + CreateTableIndex400Response, + DeleteFromTable400Response, + InsertIntoTable400Response, + MergeInsertIntoTable400Response, + UpdateTable400Response { + + private String error; + + /** HTTP status code */ + public enum CodeEnum { + NUMBER_400(400); + + private Integer value; + + CodeEnum(Integer value) { + this.value = value; + } + + @JsonValue + public Integer getValue() { + return value; + } + + @Override + public String toString() { + return String.valueOf(value); + } + + @JsonCreator + public static CodeEnum fromValue(Integer value) { + for (CodeEnum b : CodeEnum.values()) { + if (b.value.equals(value)) { + return b; + } + } + throw new IllegalArgumentException("Unexpected value '" + value + "'"); + } + } + + private CodeEnum code; + + /** Error type identifier */ + public enum TypeEnum { + LANCE_NAMESPACE_601("lance-namespace:601"); + + private String value; + + TypeEnum(String value) { + this.value = value; + } + + @JsonValue + public String getValue() { + return value; + } + + @Override + public String toString() { + return String.valueOf(value); + } + + @JsonCreator + public static TypeEnum fromValue(String value) { + for (TypeEnum b : TypeEnum.values()) { + if (b.value.equals(value)) { + return b; + } + } + throw new IllegalArgumentException("Unexpected value '" + value + "'"); + } + } + + private TypeEnum type; + + private String detail; + + private String instance; + + public InvalidRequestError() { + super(); + } + + /** Constructor with only required parameters */ + public InvalidRequestError(String error, CodeEnum code, TypeEnum type) { + this.error = error; + this.code = code; + this.type = type; + } + + public InvalidRequestError error(String error) { + this.error = error; + return this; + } + + /** + * Brief error message + * + * @return error + */ + @NotNull + @Schema( + name = "error", + example = "Invalid request", + description = "Brief error message", + requiredMode = Schema.RequiredMode.REQUIRED) + @JsonProperty("error") + public String getError() { + return error; + } + + public void setError(String error) { + this.error = error; + } + + public InvalidRequestError code(CodeEnum code) { + this.code = code; + return this; + } + + /** + * HTTP status code + * + * @return code + */ + @NotNull + @Schema( + name = "code", + description = "HTTP status code", + requiredMode = Schema.RequiredMode.REQUIRED) + @JsonProperty("code") + public CodeEnum getCode() { + return code; + } + + public void setCode(CodeEnum code) { + this.code = code; + } + + public InvalidRequestError type(TypeEnum type) { + this.type = type; + return this; + } + + /** + * Error type identifier + * + * @return type + */ + @NotNull + @Schema( + name = "type", + description = "Error type identifier", + requiredMode = Schema.RequiredMode.REQUIRED) + @JsonProperty("type") + public TypeEnum getType() { + return type; + } + + public void setType(TypeEnum type) { + this.type = type; + } + + public InvalidRequestError detail(String detail) { + this.detail = detail; + return this; + } + + /** + * Detailed error explanation + * + * @return detail + */ + @Schema( + name = "detail", + description = "Detailed error explanation", + requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("detail") + public String getDetail() { + return detail; + } + + public void setDetail(String detail) { + this.detail = detail; + } + + public InvalidRequestError instance(String instance) { + this.instance = instance; + return this; + } + + /** + * Specific occurrence identifier + * + * @return instance + */ + @Schema( + name = "instance", + description = "Specific occurrence identifier", + requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("instance") + public String getInstance() { + return instance; + } + + public void setInstance(String instance) { + this.instance = instance; + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + InvalidRequestError invalidRequestError = (InvalidRequestError) o; + return Objects.equals(this.error, invalidRequestError.error) + && Objects.equals(this.code, invalidRequestError.code) + && Objects.equals(this.type, invalidRequestError.type) + && Objects.equals(this.detail, invalidRequestError.detail) + && Objects.equals(this.instance, invalidRequestError.instance); + } + + @Override + public int hashCode() { + return Objects.hash(error, code, type, detail, instance); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class InvalidRequestError {\n"); + sb.append(" error: ").append(toIndentedString(error)).append("\n"); + sb.append(" code: ").append(toIndentedString(code)).append("\n"); + sb.append(" type: ").append(toIndentedString(type)).append("\n"); + sb.append(" detail: ").append(toIndentedString(detail)).append("\n"); + sb.append(" instance: ").append(toIndentedString(instance)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} diff --git a/java/lance-namespace-springboot-server/src/main/java/org/lance/namespace/server/springboot/model/InvalidSqlExpressionError.java b/java/lance-namespace-springboot-server/src/main/java/org/lance/namespace/server/springboot/model/InvalidSqlExpressionError.java new file mode 100644 index 00000000..cbd56960 --- /dev/null +++ b/java/lance-namespace-springboot-server/src/main/java/org/lance/namespace/server/springboot/model/InvalidSqlExpressionError.java @@ -0,0 +1,279 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package org.lance.namespace.server.springboot.model; + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonValue; +import io.swagger.v3.oas.annotations.media.Schema; +import jakarta.annotation.Generated; +import jakarta.validation.constraints.*; + +import java.util.*; +import java.util.Objects; + +/** Invalid SQL expression provided */ +@Schema(name = "InvalidSqlExpressionError", description = "Invalid SQL expression provided") +@Generated( + value = "org.openapitools.codegen.languages.SpringCodegen", + comments = "Generator version: 7.12.0") +public class InvalidSqlExpressionError + implements AlterTableAddColumns400Response, DeleteFromTable400Response, UpdateTable400Response { + + private String error; + + /** HTTP status code */ + public enum CodeEnum { + NUMBER_400(400); + + private Integer value; + + CodeEnum(Integer value) { + this.value = value; + } + + @JsonValue + public Integer getValue() { + return value; + } + + @Override + public String toString() { + return String.valueOf(value); + } + + @JsonCreator + public static CodeEnum fromValue(Integer value) { + for (CodeEnum b : CodeEnum.values()) { + if (b.value.equals(value)) { + return b; + } + } + throw new IllegalArgumentException("Unexpected value '" + value + "'"); + } + } + + private CodeEnum code; + + /** Error type identifier */ + public enum TypeEnum { + LANCE_NAMESPACE_602("lance-namespace:602"); + + private String value; + + TypeEnum(String value) { + this.value = value; + } + + @JsonValue + public String getValue() { + return value; + } + + @Override + public String toString() { + return String.valueOf(value); + } + + @JsonCreator + public static TypeEnum fromValue(String value) { + for (TypeEnum b : TypeEnum.values()) { + if (b.value.equals(value)) { + return b; + } + } + throw new IllegalArgumentException("Unexpected value '" + value + "'"); + } + } + + private TypeEnum type; + + private String detail; + + private String instance; + + public InvalidSqlExpressionError() { + super(); + } + + /** Constructor with only required parameters */ + public InvalidSqlExpressionError(String error, CodeEnum code, TypeEnum type) { + this.error = error; + this.code = code; + this.type = type; + } + + public InvalidSqlExpressionError error(String error) { + this.error = error; + return this; + } + + /** + * Brief error message + * + * @return error + */ + @NotNull + @Schema( + name = "error", + example = "Invalid SQL expression", + description = "Brief error message", + requiredMode = Schema.RequiredMode.REQUIRED) + @JsonProperty("error") + public String getError() { + return error; + } + + public void setError(String error) { + this.error = error; + } + + public InvalidSqlExpressionError code(CodeEnum code) { + this.code = code; + return this; + } + + /** + * HTTP status code + * + * @return code + */ + @NotNull + @Schema( + name = "code", + description = "HTTP status code", + requiredMode = Schema.RequiredMode.REQUIRED) + @JsonProperty("code") + public CodeEnum getCode() { + return code; + } + + public void setCode(CodeEnum code) { + this.code = code; + } + + public InvalidSqlExpressionError type(TypeEnum type) { + this.type = type; + return this; + } + + /** + * Error type identifier + * + * @return type + */ + @NotNull + @Schema( + name = "type", + description = "Error type identifier", + requiredMode = Schema.RequiredMode.REQUIRED) + @JsonProperty("type") + public TypeEnum getType() { + return type; + } + + public void setType(TypeEnum type) { + this.type = type; + } + + public InvalidSqlExpressionError detail(String detail) { + this.detail = detail; + return this; + } + + /** + * Detailed error explanation + * + * @return detail + */ + @Schema( + name = "detail", + description = "Detailed error explanation", + requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("detail") + public String getDetail() { + return detail; + } + + public void setDetail(String detail) { + this.detail = detail; + } + + public InvalidSqlExpressionError instance(String instance) { + this.instance = instance; + return this; + } + + /** + * Specific occurrence identifier + * + * @return instance + */ + @Schema( + name = "instance", + description = "Specific occurrence identifier", + requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("instance") + public String getInstance() { + return instance; + } + + public void setInstance(String instance) { + this.instance = instance; + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + InvalidSqlExpressionError invalidSqlExpressionError = (InvalidSqlExpressionError) o; + return Objects.equals(this.error, invalidSqlExpressionError.error) + && Objects.equals(this.code, invalidSqlExpressionError.code) + && Objects.equals(this.type, invalidSqlExpressionError.type) + && Objects.equals(this.detail, invalidSqlExpressionError.detail) + && Objects.equals(this.instance, invalidSqlExpressionError.instance); + } + + @Override + public int hashCode() { + return Objects.hash(error, code, type, detail, instance); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class InvalidSqlExpressionError {\n"); + sb.append(" error: ").append(toIndentedString(error)).append("\n"); + sb.append(" code: ").append(toIndentedString(code)).append("\n"); + sb.append(" type: ").append(toIndentedString(type)).append("\n"); + sb.append(" detail: ").append(toIndentedString(detail)).append("\n"); + sb.append(" instance: ").append(toIndentedString(instance)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} diff --git a/java/lance-namespace-springboot-server/src/main/java/org/lance/namespace/server/springboot/model/InvalidTableIndexConfigurationError.java b/java/lance-namespace-springboot-server/src/main/java/org/lance/namespace/server/springboot/model/InvalidTableIndexConfigurationError.java new file mode 100644 index 00000000..e1f6f24a --- /dev/null +++ b/java/lance-namespace-springboot-server/src/main/java/org/lance/namespace/server/springboot/model/InvalidTableIndexConfigurationError.java @@ -0,0 +1,281 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package org.lance.namespace.server.springboot.model; + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonValue; +import io.swagger.v3.oas.annotations.media.Schema; +import jakarta.annotation.Generated; +import jakarta.validation.constraints.*; + +import java.util.*; +import java.util.Objects; + +/** The provided index configuration is invalid */ +@Schema( + name = "InvalidTableIndexConfigurationError", + description = "The provided index configuration is invalid") +@Generated( + value = "org.openapitools.codegen.languages.SpringCodegen", + comments = "Generator version: 7.12.0") +public class InvalidTableIndexConfigurationError implements CreateTableIndex400Response { + + private String error; + + /** HTTP status code */ + public enum CodeEnum { + NUMBER_400(400); + + private Integer value; + + CodeEnum(Integer value) { + this.value = value; + } + + @JsonValue + public Integer getValue() { + return value; + } + + @Override + public String toString() { + return String.valueOf(value); + } + + @JsonCreator + public static CodeEnum fromValue(Integer value) { + for (CodeEnum b : CodeEnum.values()) { + if (b.value.equals(value)) { + return b; + } + } + throw new IllegalArgumentException("Unexpected value '" + value + "'"); + } + } + + private CodeEnum code; + + /** Error type identifier */ + public enum TypeEnum { + LANCE_NAMESPACE_303("lance-namespace:303"); + + private String value; + + TypeEnum(String value) { + this.value = value; + } + + @JsonValue + public String getValue() { + return value; + } + + @Override + public String toString() { + return String.valueOf(value); + } + + @JsonCreator + public static TypeEnum fromValue(String value) { + for (TypeEnum b : TypeEnum.values()) { + if (b.value.equals(value)) { + return b; + } + } + throw new IllegalArgumentException("Unexpected value '" + value + "'"); + } + } + + private TypeEnum type; + + private String detail; + + private String instance; + + public InvalidTableIndexConfigurationError() { + super(); + } + + /** Constructor with only required parameters */ + public InvalidTableIndexConfigurationError(String error, CodeEnum code, TypeEnum type) { + this.error = error; + this.code = code; + this.type = type; + } + + public InvalidTableIndexConfigurationError error(String error) { + this.error = error; + return this; + } + + /** + * Brief error message + * + * @return error + */ + @NotNull + @Schema( + name = "error", + example = "Invalid index configuration", + description = "Brief error message", + requiredMode = Schema.RequiredMode.REQUIRED) + @JsonProperty("error") + public String getError() { + return error; + } + + public void setError(String error) { + this.error = error; + } + + public InvalidTableIndexConfigurationError code(CodeEnum code) { + this.code = code; + return this; + } + + /** + * HTTP status code + * + * @return code + */ + @NotNull + @Schema( + name = "code", + description = "HTTP status code", + requiredMode = Schema.RequiredMode.REQUIRED) + @JsonProperty("code") + public CodeEnum getCode() { + return code; + } + + public void setCode(CodeEnum code) { + this.code = code; + } + + public InvalidTableIndexConfigurationError type(TypeEnum type) { + this.type = type; + return this; + } + + /** + * Error type identifier + * + * @return type + */ + @NotNull + @Schema( + name = "type", + description = "Error type identifier", + requiredMode = Schema.RequiredMode.REQUIRED) + @JsonProperty("type") + public TypeEnum getType() { + return type; + } + + public void setType(TypeEnum type) { + this.type = type; + } + + public InvalidTableIndexConfigurationError detail(String detail) { + this.detail = detail; + return this; + } + + /** + * Detailed error explanation + * + * @return detail + */ + @Schema( + name = "detail", + description = "Detailed error explanation", + requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("detail") + public String getDetail() { + return detail; + } + + public void setDetail(String detail) { + this.detail = detail; + } + + public InvalidTableIndexConfigurationError instance(String instance) { + this.instance = instance; + return this; + } + + /** + * Specific occurrence identifier + * + * @return instance + */ + @Schema( + name = "instance", + description = "Specific occurrence identifier", + requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("instance") + public String getInstance() { + return instance; + } + + public void setInstance(String instance) { + this.instance = instance; + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + InvalidTableIndexConfigurationError invalidTableIndexConfigurationError = + (InvalidTableIndexConfigurationError) o; + return Objects.equals(this.error, invalidTableIndexConfigurationError.error) + && Objects.equals(this.code, invalidTableIndexConfigurationError.code) + && Objects.equals(this.type, invalidTableIndexConfigurationError.type) + && Objects.equals(this.detail, invalidTableIndexConfigurationError.detail) + && Objects.equals(this.instance, invalidTableIndexConfigurationError.instance); + } + + @Override + public int hashCode() { + return Objects.hash(error, code, type, detail, instance); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class InvalidTableIndexConfigurationError {\n"); + sb.append(" error: ").append(toIndentedString(error)).append("\n"); + sb.append(" code: ").append(toIndentedString(code)).append("\n"); + sb.append(" type: ").append(toIndentedString(type)).append("\n"); + sb.append(" detail: ").append(toIndentedString(detail)).append("\n"); + sb.append(" instance: ").append(toIndentedString(instance)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} diff --git a/java/lance-namespace-springboot-server/src/main/java/org/lance/namespace/server/springboot/model/InvalidTableSchemaError.java b/java/lance-namespace-springboot-server/src/main/java/org/lance/namespace/server/springboot/model/InvalidTableSchemaError.java new file mode 100644 index 00000000..6905b30d --- /dev/null +++ b/java/lance-namespace-springboot-server/src/main/java/org/lance/namespace/server/springboot/model/InvalidTableSchemaError.java @@ -0,0 +1,279 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package org.lance.namespace.server.springboot.model; + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonValue; +import io.swagger.v3.oas.annotations.media.Schema; +import jakarta.annotation.Generated; +import jakarta.validation.constraints.*; + +import java.util.*; +import java.util.Objects; + +/** The provided schema is invalid */ +@Schema(name = "InvalidTableSchemaError", description = "The provided schema is invalid") +@Generated( + value = "org.openapitools.codegen.languages.SpringCodegen", + comments = "Generator version: 7.12.0") +public class InvalidTableSchemaError + implements AlterTableAddColumns400Response, CreateTable400Response { + + private String error; + + /** HTTP status code */ + public enum CodeEnum { + NUMBER_400(400); + + private Integer value; + + CodeEnum(Integer value) { + this.value = value; + } + + @JsonValue + public Integer getValue() { + return value; + } + + @Override + public String toString() { + return String.valueOf(value); + } + + @JsonCreator + public static CodeEnum fromValue(Integer value) { + for (CodeEnum b : CodeEnum.values()) { + if (b.value.equals(value)) { + return b; + } + } + throw new IllegalArgumentException("Unexpected value '" + value + "'"); + } + } + + private CodeEnum code; + + /** Error type identifier */ + public enum TypeEnum { + LANCE_NAMESPACE_205("lance-namespace:205"); + + private String value; + + TypeEnum(String value) { + this.value = value; + } + + @JsonValue + public String getValue() { + return value; + } + + @Override + public String toString() { + return String.valueOf(value); + } + + @JsonCreator + public static TypeEnum fromValue(String value) { + for (TypeEnum b : TypeEnum.values()) { + if (b.value.equals(value)) { + return b; + } + } + throw new IllegalArgumentException("Unexpected value '" + value + "'"); + } + } + + private TypeEnum type; + + private String detail; + + private String instance; + + public InvalidTableSchemaError() { + super(); + } + + /** Constructor with only required parameters */ + public InvalidTableSchemaError(String error, CodeEnum code, TypeEnum type) { + this.error = error; + this.code = code; + this.type = type; + } + + public InvalidTableSchemaError error(String error) { + this.error = error; + return this; + } + + /** + * Brief error message + * + * @return error + */ + @NotNull + @Schema( + name = "error", + example = "Invalid schema", + description = "Brief error message", + requiredMode = Schema.RequiredMode.REQUIRED) + @JsonProperty("error") + public String getError() { + return error; + } + + public void setError(String error) { + this.error = error; + } + + public InvalidTableSchemaError code(CodeEnum code) { + this.code = code; + return this; + } + + /** + * HTTP status code + * + * @return code + */ + @NotNull + @Schema( + name = "code", + description = "HTTP status code", + requiredMode = Schema.RequiredMode.REQUIRED) + @JsonProperty("code") + public CodeEnum getCode() { + return code; + } + + public void setCode(CodeEnum code) { + this.code = code; + } + + public InvalidTableSchemaError type(TypeEnum type) { + this.type = type; + return this; + } + + /** + * Error type identifier + * + * @return type + */ + @NotNull + @Schema( + name = "type", + description = "Error type identifier", + requiredMode = Schema.RequiredMode.REQUIRED) + @JsonProperty("type") + public TypeEnum getType() { + return type; + } + + public void setType(TypeEnum type) { + this.type = type; + } + + public InvalidTableSchemaError detail(String detail) { + this.detail = detail; + return this; + } + + /** + * Detailed error explanation + * + * @return detail + */ + @Schema( + name = "detail", + description = "Detailed error explanation", + requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("detail") + public String getDetail() { + return detail; + } + + public void setDetail(String detail) { + this.detail = detail; + } + + public InvalidTableSchemaError instance(String instance) { + this.instance = instance; + return this; + } + + /** + * Specific occurrence identifier + * + * @return instance + */ + @Schema( + name = "instance", + description = "Specific occurrence identifier", + requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("instance") + public String getInstance() { + return instance; + } + + public void setInstance(String instance) { + this.instance = instance; + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + InvalidTableSchemaError invalidTableSchemaError = (InvalidTableSchemaError) o; + return Objects.equals(this.error, invalidTableSchemaError.error) + && Objects.equals(this.code, invalidTableSchemaError.code) + && Objects.equals(this.type, invalidTableSchemaError.type) + && Objects.equals(this.detail, invalidTableSchemaError.detail) + && Objects.equals(this.instance, invalidTableSchemaError.instance); + } + + @Override + public int hashCode() { + return Objects.hash(error, code, type, detail, instance); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class InvalidTableSchemaError {\n"); + sb.append(" error: ").append(toIndentedString(error)).append("\n"); + sb.append(" code: ").append(toIndentedString(code)).append("\n"); + sb.append(" type: ").append(toIndentedString(type)).append("\n"); + sb.append(" detail: ").append(toIndentedString(detail)).append("\n"); + sb.append(" instance: ").append(toIndentedString(instance)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} diff --git a/java/lance-namespace-springboot-server/src/main/java/org/lance/namespace/server/springboot/model/MergeInsertIntoTable400Response.java b/java/lance-namespace-springboot-server/src/main/java/org/lance/namespace/server/springboot/model/MergeInsertIntoTable400Response.java new file mode 100644 index 00000000..301acb02 --- /dev/null +++ b/java/lance-namespace-springboot-server/src/main/java/org/lance/namespace/server/springboot/model/MergeInsertIntoTable400Response.java @@ -0,0 +1,24 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package org.lance.namespace.server.springboot.model; + +import jakarta.annotation.Generated; +import jakarta.validation.constraints.*; + +import java.util.*; + +@Generated( + value = "org.openapitools.codegen.languages.SpringCodegen", + comments = "Generator version: 7.12.0") +public interface MergeInsertIntoTable400Response {} diff --git a/java/lance-namespace-springboot-server/src/main/java/org/lance/namespace/server/springboot/model/NamespaceAlreadyExistsError.java b/java/lance-namespace-springboot-server/src/main/java/org/lance/namespace/server/springboot/model/NamespaceAlreadyExistsError.java new file mode 100644 index 00000000..9c6137c9 --- /dev/null +++ b/java/lance-namespace-springboot-server/src/main/java/org/lance/namespace/server/springboot/model/NamespaceAlreadyExistsError.java @@ -0,0 +1,280 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package org.lance.namespace.server.springboot.model; + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonValue; +import io.swagger.v3.oas.annotations.media.Schema; +import jakarta.annotation.Generated; +import jakarta.validation.constraints.*; + +import java.util.*; +import java.util.Objects; + +/** A namespace with the same name already exists */ +@Schema( + name = "NamespaceAlreadyExistsError", + description = "A namespace with the same name already exists") +@Generated( + value = "org.openapitools.codegen.languages.SpringCodegen", + comments = "Generator version: 7.12.0") +public class NamespaceAlreadyExistsError { + + private String error; + + /** HTTP status code */ + public enum CodeEnum { + NUMBER_409(409); + + private Integer value; + + CodeEnum(Integer value) { + this.value = value; + } + + @JsonValue + public Integer getValue() { + return value; + } + + @Override + public String toString() { + return String.valueOf(value); + } + + @JsonCreator + public static CodeEnum fromValue(Integer value) { + for (CodeEnum b : CodeEnum.values()) { + if (b.value.equals(value)) { + return b; + } + } + throw new IllegalArgumentException("Unexpected value '" + value + "'"); + } + } + + private CodeEnum code; + + /** Error type identifier */ + public enum TypeEnum { + LANCE_NAMESPACE_102("lance-namespace:102"); + + private String value; + + TypeEnum(String value) { + this.value = value; + } + + @JsonValue + public String getValue() { + return value; + } + + @Override + public String toString() { + return String.valueOf(value); + } + + @JsonCreator + public static TypeEnum fromValue(String value) { + for (TypeEnum b : TypeEnum.values()) { + if (b.value.equals(value)) { + return b; + } + } + throw new IllegalArgumentException("Unexpected value '" + value + "'"); + } + } + + private TypeEnum type; + + private String detail; + + private String instance; + + public NamespaceAlreadyExistsError() { + super(); + } + + /** Constructor with only required parameters */ + public NamespaceAlreadyExistsError(String error, CodeEnum code, TypeEnum type) { + this.error = error; + this.code = code; + this.type = type; + } + + public NamespaceAlreadyExistsError error(String error) { + this.error = error; + return this; + } + + /** + * Brief error message + * + * @return error + */ + @NotNull + @Schema( + name = "error", + example = "Namespace already exists", + description = "Brief error message", + requiredMode = Schema.RequiredMode.REQUIRED) + @JsonProperty("error") + public String getError() { + return error; + } + + public void setError(String error) { + this.error = error; + } + + public NamespaceAlreadyExistsError code(CodeEnum code) { + this.code = code; + return this; + } + + /** + * HTTP status code + * + * @return code + */ + @NotNull + @Schema( + name = "code", + description = "HTTP status code", + requiredMode = Schema.RequiredMode.REQUIRED) + @JsonProperty("code") + public CodeEnum getCode() { + return code; + } + + public void setCode(CodeEnum code) { + this.code = code; + } + + public NamespaceAlreadyExistsError type(TypeEnum type) { + this.type = type; + return this; + } + + /** + * Error type identifier + * + * @return type + */ + @NotNull + @Schema( + name = "type", + description = "Error type identifier", + requiredMode = Schema.RequiredMode.REQUIRED) + @JsonProperty("type") + public TypeEnum getType() { + return type; + } + + public void setType(TypeEnum type) { + this.type = type; + } + + public NamespaceAlreadyExistsError detail(String detail) { + this.detail = detail; + return this; + } + + /** + * Detailed error explanation + * + * @return detail + */ + @Schema( + name = "detail", + description = "Detailed error explanation", + requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("detail") + public String getDetail() { + return detail; + } + + public void setDetail(String detail) { + this.detail = detail; + } + + public NamespaceAlreadyExistsError instance(String instance) { + this.instance = instance; + return this; + } + + /** + * Specific occurrence identifier + * + * @return instance + */ + @Schema( + name = "instance", + description = "Specific occurrence identifier", + requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("instance") + public String getInstance() { + return instance; + } + + public void setInstance(String instance) { + this.instance = instance; + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + NamespaceAlreadyExistsError namespaceAlreadyExistsError = (NamespaceAlreadyExistsError) o; + return Objects.equals(this.error, namespaceAlreadyExistsError.error) + && Objects.equals(this.code, namespaceAlreadyExistsError.code) + && Objects.equals(this.type, namespaceAlreadyExistsError.type) + && Objects.equals(this.detail, namespaceAlreadyExistsError.detail) + && Objects.equals(this.instance, namespaceAlreadyExistsError.instance); + } + + @Override + public int hashCode() { + return Objects.hash(error, code, type, detail, instance); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class NamespaceAlreadyExistsError {\n"); + sb.append(" error: ").append(toIndentedString(error)).append("\n"); + sb.append(" code: ").append(toIndentedString(code)).append("\n"); + sb.append(" type: ").append(toIndentedString(type)).append("\n"); + sb.append(" detail: ").append(toIndentedString(detail)).append("\n"); + sb.append(" instance: ").append(toIndentedString(instance)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} diff --git a/java/lance-namespace-springboot-server/src/main/java/org/lance/namespace/server/springboot/model/NamespaceNotEmptyError.java b/java/lance-namespace-springboot-server/src/main/java/org/lance/namespace/server/springboot/model/NamespaceNotEmptyError.java new file mode 100644 index 00000000..40786cd8 --- /dev/null +++ b/java/lance-namespace-springboot-server/src/main/java/org/lance/namespace/server/springboot/model/NamespaceNotEmptyError.java @@ -0,0 +1,280 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package org.lance.namespace.server.springboot.model; + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonValue; +import io.swagger.v3.oas.annotations.media.Schema; +import jakarta.annotation.Generated; +import jakarta.validation.constraints.*; + +import java.util.*; +import java.util.Objects; + +/** Cannot drop namespace because it contains tables or child namespaces */ +@Schema( + name = "NamespaceNotEmptyError", + description = "Cannot drop namespace because it contains tables or child namespaces") +@Generated( + value = "org.openapitools.codegen.languages.SpringCodegen", + comments = "Generator version: 7.12.0") +public class NamespaceNotEmptyError { + + private String error; + + /** HTTP status code */ + public enum CodeEnum { + NUMBER_409(409); + + private Integer value; + + CodeEnum(Integer value) { + this.value = value; + } + + @JsonValue + public Integer getValue() { + return value; + } + + @Override + public String toString() { + return String.valueOf(value); + } + + @JsonCreator + public static CodeEnum fromValue(Integer value) { + for (CodeEnum b : CodeEnum.values()) { + if (b.value.equals(value)) { + return b; + } + } + throw new IllegalArgumentException("Unexpected value '" + value + "'"); + } + } + + private CodeEnum code; + + /** Error type identifier */ + public enum TypeEnum { + LANCE_NAMESPACE_104("lance-namespace:104"); + + private String value; + + TypeEnum(String value) { + this.value = value; + } + + @JsonValue + public String getValue() { + return value; + } + + @Override + public String toString() { + return String.valueOf(value); + } + + @JsonCreator + public static TypeEnum fromValue(String value) { + for (TypeEnum b : TypeEnum.values()) { + if (b.value.equals(value)) { + return b; + } + } + throw new IllegalArgumentException("Unexpected value '" + value + "'"); + } + } + + private TypeEnum type; + + private String detail; + + private String instance; + + public NamespaceNotEmptyError() { + super(); + } + + /** Constructor with only required parameters */ + public NamespaceNotEmptyError(String error, CodeEnum code, TypeEnum type) { + this.error = error; + this.code = code; + this.type = type; + } + + public NamespaceNotEmptyError error(String error) { + this.error = error; + return this; + } + + /** + * Brief error message + * + * @return error + */ + @NotNull + @Schema( + name = "error", + example = "Namespace not empty", + description = "Brief error message", + requiredMode = Schema.RequiredMode.REQUIRED) + @JsonProperty("error") + public String getError() { + return error; + } + + public void setError(String error) { + this.error = error; + } + + public NamespaceNotEmptyError code(CodeEnum code) { + this.code = code; + return this; + } + + /** + * HTTP status code + * + * @return code + */ + @NotNull + @Schema( + name = "code", + description = "HTTP status code", + requiredMode = Schema.RequiredMode.REQUIRED) + @JsonProperty("code") + public CodeEnum getCode() { + return code; + } + + public void setCode(CodeEnum code) { + this.code = code; + } + + public NamespaceNotEmptyError type(TypeEnum type) { + this.type = type; + return this; + } + + /** + * Error type identifier + * + * @return type + */ + @NotNull + @Schema( + name = "type", + description = "Error type identifier", + requiredMode = Schema.RequiredMode.REQUIRED) + @JsonProperty("type") + public TypeEnum getType() { + return type; + } + + public void setType(TypeEnum type) { + this.type = type; + } + + public NamespaceNotEmptyError detail(String detail) { + this.detail = detail; + return this; + } + + /** + * Detailed error explanation + * + * @return detail + */ + @Schema( + name = "detail", + description = "Detailed error explanation", + requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("detail") + public String getDetail() { + return detail; + } + + public void setDetail(String detail) { + this.detail = detail; + } + + public NamespaceNotEmptyError instance(String instance) { + this.instance = instance; + return this; + } + + /** + * Specific occurrence identifier + * + * @return instance + */ + @Schema( + name = "instance", + description = "Specific occurrence identifier", + requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("instance") + public String getInstance() { + return instance; + } + + public void setInstance(String instance) { + this.instance = instance; + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + NamespaceNotEmptyError namespaceNotEmptyError = (NamespaceNotEmptyError) o; + return Objects.equals(this.error, namespaceNotEmptyError.error) + && Objects.equals(this.code, namespaceNotEmptyError.code) + && Objects.equals(this.type, namespaceNotEmptyError.type) + && Objects.equals(this.detail, namespaceNotEmptyError.detail) + && Objects.equals(this.instance, namespaceNotEmptyError.instance); + } + + @Override + public int hashCode() { + return Objects.hash(error, code, type, detail, instance); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class NamespaceNotEmptyError {\n"); + sb.append(" error: ").append(toIndentedString(error)).append("\n"); + sb.append(" code: ").append(toIndentedString(code)).append("\n"); + sb.append(" type: ").append(toIndentedString(type)).append("\n"); + sb.append(" detail: ").append(toIndentedString(detail)).append("\n"); + sb.append(" instance: ").append(toIndentedString(instance)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} diff --git a/java/lance-namespace-springboot-server/src/main/java/org/lance/namespace/server/springboot/model/NamespaceNotFoundError.java b/java/lance-namespace-springboot-server/src/main/java/org/lance/namespace/server/springboot/model/NamespaceNotFoundError.java new file mode 100644 index 00000000..008021ed --- /dev/null +++ b/java/lance-namespace-springboot-server/src/main/java/org/lance/namespace/server/springboot/model/NamespaceNotFoundError.java @@ -0,0 +1,278 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package org.lance.namespace.server.springboot.model; + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonValue; +import io.swagger.v3.oas.annotations.media.Schema; +import jakarta.annotation.Generated; +import jakarta.validation.constraints.*; + +import java.util.*; +import java.util.Objects; + +/** The requested namespace does not exist */ +@Schema(name = "NamespaceNotFoundError", description = "The requested namespace does not exist") +@Generated( + value = "org.openapitools.codegen.languages.SpringCodegen", + comments = "Generator version: 7.12.0") +public class NamespaceNotFoundError { + + private String error; + + /** HTTP status code */ + public enum CodeEnum { + NUMBER_404(404); + + private Integer value; + + CodeEnum(Integer value) { + this.value = value; + } + + @JsonValue + public Integer getValue() { + return value; + } + + @Override + public String toString() { + return String.valueOf(value); + } + + @JsonCreator + public static CodeEnum fromValue(Integer value) { + for (CodeEnum b : CodeEnum.values()) { + if (b.value.equals(value)) { + return b; + } + } + throw new IllegalArgumentException("Unexpected value '" + value + "'"); + } + } + + private CodeEnum code; + + /** Error type identifier */ + public enum TypeEnum { + LANCE_NAMESPACE_101("lance-namespace:101"); + + private String value; + + TypeEnum(String value) { + this.value = value; + } + + @JsonValue + public String getValue() { + return value; + } + + @Override + public String toString() { + return String.valueOf(value); + } + + @JsonCreator + public static TypeEnum fromValue(String value) { + for (TypeEnum b : TypeEnum.values()) { + if (b.value.equals(value)) { + return b; + } + } + throw new IllegalArgumentException("Unexpected value '" + value + "'"); + } + } + + private TypeEnum type; + + private String detail; + + private String instance; + + public NamespaceNotFoundError() { + super(); + } + + /** Constructor with only required parameters */ + public NamespaceNotFoundError(String error, CodeEnum code, TypeEnum type) { + this.error = error; + this.code = code; + this.type = type; + } + + public NamespaceNotFoundError error(String error) { + this.error = error; + return this; + } + + /** + * Brief error message + * + * @return error + */ + @NotNull + @Schema( + name = "error", + example = "Namespace not found", + description = "Brief error message", + requiredMode = Schema.RequiredMode.REQUIRED) + @JsonProperty("error") + public String getError() { + return error; + } + + public void setError(String error) { + this.error = error; + } + + public NamespaceNotFoundError code(CodeEnum code) { + this.code = code; + return this; + } + + /** + * HTTP status code + * + * @return code + */ + @NotNull + @Schema( + name = "code", + description = "HTTP status code", + requiredMode = Schema.RequiredMode.REQUIRED) + @JsonProperty("code") + public CodeEnum getCode() { + return code; + } + + public void setCode(CodeEnum code) { + this.code = code; + } + + public NamespaceNotFoundError type(TypeEnum type) { + this.type = type; + return this; + } + + /** + * Error type identifier + * + * @return type + */ + @NotNull + @Schema( + name = "type", + description = "Error type identifier", + requiredMode = Schema.RequiredMode.REQUIRED) + @JsonProperty("type") + public TypeEnum getType() { + return type; + } + + public void setType(TypeEnum type) { + this.type = type; + } + + public NamespaceNotFoundError detail(String detail) { + this.detail = detail; + return this; + } + + /** + * Detailed error explanation + * + * @return detail + */ + @Schema( + name = "detail", + description = "Detailed error explanation", + requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("detail") + public String getDetail() { + return detail; + } + + public void setDetail(String detail) { + this.detail = detail; + } + + public NamespaceNotFoundError instance(String instance) { + this.instance = instance; + return this; + } + + /** + * Specific occurrence identifier + * + * @return instance + */ + @Schema( + name = "instance", + description = "Specific occurrence identifier", + requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("instance") + public String getInstance() { + return instance; + } + + public void setInstance(String instance) { + this.instance = instance; + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + NamespaceNotFoundError namespaceNotFoundError = (NamespaceNotFoundError) o; + return Objects.equals(this.error, namespaceNotFoundError.error) + && Objects.equals(this.code, namespaceNotFoundError.code) + && Objects.equals(this.type, namespaceNotFoundError.type) + && Objects.equals(this.detail, namespaceNotFoundError.detail) + && Objects.equals(this.instance, namespaceNotFoundError.instance); + } + + @Override + public int hashCode() { + return Objects.hash(error, code, type, detail, instance); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class NamespaceNotFoundError {\n"); + sb.append(" error: ").append(toIndentedString(error)).append("\n"); + sb.append(" code: ").append(toIndentedString(code)).append("\n"); + sb.append(" type: ").append(toIndentedString(type)).append("\n"); + sb.append(" detail: ").append(toIndentedString(detail)).append("\n"); + sb.append(" instance: ").append(toIndentedString(instance)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} diff --git a/java/lance-namespace-springboot-server/src/main/java/org/lance/namespace/server/springboot/model/ParentNamespaceNotFoundError.java b/java/lance-namespace-springboot-server/src/main/java/org/lance/namespace/server/springboot/model/ParentNamespaceNotFoundError.java new file mode 100644 index 00000000..19c5b7c7 --- /dev/null +++ b/java/lance-namespace-springboot-server/src/main/java/org/lance/namespace/server/springboot/model/ParentNamespaceNotFoundError.java @@ -0,0 +1,278 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package org.lance.namespace.server.springboot.model; + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonValue; +import io.swagger.v3.oas.annotations.media.Schema; +import jakarta.annotation.Generated; +import jakarta.validation.constraints.*; + +import java.util.*; +import java.util.Objects; + +/** The parent namespace does not exist */ +@Schema(name = "ParentNamespaceNotFoundError", description = "The parent namespace does not exist") +@Generated( + value = "org.openapitools.codegen.languages.SpringCodegen", + comments = "Generator version: 7.12.0") +public class ParentNamespaceNotFoundError { + + private String error; + + /** HTTP status code */ + public enum CodeEnum { + NUMBER_404(404); + + private Integer value; + + CodeEnum(Integer value) { + this.value = value; + } + + @JsonValue + public Integer getValue() { + return value; + } + + @Override + public String toString() { + return String.valueOf(value); + } + + @JsonCreator + public static CodeEnum fromValue(Integer value) { + for (CodeEnum b : CodeEnum.values()) { + if (b.value.equals(value)) { + return b; + } + } + throw new IllegalArgumentException("Unexpected value '" + value + "'"); + } + } + + private CodeEnum code; + + /** Error type identifier */ + public enum TypeEnum { + LANCE_NAMESPACE_103("lance-namespace:103"); + + private String value; + + TypeEnum(String value) { + this.value = value; + } + + @JsonValue + public String getValue() { + return value; + } + + @Override + public String toString() { + return String.valueOf(value); + } + + @JsonCreator + public static TypeEnum fromValue(String value) { + for (TypeEnum b : TypeEnum.values()) { + if (b.value.equals(value)) { + return b; + } + } + throw new IllegalArgumentException("Unexpected value '" + value + "'"); + } + } + + private TypeEnum type; + + private String detail; + + private String instance; + + public ParentNamespaceNotFoundError() { + super(); + } + + /** Constructor with only required parameters */ + public ParentNamespaceNotFoundError(String error, CodeEnum code, TypeEnum type) { + this.error = error; + this.code = code; + this.type = type; + } + + public ParentNamespaceNotFoundError error(String error) { + this.error = error; + return this; + } + + /** + * Brief error message + * + * @return error + */ + @NotNull + @Schema( + name = "error", + example = "Parent namespace not found", + description = "Brief error message", + requiredMode = Schema.RequiredMode.REQUIRED) + @JsonProperty("error") + public String getError() { + return error; + } + + public void setError(String error) { + this.error = error; + } + + public ParentNamespaceNotFoundError code(CodeEnum code) { + this.code = code; + return this; + } + + /** + * HTTP status code + * + * @return code + */ + @NotNull + @Schema( + name = "code", + description = "HTTP status code", + requiredMode = Schema.RequiredMode.REQUIRED) + @JsonProperty("code") + public CodeEnum getCode() { + return code; + } + + public void setCode(CodeEnum code) { + this.code = code; + } + + public ParentNamespaceNotFoundError type(TypeEnum type) { + this.type = type; + return this; + } + + /** + * Error type identifier + * + * @return type + */ + @NotNull + @Schema( + name = "type", + description = "Error type identifier", + requiredMode = Schema.RequiredMode.REQUIRED) + @JsonProperty("type") + public TypeEnum getType() { + return type; + } + + public void setType(TypeEnum type) { + this.type = type; + } + + public ParentNamespaceNotFoundError detail(String detail) { + this.detail = detail; + return this; + } + + /** + * Detailed error explanation + * + * @return detail + */ + @Schema( + name = "detail", + description = "Detailed error explanation", + requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("detail") + public String getDetail() { + return detail; + } + + public void setDetail(String detail) { + this.detail = detail; + } + + public ParentNamespaceNotFoundError instance(String instance) { + this.instance = instance; + return this; + } + + /** + * Specific occurrence identifier + * + * @return instance + */ + @Schema( + name = "instance", + description = "Specific occurrence identifier", + requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("instance") + public String getInstance() { + return instance; + } + + public void setInstance(String instance) { + this.instance = instance; + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + ParentNamespaceNotFoundError parentNamespaceNotFoundError = (ParentNamespaceNotFoundError) o; + return Objects.equals(this.error, parentNamespaceNotFoundError.error) + && Objects.equals(this.code, parentNamespaceNotFoundError.code) + && Objects.equals(this.type, parentNamespaceNotFoundError.type) + && Objects.equals(this.detail, parentNamespaceNotFoundError.detail) + && Objects.equals(this.instance, parentNamespaceNotFoundError.instance); + } + + @Override + public int hashCode() { + return Objects.hash(error, code, type, detail, instance); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ParentNamespaceNotFoundError {\n"); + sb.append(" error: ").append(toIndentedString(error)).append("\n"); + sb.append(" code: ").append(toIndentedString(code)).append("\n"); + sb.append(" type: ").append(toIndentedString(type)).append("\n"); + sb.append(" detail: ").append(toIndentedString(detail)).append("\n"); + sb.append(" instance: ").append(toIndentedString(instance)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} diff --git a/java/lance-namespace-springboot-server/src/main/java/org/lance/namespace/server/springboot/model/RestoreTable404Response.java b/java/lance-namespace-springboot-server/src/main/java/org/lance/namespace/server/springboot/model/RestoreTable404Response.java new file mode 100644 index 00000000..66a6fc52 --- /dev/null +++ b/java/lance-namespace-springboot-server/src/main/java/org/lance/namespace/server/springboot/model/RestoreTable404Response.java @@ -0,0 +1,24 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package org.lance.namespace.server.springboot.model; + +import jakarta.annotation.Generated; +import jakarta.validation.constraints.*; + +import java.util.*; + +@Generated( + value = "org.openapitools.codegen.languages.SpringCodegen", + comments = "Generator version: 7.12.0") +public interface RestoreTable404Response {} diff --git a/java/lance-namespace-springboot-server/src/main/java/org/lance/namespace/server/springboot/model/TableAlreadyExistsError.java b/java/lance-namespace-springboot-server/src/main/java/org/lance/namespace/server/springboot/model/TableAlreadyExistsError.java new file mode 100644 index 00000000..d26ed649 --- /dev/null +++ b/java/lance-namespace-springboot-server/src/main/java/org/lance/namespace/server/springboot/model/TableAlreadyExistsError.java @@ -0,0 +1,278 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package org.lance.namespace.server.springboot.model; + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonValue; +import io.swagger.v3.oas.annotations.media.Schema; +import jakarta.annotation.Generated; +import jakarta.validation.constraints.*; + +import java.util.*; +import java.util.Objects; + +/** A table with the same name already exists */ +@Schema(name = "TableAlreadyExistsError", description = "A table with the same name already exists") +@Generated( + value = "org.openapitools.codegen.languages.SpringCodegen", + comments = "Generator version: 7.12.0") +public class TableAlreadyExistsError { + + private String error; + + /** HTTP status code */ + public enum CodeEnum { + NUMBER_409(409); + + private Integer value; + + CodeEnum(Integer value) { + this.value = value; + } + + @JsonValue + public Integer getValue() { + return value; + } + + @Override + public String toString() { + return String.valueOf(value); + } + + @JsonCreator + public static CodeEnum fromValue(Integer value) { + for (CodeEnum b : CodeEnum.values()) { + if (b.value.equals(value)) { + return b; + } + } + throw new IllegalArgumentException("Unexpected value '" + value + "'"); + } + } + + private CodeEnum code; + + /** Error type identifier */ + public enum TypeEnum { + LANCE_NAMESPACE_202("lance-namespace:202"); + + private String value; + + TypeEnum(String value) { + this.value = value; + } + + @JsonValue + public String getValue() { + return value; + } + + @Override + public String toString() { + return String.valueOf(value); + } + + @JsonCreator + public static TypeEnum fromValue(String value) { + for (TypeEnum b : TypeEnum.values()) { + if (b.value.equals(value)) { + return b; + } + } + throw new IllegalArgumentException("Unexpected value '" + value + "'"); + } + } + + private TypeEnum type; + + private String detail; + + private String instance; + + public TableAlreadyExistsError() { + super(); + } + + /** Constructor with only required parameters */ + public TableAlreadyExistsError(String error, CodeEnum code, TypeEnum type) { + this.error = error; + this.code = code; + this.type = type; + } + + public TableAlreadyExistsError error(String error) { + this.error = error; + return this; + } + + /** + * Brief error message + * + * @return error + */ + @NotNull + @Schema( + name = "error", + example = "Table already exists", + description = "Brief error message", + requiredMode = Schema.RequiredMode.REQUIRED) + @JsonProperty("error") + public String getError() { + return error; + } + + public void setError(String error) { + this.error = error; + } + + public TableAlreadyExistsError code(CodeEnum code) { + this.code = code; + return this; + } + + /** + * HTTP status code + * + * @return code + */ + @NotNull + @Schema( + name = "code", + description = "HTTP status code", + requiredMode = Schema.RequiredMode.REQUIRED) + @JsonProperty("code") + public CodeEnum getCode() { + return code; + } + + public void setCode(CodeEnum code) { + this.code = code; + } + + public TableAlreadyExistsError type(TypeEnum type) { + this.type = type; + return this; + } + + /** + * Error type identifier + * + * @return type + */ + @NotNull + @Schema( + name = "type", + description = "Error type identifier", + requiredMode = Schema.RequiredMode.REQUIRED) + @JsonProperty("type") + public TypeEnum getType() { + return type; + } + + public void setType(TypeEnum type) { + this.type = type; + } + + public TableAlreadyExistsError detail(String detail) { + this.detail = detail; + return this; + } + + /** + * Detailed error explanation + * + * @return detail + */ + @Schema( + name = "detail", + description = "Detailed error explanation", + requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("detail") + public String getDetail() { + return detail; + } + + public void setDetail(String detail) { + this.detail = detail; + } + + public TableAlreadyExistsError instance(String instance) { + this.instance = instance; + return this; + } + + /** + * Specific occurrence identifier + * + * @return instance + */ + @Schema( + name = "instance", + description = "Specific occurrence identifier", + requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("instance") + public String getInstance() { + return instance; + } + + public void setInstance(String instance) { + this.instance = instance; + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + TableAlreadyExistsError tableAlreadyExistsError = (TableAlreadyExistsError) o; + return Objects.equals(this.error, tableAlreadyExistsError.error) + && Objects.equals(this.code, tableAlreadyExistsError.code) + && Objects.equals(this.type, tableAlreadyExistsError.type) + && Objects.equals(this.detail, tableAlreadyExistsError.detail) + && Objects.equals(this.instance, tableAlreadyExistsError.instance); + } + + @Override + public int hashCode() { + return Objects.hash(error, code, type, detail, instance); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class TableAlreadyExistsError {\n"); + sb.append(" error: ").append(toIndentedString(error)).append("\n"); + sb.append(" code: ").append(toIndentedString(code)).append("\n"); + sb.append(" type: ").append(toIndentedString(type)).append("\n"); + sb.append(" detail: ").append(toIndentedString(detail)).append("\n"); + sb.append(" instance: ").append(toIndentedString(instance)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} diff --git a/java/lance-namespace-springboot-server/src/main/java/org/lance/namespace/server/springboot/model/TableColumnNotFoundError.java b/java/lance-namespace-springboot-server/src/main/java/org/lance/namespace/server/springboot/model/TableColumnNotFoundError.java new file mode 100644 index 00000000..ecd5b38a --- /dev/null +++ b/java/lance-namespace-springboot-server/src/main/java/org/lance/namespace/server/springboot/model/TableColumnNotFoundError.java @@ -0,0 +1,284 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package org.lance.namespace.server.springboot.model; + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonValue; +import io.swagger.v3.oas.annotations.media.Schema; +import jakarta.annotation.Generated; +import jakarta.validation.constraints.*; + +import java.util.*; +import java.util.Objects; + +/** The specified column does not exist in the table */ +@Schema( + name = "TableColumnNotFoundError", + description = "The specified column does not exist in the table") +@Generated( + value = "org.openapitools.codegen.languages.SpringCodegen", + comments = "Generator version: 7.12.0") +public class TableColumnNotFoundError + implements AlterTableAlterColumns400Response, + CreateTableIndex400Response, + MergeInsertIntoTable400Response, + UpdateTable400Response { + + private String error; + + /** HTTP status code */ + public enum CodeEnum { + NUMBER_400(400); + + private Integer value; + + CodeEnum(Integer value) { + this.value = value; + } + + @JsonValue + public Integer getValue() { + return value; + } + + @Override + public String toString() { + return String.valueOf(value); + } + + @JsonCreator + public static CodeEnum fromValue(Integer value) { + for (CodeEnum b : CodeEnum.values()) { + if (b.value.equals(value)) { + return b; + } + } + throw new IllegalArgumentException("Unexpected value '" + value + "'"); + } + } + + private CodeEnum code; + + /** Error type identifier */ + public enum TypeEnum { + LANCE_NAMESPACE_204("lance-namespace:204"); + + private String value; + + TypeEnum(String value) { + this.value = value; + } + + @JsonValue + public String getValue() { + return value; + } + + @Override + public String toString() { + return String.valueOf(value); + } + + @JsonCreator + public static TypeEnum fromValue(String value) { + for (TypeEnum b : TypeEnum.values()) { + if (b.value.equals(value)) { + return b; + } + } + throw new IllegalArgumentException("Unexpected value '" + value + "'"); + } + } + + private TypeEnum type; + + private String detail; + + private String instance; + + public TableColumnNotFoundError() { + super(); + } + + /** Constructor with only required parameters */ + public TableColumnNotFoundError(String error, CodeEnum code, TypeEnum type) { + this.error = error; + this.code = code; + this.type = type; + } + + public TableColumnNotFoundError error(String error) { + this.error = error; + return this; + } + + /** + * Brief error message + * + * @return error + */ + @NotNull + @Schema( + name = "error", + example = "Column not found", + description = "Brief error message", + requiredMode = Schema.RequiredMode.REQUIRED) + @JsonProperty("error") + public String getError() { + return error; + } + + public void setError(String error) { + this.error = error; + } + + public TableColumnNotFoundError code(CodeEnum code) { + this.code = code; + return this; + } + + /** + * HTTP status code + * + * @return code + */ + @NotNull + @Schema( + name = "code", + description = "HTTP status code", + requiredMode = Schema.RequiredMode.REQUIRED) + @JsonProperty("code") + public CodeEnum getCode() { + return code; + } + + public void setCode(CodeEnum code) { + this.code = code; + } + + public TableColumnNotFoundError type(TypeEnum type) { + this.type = type; + return this; + } + + /** + * Error type identifier + * + * @return type + */ + @NotNull + @Schema( + name = "type", + description = "Error type identifier", + requiredMode = Schema.RequiredMode.REQUIRED) + @JsonProperty("type") + public TypeEnum getType() { + return type; + } + + public void setType(TypeEnum type) { + this.type = type; + } + + public TableColumnNotFoundError detail(String detail) { + this.detail = detail; + return this; + } + + /** + * Detailed error explanation + * + * @return detail + */ + @Schema( + name = "detail", + description = "Detailed error explanation", + requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("detail") + public String getDetail() { + return detail; + } + + public void setDetail(String detail) { + this.detail = detail; + } + + public TableColumnNotFoundError instance(String instance) { + this.instance = instance; + return this; + } + + /** + * Specific occurrence identifier + * + * @return instance + */ + @Schema( + name = "instance", + description = "Specific occurrence identifier", + requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("instance") + public String getInstance() { + return instance; + } + + public void setInstance(String instance) { + this.instance = instance; + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + TableColumnNotFoundError tableColumnNotFoundError = (TableColumnNotFoundError) o; + return Objects.equals(this.error, tableColumnNotFoundError.error) + && Objects.equals(this.code, tableColumnNotFoundError.code) + && Objects.equals(this.type, tableColumnNotFoundError.type) + && Objects.equals(this.detail, tableColumnNotFoundError.detail) + && Objects.equals(this.instance, tableColumnNotFoundError.instance); + } + + @Override + public int hashCode() { + return Objects.hash(error, code, type, detail, instance); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class TableColumnNotFoundError {\n"); + sb.append(" error: ").append(toIndentedString(error)).append("\n"); + sb.append(" code: ").append(toIndentedString(code)).append("\n"); + sb.append(" type: ").append(toIndentedString(type)).append("\n"); + sb.append(" detail: ").append(toIndentedString(detail)).append("\n"); + sb.append(" instance: ").append(toIndentedString(instance)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} diff --git a/java/lance-namespace-springboot-server/src/main/java/org/lance/namespace/server/springboot/model/TableIndexAlreadyExistsError.java b/java/lance-namespace-springboot-server/src/main/java/org/lance/namespace/server/springboot/model/TableIndexAlreadyExistsError.java new file mode 100644 index 00000000..fe0b0820 --- /dev/null +++ b/java/lance-namespace-springboot-server/src/main/java/org/lance/namespace/server/springboot/model/TableIndexAlreadyExistsError.java @@ -0,0 +1,280 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package org.lance.namespace.server.springboot.model; + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonValue; +import io.swagger.v3.oas.annotations.media.Schema; +import jakarta.annotation.Generated; +import jakarta.validation.constraints.*; + +import java.util.*; +import java.util.Objects; + +/** An index with the same name already exists */ +@Schema( + name = "TableIndexAlreadyExistsError", + description = "An index with the same name already exists") +@Generated( + value = "org.openapitools.codegen.languages.SpringCodegen", + comments = "Generator version: 7.12.0") +public class TableIndexAlreadyExistsError { + + private String error; + + /** HTTP status code */ + public enum CodeEnum { + NUMBER_409(409); + + private Integer value; + + CodeEnum(Integer value) { + this.value = value; + } + + @JsonValue + public Integer getValue() { + return value; + } + + @Override + public String toString() { + return String.valueOf(value); + } + + @JsonCreator + public static CodeEnum fromValue(Integer value) { + for (CodeEnum b : CodeEnum.values()) { + if (b.value.equals(value)) { + return b; + } + } + throw new IllegalArgumentException("Unexpected value '" + value + "'"); + } + } + + private CodeEnum code; + + /** Error type identifier */ + public enum TypeEnum { + LANCE_NAMESPACE_302("lance-namespace:302"); + + private String value; + + TypeEnum(String value) { + this.value = value; + } + + @JsonValue + public String getValue() { + return value; + } + + @Override + public String toString() { + return String.valueOf(value); + } + + @JsonCreator + public static TypeEnum fromValue(String value) { + for (TypeEnum b : TypeEnum.values()) { + if (b.value.equals(value)) { + return b; + } + } + throw new IllegalArgumentException("Unexpected value '" + value + "'"); + } + } + + private TypeEnum type; + + private String detail; + + private String instance; + + public TableIndexAlreadyExistsError() { + super(); + } + + /** Constructor with only required parameters */ + public TableIndexAlreadyExistsError(String error, CodeEnum code, TypeEnum type) { + this.error = error; + this.code = code; + this.type = type; + } + + public TableIndexAlreadyExistsError error(String error) { + this.error = error; + return this; + } + + /** + * Brief error message + * + * @return error + */ + @NotNull + @Schema( + name = "error", + example = "Index already exists", + description = "Brief error message", + requiredMode = Schema.RequiredMode.REQUIRED) + @JsonProperty("error") + public String getError() { + return error; + } + + public void setError(String error) { + this.error = error; + } + + public TableIndexAlreadyExistsError code(CodeEnum code) { + this.code = code; + return this; + } + + /** + * HTTP status code + * + * @return code + */ + @NotNull + @Schema( + name = "code", + description = "HTTP status code", + requiredMode = Schema.RequiredMode.REQUIRED) + @JsonProperty("code") + public CodeEnum getCode() { + return code; + } + + public void setCode(CodeEnum code) { + this.code = code; + } + + public TableIndexAlreadyExistsError type(TypeEnum type) { + this.type = type; + return this; + } + + /** + * Error type identifier + * + * @return type + */ + @NotNull + @Schema( + name = "type", + description = "Error type identifier", + requiredMode = Schema.RequiredMode.REQUIRED) + @JsonProperty("type") + public TypeEnum getType() { + return type; + } + + public void setType(TypeEnum type) { + this.type = type; + } + + public TableIndexAlreadyExistsError detail(String detail) { + this.detail = detail; + return this; + } + + /** + * Detailed error explanation + * + * @return detail + */ + @Schema( + name = "detail", + description = "Detailed error explanation", + requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("detail") + public String getDetail() { + return detail; + } + + public void setDetail(String detail) { + this.detail = detail; + } + + public TableIndexAlreadyExistsError instance(String instance) { + this.instance = instance; + return this; + } + + /** + * Specific occurrence identifier + * + * @return instance + */ + @Schema( + name = "instance", + description = "Specific occurrence identifier", + requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("instance") + public String getInstance() { + return instance; + } + + public void setInstance(String instance) { + this.instance = instance; + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + TableIndexAlreadyExistsError tableIndexAlreadyExistsError = (TableIndexAlreadyExistsError) o; + return Objects.equals(this.error, tableIndexAlreadyExistsError.error) + && Objects.equals(this.code, tableIndexAlreadyExistsError.code) + && Objects.equals(this.type, tableIndexAlreadyExistsError.type) + && Objects.equals(this.detail, tableIndexAlreadyExistsError.detail) + && Objects.equals(this.instance, tableIndexAlreadyExistsError.instance); + } + + @Override + public int hashCode() { + return Objects.hash(error, code, type, detail, instance); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class TableIndexAlreadyExistsError {\n"); + sb.append(" error: ").append(toIndentedString(error)).append("\n"); + sb.append(" code: ").append(toIndentedString(code)).append("\n"); + sb.append(" type: ").append(toIndentedString(type)).append("\n"); + sb.append(" detail: ").append(toIndentedString(detail)).append("\n"); + sb.append(" instance: ").append(toIndentedString(instance)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} diff --git a/java/lance-namespace-springboot-server/src/main/java/org/lance/namespace/server/springboot/model/TableIndexNotFoundError.java b/java/lance-namespace-springboot-server/src/main/java/org/lance/namespace/server/springboot/model/TableIndexNotFoundError.java new file mode 100644 index 00000000..a66bd3df --- /dev/null +++ b/java/lance-namespace-springboot-server/src/main/java/org/lance/namespace/server/springboot/model/TableIndexNotFoundError.java @@ -0,0 +1,278 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package org.lance.namespace.server.springboot.model; + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonValue; +import io.swagger.v3.oas.annotations.media.Schema; +import jakarta.annotation.Generated; +import jakarta.validation.constraints.*; + +import java.util.*; +import java.util.Objects; + +/** The requested index does not exist */ +@Schema(name = "TableIndexNotFoundError", description = "The requested index does not exist") +@Generated( + value = "org.openapitools.codegen.languages.SpringCodegen", + comments = "Generator version: 7.12.0") +public class TableIndexNotFoundError implements DescribeTableIndexStats404Response { + + private String error; + + /** HTTP status code */ + public enum CodeEnum { + NUMBER_404(404); + + private Integer value; + + CodeEnum(Integer value) { + this.value = value; + } + + @JsonValue + public Integer getValue() { + return value; + } + + @Override + public String toString() { + return String.valueOf(value); + } + + @JsonCreator + public static CodeEnum fromValue(Integer value) { + for (CodeEnum b : CodeEnum.values()) { + if (b.value.equals(value)) { + return b; + } + } + throw new IllegalArgumentException("Unexpected value '" + value + "'"); + } + } + + private CodeEnum code; + + /** Error type identifier */ + public enum TypeEnum { + LANCE_NAMESPACE_301("lance-namespace:301"); + + private String value; + + TypeEnum(String value) { + this.value = value; + } + + @JsonValue + public String getValue() { + return value; + } + + @Override + public String toString() { + return String.valueOf(value); + } + + @JsonCreator + public static TypeEnum fromValue(String value) { + for (TypeEnum b : TypeEnum.values()) { + if (b.value.equals(value)) { + return b; + } + } + throw new IllegalArgumentException("Unexpected value '" + value + "'"); + } + } + + private TypeEnum type; + + private String detail; + + private String instance; + + public TableIndexNotFoundError() { + super(); + } + + /** Constructor with only required parameters */ + public TableIndexNotFoundError(String error, CodeEnum code, TypeEnum type) { + this.error = error; + this.code = code; + this.type = type; + } + + public TableIndexNotFoundError error(String error) { + this.error = error; + return this; + } + + /** + * Brief error message + * + * @return error + */ + @NotNull + @Schema( + name = "error", + example = "Index not found", + description = "Brief error message", + requiredMode = Schema.RequiredMode.REQUIRED) + @JsonProperty("error") + public String getError() { + return error; + } + + public void setError(String error) { + this.error = error; + } + + public TableIndexNotFoundError code(CodeEnum code) { + this.code = code; + return this; + } + + /** + * HTTP status code + * + * @return code + */ + @NotNull + @Schema( + name = "code", + description = "HTTP status code", + requiredMode = Schema.RequiredMode.REQUIRED) + @JsonProperty("code") + public CodeEnum getCode() { + return code; + } + + public void setCode(CodeEnum code) { + this.code = code; + } + + public TableIndexNotFoundError type(TypeEnum type) { + this.type = type; + return this; + } + + /** + * Error type identifier + * + * @return type + */ + @NotNull + @Schema( + name = "type", + description = "Error type identifier", + requiredMode = Schema.RequiredMode.REQUIRED) + @JsonProperty("type") + public TypeEnum getType() { + return type; + } + + public void setType(TypeEnum type) { + this.type = type; + } + + public TableIndexNotFoundError detail(String detail) { + this.detail = detail; + return this; + } + + /** + * Detailed error explanation + * + * @return detail + */ + @Schema( + name = "detail", + description = "Detailed error explanation", + requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("detail") + public String getDetail() { + return detail; + } + + public void setDetail(String detail) { + this.detail = detail; + } + + public TableIndexNotFoundError instance(String instance) { + this.instance = instance; + return this; + } + + /** + * Specific occurrence identifier + * + * @return instance + */ + @Schema( + name = "instance", + description = "Specific occurrence identifier", + requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("instance") + public String getInstance() { + return instance; + } + + public void setInstance(String instance) { + this.instance = instance; + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + TableIndexNotFoundError tableIndexNotFoundError = (TableIndexNotFoundError) o; + return Objects.equals(this.error, tableIndexNotFoundError.error) + && Objects.equals(this.code, tableIndexNotFoundError.code) + && Objects.equals(this.type, tableIndexNotFoundError.type) + && Objects.equals(this.detail, tableIndexNotFoundError.detail) + && Objects.equals(this.instance, tableIndexNotFoundError.instance); + } + + @Override + public int hashCode() { + return Objects.hash(error, code, type, detail, instance); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class TableIndexNotFoundError {\n"); + sb.append(" error: ").append(toIndentedString(error)).append("\n"); + sb.append(" code: ").append(toIndentedString(code)).append("\n"); + sb.append(" type: ").append(toIndentedString(type)).append("\n"); + sb.append(" detail: ").append(toIndentedString(detail)).append("\n"); + sb.append(" instance: ").append(toIndentedString(instance)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} diff --git a/java/lance-namespace-springboot-server/src/main/java/org/lance/namespace/server/springboot/model/TableNotFoundError.java b/java/lance-namespace-springboot-server/src/main/java/org/lance/namespace/server/springboot/model/TableNotFoundError.java new file mode 100644 index 00000000..0051dd81 --- /dev/null +++ b/java/lance-namespace-springboot-server/src/main/java/org/lance/namespace/server/springboot/model/TableNotFoundError.java @@ -0,0 +1,282 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package org.lance.namespace.server.springboot.model; + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonValue; +import io.swagger.v3.oas.annotations.media.Schema; +import jakarta.annotation.Generated; +import jakarta.validation.constraints.*; + +import java.util.*; +import java.util.Objects; + +/** The requested table does not exist */ +@Schema(name = "TableNotFoundError", description = "The requested table does not exist") +@Generated( + value = "org.openapitools.codegen.languages.SpringCodegen", + comments = "Generator version: 7.12.0") +public class TableNotFoundError + implements DescribeTableIndexStats404Response, + GetTableTagVersion404Response, + RestoreTable404Response, + UpdateTableTag404Response { + + private String error; + + /** HTTP status code */ + public enum CodeEnum { + NUMBER_404(404); + + private Integer value; + + CodeEnum(Integer value) { + this.value = value; + } + + @JsonValue + public Integer getValue() { + return value; + } + + @Override + public String toString() { + return String.valueOf(value); + } + + @JsonCreator + public static CodeEnum fromValue(Integer value) { + for (CodeEnum b : CodeEnum.values()) { + if (b.value.equals(value)) { + return b; + } + } + throw new IllegalArgumentException("Unexpected value '" + value + "'"); + } + } + + private CodeEnum code; + + /** Error type identifier */ + public enum TypeEnum { + LANCE_NAMESPACE_201("lance-namespace:201"); + + private String value; + + TypeEnum(String value) { + this.value = value; + } + + @JsonValue + public String getValue() { + return value; + } + + @Override + public String toString() { + return String.valueOf(value); + } + + @JsonCreator + public static TypeEnum fromValue(String value) { + for (TypeEnum b : TypeEnum.values()) { + if (b.value.equals(value)) { + return b; + } + } + throw new IllegalArgumentException("Unexpected value '" + value + "'"); + } + } + + private TypeEnum type; + + private String detail; + + private String instance; + + public TableNotFoundError() { + super(); + } + + /** Constructor with only required parameters */ + public TableNotFoundError(String error, CodeEnum code, TypeEnum type) { + this.error = error; + this.code = code; + this.type = type; + } + + public TableNotFoundError error(String error) { + this.error = error; + return this; + } + + /** + * Brief error message + * + * @return error + */ + @NotNull + @Schema( + name = "error", + example = "Table not found", + description = "Brief error message", + requiredMode = Schema.RequiredMode.REQUIRED) + @JsonProperty("error") + public String getError() { + return error; + } + + public void setError(String error) { + this.error = error; + } + + public TableNotFoundError code(CodeEnum code) { + this.code = code; + return this; + } + + /** + * HTTP status code + * + * @return code + */ + @NotNull + @Schema( + name = "code", + description = "HTTP status code", + requiredMode = Schema.RequiredMode.REQUIRED) + @JsonProperty("code") + public CodeEnum getCode() { + return code; + } + + public void setCode(CodeEnum code) { + this.code = code; + } + + public TableNotFoundError type(TypeEnum type) { + this.type = type; + return this; + } + + /** + * Error type identifier + * + * @return type + */ + @NotNull + @Schema( + name = "type", + description = "Error type identifier", + requiredMode = Schema.RequiredMode.REQUIRED) + @JsonProperty("type") + public TypeEnum getType() { + return type; + } + + public void setType(TypeEnum type) { + this.type = type; + } + + public TableNotFoundError detail(String detail) { + this.detail = detail; + return this; + } + + /** + * Detailed error explanation + * + * @return detail + */ + @Schema( + name = "detail", + description = "Detailed error explanation", + requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("detail") + public String getDetail() { + return detail; + } + + public void setDetail(String detail) { + this.detail = detail; + } + + public TableNotFoundError instance(String instance) { + this.instance = instance; + return this; + } + + /** + * Specific occurrence identifier + * + * @return instance + */ + @Schema( + name = "instance", + description = "Specific occurrence identifier", + requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("instance") + public String getInstance() { + return instance; + } + + public void setInstance(String instance) { + this.instance = instance; + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + TableNotFoundError tableNotFoundError = (TableNotFoundError) o; + return Objects.equals(this.error, tableNotFoundError.error) + && Objects.equals(this.code, tableNotFoundError.code) + && Objects.equals(this.type, tableNotFoundError.type) + && Objects.equals(this.detail, tableNotFoundError.detail) + && Objects.equals(this.instance, tableNotFoundError.instance); + } + + @Override + public int hashCode() { + return Objects.hash(error, code, type, detail, instance); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class TableNotFoundError {\n"); + sb.append(" error: ").append(toIndentedString(error)).append("\n"); + sb.append(" code: ").append(toIndentedString(code)).append("\n"); + sb.append(" type: ").append(toIndentedString(type)).append("\n"); + sb.append(" detail: ").append(toIndentedString(detail)).append("\n"); + sb.append(" instance: ").append(toIndentedString(instance)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} diff --git a/java/lance-namespace-springboot-server/src/main/java/org/lance/namespace/server/springboot/model/TableSchemaMismatchError.java b/java/lance-namespace-springboot-server/src/main/java/org/lance/namespace/server/springboot/model/TableSchemaMismatchError.java new file mode 100644 index 00000000..f6173752 --- /dev/null +++ b/java/lance-namespace-springboot-server/src/main/java/org/lance/namespace/server/springboot/model/TableSchemaMismatchError.java @@ -0,0 +1,281 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package org.lance.namespace.server.springboot.model; + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonValue; +import io.swagger.v3.oas.annotations.media.Schema; +import jakarta.annotation.Generated; +import jakarta.validation.constraints.*; + +import java.util.*; +import java.util.Objects; + +/** The data schema does not match the table schema */ +@Schema( + name = "TableSchemaMismatchError", + description = "The data schema does not match the table schema") +@Generated( + value = "org.openapitools.codegen.languages.SpringCodegen", + comments = "Generator version: 7.12.0") +public class TableSchemaMismatchError + implements InsertIntoTable400Response, MergeInsertIntoTable400Response { + + private String error; + + /** HTTP status code */ + public enum CodeEnum { + NUMBER_400(400); + + private Integer value; + + CodeEnum(Integer value) { + this.value = value; + } + + @JsonValue + public Integer getValue() { + return value; + } + + @Override + public String toString() { + return String.valueOf(value); + } + + @JsonCreator + public static CodeEnum fromValue(Integer value) { + for (CodeEnum b : CodeEnum.values()) { + if (b.value.equals(value)) { + return b; + } + } + throw new IllegalArgumentException("Unexpected value '" + value + "'"); + } + } + + private CodeEnum code; + + /** Error type identifier */ + public enum TypeEnum { + LANCE_NAMESPACE_206("lance-namespace:206"); + + private String value; + + TypeEnum(String value) { + this.value = value; + } + + @JsonValue + public String getValue() { + return value; + } + + @Override + public String toString() { + return String.valueOf(value); + } + + @JsonCreator + public static TypeEnum fromValue(String value) { + for (TypeEnum b : TypeEnum.values()) { + if (b.value.equals(value)) { + return b; + } + } + throw new IllegalArgumentException("Unexpected value '" + value + "'"); + } + } + + private TypeEnum type; + + private String detail; + + private String instance; + + public TableSchemaMismatchError() { + super(); + } + + /** Constructor with only required parameters */ + public TableSchemaMismatchError(String error, CodeEnum code, TypeEnum type) { + this.error = error; + this.code = code; + this.type = type; + } + + public TableSchemaMismatchError error(String error) { + this.error = error; + return this; + } + + /** + * Brief error message + * + * @return error + */ + @NotNull + @Schema( + name = "error", + example = "Schema mismatch", + description = "Brief error message", + requiredMode = Schema.RequiredMode.REQUIRED) + @JsonProperty("error") + public String getError() { + return error; + } + + public void setError(String error) { + this.error = error; + } + + public TableSchemaMismatchError code(CodeEnum code) { + this.code = code; + return this; + } + + /** + * HTTP status code + * + * @return code + */ + @NotNull + @Schema( + name = "code", + description = "HTTP status code", + requiredMode = Schema.RequiredMode.REQUIRED) + @JsonProperty("code") + public CodeEnum getCode() { + return code; + } + + public void setCode(CodeEnum code) { + this.code = code; + } + + public TableSchemaMismatchError type(TypeEnum type) { + this.type = type; + return this; + } + + /** + * Error type identifier + * + * @return type + */ + @NotNull + @Schema( + name = "type", + description = "Error type identifier", + requiredMode = Schema.RequiredMode.REQUIRED) + @JsonProperty("type") + public TypeEnum getType() { + return type; + } + + public void setType(TypeEnum type) { + this.type = type; + } + + public TableSchemaMismatchError detail(String detail) { + this.detail = detail; + return this; + } + + /** + * Detailed error explanation + * + * @return detail + */ + @Schema( + name = "detail", + description = "Detailed error explanation", + requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("detail") + public String getDetail() { + return detail; + } + + public void setDetail(String detail) { + this.detail = detail; + } + + public TableSchemaMismatchError instance(String instance) { + this.instance = instance; + return this; + } + + /** + * Specific occurrence identifier + * + * @return instance + */ + @Schema( + name = "instance", + description = "Specific occurrence identifier", + requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("instance") + public String getInstance() { + return instance; + } + + public void setInstance(String instance) { + this.instance = instance; + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + TableSchemaMismatchError tableSchemaMismatchError = (TableSchemaMismatchError) o; + return Objects.equals(this.error, tableSchemaMismatchError.error) + && Objects.equals(this.code, tableSchemaMismatchError.code) + && Objects.equals(this.type, tableSchemaMismatchError.type) + && Objects.equals(this.detail, tableSchemaMismatchError.detail) + && Objects.equals(this.instance, tableSchemaMismatchError.instance); + } + + @Override + public int hashCode() { + return Objects.hash(error, code, type, detail, instance); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class TableSchemaMismatchError {\n"); + sb.append(" error: ").append(toIndentedString(error)).append("\n"); + sb.append(" code: ").append(toIndentedString(code)).append("\n"); + sb.append(" type: ").append(toIndentedString(type)).append("\n"); + sb.append(" detail: ").append(toIndentedString(detail)).append("\n"); + sb.append(" instance: ").append(toIndentedString(instance)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} diff --git a/java/lance-namespace-springboot-server/src/main/java/org/lance/namespace/server/springboot/model/TableTagAlreadyExistsError.java b/java/lance-namespace-springboot-server/src/main/java/org/lance/namespace/server/springboot/model/TableTagAlreadyExistsError.java new file mode 100644 index 00000000..824133fe --- /dev/null +++ b/java/lance-namespace-springboot-server/src/main/java/org/lance/namespace/server/springboot/model/TableTagAlreadyExistsError.java @@ -0,0 +1,280 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package org.lance.namespace.server.springboot.model; + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonValue; +import io.swagger.v3.oas.annotations.media.Schema; +import jakarta.annotation.Generated; +import jakarta.validation.constraints.*; + +import java.util.*; +import java.util.Objects; + +/** A tag with the same name already exists */ +@Schema( + name = "TableTagAlreadyExistsError", + description = "A tag with the same name already exists") +@Generated( + value = "org.openapitools.codegen.languages.SpringCodegen", + comments = "Generator version: 7.12.0") +public class TableTagAlreadyExistsError { + + private String error; + + /** HTTP status code */ + public enum CodeEnum { + NUMBER_409(409); + + private Integer value; + + CodeEnum(Integer value) { + this.value = value; + } + + @JsonValue + public Integer getValue() { + return value; + } + + @Override + public String toString() { + return String.valueOf(value); + } + + @JsonCreator + public static CodeEnum fromValue(Integer value) { + for (CodeEnum b : CodeEnum.values()) { + if (b.value.equals(value)) { + return b; + } + } + throw new IllegalArgumentException("Unexpected value '" + value + "'"); + } + } + + private CodeEnum code; + + /** Error type identifier */ + public enum TypeEnum { + LANCE_NAMESPACE_402("lance-namespace:402"); + + private String value; + + TypeEnum(String value) { + this.value = value; + } + + @JsonValue + public String getValue() { + return value; + } + + @Override + public String toString() { + return String.valueOf(value); + } + + @JsonCreator + public static TypeEnum fromValue(String value) { + for (TypeEnum b : TypeEnum.values()) { + if (b.value.equals(value)) { + return b; + } + } + throw new IllegalArgumentException("Unexpected value '" + value + "'"); + } + } + + private TypeEnum type; + + private String detail; + + private String instance; + + public TableTagAlreadyExistsError() { + super(); + } + + /** Constructor with only required parameters */ + public TableTagAlreadyExistsError(String error, CodeEnum code, TypeEnum type) { + this.error = error; + this.code = code; + this.type = type; + } + + public TableTagAlreadyExistsError error(String error) { + this.error = error; + return this; + } + + /** + * Brief error message + * + * @return error + */ + @NotNull + @Schema( + name = "error", + example = "Tag already exists", + description = "Brief error message", + requiredMode = Schema.RequiredMode.REQUIRED) + @JsonProperty("error") + public String getError() { + return error; + } + + public void setError(String error) { + this.error = error; + } + + public TableTagAlreadyExistsError code(CodeEnum code) { + this.code = code; + return this; + } + + /** + * HTTP status code + * + * @return code + */ + @NotNull + @Schema( + name = "code", + description = "HTTP status code", + requiredMode = Schema.RequiredMode.REQUIRED) + @JsonProperty("code") + public CodeEnum getCode() { + return code; + } + + public void setCode(CodeEnum code) { + this.code = code; + } + + public TableTagAlreadyExistsError type(TypeEnum type) { + this.type = type; + return this; + } + + /** + * Error type identifier + * + * @return type + */ + @NotNull + @Schema( + name = "type", + description = "Error type identifier", + requiredMode = Schema.RequiredMode.REQUIRED) + @JsonProperty("type") + public TypeEnum getType() { + return type; + } + + public void setType(TypeEnum type) { + this.type = type; + } + + public TableTagAlreadyExistsError detail(String detail) { + this.detail = detail; + return this; + } + + /** + * Detailed error explanation + * + * @return detail + */ + @Schema( + name = "detail", + description = "Detailed error explanation", + requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("detail") + public String getDetail() { + return detail; + } + + public void setDetail(String detail) { + this.detail = detail; + } + + public TableTagAlreadyExistsError instance(String instance) { + this.instance = instance; + return this; + } + + /** + * Specific occurrence identifier + * + * @return instance + */ + @Schema( + name = "instance", + description = "Specific occurrence identifier", + requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("instance") + public String getInstance() { + return instance; + } + + public void setInstance(String instance) { + this.instance = instance; + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + TableTagAlreadyExistsError tableTagAlreadyExistsError = (TableTagAlreadyExistsError) o; + return Objects.equals(this.error, tableTagAlreadyExistsError.error) + && Objects.equals(this.code, tableTagAlreadyExistsError.code) + && Objects.equals(this.type, tableTagAlreadyExistsError.type) + && Objects.equals(this.detail, tableTagAlreadyExistsError.detail) + && Objects.equals(this.instance, tableTagAlreadyExistsError.instance); + } + + @Override + public int hashCode() { + return Objects.hash(error, code, type, detail, instance); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class TableTagAlreadyExistsError {\n"); + sb.append(" error: ").append(toIndentedString(error)).append("\n"); + sb.append(" code: ").append(toIndentedString(code)).append("\n"); + sb.append(" type: ").append(toIndentedString(type)).append("\n"); + sb.append(" detail: ").append(toIndentedString(detail)).append("\n"); + sb.append(" instance: ").append(toIndentedString(instance)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} diff --git a/java/lance-namespace-springboot-server/src/main/java/org/lance/namespace/server/springboot/model/TableTagNotFoundError.java b/java/lance-namespace-springboot-server/src/main/java/org/lance/namespace/server/springboot/model/TableTagNotFoundError.java new file mode 100644 index 00000000..f1db86fd --- /dev/null +++ b/java/lance-namespace-springboot-server/src/main/java/org/lance/namespace/server/springboot/model/TableTagNotFoundError.java @@ -0,0 +1,279 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package org.lance.namespace.server.springboot.model; + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonValue; +import io.swagger.v3.oas.annotations.media.Schema; +import jakarta.annotation.Generated; +import jakarta.validation.constraints.*; + +import java.util.*; +import java.util.Objects; + +/** The requested tag does not exist */ +@Schema(name = "TableTagNotFoundError", description = "The requested tag does not exist") +@Generated( + value = "org.openapitools.codegen.languages.SpringCodegen", + comments = "Generator version: 7.12.0") +public class TableTagNotFoundError + implements GetTableTagVersion404Response, UpdateTableTag404Response { + + private String error; + + /** HTTP status code */ + public enum CodeEnum { + NUMBER_404(404); + + private Integer value; + + CodeEnum(Integer value) { + this.value = value; + } + + @JsonValue + public Integer getValue() { + return value; + } + + @Override + public String toString() { + return String.valueOf(value); + } + + @JsonCreator + public static CodeEnum fromValue(Integer value) { + for (CodeEnum b : CodeEnum.values()) { + if (b.value.equals(value)) { + return b; + } + } + throw new IllegalArgumentException("Unexpected value '" + value + "'"); + } + } + + private CodeEnum code; + + /** Error type identifier */ + public enum TypeEnum { + LANCE_NAMESPACE_401("lance-namespace:401"); + + private String value; + + TypeEnum(String value) { + this.value = value; + } + + @JsonValue + public String getValue() { + return value; + } + + @Override + public String toString() { + return String.valueOf(value); + } + + @JsonCreator + public static TypeEnum fromValue(String value) { + for (TypeEnum b : TypeEnum.values()) { + if (b.value.equals(value)) { + return b; + } + } + throw new IllegalArgumentException("Unexpected value '" + value + "'"); + } + } + + private TypeEnum type; + + private String detail; + + private String instance; + + public TableTagNotFoundError() { + super(); + } + + /** Constructor with only required parameters */ + public TableTagNotFoundError(String error, CodeEnum code, TypeEnum type) { + this.error = error; + this.code = code; + this.type = type; + } + + public TableTagNotFoundError error(String error) { + this.error = error; + return this; + } + + /** + * Brief error message + * + * @return error + */ + @NotNull + @Schema( + name = "error", + example = "Tag not found", + description = "Brief error message", + requiredMode = Schema.RequiredMode.REQUIRED) + @JsonProperty("error") + public String getError() { + return error; + } + + public void setError(String error) { + this.error = error; + } + + public TableTagNotFoundError code(CodeEnum code) { + this.code = code; + return this; + } + + /** + * HTTP status code + * + * @return code + */ + @NotNull + @Schema( + name = "code", + description = "HTTP status code", + requiredMode = Schema.RequiredMode.REQUIRED) + @JsonProperty("code") + public CodeEnum getCode() { + return code; + } + + public void setCode(CodeEnum code) { + this.code = code; + } + + public TableTagNotFoundError type(TypeEnum type) { + this.type = type; + return this; + } + + /** + * Error type identifier + * + * @return type + */ + @NotNull + @Schema( + name = "type", + description = "Error type identifier", + requiredMode = Schema.RequiredMode.REQUIRED) + @JsonProperty("type") + public TypeEnum getType() { + return type; + } + + public void setType(TypeEnum type) { + this.type = type; + } + + public TableTagNotFoundError detail(String detail) { + this.detail = detail; + return this; + } + + /** + * Detailed error explanation + * + * @return detail + */ + @Schema( + name = "detail", + description = "Detailed error explanation", + requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("detail") + public String getDetail() { + return detail; + } + + public void setDetail(String detail) { + this.detail = detail; + } + + public TableTagNotFoundError instance(String instance) { + this.instance = instance; + return this; + } + + /** + * Specific occurrence identifier + * + * @return instance + */ + @Schema( + name = "instance", + description = "Specific occurrence identifier", + requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("instance") + public String getInstance() { + return instance; + } + + public void setInstance(String instance) { + this.instance = instance; + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + TableTagNotFoundError tableTagNotFoundError = (TableTagNotFoundError) o; + return Objects.equals(this.error, tableTagNotFoundError.error) + && Objects.equals(this.code, tableTagNotFoundError.code) + && Objects.equals(this.type, tableTagNotFoundError.type) + && Objects.equals(this.detail, tableTagNotFoundError.detail) + && Objects.equals(this.instance, tableTagNotFoundError.instance); + } + + @Override + public int hashCode() { + return Objects.hash(error, code, type, detail, instance); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class TableTagNotFoundError {\n"); + sb.append(" error: ").append(toIndentedString(error)).append("\n"); + sb.append(" code: ").append(toIndentedString(code)).append("\n"); + sb.append(" type: ").append(toIndentedString(type)).append("\n"); + sb.append(" detail: ").append(toIndentedString(detail)).append("\n"); + sb.append(" instance: ").append(toIndentedString(instance)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} diff --git a/java/lance-namespace-springboot-server/src/main/java/org/lance/namespace/server/springboot/model/TableVersionNotFoundError.java b/java/lance-namespace-springboot-server/src/main/java/org/lance/namespace/server/springboot/model/TableVersionNotFoundError.java new file mode 100644 index 00000000..a84be3d3 --- /dev/null +++ b/java/lance-namespace-springboot-server/src/main/java/org/lance/namespace/server/springboot/model/TableVersionNotFoundError.java @@ -0,0 +1,281 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package org.lance.namespace.server.springboot.model; + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonValue; +import io.swagger.v3.oas.annotations.media.Schema; +import jakarta.annotation.Generated; +import jakarta.validation.constraints.*; + +import java.util.*; +import java.util.Objects; + +/** The requested table version does not exist */ +@Schema( + name = "TableVersionNotFoundError", + description = "The requested table version does not exist") +@Generated( + value = "org.openapitools.codegen.languages.SpringCodegen", + comments = "Generator version: 7.12.0") +public class TableVersionNotFoundError + implements RestoreTable404Response, UpdateTableTag404Response { + + private String error; + + /** HTTP status code */ + public enum CodeEnum { + NUMBER_404(404); + + private Integer value; + + CodeEnum(Integer value) { + this.value = value; + } + + @JsonValue + public Integer getValue() { + return value; + } + + @Override + public String toString() { + return String.valueOf(value); + } + + @JsonCreator + public static CodeEnum fromValue(Integer value) { + for (CodeEnum b : CodeEnum.values()) { + if (b.value.equals(value)) { + return b; + } + } + throw new IllegalArgumentException("Unexpected value '" + value + "'"); + } + } + + private CodeEnum code; + + /** Error type identifier */ + public enum TypeEnum { + LANCE_NAMESPACE_203("lance-namespace:203"); + + private String value; + + TypeEnum(String value) { + this.value = value; + } + + @JsonValue + public String getValue() { + return value; + } + + @Override + public String toString() { + return String.valueOf(value); + } + + @JsonCreator + public static TypeEnum fromValue(String value) { + for (TypeEnum b : TypeEnum.values()) { + if (b.value.equals(value)) { + return b; + } + } + throw new IllegalArgumentException("Unexpected value '" + value + "'"); + } + } + + private TypeEnum type; + + private String detail; + + private String instance; + + public TableVersionNotFoundError() { + super(); + } + + /** Constructor with only required parameters */ + public TableVersionNotFoundError(String error, CodeEnum code, TypeEnum type) { + this.error = error; + this.code = code; + this.type = type; + } + + public TableVersionNotFoundError error(String error) { + this.error = error; + return this; + } + + /** + * Brief error message + * + * @return error + */ + @NotNull + @Schema( + name = "error", + example = "Table version not found", + description = "Brief error message", + requiredMode = Schema.RequiredMode.REQUIRED) + @JsonProperty("error") + public String getError() { + return error; + } + + public void setError(String error) { + this.error = error; + } + + public TableVersionNotFoundError code(CodeEnum code) { + this.code = code; + return this; + } + + /** + * HTTP status code + * + * @return code + */ + @NotNull + @Schema( + name = "code", + description = "HTTP status code", + requiredMode = Schema.RequiredMode.REQUIRED) + @JsonProperty("code") + public CodeEnum getCode() { + return code; + } + + public void setCode(CodeEnum code) { + this.code = code; + } + + public TableVersionNotFoundError type(TypeEnum type) { + this.type = type; + return this; + } + + /** + * Error type identifier + * + * @return type + */ + @NotNull + @Schema( + name = "type", + description = "Error type identifier", + requiredMode = Schema.RequiredMode.REQUIRED) + @JsonProperty("type") + public TypeEnum getType() { + return type; + } + + public void setType(TypeEnum type) { + this.type = type; + } + + public TableVersionNotFoundError detail(String detail) { + this.detail = detail; + return this; + } + + /** + * Detailed error explanation + * + * @return detail + */ + @Schema( + name = "detail", + description = "Detailed error explanation", + requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("detail") + public String getDetail() { + return detail; + } + + public void setDetail(String detail) { + this.detail = detail; + } + + public TableVersionNotFoundError instance(String instance) { + this.instance = instance; + return this; + } + + /** + * Specific occurrence identifier + * + * @return instance + */ + @Schema( + name = "instance", + description = "Specific occurrence identifier", + requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("instance") + public String getInstance() { + return instance; + } + + public void setInstance(String instance) { + this.instance = instance; + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + TableVersionNotFoundError tableVersionNotFoundError = (TableVersionNotFoundError) o; + return Objects.equals(this.error, tableVersionNotFoundError.error) + && Objects.equals(this.code, tableVersionNotFoundError.code) + && Objects.equals(this.type, tableVersionNotFoundError.type) + && Objects.equals(this.detail, tableVersionNotFoundError.detail) + && Objects.equals(this.instance, tableVersionNotFoundError.instance); + } + + @Override + public int hashCode() { + return Objects.hash(error, code, type, detail, instance); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class TableVersionNotFoundError {\n"); + sb.append(" error: ").append(toIndentedString(error)).append("\n"); + sb.append(" code: ").append(toIndentedString(code)).append("\n"); + sb.append(" type: ").append(toIndentedString(type)).append("\n"); + sb.append(" detail: ").append(toIndentedString(detail)).append("\n"); + sb.append(" instance: ").append(toIndentedString(instance)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} diff --git a/java/lance-namespace-springboot-server/src/main/java/org/lance/namespace/server/springboot/model/TransactionConflictError.java b/java/lance-namespace-springboot-server/src/main/java/org/lance/namespace/server/springboot/model/TransactionConflictError.java new file mode 100644 index 00000000..5cf03ec1 --- /dev/null +++ b/java/lance-namespace-springboot-server/src/main/java/org/lance/namespace/server/springboot/model/TransactionConflictError.java @@ -0,0 +1,280 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package org.lance.namespace.server.springboot.model; + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonValue; +import io.swagger.v3.oas.annotations.media.Schema; +import jakarta.annotation.Generated; +import jakarta.validation.constraints.*; + +import java.util.*; +import java.util.Objects; + +/** Transaction failed due to concurrent modification */ +@Schema( + name = "TransactionConflictError", + description = "Transaction failed due to concurrent modification") +@Generated( + value = "org.openapitools.codegen.languages.SpringCodegen", + comments = "Generator version: 7.12.0") +public class TransactionConflictError { + + private String error; + + /** HTTP status code */ + public enum CodeEnum { + NUMBER_409(409); + + private Integer value; + + CodeEnum(Integer value) { + this.value = value; + } + + @JsonValue + public Integer getValue() { + return value; + } + + @Override + public String toString() { + return String.valueOf(value); + } + + @JsonCreator + public static CodeEnum fromValue(Integer value) { + for (CodeEnum b : CodeEnum.values()) { + if (b.value.equals(value)) { + return b; + } + } + throw new IllegalArgumentException("Unexpected value '" + value + "'"); + } + } + + private CodeEnum code; + + /** Error type identifier */ + public enum TypeEnum { + LANCE_NAMESPACE_502("lance-namespace:502"); + + private String value; + + TypeEnum(String value) { + this.value = value; + } + + @JsonValue + public String getValue() { + return value; + } + + @Override + public String toString() { + return String.valueOf(value); + } + + @JsonCreator + public static TypeEnum fromValue(String value) { + for (TypeEnum b : TypeEnum.values()) { + if (b.value.equals(value)) { + return b; + } + } + throw new IllegalArgumentException("Unexpected value '" + value + "'"); + } + } + + private TypeEnum type; + + private String detail; + + private String instance; + + public TransactionConflictError() { + super(); + } + + /** Constructor with only required parameters */ + public TransactionConflictError(String error, CodeEnum code, TypeEnum type) { + this.error = error; + this.code = code; + this.type = type; + } + + public TransactionConflictError error(String error) { + this.error = error; + return this; + } + + /** + * Brief error message + * + * @return error + */ + @NotNull + @Schema( + name = "error", + example = "Transaction conflict", + description = "Brief error message", + requiredMode = Schema.RequiredMode.REQUIRED) + @JsonProperty("error") + public String getError() { + return error; + } + + public void setError(String error) { + this.error = error; + } + + public TransactionConflictError code(CodeEnum code) { + this.code = code; + return this; + } + + /** + * HTTP status code + * + * @return code + */ + @NotNull + @Schema( + name = "code", + description = "HTTP status code", + requiredMode = Schema.RequiredMode.REQUIRED) + @JsonProperty("code") + public CodeEnum getCode() { + return code; + } + + public void setCode(CodeEnum code) { + this.code = code; + } + + public TransactionConflictError type(TypeEnum type) { + this.type = type; + return this; + } + + /** + * Error type identifier + * + * @return type + */ + @NotNull + @Schema( + name = "type", + description = "Error type identifier", + requiredMode = Schema.RequiredMode.REQUIRED) + @JsonProperty("type") + public TypeEnum getType() { + return type; + } + + public void setType(TypeEnum type) { + this.type = type; + } + + public TransactionConflictError detail(String detail) { + this.detail = detail; + return this; + } + + /** + * Detailed error explanation + * + * @return detail + */ + @Schema( + name = "detail", + description = "Detailed error explanation", + requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("detail") + public String getDetail() { + return detail; + } + + public void setDetail(String detail) { + this.detail = detail; + } + + public TransactionConflictError instance(String instance) { + this.instance = instance; + return this; + } + + /** + * Specific occurrence identifier + * + * @return instance + */ + @Schema( + name = "instance", + description = "Specific occurrence identifier", + requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("instance") + public String getInstance() { + return instance; + } + + public void setInstance(String instance) { + this.instance = instance; + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + TransactionConflictError transactionConflictError = (TransactionConflictError) o; + return Objects.equals(this.error, transactionConflictError.error) + && Objects.equals(this.code, transactionConflictError.code) + && Objects.equals(this.type, transactionConflictError.type) + && Objects.equals(this.detail, transactionConflictError.detail) + && Objects.equals(this.instance, transactionConflictError.instance); + } + + @Override + public int hashCode() { + return Objects.hash(error, code, type, detail, instance); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class TransactionConflictError {\n"); + sb.append(" error: ").append(toIndentedString(error)).append("\n"); + sb.append(" code: ").append(toIndentedString(code)).append("\n"); + sb.append(" type: ").append(toIndentedString(type)).append("\n"); + sb.append(" detail: ").append(toIndentedString(detail)).append("\n"); + sb.append(" instance: ").append(toIndentedString(instance)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} diff --git a/java/lance-namespace-springboot-server/src/main/java/org/lance/namespace/server/springboot/model/TransactionNotFoundError.java b/java/lance-namespace-springboot-server/src/main/java/org/lance/namespace/server/springboot/model/TransactionNotFoundError.java new file mode 100644 index 00000000..67d1a17e --- /dev/null +++ b/java/lance-namespace-springboot-server/src/main/java/org/lance/namespace/server/springboot/model/TransactionNotFoundError.java @@ -0,0 +1,278 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package org.lance.namespace.server.springboot.model; + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonValue; +import io.swagger.v3.oas.annotations.media.Schema; +import jakarta.annotation.Generated; +import jakarta.validation.constraints.*; + +import java.util.*; +import java.util.Objects; + +/** The requested transaction does not exist */ +@Schema(name = "TransactionNotFoundError", description = "The requested transaction does not exist") +@Generated( + value = "org.openapitools.codegen.languages.SpringCodegen", + comments = "Generator version: 7.12.0") +public class TransactionNotFoundError { + + private String error; + + /** HTTP status code */ + public enum CodeEnum { + NUMBER_404(404); + + private Integer value; + + CodeEnum(Integer value) { + this.value = value; + } + + @JsonValue + public Integer getValue() { + return value; + } + + @Override + public String toString() { + return String.valueOf(value); + } + + @JsonCreator + public static CodeEnum fromValue(Integer value) { + for (CodeEnum b : CodeEnum.values()) { + if (b.value.equals(value)) { + return b; + } + } + throw new IllegalArgumentException("Unexpected value '" + value + "'"); + } + } + + private CodeEnum code; + + /** Error type identifier */ + public enum TypeEnum { + LANCE_NAMESPACE_501("lance-namespace:501"); + + private String value; + + TypeEnum(String value) { + this.value = value; + } + + @JsonValue + public String getValue() { + return value; + } + + @Override + public String toString() { + return String.valueOf(value); + } + + @JsonCreator + public static TypeEnum fromValue(String value) { + for (TypeEnum b : TypeEnum.values()) { + if (b.value.equals(value)) { + return b; + } + } + throw new IllegalArgumentException("Unexpected value '" + value + "'"); + } + } + + private TypeEnum type; + + private String detail; + + private String instance; + + public TransactionNotFoundError() { + super(); + } + + /** Constructor with only required parameters */ + public TransactionNotFoundError(String error, CodeEnum code, TypeEnum type) { + this.error = error; + this.code = code; + this.type = type; + } + + public TransactionNotFoundError error(String error) { + this.error = error; + return this; + } + + /** + * Brief error message + * + * @return error + */ + @NotNull + @Schema( + name = "error", + example = "Transaction not found", + description = "Brief error message", + requiredMode = Schema.RequiredMode.REQUIRED) + @JsonProperty("error") + public String getError() { + return error; + } + + public void setError(String error) { + this.error = error; + } + + public TransactionNotFoundError code(CodeEnum code) { + this.code = code; + return this; + } + + /** + * HTTP status code + * + * @return code + */ + @NotNull + @Schema( + name = "code", + description = "HTTP status code", + requiredMode = Schema.RequiredMode.REQUIRED) + @JsonProperty("code") + public CodeEnum getCode() { + return code; + } + + public void setCode(CodeEnum code) { + this.code = code; + } + + public TransactionNotFoundError type(TypeEnum type) { + this.type = type; + return this; + } + + /** + * Error type identifier + * + * @return type + */ + @NotNull + @Schema( + name = "type", + description = "Error type identifier", + requiredMode = Schema.RequiredMode.REQUIRED) + @JsonProperty("type") + public TypeEnum getType() { + return type; + } + + public void setType(TypeEnum type) { + this.type = type; + } + + public TransactionNotFoundError detail(String detail) { + this.detail = detail; + return this; + } + + /** + * Detailed error explanation + * + * @return detail + */ + @Schema( + name = "detail", + description = "Detailed error explanation", + requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("detail") + public String getDetail() { + return detail; + } + + public void setDetail(String detail) { + this.detail = detail; + } + + public TransactionNotFoundError instance(String instance) { + this.instance = instance; + return this; + } + + /** + * Specific occurrence identifier + * + * @return instance + */ + @Schema( + name = "instance", + description = "Specific occurrence identifier", + requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("instance") + public String getInstance() { + return instance; + } + + public void setInstance(String instance) { + this.instance = instance; + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + TransactionNotFoundError transactionNotFoundError = (TransactionNotFoundError) o; + return Objects.equals(this.error, transactionNotFoundError.error) + && Objects.equals(this.code, transactionNotFoundError.code) + && Objects.equals(this.type, transactionNotFoundError.type) + && Objects.equals(this.detail, transactionNotFoundError.detail) + && Objects.equals(this.instance, transactionNotFoundError.instance); + } + + @Override + public int hashCode() { + return Objects.hash(error, code, type, detail, instance); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class TransactionNotFoundError {\n"); + sb.append(" error: ").append(toIndentedString(error)).append("\n"); + sb.append(" code: ").append(toIndentedString(code)).append("\n"); + sb.append(" type: ").append(toIndentedString(type)).append("\n"); + sb.append(" detail: ").append(toIndentedString(detail)).append("\n"); + sb.append(" instance: ").append(toIndentedString(instance)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} diff --git a/java/lance-namespace-springboot-server/src/main/java/org/lance/namespace/server/springboot/model/UnknownError.java b/java/lance-namespace-springboot-server/src/main/java/org/lance/namespace/server/springboot/model/UnknownError.java new file mode 100644 index 00000000..1b28ec9b --- /dev/null +++ b/java/lance-namespace-springboot-server/src/main/java/org/lance/namespace/server/springboot/model/UnknownError.java @@ -0,0 +1,278 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package org.lance.namespace.server.springboot.model; + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonValue; +import io.swagger.v3.oas.annotations.media.Schema; +import jakarta.annotation.Generated; +import jakarta.validation.constraints.*; + +import java.util.*; +import java.util.Objects; + +/** Unknown or unclassified error */ +@Schema(name = "UnknownError", description = "Unknown or unclassified error") +@Generated( + value = "org.openapitools.codegen.languages.SpringCodegen", + comments = "Generator version: 7.12.0") +public class UnknownError { + + private String error; + + /** HTTP status code */ + public enum CodeEnum { + NUMBER_500(500); + + private Integer value; + + CodeEnum(Integer value) { + this.value = value; + } + + @JsonValue + public Integer getValue() { + return value; + } + + @Override + public String toString() { + return String.valueOf(value); + } + + @JsonCreator + public static CodeEnum fromValue(Integer value) { + for (CodeEnum b : CodeEnum.values()) { + if (b.value.equals(value)) { + return b; + } + } + throw new IllegalArgumentException("Unexpected value '" + value + "'"); + } + } + + private CodeEnum code; + + /** Error type identifier */ + public enum TypeEnum { + LANCE_NAMESPACE_0("lance-namespace:0"); + + private String value; + + TypeEnum(String value) { + this.value = value; + } + + @JsonValue + public String getValue() { + return value; + } + + @Override + public String toString() { + return String.valueOf(value); + } + + @JsonCreator + public static TypeEnum fromValue(String value) { + for (TypeEnum b : TypeEnum.values()) { + if (b.value.equals(value)) { + return b; + } + } + throw new IllegalArgumentException("Unexpected value '" + value + "'"); + } + } + + private TypeEnum type; + + private String detail; + + private String instance; + + public UnknownError() { + super(); + } + + /** Constructor with only required parameters */ + public UnknownError(String error, CodeEnum code, TypeEnum type) { + this.error = error; + this.code = code; + this.type = type; + } + + public UnknownError error(String error) { + this.error = error; + return this; + } + + /** + * Brief error message + * + * @return error + */ + @NotNull + @Schema( + name = "error", + example = "Unknown error", + description = "Brief error message", + requiredMode = Schema.RequiredMode.REQUIRED) + @JsonProperty("error") + public String getError() { + return error; + } + + public void setError(String error) { + this.error = error; + } + + public UnknownError code(CodeEnum code) { + this.code = code; + return this; + } + + /** + * HTTP status code + * + * @return code + */ + @NotNull + @Schema( + name = "code", + description = "HTTP status code", + requiredMode = Schema.RequiredMode.REQUIRED) + @JsonProperty("code") + public CodeEnum getCode() { + return code; + } + + public void setCode(CodeEnum code) { + this.code = code; + } + + public UnknownError type(TypeEnum type) { + this.type = type; + return this; + } + + /** + * Error type identifier + * + * @return type + */ + @NotNull + @Schema( + name = "type", + description = "Error type identifier", + requiredMode = Schema.RequiredMode.REQUIRED) + @JsonProperty("type") + public TypeEnum getType() { + return type; + } + + public void setType(TypeEnum type) { + this.type = type; + } + + public UnknownError detail(String detail) { + this.detail = detail; + return this; + } + + /** + * Detailed error explanation + * + * @return detail + */ + @Schema( + name = "detail", + description = "Detailed error explanation", + requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("detail") + public String getDetail() { + return detail; + } + + public void setDetail(String detail) { + this.detail = detail; + } + + public UnknownError instance(String instance) { + this.instance = instance; + return this; + } + + /** + * Specific occurrence identifier + * + * @return instance + */ + @Schema( + name = "instance", + description = "Specific occurrence identifier", + requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("instance") + public String getInstance() { + return instance; + } + + public void setInstance(String instance) { + this.instance = instance; + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + UnknownError unknownError = (UnknownError) o; + return Objects.equals(this.error, unknownError.error) + && Objects.equals(this.code, unknownError.code) + && Objects.equals(this.type, unknownError.type) + && Objects.equals(this.detail, unknownError.detail) + && Objects.equals(this.instance, unknownError.instance); + } + + @Override + public int hashCode() { + return Objects.hash(error, code, type, detail, instance); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class UnknownError {\n"); + sb.append(" error: ").append(toIndentedString(error)).append("\n"); + sb.append(" code: ").append(toIndentedString(code)).append("\n"); + sb.append(" type: ").append(toIndentedString(type)).append("\n"); + sb.append(" detail: ").append(toIndentedString(detail)).append("\n"); + sb.append(" instance: ").append(toIndentedString(instance)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} diff --git a/java/lance-namespace-springboot-server/src/main/java/org/lance/namespace/server/springboot/model/UpdateTable400Response.java b/java/lance-namespace-springboot-server/src/main/java/org/lance/namespace/server/springboot/model/UpdateTable400Response.java new file mode 100644 index 00000000..4982b38d --- /dev/null +++ b/java/lance-namespace-springboot-server/src/main/java/org/lance/namespace/server/springboot/model/UpdateTable400Response.java @@ -0,0 +1,24 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package org.lance.namespace.server.springboot.model; + +import jakarta.annotation.Generated; +import jakarta.validation.constraints.*; + +import java.util.*; + +@Generated( + value = "org.openapitools.codegen.languages.SpringCodegen", + comments = "Generator version: 7.12.0") +public interface UpdateTable400Response {} diff --git a/java/lance-namespace-springboot-server/src/main/java/org/lance/namespace/server/springboot/model/UpdateTableTag404Response.java b/java/lance-namespace-springboot-server/src/main/java/org/lance/namespace/server/springboot/model/UpdateTableTag404Response.java new file mode 100644 index 00000000..db3fe683 --- /dev/null +++ b/java/lance-namespace-springboot-server/src/main/java/org/lance/namespace/server/springboot/model/UpdateTableTag404Response.java @@ -0,0 +1,24 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package org.lance.namespace.server.springboot.model; + +import jakarta.annotation.Generated; +import jakarta.validation.constraints.*; + +import java.util.*; + +@Generated( + value = "org.openapitools.codegen.languages.SpringCodegen", + comments = "Generator version: 7.12.0") +public interface UpdateTableTag404Response {} diff --git a/python/lance_namespace_urllib3_client/README.md b/python/lance_namespace_urllib3_client/README.md index 86945617..b0af84ad 100644 --- a/python/lance_namespace_urllib3_client/README.md +++ b/python/lance_namespace_urllib3_client/README.md @@ -186,8 +186,10 @@ Class | Method | HTTP request | Description ## Documentation For Models + - [AlterTableAddColumns400Response](docs/AlterTableAddColumns400Response.md) - [AlterTableAddColumnsRequest](docs/AlterTableAddColumnsRequest.md) - [AlterTableAddColumnsResponse](docs/AlterTableAddColumnsResponse.md) + - [AlterTableAlterColumns400Response](docs/AlterTableAlterColumns400Response.md) - [AlterTableAlterColumnsRequest](docs/AlterTableAlterColumnsRequest.md) - [AlterTableAlterColumnsResponse](docs/AlterTableAlterColumnsResponse.md) - [AlterTableDropColumnsRequest](docs/AlterTableDropColumnsRequest.md) @@ -206,13 +208,17 @@ Class | Method | HTTP request | Description - [CountTableRowsRequest](docs/CountTableRowsRequest.md) - [CreateEmptyTableRequest](docs/CreateEmptyTableRequest.md) - [CreateEmptyTableResponse](docs/CreateEmptyTableResponse.md) + - [CreateNamespace400Response](docs/CreateNamespace400Response.md) - [CreateNamespaceRequest](docs/CreateNamespaceRequest.md) - [CreateNamespaceResponse](docs/CreateNamespaceResponse.md) + - [CreateTable400Response](docs/CreateTable400Response.md) + - [CreateTableIndex400Response](docs/CreateTableIndex400Response.md) - [CreateTableIndexRequest](docs/CreateTableIndexRequest.md) - [CreateTableIndexResponse](docs/CreateTableIndexResponse.md) - [CreateTableRequest](docs/CreateTableRequest.md) - [CreateTableResponse](docs/CreateTableResponse.md) - [CreateTableTagRequest](docs/CreateTableTagRequest.md) + - [DeleteFromTable400Response](docs/DeleteFromTable400Response.md) - [DeleteFromTableRequest](docs/DeleteFromTableRequest.md) - [DeleteFromTableResponse](docs/DeleteFromTableResponse.md) - [DeleteTableTagRequest](docs/DeleteTableTagRequest.md) @@ -220,6 +226,7 @@ Class | Method | HTTP request | Description - [DeregisterTableResponse](docs/DeregisterTableResponse.md) - [DescribeNamespaceRequest](docs/DescribeNamespaceRequest.md) - [DescribeNamespaceResponse](docs/DescribeNamespaceResponse.md) + - [DescribeTableIndexStats404Response](docs/DescribeTableIndexStats404Response.md) - [DescribeTableIndexStatsRequest](docs/DescribeTableIndexStatsRequest.md) - [DescribeTableIndexStatsResponse](docs/DescribeTableIndexStatsResponse.md) - [DescribeTableRequest](docs/DescribeTableRequest.md) @@ -238,11 +245,18 @@ Class | Method | HTTP request | Description - [FtsQuery](docs/FtsQuery.md) - [GetTableStatsRequest](docs/GetTableStatsRequest.md) - [GetTableStatsResponse](docs/GetTableStatsResponse.md) + - [GetTableTagVersion404Response](docs/GetTableTagVersion404Response.md) - [GetTableTagVersionRequest](docs/GetTableTagVersionRequest.md) - [GetTableTagVersionResponse](docs/GetTableTagVersionResponse.md) - [IndexContent](docs/IndexContent.md) + - [InsertIntoTable400Response](docs/InsertIntoTable400Response.md) - [InsertIntoTableRequest](docs/InsertIntoTableRequest.md) - [InsertIntoTableResponse](docs/InsertIntoTableResponse.md) + - [InvalidIdentifierError](docs/InvalidIdentifierError.md) + - [InvalidRequestError](docs/InvalidRequestError.md) + - [InvalidSqlExpressionError](docs/InvalidSqlExpressionError.md) + - [InvalidTableIndexConfigurationError](docs/InvalidTableIndexConfigurationError.md) + - [InvalidTableSchemaError](docs/InvalidTableSchemaError.md) - [JsonArrowDataType](docs/JsonArrowDataType.md) - [JsonArrowField](docs/JsonArrowField.md) - [JsonArrowSchema](docs/JsonArrowSchema.md) @@ -256,30 +270,50 @@ Class | Method | HTTP request | Description - [ListTablesRequest](docs/ListTablesRequest.md) - [ListTablesResponse](docs/ListTablesResponse.md) - [MatchQuery](docs/MatchQuery.md) + - [MergeInsertIntoTable400Response](docs/MergeInsertIntoTable400Response.md) - [MergeInsertIntoTableRequest](docs/MergeInsertIntoTableRequest.md) - [MergeInsertIntoTableResponse](docs/MergeInsertIntoTableResponse.md) - [MultiMatchQuery](docs/MultiMatchQuery.md) + - [NamespaceAlreadyExistsError](docs/NamespaceAlreadyExistsError.md) - [NamespaceExistsRequest](docs/NamespaceExistsRequest.md) + - [NamespaceNotEmptyError](docs/NamespaceNotEmptyError.md) + - [NamespaceNotFoundError](docs/NamespaceNotFoundError.md) - [NewColumnTransform](docs/NewColumnTransform.md) - [Operator](docs/Operator.md) + - [ParentNamespaceNotFoundError](docs/ParentNamespaceNotFoundError.md) - [PhraseQuery](docs/PhraseQuery.md) - [QueryTableRequest](docs/QueryTableRequest.md) - [QueryTableRequestFullTextQuery](docs/QueryTableRequestFullTextQuery.md) - [QueryTableRequestVector](docs/QueryTableRequestVector.md) - [RegisterTableRequest](docs/RegisterTableRequest.md) - [RegisterTableResponse](docs/RegisterTableResponse.md) + - [RestoreTable404Response](docs/RestoreTable404Response.md) - [RestoreTableRequest](docs/RestoreTableRequest.md) - [RestoreTableResponse](docs/RestoreTableResponse.md) - [SetPropertyMode](docs/SetPropertyMode.md) - [StringFtsQuery](docs/StringFtsQuery.md) - [StructuredFtsQuery](docs/StructuredFtsQuery.md) + - [TableAlreadyExistsError](docs/TableAlreadyExistsError.md) + - [TableColumnNotFoundError](docs/TableColumnNotFoundError.md) - [TableExistsRequest](docs/TableExistsRequest.md) + - [TableIndexAlreadyExistsError](docs/TableIndexAlreadyExistsError.md) + - [TableIndexNotFoundError](docs/TableIndexNotFoundError.md) + - [TableNotFoundError](docs/TableNotFoundError.md) + - [TableSchemaMismatchError](docs/TableSchemaMismatchError.md) + - [TableTagAlreadyExistsError](docs/TableTagAlreadyExistsError.md) + - [TableTagNotFoundError](docs/TableTagNotFoundError.md) - [TableVersion](docs/TableVersion.md) + - [TableVersionNotFoundError](docs/TableVersionNotFoundError.md) - [TagContents](docs/TagContents.md) + - [TransactionConflictError](docs/TransactionConflictError.md) + - [TransactionNotFoundError](docs/TransactionNotFoundError.md) - [TransactionStatus](docs/TransactionStatus.md) + - [UnknownError](docs/UnknownError.md) - [UnsetPropertyMode](docs/UnsetPropertyMode.md) + - [UpdateTable400Response](docs/UpdateTable400Response.md) - [UpdateTableRequest](docs/UpdateTableRequest.md) - [UpdateTableResponse](docs/UpdateTableResponse.md) + - [UpdateTableTag404Response](docs/UpdateTableTag404Response.md) - [UpdateTableTagRequest](docs/UpdateTableTagRequest.md) diff --git a/python/lance_namespace_urllib3_client/docs/AlterTableAddColumns400Response.md b/python/lance_namespace_urllib3_client/docs/AlterTableAddColumns400Response.md new file mode 100644 index 00000000..43639709 --- /dev/null +++ b/python/lance_namespace_urllib3_client/docs/AlterTableAddColumns400Response.md @@ -0,0 +1,33 @@ +# AlterTableAddColumns400Response + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**error** | **str** | Brief error message | +**code** | **int** | HTTP status code | +**type** | **str** | Error type identifier | +**detail** | **str** | Detailed error explanation | [optional] +**instance** | **str** | Specific occurrence identifier | [optional] + +## Example + +```python +from lance_namespace_urllib3_client.models.alter_table_add_columns400_response import AlterTableAddColumns400Response + +# TODO update the JSON string below +json = "{}" +# create an instance of AlterTableAddColumns400Response from a JSON string +alter_table_add_columns400_response_instance = AlterTableAddColumns400Response.from_json(json) +# print the JSON string representation of the object +print(AlterTableAddColumns400Response.to_json()) + +# convert the object into a dict +alter_table_add_columns400_response_dict = alter_table_add_columns400_response_instance.to_dict() +# create an instance of AlterTableAddColumns400Response from a dict +alter_table_add_columns400_response_from_dict = AlterTableAddColumns400Response.from_dict(alter_table_add_columns400_response_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/python/lance_namespace_urllib3_client/docs/AlterTableAlterColumns400Response.md b/python/lance_namespace_urllib3_client/docs/AlterTableAlterColumns400Response.md new file mode 100644 index 00000000..ce8fb52c --- /dev/null +++ b/python/lance_namespace_urllib3_client/docs/AlterTableAlterColumns400Response.md @@ -0,0 +1,33 @@ +# AlterTableAlterColumns400Response + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**error** | **str** | Brief error message | +**code** | **int** | HTTP status code | +**type** | **str** | Error type identifier | +**detail** | **str** | Detailed error explanation | [optional] +**instance** | **str** | Specific occurrence identifier | [optional] + +## Example + +```python +from lance_namespace_urllib3_client.models.alter_table_alter_columns400_response import AlterTableAlterColumns400Response + +# TODO update the JSON string below +json = "{}" +# create an instance of AlterTableAlterColumns400Response from a JSON string +alter_table_alter_columns400_response_instance = AlterTableAlterColumns400Response.from_json(json) +# print the JSON string representation of the object +print(AlterTableAlterColumns400Response.to_json()) + +# convert the object into a dict +alter_table_alter_columns400_response_dict = alter_table_alter_columns400_response_instance.to_dict() +# create an instance of AlterTableAlterColumns400Response from a dict +alter_table_alter_columns400_response_from_dict = AlterTableAlterColumns400Response.from_dict(alter_table_alter_columns400_response_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/python/lance_namespace_urllib3_client/docs/CreateNamespace400Response.md b/python/lance_namespace_urllib3_client/docs/CreateNamespace400Response.md new file mode 100644 index 00000000..bea76d4b --- /dev/null +++ b/python/lance_namespace_urllib3_client/docs/CreateNamespace400Response.md @@ -0,0 +1,33 @@ +# CreateNamespace400Response + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**error** | **str** | Brief error message | +**code** | **int** | HTTP status code | +**type** | **str** | Error type identifier | +**detail** | **str** | Detailed error explanation | [optional] +**instance** | **str** | Specific occurrence identifier | [optional] + +## Example + +```python +from lance_namespace_urllib3_client.models.create_namespace400_response import CreateNamespace400Response + +# TODO update the JSON string below +json = "{}" +# create an instance of CreateNamespace400Response from a JSON string +create_namespace400_response_instance = CreateNamespace400Response.from_json(json) +# print the JSON string representation of the object +print(CreateNamespace400Response.to_json()) + +# convert the object into a dict +create_namespace400_response_dict = create_namespace400_response_instance.to_dict() +# create an instance of CreateNamespace400Response from a dict +create_namespace400_response_from_dict = CreateNamespace400Response.from_dict(create_namespace400_response_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/python/lance_namespace_urllib3_client/docs/CreateTable400Response.md b/python/lance_namespace_urllib3_client/docs/CreateTable400Response.md new file mode 100644 index 00000000..bbc599dd --- /dev/null +++ b/python/lance_namespace_urllib3_client/docs/CreateTable400Response.md @@ -0,0 +1,33 @@ +# CreateTable400Response + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**error** | **str** | Brief error message | +**code** | **int** | HTTP status code | +**type** | **str** | Error type identifier | +**detail** | **str** | Detailed error explanation | [optional] +**instance** | **str** | Specific occurrence identifier | [optional] + +## Example + +```python +from lance_namespace_urllib3_client.models.create_table400_response import CreateTable400Response + +# TODO update the JSON string below +json = "{}" +# create an instance of CreateTable400Response from a JSON string +create_table400_response_instance = CreateTable400Response.from_json(json) +# print the JSON string representation of the object +print(CreateTable400Response.to_json()) + +# convert the object into a dict +create_table400_response_dict = create_table400_response_instance.to_dict() +# create an instance of CreateTable400Response from a dict +create_table400_response_from_dict = CreateTable400Response.from_dict(create_table400_response_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/python/lance_namespace_urllib3_client/docs/CreateTableIndex400Response.md b/python/lance_namespace_urllib3_client/docs/CreateTableIndex400Response.md new file mode 100644 index 00000000..6c328c26 --- /dev/null +++ b/python/lance_namespace_urllib3_client/docs/CreateTableIndex400Response.md @@ -0,0 +1,33 @@ +# CreateTableIndex400Response + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**error** | **str** | Brief error message | +**code** | **int** | HTTP status code | +**type** | **str** | Error type identifier | +**detail** | **str** | Detailed error explanation | [optional] +**instance** | **str** | Specific occurrence identifier | [optional] + +## Example + +```python +from lance_namespace_urllib3_client.models.create_table_index400_response import CreateTableIndex400Response + +# TODO update the JSON string below +json = "{}" +# create an instance of CreateTableIndex400Response from a JSON string +create_table_index400_response_instance = CreateTableIndex400Response.from_json(json) +# print the JSON string representation of the object +print(CreateTableIndex400Response.to_json()) + +# convert the object into a dict +create_table_index400_response_dict = create_table_index400_response_instance.to_dict() +# create an instance of CreateTableIndex400Response from a dict +create_table_index400_response_from_dict = CreateTableIndex400Response.from_dict(create_table_index400_response_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/python/lance_namespace_urllib3_client/docs/DataApi.md b/python/lance_namespace_urllib3_client/docs/DataApi.md index cc77f192..2528b7a3 100644 --- a/python/lance_namespace_urllib3_client/docs/DataApi.md +++ b/python/lance_namespace_urllib3_client/docs/DataApi.md @@ -87,12 +87,12 @@ No authorization required | Status code | Description | Response headers | |-------------|-------------|------------------| **200** | Add columns operation result | - | -**400** | Indicates a bad request error. It could be caused by an unexpected request body format or other forms of request validation failure, such as invalid json. Usually serves application/json content, although in some cases simple text/plain content might be returned by the server's middleware. | - | +**400** | Bad request - invalid request, invalid schema, or invalid SQL | - | **401** | Unauthorized. The request lacks valid authentication credentials for the operation. | - | **403** | Forbidden. Authenticated user does not have the necessary permissions. | - | -**404** | A server-side problem that means can not find the specified resource. | - | +**404** | The requested table does not exist | - | **503** | The service is not ready to handle the request. The client should wait and retry. The service may additionally send a Retry-After header to indicate when to retry. | - | -**5XX** | A server-side problem that might not be addressable from the client side. Used for server 5xx errors without more specific documentation in individual routes. | - | +**5XX** | Unknown or unclassified error | - | [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -168,12 +168,12 @@ No authorization required | Status code | Description | Response headers | |-------------|-------------|------------------| **200** | Query execution plan analysis | - | -**400** | Indicates a bad request error. It could be caused by an unexpected request body format or other forms of request validation failure, such as invalid json. Usually serves application/json content, although in some cases simple text/plain content might be returned by the server's middleware. | - | +**400** | Bad request - invalid request or invalid SQL | - | **401** | Unauthorized. The request lacks valid authentication credentials for the operation. | - | **403** | Forbidden. Authenticated user does not have the necessary permissions. | - | -**404** | A server-side problem that means can not find the specified resource. | - | +**404** | The requested table does not exist | - | **503** | The service is not ready to handle the request. The client should wait and retry. The service may additionally send a Retry-After header to indicate when to retry. | - | -**5XX** | A server-side problem that might not be addressable from the client side. Used for server 5xx errors without more specific documentation in individual routes. | - | +**5XX** | Unknown or unclassified error | - | [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -247,12 +247,12 @@ No authorization required | Status code | Description | Response headers | |-------------|-------------|------------------| **200** | Result of counting rows in a table | - | -**400** | Indicates a bad request error. It could be caused by an unexpected request body format or other forms of request validation failure, such as invalid json. Usually serves application/json content, although in some cases simple text/plain content might be returned by the server's middleware. | - | +**400** | Bad request - invalid request or invalid SQL | - | **401** | Unauthorized. The request lacks valid authentication credentials for the operation. | - | **403** | Forbidden. Authenticated user does not have the necessary permissions. | - | -**404** | A server-side problem that means can not find the specified resource. | - | +**404** | The requested table does not exist | - | **503** | The service is not ready to handle the request. The client should wait and retry. The service may additionally send a Retry-After header to indicate when to retry. | - | -**5XX** | A server-side problem that might not be addressable from the client side. Used for server 5xx errors without more specific documentation in individual routes. | - | +**5XX** | Unknown or unclassified error | - | [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -343,12 +343,13 @@ No authorization required | Status code | Description | Response headers | |-------------|-------------|------------------| **200** | Table properties result when creating a table | - | -**400** | Indicates a bad request error. It could be caused by an unexpected request body format or other forms of request validation failure, such as invalid json. Usually serves application/json content, although in some cases simple text/plain content might be returned by the server's middleware. | - | +**400** | Bad request - invalid request or invalid schema | - | **401** | Unauthorized. The request lacks valid authentication credentials for the operation. | - | **403** | Forbidden. Authenticated user does not have the necessary permissions. | - | -**404** | A server-side problem that means can not find the specified resource. | - | +**404** | The parent namespace does not exist | - | +**409** | A table with the same name already exists | - | **503** | The service is not ready to handle the request. The client should wait and retry. The service may additionally send a Retry-After header to indicate when to retry. | - | -**5XX** | A server-side problem that might not be addressable from the client side. Used for server 5xx errors without more specific documentation in individual routes. | - | +**5XX** | Unknown or unclassified error | - | [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -423,12 +424,12 @@ No authorization required | Status code | Description | Response headers | |-------------|-------------|------------------| **200** | Delete successful | - | -**400** | Indicates a bad request error. It could be caused by an unexpected request body format or other forms of request validation failure, such as invalid json. Usually serves application/json content, although in some cases simple text/plain content might be returned by the server's middleware. | - | +**400** | Bad request - invalid request or invalid SQL | - | **401** | Unauthorized. The request lacks valid authentication credentials for the operation. | - | **403** | Forbidden. Authenticated user does not have the necessary permissions. | - | -**404** | A server-side problem that means can not find the specified resource. | - | +**404** | The requested table does not exist | - | **503** | The service is not ready to handle the request. The client should wait and retry. The service may additionally send a Retry-After header to indicate when to retry. | - | -**5XX** | A server-side problem that might not be addressable from the client side. Used for server 5xx errors without more specific documentation in individual routes. | - | +**5XX** | Unknown or unclassified error | - | [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -504,12 +505,12 @@ No authorization required | Status code | Description | Response headers | |-------------|-------------|------------------| **200** | Query execution plan explanation | - | -**400** | Indicates a bad request error. It could be caused by an unexpected request body format or other forms of request validation failure, such as invalid json. Usually serves application/json content, although in some cases simple text/plain content might be returned by the server's middleware. | - | +**400** | Bad request - invalid request or invalid SQL | - | **401** | Unauthorized. The request lacks valid authentication credentials for the operation. | - | **403** | Forbidden. Authenticated user does not have the necessary permissions. | - | -**404** | A server-side problem that means can not find the specified resource. | - | +**404** | The requested table does not exist | - | **503** | The service is not ready to handle the request. The client should wait and retry. The service may additionally send a Retry-After header to indicate when to retry. | - | -**5XX** | A server-side problem that might not be addressable from the client side. Used for server 5xx errors without more specific documentation in individual routes. | - | +**5XX** | Unknown or unclassified error | - | [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -591,12 +592,12 @@ No authorization required | Status code | Description | Response headers | |-------------|-------------|------------------| **200** | Result of inserting records into a table | - | -**400** | Indicates a bad request error. It could be caused by an unexpected request body format or other forms of request validation failure, such as invalid json. Usually serves application/json content, although in some cases simple text/plain content might be returned by the server's middleware. | - | +**400** | Bad request - invalid request or schema mismatch | - | **401** | Unauthorized. The request lacks valid authentication credentials for the operation. | - | **403** | Forbidden. Authenticated user does not have the necessary permissions. | - | -**404** | A server-side problem that means can not find the specified resource. | - | +**404** | The requested table does not exist | - | **503** | The service is not ready to handle the request. The client should wait and retry. The service may additionally send a Retry-After header to indicate when to retry. | - | -**5XX** | A server-side problem that might not be addressable from the client side. Used for server 5xx errors without more specific documentation in individual routes. | - | +**5XX** | Unknown or unclassified error | - | [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -696,12 +697,12 @@ No authorization required | Status code | Description | Response headers | |-------------|-------------|------------------| **200** | Result of merge insert operation | - | -**400** | Indicates a bad request error. It could be caused by an unexpected request body format or other forms of request validation failure, such as invalid json. Usually serves application/json content, although in some cases simple text/plain content might be returned by the server's middleware. | - | +**400** | Bad request - invalid request, column not found, or schema mismatch | - | **401** | Unauthorized. The request lacks valid authentication credentials for the operation. | - | **403** | Forbidden. Authenticated user does not have the necessary permissions. | - | -**404** | A server-side problem that means can not find the specified resource. | - | +**404** | The requested table does not exist | - | **503** | The service is not ready to handle the request. The client should wait and retry. The service may additionally send a Retry-After header to indicate when to retry. | - | -**5XX** | A server-side problem that might not be addressable from the client side. Used for server 5xx errors without more specific documentation in individual routes. | - | +**5XX** | Unknown or unclassified error | - | [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -776,12 +777,12 @@ No authorization required | Status code | Description | Response headers | |-------------|-------------|------------------| **200** | Query results in Arrow IPC file or stream format | - | -**400** | Indicates a bad request error. It could be caused by an unexpected request body format or other forms of request validation failure, such as invalid json. Usually serves application/json content, although in some cases simple text/plain content might be returned by the server's middleware. | - | +**400** | Bad request - invalid request or invalid SQL | - | **401** | Unauthorized. The request lacks valid authentication credentials for the operation. | - | **403** | Forbidden. Authenticated user does not have the necessary permissions. | - | -**404** | A server-side problem that means can not find the specified resource. | - | +**404** | The requested table does not exist | - | **503** | The service is not ready to handle the request. The client should wait and retry. The service may additionally send a Retry-After header to indicate when to retry. | - | -**5XX** | A server-side problem that might not be addressable from the client side. Used for server 5xx errors without more specific documentation in individual routes. | - | +**5XX** | Unknown or unclassified error | - | [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -856,12 +857,12 @@ No authorization required | Status code | Description | Response headers | |-------------|-------------|------------------| **200** | Update successful | - | -**400** | Indicates a bad request error. It could be caused by an unexpected request body format or other forms of request validation failure, such as invalid json. Usually serves application/json content, although in some cases simple text/plain content might be returned by the server's middleware. | - | +**400** | Bad request - invalid request, column not found, or invalid SQL | - | **401** | Unauthorized. The request lacks valid authentication credentials for the operation. | - | **403** | Forbidden. Authenticated user does not have the necessary permissions. | - | -**404** | A server-side problem that means can not find the specified resource. | - | +**404** | The requested table does not exist | - | **503** | The service is not ready to handle the request. The client should wait and retry. The service may additionally send a Retry-After header to indicate when to retry. | - | -**5XX** | A server-side problem that might not be addressable from the client side. Used for server 5xx errors without more specific documentation in individual routes. | - | +**5XX** | Unknown or unclassified error | - | [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) diff --git a/python/lance_namespace_urllib3_client/docs/DeleteFromTable400Response.md b/python/lance_namespace_urllib3_client/docs/DeleteFromTable400Response.md new file mode 100644 index 00000000..afc334a5 --- /dev/null +++ b/python/lance_namespace_urllib3_client/docs/DeleteFromTable400Response.md @@ -0,0 +1,33 @@ +# DeleteFromTable400Response + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**error** | **str** | Brief error message | +**code** | **int** | HTTP status code | +**type** | **str** | Error type identifier | +**detail** | **str** | Detailed error explanation | [optional] +**instance** | **str** | Specific occurrence identifier | [optional] + +## Example + +```python +from lance_namespace_urllib3_client.models.delete_from_table400_response import DeleteFromTable400Response + +# TODO update the JSON string below +json = "{}" +# create an instance of DeleteFromTable400Response from a JSON string +delete_from_table400_response_instance = DeleteFromTable400Response.from_json(json) +# print the JSON string representation of the object +print(DeleteFromTable400Response.to_json()) + +# convert the object into a dict +delete_from_table400_response_dict = delete_from_table400_response_instance.to_dict() +# create an instance of DeleteFromTable400Response from a dict +delete_from_table400_response_from_dict = DeleteFromTable400Response.from_dict(delete_from_table400_response_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/python/lance_namespace_urllib3_client/docs/DescribeTableIndexStats404Response.md b/python/lance_namespace_urllib3_client/docs/DescribeTableIndexStats404Response.md new file mode 100644 index 00000000..717482b7 --- /dev/null +++ b/python/lance_namespace_urllib3_client/docs/DescribeTableIndexStats404Response.md @@ -0,0 +1,33 @@ +# DescribeTableIndexStats404Response + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**error** | **str** | Brief error message | +**code** | **int** | HTTP status code | +**type** | **str** | Error type identifier | +**detail** | **str** | Detailed error explanation | [optional] +**instance** | **str** | Specific occurrence identifier | [optional] + +## Example + +```python +from lance_namespace_urllib3_client.models.describe_table_index_stats404_response import DescribeTableIndexStats404Response + +# TODO update the JSON string below +json = "{}" +# create an instance of DescribeTableIndexStats404Response from a JSON string +describe_table_index_stats404_response_instance = DescribeTableIndexStats404Response.from_json(json) +# print the JSON string representation of the object +print(DescribeTableIndexStats404Response.to_json()) + +# convert the object into a dict +describe_table_index_stats404_response_dict = describe_table_index_stats404_response_instance.to_dict() +# create an instance of DescribeTableIndexStats404Response from a dict +describe_table_index_stats404_response_from_dict = DescribeTableIndexStats404Response.from_dict(describe_table_index_stats404_response_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/python/lance_namespace_urllib3_client/docs/GetTableTagVersion404Response.md b/python/lance_namespace_urllib3_client/docs/GetTableTagVersion404Response.md new file mode 100644 index 00000000..24b656c5 --- /dev/null +++ b/python/lance_namespace_urllib3_client/docs/GetTableTagVersion404Response.md @@ -0,0 +1,33 @@ +# GetTableTagVersion404Response + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**error** | **str** | Brief error message | +**code** | **int** | HTTP status code | +**type** | **str** | Error type identifier | +**detail** | **str** | Detailed error explanation | [optional] +**instance** | **str** | Specific occurrence identifier | [optional] + +## Example + +```python +from lance_namespace_urllib3_client.models.get_table_tag_version404_response import GetTableTagVersion404Response + +# TODO update the JSON string below +json = "{}" +# create an instance of GetTableTagVersion404Response from a JSON string +get_table_tag_version404_response_instance = GetTableTagVersion404Response.from_json(json) +# print the JSON string representation of the object +print(GetTableTagVersion404Response.to_json()) + +# convert the object into a dict +get_table_tag_version404_response_dict = get_table_tag_version404_response_instance.to_dict() +# create an instance of GetTableTagVersion404Response from a dict +get_table_tag_version404_response_from_dict = GetTableTagVersion404Response.from_dict(get_table_tag_version404_response_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/python/lance_namespace_urllib3_client/docs/IndexApi.md b/python/lance_namespace_urllib3_client/docs/IndexApi.md index 875f0cec..310f8434 100644 --- a/python/lance_namespace_urllib3_client/docs/IndexApi.md +++ b/python/lance_namespace_urllib3_client/docs/IndexApi.md @@ -84,12 +84,13 @@ No authorization required | Status code | Description | Response headers | |-------------|-------------|------------------| **200** | Index created successfully | - | -**400** | Indicates a bad request error. It could be caused by an unexpected request body format or other forms of request validation failure, such as invalid json. Usually serves application/json content, although in some cases simple text/plain content might be returned by the server's middleware. | - | +**400** | Bad request - invalid request, column not found, or invalid index config | - | **401** | Unauthorized. The request lacks valid authentication credentials for the operation. | - | **403** | Forbidden. Authenticated user does not have the necessary permissions. | - | -**404** | A server-side problem that means can not find the specified resource. | - | +**404** | The requested table does not exist | - | +**409** | An index with the same name already exists | - | **503** | The service is not ready to handle the request. The client should wait and retry. The service may additionally send a Retry-After header to indicate when to retry. | - | -**5XX** | A server-side problem that might not be addressable from the client side. Used for server 5xx errors without more specific documentation in individual routes. | - | +**5XX** | Unknown or unclassified error | - | [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -167,12 +168,12 @@ No authorization required | Status code | Description | Response headers | |-------------|-------------|------------------| **200** | Index statistics | - | -**400** | Indicates a bad request error. It could be caused by an unexpected request body format or other forms of request validation failure, such as invalid json. Usually serves application/json content, although in some cases simple text/plain content might be returned by the server's middleware. | - | +**400** | Malformed request or validation failure | - | **401** | Unauthorized. The request lacks valid authentication credentials for the operation. | - | **403** | Forbidden. Authenticated user does not have the necessary permissions. | - | -**404** | A server-side problem that means can not find the specified resource. | - | +**404** | Not found - table or index does not exist | - | **503** | The service is not ready to handle the request. The client should wait and retry. The service may additionally send a Retry-After header to indicate when to retry. | - | -**5XX** | A server-side problem that might not be addressable from the client side. Used for server 5xx errors without more specific documentation in individual routes. | - | +**5XX** | Unknown or unclassified error | - | [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -252,7 +253,7 @@ No authorization required **400** | Indicates a bad request error. It could be caused by an unexpected request body format or other forms of request validation failure, such as invalid json. Usually serves application/json content, although in some cases simple text/plain content might be returned by the server's middleware. | - | **401** | Unauthorized. The request lacks valid authentication credentials for the operation. | - | **403** | Forbidden. Authenticated user does not have the necessary permissions. | - | -**404** | A server-side problem that means can not find the specified resource. | - | +**404** | Not found - table or index does not exist | - | **503** | The service is not ready to handle the request. The client should wait and retry. The service may additionally send a Retry-After header to indicate when to retry. | - | **5XX** | A server-side problem that might not be addressable from the client side. Used for server 5xx errors without more specific documentation in individual routes. | - | @@ -330,12 +331,12 @@ No authorization required | Status code | Description | Response headers | |-------------|-------------|------------------| **200** | List of indices on the table | - | -**400** | Indicates a bad request error. It could be caused by an unexpected request body format or other forms of request validation failure, such as invalid json. Usually serves application/json content, although in some cases simple text/plain content might be returned by the server's middleware. | - | +**400** | Malformed request or validation failure | - | **401** | Unauthorized. The request lacks valid authentication credentials for the operation. | - | **403** | Forbidden. Authenticated user does not have the necessary permissions. | - | -**404** | A server-side problem that means can not find the specified resource. | - | +**404** | The requested table does not exist | - | **503** | The service is not ready to handle the request. The client should wait and retry. The service may additionally send a Retry-After header to indicate when to retry. | - | -**5XX** | A server-side problem that might not be addressable from the client side. Used for server 5xx errors without more specific documentation in individual routes. | - | +**5XX** | Unknown or unclassified error | - | [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) diff --git a/python/lance_namespace_urllib3_client/docs/InsertIntoTable400Response.md b/python/lance_namespace_urllib3_client/docs/InsertIntoTable400Response.md new file mode 100644 index 00000000..79fbfadc --- /dev/null +++ b/python/lance_namespace_urllib3_client/docs/InsertIntoTable400Response.md @@ -0,0 +1,33 @@ +# InsertIntoTable400Response + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**error** | **str** | Brief error message | +**code** | **int** | HTTP status code | +**type** | **str** | Error type identifier | +**detail** | **str** | Detailed error explanation | [optional] +**instance** | **str** | Specific occurrence identifier | [optional] + +## Example + +```python +from lance_namespace_urllib3_client.models.insert_into_table400_response import InsertIntoTable400Response + +# TODO update the JSON string below +json = "{}" +# create an instance of InsertIntoTable400Response from a JSON string +insert_into_table400_response_instance = InsertIntoTable400Response.from_json(json) +# print the JSON string representation of the object +print(InsertIntoTable400Response.to_json()) + +# convert the object into a dict +insert_into_table400_response_dict = insert_into_table400_response_instance.to_dict() +# create an instance of InsertIntoTable400Response from a dict +insert_into_table400_response_from_dict = InsertIntoTable400Response.from_dict(insert_into_table400_response_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/python/lance_namespace_urllib3_client/docs/InvalidIdentifierError.md b/python/lance_namespace_urllib3_client/docs/InvalidIdentifierError.md new file mode 100644 index 00000000..802fd24d --- /dev/null +++ b/python/lance_namespace_urllib3_client/docs/InvalidIdentifierError.md @@ -0,0 +1,34 @@ +# InvalidIdentifierError + +Invalid identifier format + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**error** | **str** | Brief error message | +**code** | **int** | HTTP status code | +**type** | **str** | Error type identifier | +**detail** | **str** | Detailed error explanation | [optional] +**instance** | **str** | Specific occurrence identifier | [optional] + +## Example + +```python +from lance_namespace_urllib3_client.models.invalid_identifier_error import InvalidIdentifierError + +# TODO update the JSON string below +json = "{}" +# create an instance of InvalidIdentifierError from a JSON string +invalid_identifier_error_instance = InvalidIdentifierError.from_json(json) +# print the JSON string representation of the object +print(InvalidIdentifierError.to_json()) + +# convert the object into a dict +invalid_identifier_error_dict = invalid_identifier_error_instance.to_dict() +# create an instance of InvalidIdentifierError from a dict +invalid_identifier_error_from_dict = InvalidIdentifierError.from_dict(invalid_identifier_error_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/python/lance_namespace_urllib3_client/docs/InvalidRequestError.md b/python/lance_namespace_urllib3_client/docs/InvalidRequestError.md new file mode 100644 index 00000000..59723384 --- /dev/null +++ b/python/lance_namespace_urllib3_client/docs/InvalidRequestError.md @@ -0,0 +1,34 @@ +# InvalidRequestError + +Malformed request or validation failure + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**error** | **str** | Brief error message | +**code** | **int** | HTTP status code | +**type** | **str** | Error type identifier | +**detail** | **str** | Detailed error explanation | [optional] +**instance** | **str** | Specific occurrence identifier | [optional] + +## Example + +```python +from lance_namespace_urllib3_client.models.invalid_request_error import InvalidRequestError + +# TODO update the JSON string below +json = "{}" +# create an instance of InvalidRequestError from a JSON string +invalid_request_error_instance = InvalidRequestError.from_json(json) +# print the JSON string representation of the object +print(InvalidRequestError.to_json()) + +# convert the object into a dict +invalid_request_error_dict = invalid_request_error_instance.to_dict() +# create an instance of InvalidRequestError from a dict +invalid_request_error_from_dict = InvalidRequestError.from_dict(invalid_request_error_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/python/lance_namespace_urllib3_client/docs/InvalidSqlExpressionError.md b/python/lance_namespace_urllib3_client/docs/InvalidSqlExpressionError.md new file mode 100644 index 00000000..91010dbd --- /dev/null +++ b/python/lance_namespace_urllib3_client/docs/InvalidSqlExpressionError.md @@ -0,0 +1,34 @@ +# InvalidSqlExpressionError + +Invalid SQL expression provided + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**error** | **str** | Brief error message | +**code** | **int** | HTTP status code | +**type** | **str** | Error type identifier | +**detail** | **str** | Detailed error explanation | [optional] +**instance** | **str** | Specific occurrence identifier | [optional] + +## Example + +```python +from lance_namespace_urllib3_client.models.invalid_sql_expression_error import InvalidSqlExpressionError + +# TODO update the JSON string below +json = "{}" +# create an instance of InvalidSqlExpressionError from a JSON string +invalid_sql_expression_error_instance = InvalidSqlExpressionError.from_json(json) +# print the JSON string representation of the object +print(InvalidSqlExpressionError.to_json()) + +# convert the object into a dict +invalid_sql_expression_error_dict = invalid_sql_expression_error_instance.to_dict() +# create an instance of InvalidSqlExpressionError from a dict +invalid_sql_expression_error_from_dict = InvalidSqlExpressionError.from_dict(invalid_sql_expression_error_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/python/lance_namespace_urllib3_client/docs/InvalidTableIndexConfigurationError.md b/python/lance_namespace_urllib3_client/docs/InvalidTableIndexConfigurationError.md new file mode 100644 index 00000000..fbd62ab7 --- /dev/null +++ b/python/lance_namespace_urllib3_client/docs/InvalidTableIndexConfigurationError.md @@ -0,0 +1,34 @@ +# InvalidTableIndexConfigurationError + +The provided index configuration is invalid + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**error** | **str** | Brief error message | +**code** | **int** | HTTP status code | +**type** | **str** | Error type identifier | +**detail** | **str** | Detailed error explanation | [optional] +**instance** | **str** | Specific occurrence identifier | [optional] + +## Example + +```python +from lance_namespace_urllib3_client.models.invalid_table_index_configuration_error import InvalidTableIndexConfigurationError + +# TODO update the JSON string below +json = "{}" +# create an instance of InvalidTableIndexConfigurationError from a JSON string +invalid_table_index_configuration_error_instance = InvalidTableIndexConfigurationError.from_json(json) +# print the JSON string representation of the object +print(InvalidTableIndexConfigurationError.to_json()) + +# convert the object into a dict +invalid_table_index_configuration_error_dict = invalid_table_index_configuration_error_instance.to_dict() +# create an instance of InvalidTableIndexConfigurationError from a dict +invalid_table_index_configuration_error_from_dict = InvalidTableIndexConfigurationError.from_dict(invalid_table_index_configuration_error_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/python/lance_namespace_urllib3_client/docs/InvalidTableSchemaError.md b/python/lance_namespace_urllib3_client/docs/InvalidTableSchemaError.md new file mode 100644 index 00000000..d5687db1 --- /dev/null +++ b/python/lance_namespace_urllib3_client/docs/InvalidTableSchemaError.md @@ -0,0 +1,34 @@ +# InvalidTableSchemaError + +The provided schema is invalid + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**error** | **str** | Brief error message | +**code** | **int** | HTTP status code | +**type** | **str** | Error type identifier | +**detail** | **str** | Detailed error explanation | [optional] +**instance** | **str** | Specific occurrence identifier | [optional] + +## Example + +```python +from lance_namespace_urllib3_client.models.invalid_table_schema_error import InvalidTableSchemaError + +# TODO update the JSON string below +json = "{}" +# create an instance of InvalidTableSchemaError from a JSON string +invalid_table_schema_error_instance = InvalidTableSchemaError.from_json(json) +# print the JSON string representation of the object +print(InvalidTableSchemaError.to_json()) + +# convert the object into a dict +invalid_table_schema_error_dict = invalid_table_schema_error_instance.to_dict() +# create an instance of InvalidTableSchemaError from a dict +invalid_table_schema_error_from_dict = InvalidTableSchemaError.from_dict(invalid_table_schema_error_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/python/lance_namespace_urllib3_client/docs/MergeInsertIntoTable400Response.md b/python/lance_namespace_urllib3_client/docs/MergeInsertIntoTable400Response.md new file mode 100644 index 00000000..be4d9737 --- /dev/null +++ b/python/lance_namespace_urllib3_client/docs/MergeInsertIntoTable400Response.md @@ -0,0 +1,33 @@ +# MergeInsertIntoTable400Response + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**error** | **str** | Brief error message | +**code** | **int** | HTTP status code | +**type** | **str** | Error type identifier | +**detail** | **str** | Detailed error explanation | [optional] +**instance** | **str** | Specific occurrence identifier | [optional] + +## Example + +```python +from lance_namespace_urllib3_client.models.merge_insert_into_table400_response import MergeInsertIntoTable400Response + +# TODO update the JSON string below +json = "{}" +# create an instance of MergeInsertIntoTable400Response from a JSON string +merge_insert_into_table400_response_instance = MergeInsertIntoTable400Response.from_json(json) +# print the JSON string representation of the object +print(MergeInsertIntoTable400Response.to_json()) + +# convert the object into a dict +merge_insert_into_table400_response_dict = merge_insert_into_table400_response_instance.to_dict() +# create an instance of MergeInsertIntoTable400Response from a dict +merge_insert_into_table400_response_from_dict = MergeInsertIntoTable400Response.from_dict(merge_insert_into_table400_response_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/python/lance_namespace_urllib3_client/docs/MetadataApi.md b/python/lance_namespace_urllib3_client/docs/MetadataApi.md index 05d16adb..2cf41482 100644 --- a/python/lance_namespace_urllib3_client/docs/MetadataApi.md +++ b/python/lance_namespace_urllib3_client/docs/MetadataApi.md @@ -105,12 +105,12 @@ No authorization required | Status code | Description | Response headers | |-------------|-------------|------------------| **200** | Alter columns operation result | - | -**400** | Indicates a bad request error. It could be caused by an unexpected request body format or other forms of request validation failure, such as invalid json. Usually serves application/json content, although in some cases simple text/plain content might be returned by the server's middleware. | - | +**400** | Bad request - invalid request or column not found | - | **401** | Unauthorized. The request lacks valid authentication credentials for the operation. | - | **403** | Forbidden. Authenticated user does not have the necessary permissions. | - | -**404** | A server-side problem that means can not find the specified resource. | - | +**404** | The requested table does not exist | - | **503** | The service is not ready to handle the request. The client should wait and retry. The service may additionally send a Retry-After header to indicate when to retry. | - | -**5XX** | A server-side problem that might not be addressable from the client side. Used for server 5xx errors without more specific documentation in individual routes. | - | +**5XX** | Unknown or unclassified error | - | [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -185,12 +185,12 @@ No authorization required | Status code | Description | Response headers | |-------------|-------------|------------------| **200** | Drop columns operation result | - | -**400** | Indicates a bad request error. It could be caused by an unexpected request body format or other forms of request validation failure, such as invalid json. Usually serves application/json content, although in some cases simple text/plain content might be returned by the server's middleware. | - | +**400** | Bad request - invalid request or column not found | - | **401** | Unauthorized. The request lacks valid authentication credentials for the operation. | - | **403** | Forbidden. Authenticated user does not have the necessary permissions. | - | -**404** | A server-side problem that means can not find the specified resource. | - | +**404** | The requested table does not exist | - | **503** | The service is not ready to handle the request. The client should wait and retry. The service may additionally send a Retry-After header to indicate when to retry. | - | -**5XX** | A server-side problem that might not be addressable from the client side. Used for server 5xx errors without more specific documentation in individual routes. | - | +**5XX** | Unknown or unclassified error | - | [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -269,8 +269,8 @@ No authorization required **400** | Indicates a bad request error. It could be caused by an unexpected request body format or other forms of request validation failure, such as invalid json. Usually serves application/json content, although in some cases simple text/plain content might be returned by the server's middleware. | - | **401** | Unauthorized. The request lacks valid authentication credentials for the operation. | - | **403** | Forbidden. Authenticated user does not have the necessary permissions. | - | -**404** | A server-side problem that means can not find the specified resource. | - | -**409** | The request conflicts with the current state of the target resource. | - | +**404** | The requested transaction does not exist | - | +**409** | Transaction failed due to concurrent modification | - | **503** | The service is not ready to handle the request. The client should wait and retry. The service may additionally send a Retry-After header to indicate when to retry. | - | **5XX** | A server-side problem that might not be addressable from the client side. Used for server 5xx errors without more specific documentation in individual routes. | - | @@ -354,8 +354,8 @@ No authorization required **400** | Indicates a bad request error. It could be caused by an unexpected request body format or other forms of request validation failure, such as invalid json. Usually serves application/json content, although in some cases simple text/plain content might be returned by the server's middleware. | - | **401** | Unauthorized. The request lacks valid authentication credentials for the operation. | - | **403** | Forbidden. Authenticated user does not have the necessary permissions. | - | -**404** | A server-side problem that means can not find the specified resource. | - | -**409** | The request conflicts with the current state of the target resource. | - | +**404** | The parent namespace does not exist | - | +**409** | A table with the same name already exists | - | **503** | The service is not ready to handle the request. The client should wait and retry. The service may additionally send a Retry-After header to indicate when to retry. | - | **5XX** | A server-side problem that might not be addressable from the client side. Used for server 5xx errors without more specific documentation in individual routes. | - | @@ -436,14 +436,14 @@ No authorization required | Status code | Description | Response headers | |-------------|-------------|------------------| **200** | Result of creating a namespace | - | -**400** | Indicates a bad request error. It could be caused by an unexpected request body format or other forms of request validation failure, such as invalid json. Usually serves application/json content, although in some cases simple text/plain content might be returned by the server's middleware. | - | +**400** | Bad request - invalid request format or identifier | - | **401** | Unauthorized. The request lacks valid authentication credentials for the operation. | - | **403** | Forbidden. Authenticated user does not have the necessary permissions. | - | -**404** | A server-side problem that means can not find the specified resource. | - | +**404** | The parent namespace does not exist | - | **406** | Not Acceptable / Unsupported Operation. The server does not support this operation. | - | -**409** | The request conflicts with the current state of the target resource. | - | +**409** | A namespace with the same name already exists | - | **503** | The service is not ready to handle the request. The client should wait and retry. The service may additionally send a Retry-After header to indicate when to retry. | - | -**5XX** | A server-side problem that might not be addressable from the client side. Used for server 5xx errors without more specific documentation in individual routes. | - | +**5XX** | Unknown or unclassified error | - | [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -521,12 +521,13 @@ No authorization required | Status code | Description | Response headers | |-------------|-------------|------------------| **200** | Index created successfully | - | -**400** | Indicates a bad request error. It could be caused by an unexpected request body format or other forms of request validation failure, such as invalid json. Usually serves application/json content, although in some cases simple text/plain content might be returned by the server's middleware. | - | +**400** | Bad request - invalid request, column not found, or invalid index config | - | **401** | Unauthorized. The request lacks valid authentication credentials for the operation. | - | **403** | Forbidden. Authenticated user does not have the necessary permissions. | - | -**404** | A server-side problem that means can not find the specified resource. | - | +**404** | The requested table does not exist | - | +**409** | An index with the same name already exists | - | **503** | The service is not ready to handle the request. The client should wait and retry. The service may additionally send a Retry-After header to indicate when to retry. | - | -**5XX** | A server-side problem that might not be addressable from the client side. Used for server 5xx errors without more specific documentation in individual routes. | - | +**5XX** | Unknown or unclassified error | - | [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -601,8 +602,8 @@ No authorization required **400** | Indicates a bad request error. It could be caused by an unexpected request body format or other forms of request validation failure, such as invalid json. Usually serves application/json content, although in some cases simple text/plain content might be returned by the server's middleware. | - | **401** | Unauthorized. The request lacks valid authentication credentials for the operation. | - | **403** | Forbidden. Authenticated user does not have the necessary permissions. | - | -**404** | A server-side problem that means can not find the specified resource. | - | -**409** | The request conflicts with the current state of the target resource. | - | +**404** | Not found - table or version does not exist | - | +**409** | A tag with the same name already exists | - | **503** | The service is not ready to handle the request. The client should wait and retry. The service may additionally send a Retry-After header to indicate when to retry. | - | **5XX** | A server-side problem that might not be addressable from the client side. Used for server 5xx errors without more specific documentation in individual routes. | - | @@ -679,7 +680,7 @@ No authorization required **400** | Indicates a bad request error. It could be caused by an unexpected request body format or other forms of request validation failure, such as invalid json. Usually serves application/json content, although in some cases simple text/plain content might be returned by the server's middleware. | - | **401** | Unauthorized. The request lacks valid authentication credentials for the operation. | - | **403** | Forbidden. Authenticated user does not have the necessary permissions. | - | -**404** | A server-side problem that means can not find the specified resource. | - | +**404** | Not found - table or tag does not exist | - | **503** | The service is not ready to handle the request. The client should wait and retry. The service may additionally send a Retry-After header to indicate when to retry. | - | **5XX** | A server-side problem that might not be addressable from the client side. Used for server 5xx errors without more specific documentation in individual routes. | - | @@ -756,12 +757,12 @@ No authorization required | Status code | Description | Response headers | |-------------|-------------|------------------| **200** | Response of DeregisterTable | - | -**400** | Indicates a bad request error. It could be caused by an unexpected request body format or other forms of request validation failure, such as invalid json. Usually serves application/json content, although in some cases simple text/plain content might be returned by the server's middleware. | - | +**400** | Malformed request or validation failure | - | **401** | Unauthorized. The request lacks valid authentication credentials for the operation. | - | **403** | Forbidden. Authenticated user does not have the necessary permissions. | - | -**404** | A server-side problem that means can not find the specified resource. | - | +**404** | The requested table does not exist | - | **503** | The service is not ready to handle the request. The client should wait and retry. The service may additionally send a Retry-After header to indicate when to retry. | - | -**5XX** | A server-side problem that might not be addressable from the client side. Used for server 5xx errors without more specific documentation in individual routes. | - | +**5XX** | Unknown or unclassified error | - | [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -836,12 +837,12 @@ No authorization required | Status code | Description | Response headers | |-------------|-------------|------------------| **200** | Returns a namespace, as well as any properties stored on the namespace if namespace properties are supported by the server. | - | -**400** | Indicates a bad request error. It could be caused by an unexpected request body format or other forms of request validation failure, such as invalid json. Usually serves application/json content, although in some cases simple text/plain content might be returned by the server's middleware. | - | +**400** | Malformed request or validation failure | - | **401** | Unauthorized. The request lacks valid authentication credentials for the operation. | - | **403** | Forbidden. Authenticated user does not have the necessary permissions. | - | -**404** | A server-side problem that means can not find the specified resource. | - | +**404** | The requested namespace does not exist | - | **503** | The service is not ready to handle the request. The client should wait and retry. The service may additionally send a Retry-After header to indicate when to retry. | - | -**5XX** | A server-side problem that might not be addressable from the client side. Used for server 5xx errors without more specific documentation in individual routes. | - | +**5XX** | Unknown or unclassified error | - | [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -916,12 +917,12 @@ No authorization required | Status code | Description | Response headers | |-------------|-------------|------------------| **200** | Table properties result when loading a table | - | -**400** | Indicates a bad request error. It could be caused by an unexpected request body format or other forms of request validation failure, such as invalid json. Usually serves application/json content, although in some cases simple text/plain content might be returned by the server's middleware. | - | +**400** | Malformed request or validation failure | - | **401** | Unauthorized. The request lacks valid authentication credentials for the operation. | - | **403** | Forbidden. Authenticated user does not have the necessary permissions. | - | -**404** | A server-side problem that means can not find the specified resource. | - | +**404** | The requested table does not exist | - | **503** | The service is not ready to handle the request. The client should wait and retry. The service may additionally send a Retry-After header to indicate when to retry. | - | -**5XX** | A server-side problem that might not be addressable from the client side. Used for server 5xx errors without more specific documentation in individual routes. | - | +**5XX** | Unknown or unclassified error | - | [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -999,12 +1000,12 @@ No authorization required | Status code | Description | Response headers | |-------------|-------------|------------------| **200** | Index statistics | - | -**400** | Indicates a bad request error. It could be caused by an unexpected request body format or other forms of request validation failure, such as invalid json. Usually serves application/json content, although in some cases simple text/plain content might be returned by the server's middleware. | - | +**400** | Malformed request or validation failure | - | **401** | Unauthorized. The request lacks valid authentication credentials for the operation. | - | **403** | Forbidden. Authenticated user does not have the necessary permissions. | - | -**404** | A server-side problem that means can not find the specified resource. | - | +**404** | Not found - table or index does not exist | - | **503** | The service is not ready to handle the request. The client should wait and retry. The service may additionally send a Retry-After header to indicate when to retry. | - | -**5XX** | A server-side problem that might not be addressable from the client side. Used for server 5xx errors without more specific documentation in individual routes. | - | +**5XX** | Unknown or unclassified error | - | [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -1082,7 +1083,7 @@ No authorization required **400** | Indicates a bad request error. It could be caused by an unexpected request body format or other forms of request validation failure, such as invalid json. Usually serves application/json content, although in some cases simple text/plain content might be returned by the server's middleware. | - | **401** | Unauthorized. The request lacks valid authentication credentials for the operation. | - | **403** | Forbidden. Authenticated user does not have the necessary permissions. | - | -**404** | A server-side problem that means can not find the specified resource. | - | +**404** | The requested transaction does not exist | - | **503** | The service is not ready to handle the request. The client should wait and retry. The service may additionally send a Retry-After header to indicate when to retry. | - | **5XX** | A server-side problem that might not be addressable from the client side. Used for server 5xx errors without more specific documentation in individual routes. | - | @@ -1159,13 +1160,13 @@ No authorization required | Status code | Description | Response headers | |-------------|-------------|------------------| **200** | Result of dropping a namespace | - | -**400** | Indicates a bad request error. It could be caused by an unexpected request body format or other forms of request validation failure, such as invalid json. Usually serves application/json content, although in some cases simple text/plain content might be returned by the server's middleware. | - | +**400** | Malformed request or validation failure | - | **401** | Unauthorized. The request lacks valid authentication credentials for the operation. | - | **403** | Forbidden. Authenticated user does not have the necessary permissions. | - | -**404** | A server-side problem that means can not find the specified resource. | - | -**409** | The request conflicts with the current state of the target resource. | - | +**404** | The requested namespace does not exist | - | +**409** | Cannot drop namespace because it contains tables or child namespaces | - | **503** | The service is not ready to handle the request. The client should wait and retry. The service may additionally send a Retry-After header to indicate when to retry. | - | -**5XX** | A server-side problem that might not be addressable from the client side. Used for server 5xx errors without more specific documentation in individual routes. | - | +**5XX** | Unknown or unclassified error | - | [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -1240,12 +1241,12 @@ No authorization required | Status code | Description | Response headers | |-------------|-------------|------------------| **200** | Response of DropTable | - | -**400** | Indicates a bad request error. It could be caused by an unexpected request body format or other forms of request validation failure, such as invalid json. Usually serves application/json content, although in some cases simple text/plain content might be returned by the server's middleware. | - | +**400** | Malformed request or validation failure | - | **401** | Unauthorized. The request lacks valid authentication credentials for the operation. | - | **403** | Forbidden. Authenticated user does not have the necessary permissions. | - | -**404** | A server-side problem that means can not find the specified resource. | - | +**404** | The requested table does not exist | - | **503** | The service is not ready to handle the request. The client should wait and retry. The service may additionally send a Retry-After header to indicate when to retry. | - | -**5XX** | A server-side problem that might not be addressable from the client side. Used for server 5xx errors without more specific documentation in individual routes. | - | +**5XX** | Unknown or unclassified error | - | [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -1325,7 +1326,7 @@ No authorization required **400** | Indicates a bad request error. It could be caused by an unexpected request body format or other forms of request validation failure, such as invalid json. Usually serves application/json content, although in some cases simple text/plain content might be returned by the server's middleware. | - | **401** | Unauthorized. The request lacks valid authentication credentials for the operation. | - | **403** | Forbidden. Authenticated user does not have the necessary permissions. | - | -**404** | A server-side problem that means can not find the specified resource. | - | +**404** | Not found - table or index does not exist | - | **503** | The service is not ready to handle the request. The client should wait and retry. The service may additionally send a Retry-After header to indicate when to retry. | - | **5XX** | A server-side problem that might not be addressable from the client side. Used for server 5xx errors without more specific documentation in individual routes. | - | @@ -1402,12 +1403,12 @@ No authorization required | Status code | Description | Response headers | |-------------|-------------|------------------| **200** | Table statistics | - | -**400** | Indicates a bad request error. It could be caused by an unexpected request body format or other forms of request validation failure, such as invalid json. Usually serves application/json content, although in some cases simple text/plain content might be returned by the server's middleware. | - | +**400** | Malformed request or validation failure | - | **401** | Unauthorized. The request lacks valid authentication credentials for the operation. | - | **403** | Forbidden. Authenticated user does not have the necessary permissions. | - | -**404** | A server-side problem that means can not find the specified resource. | - | +**404** | The requested table does not exist | - | **503** | The service is not ready to handle the request. The client should wait and retry. The service may additionally send a Retry-After header to indicate when to retry. | - | -**5XX** | A server-side problem that might not be addressable from the client side. Used for server 5xx errors without more specific documentation in individual routes. | - | +**5XX** | Unknown or unclassified error | - | [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -1485,7 +1486,7 @@ No authorization required **400** | Indicates a bad request error. It could be caused by an unexpected request body format or other forms of request validation failure, such as invalid json. Usually serves application/json content, although in some cases simple text/plain content might be returned by the server's middleware. | - | **401** | Unauthorized. The request lacks valid authentication credentials for the operation. | - | **403** | Forbidden. Authenticated user does not have the necessary permissions. | - | -**404** | A server-side problem that means can not find the specified resource. | - | +**404** | Not found - table or tag does not exist | - | **503** | The service is not ready to handle the request. The client should wait and retry. The service may additionally send a Retry-After header to indicate when to retry. | - | **5XX** | A server-side problem that might not be addressable from the client side. Used for server 5xx errors without more specific documentation in individual routes. | - | @@ -1570,13 +1571,13 @@ No authorization required | Status code | Description | Response headers | |-------------|-------------|------------------| **200** | A list of namespaces | - | -**400** | Indicates a bad request error. It could be caused by an unexpected request body format or other forms of request validation failure, such as invalid json. Usually serves application/json content, although in some cases simple text/plain content might be returned by the server's middleware. | - | +**400** | Malformed request or validation failure | - | **401** | Unauthorized. The request lacks valid authentication credentials for the operation. | - | **403** | Forbidden. Authenticated user does not have the necessary permissions. | - | -**404** | A server-side problem that means can not find the specified resource. | - | +**404** | The requested namespace does not exist | - | **406** | Not Acceptable / Unsupported Operation. The server does not support this operation. | - | **503** | The service is not ready to handle the request. The client should wait and retry. The service may additionally send a Retry-After header to indicate when to retry. | - | -**5XX** | A server-side problem that might not be addressable from the client side. Used for server 5xx errors without more specific documentation in individual routes. | - | +**5XX** | Unknown or unclassified error | - | [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -1652,12 +1653,12 @@ No authorization required | Status code | Description | Response headers | |-------------|-------------|------------------| **200** | List of indices on the table | - | -**400** | Indicates a bad request error. It could be caused by an unexpected request body format or other forms of request validation failure, such as invalid json. Usually serves application/json content, although in some cases simple text/plain content might be returned by the server's middleware. | - | +**400** | Malformed request or validation failure | - | **401** | Unauthorized. The request lacks valid authentication credentials for the operation. | - | **403** | Forbidden. Authenticated user does not have the necessary permissions. | - | -**404** | A server-side problem that means can not find the specified resource. | - | +**404** | The requested table does not exist | - | **503** | The service is not ready to handle the request. The client should wait and retry. The service may additionally send a Retry-After header to indicate when to retry. | - | -**5XX** | A server-side problem that might not be addressable from the client side. Used for server 5xx errors without more specific documentation in individual routes. | - | +**5XX** | Unknown or unclassified error | - | [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -1744,7 +1745,7 @@ No authorization required **400** | Indicates a bad request error. It could be caused by an unexpected request body format or other forms of request validation failure, such as invalid json. Usually serves application/json content, although in some cases simple text/plain content might be returned by the server's middleware. | - | **401** | Unauthorized. The request lacks valid authentication credentials for the operation. | - | **403** | Forbidden. Authenticated user does not have the necessary permissions. | - | -**404** | A server-side problem that means can not find the specified resource. | - | +**404** | The requested table does not exist | - | **503** | The service is not ready to handle the request. The client should wait and retry. The service may additionally send a Retry-After header to indicate when to retry. | - | **5XX** | A server-side problem that might not be addressable from the client side. Used for server 5xx errors without more specific documentation in individual routes. | - | @@ -1821,12 +1822,12 @@ No authorization required | Status code | Description | Response headers | |-------------|-------------|------------------| **200** | List of table versions | - | -**400** | Indicates a bad request error. It could be caused by an unexpected request body format or other forms of request validation failure, such as invalid json. Usually serves application/json content, although in some cases simple text/plain content might be returned by the server's middleware. | - | +**400** | Malformed request or validation failure | - | **401** | Unauthorized. The request lacks valid authentication credentials for the operation. | - | **403** | Forbidden. Authenticated user does not have the necessary permissions. | - | -**404** | A server-side problem that means can not find the specified resource. | - | +**404** | The requested table does not exist | - | **503** | The service is not ready to handle the request. The client should wait and retry. The service may additionally send a Retry-After header to indicate when to retry. | - | -**5XX** | A server-side problem that might not be addressable from the client side. Used for server 5xx errors without more specific documentation in individual routes. | - | +**5XX** | Unknown or unclassified error | - | [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -1909,13 +1910,13 @@ No authorization required | Status code | Description | Response headers | |-------------|-------------|------------------| **200** | A list of tables | - | -**400** | Indicates a bad request error. It could be caused by an unexpected request body format or other forms of request validation failure, such as invalid json. Usually serves application/json content, although in some cases simple text/plain content might be returned by the server's middleware. | - | +**400** | Malformed request or validation failure | - | **401** | Unauthorized. The request lacks valid authentication credentials for the operation. | - | **403** | Forbidden. Authenticated user does not have the necessary permissions. | - | -**404** | A server-side problem that means can not find the specified resource. | - | +**404** | The requested namespace does not exist | - | **406** | Not Acceptable / Unsupported Operation. The server does not support this operation. | - | **503** | The service is not ready to handle the request. The client should wait and retry. The service may additionally send a Retry-After header to indicate when to retry. | - | -**5XX** | A server-side problem that might not be addressable from the client side. Used for server 5xx errors without more specific documentation in individual routes. | - | +**5XX** | Unknown or unclassified error | - | [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -1990,12 +1991,12 @@ No authorization required | Status code | Description | Response headers | |-------------|-------------|------------------| **200** | Success, no content | - | -**400** | Indicates a bad request error. It could be caused by an unexpected request body format or other forms of request validation failure, such as invalid json. Usually serves application/json content, although in some cases simple text/plain content might be returned by the server's middleware. | - | +**400** | Malformed request or validation failure | - | **401** | Unauthorized. The request lacks valid authentication credentials for the operation. | - | **403** | Forbidden. Authenticated user does not have the necessary permissions. | - | -**404** | A server-side problem that means can not find the specified resource. | - | +**404** | The requested namespace does not exist | - | **503** | The service is not ready to handle the request. The client should wait and retry. The service may additionally send a Retry-After header to indicate when to retry. | - | -**5XX** | A server-side problem that might not be addressable from the client side. Used for server 5xx errors without more specific documentation in individual routes. | - | +**5XX** | Unknown or unclassified error | - | [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -2070,14 +2071,14 @@ No authorization required | Status code | Description | Response headers | |-------------|-------------|------------------| **200** | Table properties result when registering a table | - | -**400** | Indicates a bad request error. It could be caused by an unexpected request body format or other forms of request validation failure, such as invalid json. Usually serves application/json content, although in some cases simple text/plain content might be returned by the server's middleware. | - | +**400** | Malformed request or validation failure | - | **401** | Unauthorized. The request lacks valid authentication credentials for the operation. | - | **403** | Forbidden. Authenticated user does not have the necessary permissions. | - | -**404** | A server-side problem that means can not find the specified resource. | - | +**404** | The parent namespace does not exist | - | **406** | Not Acceptable / Unsupported Operation. The server does not support this operation. | - | -**409** | The request conflicts with the current state of the target resource. | - | +**409** | A table with the same name already exists | - | **503** | The service is not ready to handle the request. The client should wait and retry. The service may additionally send a Retry-After header to indicate when to retry. | - | -**5XX** | A server-side problem that might not be addressable from the client side. Used for server 5xx errors without more specific documentation in individual routes. | - | +**5XX** | Unknown or unclassified error | - | [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -2152,12 +2153,12 @@ No authorization required | Status code | Description | Response headers | |-------------|-------------|------------------| **200** | Table restore operation result | - | -**400** | Indicates a bad request error. It could be caused by an unexpected request body format or other forms of request validation failure, such as invalid json. Usually serves application/json content, although in some cases simple text/plain content might be returned by the server's middleware. | - | +**400** | Malformed request or validation failure | - | **401** | Unauthorized. The request lacks valid authentication credentials for the operation. | - | **403** | Forbidden. Authenticated user does not have the necessary permissions. | - | -**404** | A server-side problem that means can not find the specified resource. | - | +**404** | Not found - table or version does not exist | - | **503** | The service is not ready to handle the request. The client should wait and retry. The service may additionally send a Retry-After header to indicate when to retry. | - | -**5XX** | A server-side problem that might not be addressable from the client side. Used for server 5xx errors without more specific documentation in individual routes. | - | +**5XX** | Unknown or unclassified error | - | [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -2236,12 +2237,12 @@ No authorization required | Status code | Description | Response headers | |-------------|-------------|------------------| **200** | Success, no content | - | -**400** | Indicates a bad request error. It could be caused by an unexpected request body format or other forms of request validation failure, such as invalid json. Usually serves application/json content, although in some cases simple text/plain content might be returned by the server's middleware. | - | +**400** | Malformed request or validation failure | - | **401** | Unauthorized. The request lacks valid authentication credentials for the operation. | - | **403** | Forbidden. Authenticated user does not have the necessary permissions. | - | -**404** | A server-side problem that means can not find the specified resource. | - | +**404** | The requested table does not exist | - | **503** | The service is not ready to handle the request. The client should wait and retry. The service may additionally send a Retry-After header to indicate when to retry. | - | -**5XX** | A server-side problem that might not be addressable from the client side. Used for server 5xx errors without more specific documentation in individual routes. | - | +**5XX** | Unknown or unclassified error | - | [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -2316,7 +2317,7 @@ No authorization required **400** | Indicates a bad request error. It could be caused by an unexpected request body format or other forms of request validation failure, such as invalid json. Usually serves application/json content, although in some cases simple text/plain content might be returned by the server's middleware. | - | **401** | Unauthorized. The request lacks valid authentication credentials for the operation. | - | **403** | Forbidden. Authenticated user does not have the necessary permissions. | - | -**404** | A server-side problem that means can not find the specified resource. | - | +**404** | Not found - table, tag, or version does not exist | - | **503** | The service is not ready to handle the request. The client should wait and retry. The service may additionally send a Retry-After header to indicate when to retry. | - | **5XX** | A server-side problem that might not be addressable from the client side. Used for server 5xx errors without more specific documentation in individual routes. | - | diff --git a/python/lance_namespace_urllib3_client/docs/NamespaceAlreadyExistsError.md b/python/lance_namespace_urllib3_client/docs/NamespaceAlreadyExistsError.md new file mode 100644 index 00000000..74605bf4 --- /dev/null +++ b/python/lance_namespace_urllib3_client/docs/NamespaceAlreadyExistsError.md @@ -0,0 +1,34 @@ +# NamespaceAlreadyExistsError + +A namespace with the same name already exists + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**error** | **str** | Brief error message | +**code** | **int** | HTTP status code | +**type** | **str** | Error type identifier | +**detail** | **str** | Detailed error explanation | [optional] +**instance** | **str** | Specific occurrence identifier | [optional] + +## Example + +```python +from lance_namespace_urllib3_client.models.namespace_already_exists_error import NamespaceAlreadyExistsError + +# TODO update the JSON string below +json = "{}" +# create an instance of NamespaceAlreadyExistsError from a JSON string +namespace_already_exists_error_instance = NamespaceAlreadyExistsError.from_json(json) +# print the JSON string representation of the object +print(NamespaceAlreadyExistsError.to_json()) + +# convert the object into a dict +namespace_already_exists_error_dict = namespace_already_exists_error_instance.to_dict() +# create an instance of NamespaceAlreadyExistsError from a dict +namespace_already_exists_error_from_dict = NamespaceAlreadyExistsError.from_dict(namespace_already_exists_error_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/python/lance_namespace_urllib3_client/docs/NamespaceApi.md b/python/lance_namespace_urllib3_client/docs/NamespaceApi.md index 5ef4d25c..ed04861c 100644 --- a/python/lance_namespace_urllib3_client/docs/NamespaceApi.md +++ b/python/lance_namespace_urllib3_client/docs/NamespaceApi.md @@ -87,14 +87,14 @@ No authorization required | Status code | Description | Response headers | |-------------|-------------|------------------| **200** | Result of creating a namespace | - | -**400** | Indicates a bad request error. It could be caused by an unexpected request body format or other forms of request validation failure, such as invalid json. Usually serves application/json content, although in some cases simple text/plain content might be returned by the server's middleware. | - | +**400** | Bad request - invalid request format or identifier | - | **401** | Unauthorized. The request lacks valid authentication credentials for the operation. | - | **403** | Forbidden. Authenticated user does not have the necessary permissions. | - | -**404** | A server-side problem that means can not find the specified resource. | - | +**404** | The parent namespace does not exist | - | **406** | Not Acceptable / Unsupported Operation. The server does not support this operation. | - | -**409** | The request conflicts with the current state of the target resource. | - | +**409** | A namespace with the same name already exists | - | **503** | The service is not ready to handle the request. The client should wait and retry. The service may additionally send a Retry-After header to indicate when to retry. | - | -**5XX** | A server-side problem that might not be addressable from the client side. Used for server 5xx errors without more specific documentation in individual routes. | - | +**5XX** | Unknown or unclassified error | - | [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -169,12 +169,12 @@ No authorization required | Status code | Description | Response headers | |-------------|-------------|------------------| **200** | Returns a namespace, as well as any properties stored on the namespace if namespace properties are supported by the server. | - | -**400** | Indicates a bad request error. It could be caused by an unexpected request body format or other forms of request validation failure, such as invalid json. Usually serves application/json content, although in some cases simple text/plain content might be returned by the server's middleware. | - | +**400** | Malformed request or validation failure | - | **401** | Unauthorized. The request lacks valid authentication credentials for the operation. | - | **403** | Forbidden. Authenticated user does not have the necessary permissions. | - | -**404** | A server-side problem that means can not find the specified resource. | - | +**404** | The requested namespace does not exist | - | **503** | The service is not ready to handle the request. The client should wait and retry. The service may additionally send a Retry-After header to indicate when to retry. | - | -**5XX** | A server-side problem that might not be addressable from the client side. Used for server 5xx errors without more specific documentation in individual routes. | - | +**5XX** | Unknown or unclassified error | - | [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -249,13 +249,13 @@ No authorization required | Status code | Description | Response headers | |-------------|-------------|------------------| **200** | Result of dropping a namespace | - | -**400** | Indicates a bad request error. It could be caused by an unexpected request body format or other forms of request validation failure, such as invalid json. Usually serves application/json content, although in some cases simple text/plain content might be returned by the server's middleware. | - | +**400** | Malformed request or validation failure | - | **401** | Unauthorized. The request lacks valid authentication credentials for the operation. | - | **403** | Forbidden. Authenticated user does not have the necessary permissions. | - | -**404** | A server-side problem that means can not find the specified resource. | - | -**409** | The request conflicts with the current state of the target resource. | - | +**404** | The requested namespace does not exist | - | +**409** | Cannot drop namespace because it contains tables or child namespaces | - | **503** | The service is not ready to handle the request. The client should wait and retry. The service may additionally send a Retry-After header to indicate when to retry. | - | -**5XX** | A server-side problem that might not be addressable from the client side. Used for server 5xx errors without more specific documentation in individual routes. | - | +**5XX** | Unknown or unclassified error | - | [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -338,13 +338,13 @@ No authorization required | Status code | Description | Response headers | |-------------|-------------|------------------| **200** | A list of namespaces | - | -**400** | Indicates a bad request error. It could be caused by an unexpected request body format or other forms of request validation failure, such as invalid json. Usually serves application/json content, although in some cases simple text/plain content might be returned by the server's middleware. | - | +**400** | Malformed request or validation failure | - | **401** | Unauthorized. The request lacks valid authentication credentials for the operation. | - | **403** | Forbidden. Authenticated user does not have the necessary permissions. | - | -**404** | A server-side problem that means can not find the specified resource. | - | +**404** | The requested namespace does not exist | - | **406** | Not Acceptable / Unsupported Operation. The server does not support this operation. | - | **503** | The service is not ready to handle the request. The client should wait and retry. The service may additionally send a Retry-After header to indicate when to retry. | - | -**5XX** | A server-side problem that might not be addressable from the client side. Used for server 5xx errors without more specific documentation in individual routes. | - | +**5XX** | Unknown or unclassified error | - | [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -427,13 +427,13 @@ No authorization required | Status code | Description | Response headers | |-------------|-------------|------------------| **200** | A list of tables | - | -**400** | Indicates a bad request error. It could be caused by an unexpected request body format or other forms of request validation failure, such as invalid json. Usually serves application/json content, although in some cases simple text/plain content might be returned by the server's middleware. | - | +**400** | Malformed request or validation failure | - | **401** | Unauthorized. The request lacks valid authentication credentials for the operation. | - | **403** | Forbidden. Authenticated user does not have the necessary permissions. | - | -**404** | A server-side problem that means can not find the specified resource. | - | +**404** | The requested namespace does not exist | - | **406** | Not Acceptable / Unsupported Operation. The server does not support this operation. | - | **503** | The service is not ready to handle the request. The client should wait and retry. The service may additionally send a Retry-After header to indicate when to retry. | - | -**5XX** | A server-side problem that might not be addressable from the client side. Used for server 5xx errors without more specific documentation in individual routes. | - | +**5XX** | Unknown or unclassified error | - | [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -508,12 +508,12 @@ No authorization required | Status code | Description | Response headers | |-------------|-------------|------------------| **200** | Success, no content | - | -**400** | Indicates a bad request error. It could be caused by an unexpected request body format or other forms of request validation failure, such as invalid json. Usually serves application/json content, although in some cases simple text/plain content might be returned by the server's middleware. | - | +**400** | Malformed request or validation failure | - | **401** | Unauthorized. The request lacks valid authentication credentials for the operation. | - | **403** | Forbidden. Authenticated user does not have the necessary permissions. | - | -**404** | A server-side problem that means can not find the specified resource. | - | +**404** | The requested namespace does not exist | - | **503** | The service is not ready to handle the request. The client should wait and retry. The service may additionally send a Retry-After header to indicate when to retry. | - | -**5XX** | A server-side problem that might not be addressable from the client side. Used for server 5xx errors without more specific documentation in individual routes. | - | +**5XX** | Unknown or unclassified error | - | [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) diff --git a/python/lance_namespace_urllib3_client/docs/NamespaceNotEmptyError.md b/python/lance_namespace_urllib3_client/docs/NamespaceNotEmptyError.md new file mode 100644 index 00000000..58f8bd43 --- /dev/null +++ b/python/lance_namespace_urllib3_client/docs/NamespaceNotEmptyError.md @@ -0,0 +1,34 @@ +# NamespaceNotEmptyError + +Cannot drop namespace because it contains tables or child namespaces + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**error** | **str** | Brief error message | +**code** | **int** | HTTP status code | +**type** | **str** | Error type identifier | +**detail** | **str** | Detailed error explanation | [optional] +**instance** | **str** | Specific occurrence identifier | [optional] + +## Example + +```python +from lance_namespace_urllib3_client.models.namespace_not_empty_error import NamespaceNotEmptyError + +# TODO update the JSON string below +json = "{}" +# create an instance of NamespaceNotEmptyError from a JSON string +namespace_not_empty_error_instance = NamespaceNotEmptyError.from_json(json) +# print the JSON string representation of the object +print(NamespaceNotEmptyError.to_json()) + +# convert the object into a dict +namespace_not_empty_error_dict = namespace_not_empty_error_instance.to_dict() +# create an instance of NamespaceNotEmptyError from a dict +namespace_not_empty_error_from_dict = NamespaceNotEmptyError.from_dict(namespace_not_empty_error_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/python/lance_namespace_urllib3_client/docs/NamespaceNotFoundError.md b/python/lance_namespace_urllib3_client/docs/NamespaceNotFoundError.md new file mode 100644 index 00000000..5f5472bb --- /dev/null +++ b/python/lance_namespace_urllib3_client/docs/NamespaceNotFoundError.md @@ -0,0 +1,34 @@ +# NamespaceNotFoundError + +The requested namespace does not exist + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**error** | **str** | Brief error message | +**code** | **int** | HTTP status code | +**type** | **str** | Error type identifier | +**detail** | **str** | Detailed error explanation | [optional] +**instance** | **str** | Specific occurrence identifier | [optional] + +## Example + +```python +from lance_namespace_urllib3_client.models.namespace_not_found_error import NamespaceNotFoundError + +# TODO update the JSON string below +json = "{}" +# create an instance of NamespaceNotFoundError from a JSON string +namespace_not_found_error_instance = NamespaceNotFoundError.from_json(json) +# print the JSON string representation of the object +print(NamespaceNotFoundError.to_json()) + +# convert the object into a dict +namespace_not_found_error_dict = namespace_not_found_error_instance.to_dict() +# create an instance of NamespaceNotFoundError from a dict +namespace_not_found_error_from_dict = NamespaceNotFoundError.from_dict(namespace_not_found_error_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/python/lance_namespace_urllib3_client/docs/ParentNamespaceNotFoundError.md b/python/lance_namespace_urllib3_client/docs/ParentNamespaceNotFoundError.md new file mode 100644 index 00000000..bff69de5 --- /dev/null +++ b/python/lance_namespace_urllib3_client/docs/ParentNamespaceNotFoundError.md @@ -0,0 +1,34 @@ +# ParentNamespaceNotFoundError + +The parent namespace does not exist + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**error** | **str** | Brief error message | +**code** | **int** | HTTP status code | +**type** | **str** | Error type identifier | +**detail** | **str** | Detailed error explanation | [optional] +**instance** | **str** | Specific occurrence identifier | [optional] + +## Example + +```python +from lance_namespace_urllib3_client.models.parent_namespace_not_found_error import ParentNamespaceNotFoundError + +# TODO update the JSON string below +json = "{}" +# create an instance of ParentNamespaceNotFoundError from a JSON string +parent_namespace_not_found_error_instance = ParentNamespaceNotFoundError.from_json(json) +# print the JSON string representation of the object +print(ParentNamespaceNotFoundError.to_json()) + +# convert the object into a dict +parent_namespace_not_found_error_dict = parent_namespace_not_found_error_instance.to_dict() +# create an instance of ParentNamespaceNotFoundError from a dict +parent_namespace_not_found_error_from_dict = ParentNamespaceNotFoundError.from_dict(parent_namespace_not_found_error_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/python/lance_namespace_urllib3_client/docs/RestoreTable404Response.md b/python/lance_namespace_urllib3_client/docs/RestoreTable404Response.md new file mode 100644 index 00000000..50197d3e --- /dev/null +++ b/python/lance_namespace_urllib3_client/docs/RestoreTable404Response.md @@ -0,0 +1,33 @@ +# RestoreTable404Response + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**error** | **str** | Brief error message | +**code** | **int** | HTTP status code | +**type** | **str** | Error type identifier | +**detail** | **str** | Detailed error explanation | [optional] +**instance** | **str** | Specific occurrence identifier | [optional] + +## Example + +```python +from lance_namespace_urllib3_client.models.restore_table404_response import RestoreTable404Response + +# TODO update the JSON string below +json = "{}" +# create an instance of RestoreTable404Response from a JSON string +restore_table404_response_instance = RestoreTable404Response.from_json(json) +# print the JSON string representation of the object +print(RestoreTable404Response.to_json()) + +# convert the object into a dict +restore_table404_response_dict = restore_table404_response_instance.to_dict() +# create an instance of RestoreTable404Response from a dict +restore_table404_response_from_dict = RestoreTable404Response.from_dict(restore_table404_response_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/python/lance_namespace_urllib3_client/docs/TableAlreadyExistsError.md b/python/lance_namespace_urllib3_client/docs/TableAlreadyExistsError.md new file mode 100644 index 00000000..b14c8fdf --- /dev/null +++ b/python/lance_namespace_urllib3_client/docs/TableAlreadyExistsError.md @@ -0,0 +1,34 @@ +# TableAlreadyExistsError + +A table with the same name already exists + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**error** | **str** | Brief error message | +**code** | **int** | HTTP status code | +**type** | **str** | Error type identifier | +**detail** | **str** | Detailed error explanation | [optional] +**instance** | **str** | Specific occurrence identifier | [optional] + +## Example + +```python +from lance_namespace_urllib3_client.models.table_already_exists_error import TableAlreadyExistsError + +# TODO update the JSON string below +json = "{}" +# create an instance of TableAlreadyExistsError from a JSON string +table_already_exists_error_instance = TableAlreadyExistsError.from_json(json) +# print the JSON string representation of the object +print(TableAlreadyExistsError.to_json()) + +# convert the object into a dict +table_already_exists_error_dict = table_already_exists_error_instance.to_dict() +# create an instance of TableAlreadyExistsError from a dict +table_already_exists_error_from_dict = TableAlreadyExistsError.from_dict(table_already_exists_error_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/python/lance_namespace_urllib3_client/docs/TableApi.md b/python/lance_namespace_urllib3_client/docs/TableApi.md index 424faea7..778f614e 100644 --- a/python/lance_namespace_urllib3_client/docs/TableApi.md +++ b/python/lance_namespace_urllib3_client/docs/TableApi.md @@ -108,12 +108,12 @@ No authorization required | Status code | Description | Response headers | |-------------|-------------|------------------| **200** | Add columns operation result | - | -**400** | Indicates a bad request error. It could be caused by an unexpected request body format or other forms of request validation failure, such as invalid json. Usually serves application/json content, although in some cases simple text/plain content might be returned by the server's middleware. | - | +**400** | Bad request - invalid request, invalid schema, or invalid SQL | - | **401** | Unauthorized. The request lacks valid authentication credentials for the operation. | - | **403** | Forbidden. Authenticated user does not have the necessary permissions. | - | -**404** | A server-side problem that means can not find the specified resource. | - | +**404** | The requested table does not exist | - | **503** | The service is not ready to handle the request. The client should wait and retry. The service may additionally send a Retry-After header to indicate when to retry. | - | -**5XX** | A server-side problem that might not be addressable from the client side. Used for server 5xx errors without more specific documentation in individual routes. | - | +**5XX** | Unknown or unclassified error | - | [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -188,12 +188,12 @@ No authorization required | Status code | Description | Response headers | |-------------|-------------|------------------| **200** | Alter columns operation result | - | -**400** | Indicates a bad request error. It could be caused by an unexpected request body format or other forms of request validation failure, such as invalid json. Usually serves application/json content, although in some cases simple text/plain content might be returned by the server's middleware. | - | +**400** | Bad request - invalid request or column not found | - | **401** | Unauthorized. The request lacks valid authentication credentials for the operation. | - | **403** | Forbidden. Authenticated user does not have the necessary permissions. | - | -**404** | A server-side problem that means can not find the specified resource. | - | +**404** | The requested table does not exist | - | **503** | The service is not ready to handle the request. The client should wait and retry. The service may additionally send a Retry-After header to indicate when to retry. | - | -**5XX** | A server-side problem that might not be addressable from the client side. Used for server 5xx errors without more specific documentation in individual routes. | - | +**5XX** | Unknown or unclassified error | - | [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -268,12 +268,12 @@ No authorization required | Status code | Description | Response headers | |-------------|-------------|------------------| **200** | Drop columns operation result | - | -**400** | Indicates a bad request error. It could be caused by an unexpected request body format or other forms of request validation failure, such as invalid json. Usually serves application/json content, although in some cases simple text/plain content might be returned by the server's middleware. | - | +**400** | Bad request - invalid request or column not found | - | **401** | Unauthorized. The request lacks valid authentication credentials for the operation. | - | **403** | Forbidden. Authenticated user does not have the necessary permissions. | - | -**404** | A server-side problem that means can not find the specified resource. | - | +**404** | The requested table does not exist | - | **503** | The service is not ready to handle the request. The client should wait and retry. The service may additionally send a Retry-After header to indicate when to retry. | - | -**5XX** | A server-side problem that might not be addressable from the client side. Used for server 5xx errors without more specific documentation in individual routes. | - | +**5XX** | Unknown or unclassified error | - | [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -349,12 +349,12 @@ No authorization required | Status code | Description | Response headers | |-------------|-------------|------------------| **200** | Query execution plan analysis | - | -**400** | Indicates a bad request error. It could be caused by an unexpected request body format or other forms of request validation failure, such as invalid json. Usually serves application/json content, although in some cases simple text/plain content might be returned by the server's middleware. | - | +**400** | Bad request - invalid request or invalid SQL | - | **401** | Unauthorized. The request lacks valid authentication credentials for the operation. | - | **403** | Forbidden. Authenticated user does not have the necessary permissions. | - | -**404** | A server-side problem that means can not find the specified resource. | - | +**404** | The requested table does not exist | - | **503** | The service is not ready to handle the request. The client should wait and retry. The service may additionally send a Retry-After header to indicate when to retry. | - | -**5XX** | A server-side problem that might not be addressable from the client side. Used for server 5xx errors without more specific documentation in individual routes. | - | +**5XX** | Unknown or unclassified error | - | [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -428,12 +428,12 @@ No authorization required | Status code | Description | Response headers | |-------------|-------------|------------------| **200** | Result of counting rows in a table | - | -**400** | Indicates a bad request error. It could be caused by an unexpected request body format or other forms of request validation failure, such as invalid json. Usually serves application/json content, although in some cases simple text/plain content might be returned by the server's middleware. | - | +**400** | Bad request - invalid request or invalid SQL | - | **401** | Unauthorized. The request lacks valid authentication credentials for the operation. | - | **403** | Forbidden. Authenticated user does not have the necessary permissions. | - | -**404** | A server-side problem that means can not find the specified resource. | - | +**404** | The requested table does not exist | - | **503** | The service is not ready to handle the request. The client should wait and retry. The service may additionally send a Retry-After header to indicate when to retry. | - | -**5XX** | A server-side problem that might not be addressable from the client side. Used for server 5xx errors without more specific documentation in individual routes. | - | +**5XX** | Unknown or unclassified error | - | [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -515,8 +515,8 @@ No authorization required **400** | Indicates a bad request error. It could be caused by an unexpected request body format or other forms of request validation failure, such as invalid json. Usually serves application/json content, although in some cases simple text/plain content might be returned by the server's middleware. | - | **401** | Unauthorized. The request lacks valid authentication credentials for the operation. | - | **403** | Forbidden. Authenticated user does not have the necessary permissions. | - | -**404** | A server-side problem that means can not find the specified resource. | - | -**409** | The request conflicts with the current state of the target resource. | - | +**404** | The parent namespace does not exist | - | +**409** | A table with the same name already exists | - | **503** | The service is not ready to handle the request. The client should wait and retry. The service may additionally send a Retry-After header to indicate when to retry. | - | **5XX** | A server-side problem that might not be addressable from the client side. Used for server 5xx errors without more specific documentation in individual routes. | - | @@ -609,12 +609,13 @@ No authorization required | Status code | Description | Response headers | |-------------|-------------|------------------| **200** | Table properties result when creating a table | - | -**400** | Indicates a bad request error. It could be caused by an unexpected request body format or other forms of request validation failure, such as invalid json. Usually serves application/json content, although in some cases simple text/plain content might be returned by the server's middleware. | - | +**400** | Bad request - invalid request or invalid schema | - | **401** | Unauthorized. The request lacks valid authentication credentials for the operation. | - | **403** | Forbidden. Authenticated user does not have the necessary permissions. | - | -**404** | A server-side problem that means can not find the specified resource. | - | +**404** | The parent namespace does not exist | - | +**409** | A table with the same name already exists | - | **503** | The service is not ready to handle the request. The client should wait and retry. The service may additionally send a Retry-After header to indicate when to retry. | - | -**5XX** | A server-side problem that might not be addressable from the client side. Used for server 5xx errors without more specific documentation in individual routes. | - | +**5XX** | Unknown or unclassified error | - | [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -692,12 +693,13 @@ No authorization required | Status code | Description | Response headers | |-------------|-------------|------------------| **200** | Index created successfully | - | -**400** | Indicates a bad request error. It could be caused by an unexpected request body format or other forms of request validation failure, such as invalid json. Usually serves application/json content, although in some cases simple text/plain content might be returned by the server's middleware. | - | +**400** | Bad request - invalid request, column not found, or invalid index config | - | **401** | Unauthorized. The request lacks valid authentication credentials for the operation. | - | **403** | Forbidden. Authenticated user does not have the necessary permissions. | - | -**404** | A server-side problem that means can not find the specified resource. | - | +**404** | The requested table does not exist | - | +**409** | An index with the same name already exists | - | **503** | The service is not ready to handle the request. The client should wait and retry. The service may additionally send a Retry-After header to indicate when to retry. | - | -**5XX** | A server-side problem that might not be addressable from the client side. Used for server 5xx errors without more specific documentation in individual routes. | - | +**5XX** | Unknown or unclassified error | - | [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -772,8 +774,8 @@ No authorization required **400** | Indicates a bad request error. It could be caused by an unexpected request body format or other forms of request validation failure, such as invalid json. Usually serves application/json content, although in some cases simple text/plain content might be returned by the server's middleware. | - | **401** | Unauthorized. The request lacks valid authentication credentials for the operation. | - | **403** | Forbidden. Authenticated user does not have the necessary permissions. | - | -**404** | A server-side problem that means can not find the specified resource. | - | -**409** | The request conflicts with the current state of the target resource. | - | +**404** | Not found - table or version does not exist | - | +**409** | A tag with the same name already exists | - | **503** | The service is not ready to handle the request. The client should wait and retry. The service may additionally send a Retry-After header to indicate when to retry. | - | **5XX** | A server-side problem that might not be addressable from the client side. Used for server 5xx errors without more specific documentation in individual routes. | - | @@ -850,12 +852,12 @@ No authorization required | Status code | Description | Response headers | |-------------|-------------|------------------| **200** | Delete successful | - | -**400** | Indicates a bad request error. It could be caused by an unexpected request body format or other forms of request validation failure, such as invalid json. Usually serves application/json content, although in some cases simple text/plain content might be returned by the server's middleware. | - | +**400** | Bad request - invalid request or invalid SQL | - | **401** | Unauthorized. The request lacks valid authentication credentials for the operation. | - | **403** | Forbidden. Authenticated user does not have the necessary permissions. | - | -**404** | A server-side problem that means can not find the specified resource. | - | +**404** | The requested table does not exist | - | **503** | The service is not ready to handle the request. The client should wait and retry. The service may additionally send a Retry-After header to indicate when to retry. | - | -**5XX** | A server-side problem that might not be addressable from the client side. Used for server 5xx errors without more specific documentation in individual routes. | - | +**5XX** | Unknown or unclassified error | - | [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -930,7 +932,7 @@ No authorization required **400** | Indicates a bad request error. It could be caused by an unexpected request body format or other forms of request validation failure, such as invalid json. Usually serves application/json content, although in some cases simple text/plain content might be returned by the server's middleware. | - | **401** | Unauthorized. The request lacks valid authentication credentials for the operation. | - | **403** | Forbidden. Authenticated user does not have the necessary permissions. | - | -**404** | A server-side problem that means can not find the specified resource. | - | +**404** | Not found - table or tag does not exist | - | **503** | The service is not ready to handle the request. The client should wait and retry. The service may additionally send a Retry-After header to indicate when to retry. | - | **5XX** | A server-side problem that might not be addressable from the client side. Used for server 5xx errors without more specific documentation in individual routes. | - | @@ -1007,12 +1009,12 @@ No authorization required | Status code | Description | Response headers | |-------------|-------------|------------------| **200** | Response of DeregisterTable | - | -**400** | Indicates a bad request error. It could be caused by an unexpected request body format or other forms of request validation failure, such as invalid json. Usually serves application/json content, although in some cases simple text/plain content might be returned by the server's middleware. | - | +**400** | Malformed request or validation failure | - | **401** | Unauthorized. The request lacks valid authentication credentials for the operation. | - | **403** | Forbidden. Authenticated user does not have the necessary permissions. | - | -**404** | A server-side problem that means can not find the specified resource. | - | +**404** | The requested table does not exist | - | **503** | The service is not ready to handle the request. The client should wait and retry. The service may additionally send a Retry-After header to indicate when to retry. | - | -**5XX** | A server-side problem that might not be addressable from the client side. Used for server 5xx errors without more specific documentation in individual routes. | - | +**5XX** | Unknown or unclassified error | - | [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -1087,12 +1089,12 @@ No authorization required | Status code | Description | Response headers | |-------------|-------------|------------------| **200** | Table properties result when loading a table | - | -**400** | Indicates a bad request error. It could be caused by an unexpected request body format or other forms of request validation failure, such as invalid json. Usually serves application/json content, although in some cases simple text/plain content might be returned by the server's middleware. | - | +**400** | Malformed request or validation failure | - | **401** | Unauthorized. The request lacks valid authentication credentials for the operation. | - | **403** | Forbidden. Authenticated user does not have the necessary permissions. | - | -**404** | A server-side problem that means can not find the specified resource. | - | +**404** | The requested table does not exist | - | **503** | The service is not ready to handle the request. The client should wait and retry. The service may additionally send a Retry-After header to indicate when to retry. | - | -**5XX** | A server-side problem that might not be addressable from the client side. Used for server 5xx errors without more specific documentation in individual routes. | - | +**5XX** | Unknown or unclassified error | - | [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -1170,12 +1172,12 @@ No authorization required | Status code | Description | Response headers | |-------------|-------------|------------------| **200** | Index statistics | - | -**400** | Indicates a bad request error. It could be caused by an unexpected request body format or other forms of request validation failure, such as invalid json. Usually serves application/json content, although in some cases simple text/plain content might be returned by the server's middleware. | - | +**400** | Malformed request or validation failure | - | **401** | Unauthorized. The request lacks valid authentication credentials for the operation. | - | **403** | Forbidden. Authenticated user does not have the necessary permissions. | - | -**404** | A server-side problem that means can not find the specified resource. | - | +**404** | Not found - table or index does not exist | - | **503** | The service is not ready to handle the request. The client should wait and retry. The service may additionally send a Retry-After header to indicate when to retry. | - | -**5XX** | A server-side problem that might not be addressable from the client side. Used for server 5xx errors without more specific documentation in individual routes. | - | +**5XX** | Unknown or unclassified error | - | [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -1250,12 +1252,12 @@ No authorization required | Status code | Description | Response headers | |-------------|-------------|------------------| **200** | Response of DropTable | - | -**400** | Indicates a bad request error. It could be caused by an unexpected request body format or other forms of request validation failure, such as invalid json. Usually serves application/json content, although in some cases simple text/plain content might be returned by the server's middleware. | - | +**400** | Malformed request or validation failure | - | **401** | Unauthorized. The request lacks valid authentication credentials for the operation. | - | **403** | Forbidden. Authenticated user does not have the necessary permissions. | - | -**404** | A server-side problem that means can not find the specified resource. | - | +**404** | The requested table does not exist | - | **503** | The service is not ready to handle the request. The client should wait and retry. The service may additionally send a Retry-After header to indicate when to retry. | - | -**5XX** | A server-side problem that might not be addressable from the client side. Used for server 5xx errors without more specific documentation in individual routes. | - | +**5XX** | Unknown or unclassified error | - | [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -1335,7 +1337,7 @@ No authorization required **400** | Indicates a bad request error. It could be caused by an unexpected request body format or other forms of request validation failure, such as invalid json. Usually serves application/json content, although in some cases simple text/plain content might be returned by the server's middleware. | - | **401** | Unauthorized. The request lacks valid authentication credentials for the operation. | - | **403** | Forbidden. Authenticated user does not have the necessary permissions. | - | -**404** | A server-side problem that means can not find the specified resource. | - | +**404** | Not found - table or index does not exist | - | **503** | The service is not ready to handle the request. The client should wait and retry. The service may additionally send a Retry-After header to indicate when to retry. | - | **5XX** | A server-side problem that might not be addressable from the client side. Used for server 5xx errors without more specific documentation in individual routes. | - | @@ -1413,12 +1415,12 @@ No authorization required | Status code | Description | Response headers | |-------------|-------------|------------------| **200** | Query execution plan explanation | - | -**400** | Indicates a bad request error. It could be caused by an unexpected request body format or other forms of request validation failure, such as invalid json. Usually serves application/json content, although in some cases simple text/plain content might be returned by the server's middleware. | - | +**400** | Bad request - invalid request or invalid SQL | - | **401** | Unauthorized. The request lacks valid authentication credentials for the operation. | - | **403** | Forbidden. Authenticated user does not have the necessary permissions. | - | -**404** | A server-side problem that means can not find the specified resource. | - | +**404** | The requested table does not exist | - | **503** | The service is not ready to handle the request. The client should wait and retry. The service may additionally send a Retry-After header to indicate when to retry. | - | -**5XX** | A server-side problem that might not be addressable from the client side. Used for server 5xx errors without more specific documentation in individual routes. | - | +**5XX** | Unknown or unclassified error | - | [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -1493,12 +1495,12 @@ No authorization required | Status code | Description | Response headers | |-------------|-------------|------------------| **200** | Table statistics | - | -**400** | Indicates a bad request error. It could be caused by an unexpected request body format or other forms of request validation failure, such as invalid json. Usually serves application/json content, although in some cases simple text/plain content might be returned by the server's middleware. | - | +**400** | Malformed request or validation failure | - | **401** | Unauthorized. The request lacks valid authentication credentials for the operation. | - | **403** | Forbidden. Authenticated user does not have the necessary permissions. | - | -**404** | A server-side problem that means can not find the specified resource. | - | +**404** | The requested table does not exist | - | **503** | The service is not ready to handle the request. The client should wait and retry. The service may additionally send a Retry-After header to indicate when to retry. | - | -**5XX** | A server-side problem that might not be addressable from the client side. Used for server 5xx errors without more specific documentation in individual routes. | - | +**5XX** | Unknown or unclassified error | - | [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -1576,7 +1578,7 @@ No authorization required **400** | Indicates a bad request error. It could be caused by an unexpected request body format or other forms of request validation failure, such as invalid json. Usually serves application/json content, although in some cases simple text/plain content might be returned by the server's middleware. | - | **401** | Unauthorized. The request lacks valid authentication credentials for the operation. | - | **403** | Forbidden. Authenticated user does not have the necessary permissions. | - | -**404** | A server-side problem that means can not find the specified resource. | - | +**404** | Not found - table or tag does not exist | - | **503** | The service is not ready to handle the request. The client should wait and retry. The service may additionally send a Retry-After header to indicate when to retry. | - | **5XX** | A server-side problem that might not be addressable from the client side. Used for server 5xx errors without more specific documentation in individual routes. | - | @@ -1660,12 +1662,12 @@ No authorization required | Status code | Description | Response headers | |-------------|-------------|------------------| **200** | Result of inserting records into a table | - | -**400** | Indicates a bad request error. It could be caused by an unexpected request body format or other forms of request validation failure, such as invalid json. Usually serves application/json content, although in some cases simple text/plain content might be returned by the server's middleware. | - | +**400** | Bad request - invalid request or schema mismatch | - | **401** | Unauthorized. The request lacks valid authentication credentials for the operation. | - | **403** | Forbidden. Authenticated user does not have the necessary permissions. | - | -**404** | A server-side problem that means can not find the specified resource. | - | +**404** | The requested table does not exist | - | **503** | The service is not ready to handle the request. The client should wait and retry. The service may additionally send a Retry-After header to indicate when to retry. | - | -**5XX** | A server-side problem that might not be addressable from the client side. Used for server 5xx errors without more specific documentation in individual routes. | - | +**5XX** | Unknown or unclassified error | - | [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -1741,12 +1743,12 @@ No authorization required | Status code | Description | Response headers | |-------------|-------------|------------------| **200** | List of indices on the table | - | -**400** | Indicates a bad request error. It could be caused by an unexpected request body format or other forms of request validation failure, such as invalid json. Usually serves application/json content, although in some cases simple text/plain content might be returned by the server's middleware. | - | +**400** | Malformed request or validation failure | - | **401** | Unauthorized. The request lacks valid authentication credentials for the operation. | - | **403** | Forbidden. Authenticated user does not have the necessary permissions. | - | -**404** | A server-side problem that means can not find the specified resource. | - | +**404** | The requested table does not exist | - | **503** | The service is not ready to handle the request. The client should wait and retry. The service may additionally send a Retry-After header to indicate when to retry. | - | -**5XX** | A server-side problem that might not be addressable from the client side. Used for server 5xx errors without more specific documentation in individual routes. | - | +**5XX** | Unknown or unclassified error | - | [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -1833,7 +1835,7 @@ No authorization required **400** | Indicates a bad request error. It could be caused by an unexpected request body format or other forms of request validation failure, such as invalid json. Usually serves application/json content, although in some cases simple text/plain content might be returned by the server's middleware. | - | **401** | Unauthorized. The request lacks valid authentication credentials for the operation. | - | **403** | Forbidden. Authenticated user does not have the necessary permissions. | - | -**404** | A server-side problem that means can not find the specified resource. | - | +**404** | The requested table does not exist | - | **503** | The service is not ready to handle the request. The client should wait and retry. The service may additionally send a Retry-After header to indicate when to retry. | - | **5XX** | A server-side problem that might not be addressable from the client side. Used for server 5xx errors without more specific documentation in individual routes. | - | @@ -1910,12 +1912,12 @@ No authorization required | Status code | Description | Response headers | |-------------|-------------|------------------| **200** | List of table versions | - | -**400** | Indicates a bad request error. It could be caused by an unexpected request body format or other forms of request validation failure, such as invalid json. Usually serves application/json content, although in some cases simple text/plain content might be returned by the server's middleware. | - | +**400** | Malformed request or validation failure | - | **401** | Unauthorized. The request lacks valid authentication credentials for the operation. | - | **403** | Forbidden. Authenticated user does not have the necessary permissions. | - | -**404** | A server-side problem that means can not find the specified resource. | - | +**404** | The requested table does not exist | - | **503** | The service is not ready to handle the request. The client should wait and retry. The service may additionally send a Retry-After header to indicate when to retry. | - | -**5XX** | A server-side problem that might not be addressable from the client side. Used for server 5xx errors without more specific documentation in individual routes. | - | +**5XX** | Unknown or unclassified error | - | [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -1998,13 +2000,13 @@ No authorization required | Status code | Description | Response headers | |-------------|-------------|------------------| **200** | A list of tables | - | -**400** | Indicates a bad request error. It could be caused by an unexpected request body format or other forms of request validation failure, such as invalid json. Usually serves application/json content, although in some cases simple text/plain content might be returned by the server's middleware. | - | +**400** | Malformed request or validation failure | - | **401** | Unauthorized. The request lacks valid authentication credentials for the operation. | - | **403** | Forbidden. Authenticated user does not have the necessary permissions. | - | -**404** | A server-side problem that means can not find the specified resource. | - | +**404** | The requested namespace does not exist | - | **406** | Not Acceptable / Unsupported Operation. The server does not support this operation. | - | **503** | The service is not ready to handle the request. The client should wait and retry. The service may additionally send a Retry-After header to indicate when to retry. | - | -**5XX** | A server-side problem that might not be addressable from the client side. Used for server 5xx errors without more specific documentation in individual routes. | - | +**5XX** | Unknown or unclassified error | - | [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -2104,12 +2106,12 @@ No authorization required | Status code | Description | Response headers | |-------------|-------------|------------------| **200** | Result of merge insert operation | - | -**400** | Indicates a bad request error. It could be caused by an unexpected request body format or other forms of request validation failure, such as invalid json. Usually serves application/json content, although in some cases simple text/plain content might be returned by the server's middleware. | - | +**400** | Bad request - invalid request, column not found, or schema mismatch | - | **401** | Unauthorized. The request lacks valid authentication credentials for the operation. | - | **403** | Forbidden. Authenticated user does not have the necessary permissions. | - | -**404** | A server-side problem that means can not find the specified resource. | - | +**404** | The requested table does not exist | - | **503** | The service is not ready to handle the request. The client should wait and retry. The service may additionally send a Retry-After header to indicate when to retry. | - | -**5XX** | A server-side problem that might not be addressable from the client side. Used for server 5xx errors without more specific documentation in individual routes. | - | +**5XX** | Unknown or unclassified error | - | [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -2184,12 +2186,12 @@ No authorization required | Status code | Description | Response headers | |-------------|-------------|------------------| **200** | Query results in Arrow IPC file or stream format | - | -**400** | Indicates a bad request error. It could be caused by an unexpected request body format or other forms of request validation failure, such as invalid json. Usually serves application/json content, although in some cases simple text/plain content might be returned by the server's middleware. | - | +**400** | Bad request - invalid request or invalid SQL | - | **401** | Unauthorized. The request lacks valid authentication credentials for the operation. | - | **403** | Forbidden. Authenticated user does not have the necessary permissions. | - | -**404** | A server-side problem that means can not find the specified resource. | - | +**404** | The requested table does not exist | - | **503** | The service is not ready to handle the request. The client should wait and retry. The service may additionally send a Retry-After header to indicate when to retry. | - | -**5XX** | A server-side problem that might not be addressable from the client side. Used for server 5xx errors without more specific documentation in individual routes. | - | +**5XX** | Unknown or unclassified error | - | [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -2264,14 +2266,14 @@ No authorization required | Status code | Description | Response headers | |-------------|-------------|------------------| **200** | Table properties result when registering a table | - | -**400** | Indicates a bad request error. It could be caused by an unexpected request body format or other forms of request validation failure, such as invalid json. Usually serves application/json content, although in some cases simple text/plain content might be returned by the server's middleware. | - | +**400** | Malformed request or validation failure | - | **401** | Unauthorized. The request lacks valid authentication credentials for the operation. | - | **403** | Forbidden. Authenticated user does not have the necessary permissions. | - | -**404** | A server-side problem that means can not find the specified resource. | - | +**404** | The parent namespace does not exist | - | **406** | Not Acceptable / Unsupported Operation. The server does not support this operation. | - | -**409** | The request conflicts with the current state of the target resource. | - | +**409** | A table with the same name already exists | - | **503** | The service is not ready to handle the request. The client should wait and retry. The service may additionally send a Retry-After header to indicate when to retry. | - | -**5XX** | A server-side problem that might not be addressable from the client side. Used for server 5xx errors without more specific documentation in individual routes. | - | +**5XX** | Unknown or unclassified error | - | [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -2346,12 +2348,12 @@ No authorization required | Status code | Description | Response headers | |-------------|-------------|------------------| **200** | Table restore operation result | - | -**400** | Indicates a bad request error. It could be caused by an unexpected request body format or other forms of request validation failure, such as invalid json. Usually serves application/json content, although in some cases simple text/plain content might be returned by the server's middleware. | - | +**400** | Malformed request or validation failure | - | **401** | Unauthorized. The request lacks valid authentication credentials for the operation. | - | **403** | Forbidden. Authenticated user does not have the necessary permissions. | - | -**404** | A server-side problem that means can not find the specified resource. | - | +**404** | Not found - table or version does not exist | - | **503** | The service is not ready to handle the request. The client should wait and retry. The service may additionally send a Retry-After header to indicate when to retry. | - | -**5XX** | A server-side problem that might not be addressable from the client side. Used for server 5xx errors without more specific documentation in individual routes. | - | +**5XX** | Unknown or unclassified error | - | [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -2430,12 +2432,12 @@ No authorization required | Status code | Description | Response headers | |-------------|-------------|------------------| **200** | Success, no content | - | -**400** | Indicates a bad request error. It could be caused by an unexpected request body format or other forms of request validation failure, such as invalid json. Usually serves application/json content, although in some cases simple text/plain content might be returned by the server's middleware. | - | +**400** | Malformed request or validation failure | - | **401** | Unauthorized. The request lacks valid authentication credentials for the operation. | - | **403** | Forbidden. Authenticated user does not have the necessary permissions. | - | -**404** | A server-side problem that means can not find the specified resource. | - | +**404** | The requested table does not exist | - | **503** | The service is not ready to handle the request. The client should wait and retry. The service may additionally send a Retry-After header to indicate when to retry. | - | -**5XX** | A server-side problem that might not be addressable from the client side. Used for server 5xx errors without more specific documentation in individual routes. | - | +**5XX** | Unknown or unclassified error | - | [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -2510,12 +2512,12 @@ No authorization required | Status code | Description | Response headers | |-------------|-------------|------------------| **200** | Update successful | - | -**400** | Indicates a bad request error. It could be caused by an unexpected request body format or other forms of request validation failure, such as invalid json. Usually serves application/json content, although in some cases simple text/plain content might be returned by the server's middleware. | - | +**400** | Bad request - invalid request, column not found, or invalid SQL | - | **401** | Unauthorized. The request lacks valid authentication credentials for the operation. | - | **403** | Forbidden. Authenticated user does not have the necessary permissions. | - | -**404** | A server-side problem that means can not find the specified resource. | - | +**404** | The requested table does not exist | - | **503** | The service is not ready to handle the request. The client should wait and retry. The service may additionally send a Retry-After header to indicate when to retry. | - | -**5XX** | A server-side problem that might not be addressable from the client side. Used for server 5xx errors without more specific documentation in individual routes. | - | +**5XX** | Unknown or unclassified error | - | [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -2590,7 +2592,7 @@ No authorization required **400** | Indicates a bad request error. It could be caused by an unexpected request body format or other forms of request validation failure, such as invalid json. Usually serves application/json content, although in some cases simple text/plain content might be returned by the server's middleware. | - | **401** | Unauthorized. The request lacks valid authentication credentials for the operation. | - | **403** | Forbidden. Authenticated user does not have the necessary permissions. | - | -**404** | A server-side problem that means can not find the specified resource. | - | +**404** | Not found - table, tag, or version does not exist | - | **503** | The service is not ready to handle the request. The client should wait and retry. The service may additionally send a Retry-After header to indicate when to retry. | - | **5XX** | A server-side problem that might not be addressable from the client side. Used for server 5xx errors without more specific documentation in individual routes. | - | diff --git a/python/lance_namespace_urllib3_client/docs/TableColumnNotFoundError.md b/python/lance_namespace_urllib3_client/docs/TableColumnNotFoundError.md new file mode 100644 index 00000000..b0844192 --- /dev/null +++ b/python/lance_namespace_urllib3_client/docs/TableColumnNotFoundError.md @@ -0,0 +1,34 @@ +# TableColumnNotFoundError + +The specified column does not exist in the table + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**error** | **str** | Brief error message | +**code** | **int** | HTTP status code | +**type** | **str** | Error type identifier | +**detail** | **str** | Detailed error explanation | [optional] +**instance** | **str** | Specific occurrence identifier | [optional] + +## Example + +```python +from lance_namespace_urllib3_client.models.table_column_not_found_error import TableColumnNotFoundError + +# TODO update the JSON string below +json = "{}" +# create an instance of TableColumnNotFoundError from a JSON string +table_column_not_found_error_instance = TableColumnNotFoundError.from_json(json) +# print the JSON string representation of the object +print(TableColumnNotFoundError.to_json()) + +# convert the object into a dict +table_column_not_found_error_dict = table_column_not_found_error_instance.to_dict() +# create an instance of TableColumnNotFoundError from a dict +table_column_not_found_error_from_dict = TableColumnNotFoundError.from_dict(table_column_not_found_error_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/python/lance_namespace_urllib3_client/docs/TableIndexAlreadyExistsError.md b/python/lance_namespace_urllib3_client/docs/TableIndexAlreadyExistsError.md new file mode 100644 index 00000000..0a511d4f --- /dev/null +++ b/python/lance_namespace_urllib3_client/docs/TableIndexAlreadyExistsError.md @@ -0,0 +1,34 @@ +# TableIndexAlreadyExistsError + +An index with the same name already exists + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**error** | **str** | Brief error message | +**code** | **int** | HTTP status code | +**type** | **str** | Error type identifier | +**detail** | **str** | Detailed error explanation | [optional] +**instance** | **str** | Specific occurrence identifier | [optional] + +## Example + +```python +from lance_namespace_urllib3_client.models.table_index_already_exists_error import TableIndexAlreadyExistsError + +# TODO update the JSON string below +json = "{}" +# create an instance of TableIndexAlreadyExistsError from a JSON string +table_index_already_exists_error_instance = TableIndexAlreadyExistsError.from_json(json) +# print the JSON string representation of the object +print(TableIndexAlreadyExistsError.to_json()) + +# convert the object into a dict +table_index_already_exists_error_dict = table_index_already_exists_error_instance.to_dict() +# create an instance of TableIndexAlreadyExistsError from a dict +table_index_already_exists_error_from_dict = TableIndexAlreadyExistsError.from_dict(table_index_already_exists_error_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/python/lance_namespace_urllib3_client/docs/TableIndexNotFoundError.md b/python/lance_namespace_urllib3_client/docs/TableIndexNotFoundError.md new file mode 100644 index 00000000..72b93912 --- /dev/null +++ b/python/lance_namespace_urllib3_client/docs/TableIndexNotFoundError.md @@ -0,0 +1,34 @@ +# TableIndexNotFoundError + +The requested index does not exist + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**error** | **str** | Brief error message | +**code** | **int** | HTTP status code | +**type** | **str** | Error type identifier | +**detail** | **str** | Detailed error explanation | [optional] +**instance** | **str** | Specific occurrence identifier | [optional] + +## Example + +```python +from lance_namespace_urllib3_client.models.table_index_not_found_error import TableIndexNotFoundError + +# TODO update the JSON string below +json = "{}" +# create an instance of TableIndexNotFoundError from a JSON string +table_index_not_found_error_instance = TableIndexNotFoundError.from_json(json) +# print the JSON string representation of the object +print(TableIndexNotFoundError.to_json()) + +# convert the object into a dict +table_index_not_found_error_dict = table_index_not_found_error_instance.to_dict() +# create an instance of TableIndexNotFoundError from a dict +table_index_not_found_error_from_dict = TableIndexNotFoundError.from_dict(table_index_not_found_error_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/python/lance_namespace_urllib3_client/docs/TableNotFoundError.md b/python/lance_namespace_urllib3_client/docs/TableNotFoundError.md new file mode 100644 index 00000000..0a5ab85a --- /dev/null +++ b/python/lance_namespace_urllib3_client/docs/TableNotFoundError.md @@ -0,0 +1,34 @@ +# TableNotFoundError + +The requested table does not exist + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**error** | **str** | Brief error message | +**code** | **int** | HTTP status code | +**type** | **str** | Error type identifier | +**detail** | **str** | Detailed error explanation | [optional] +**instance** | **str** | Specific occurrence identifier | [optional] + +## Example + +```python +from lance_namespace_urllib3_client.models.table_not_found_error import TableNotFoundError + +# TODO update the JSON string below +json = "{}" +# create an instance of TableNotFoundError from a JSON string +table_not_found_error_instance = TableNotFoundError.from_json(json) +# print the JSON string representation of the object +print(TableNotFoundError.to_json()) + +# convert the object into a dict +table_not_found_error_dict = table_not_found_error_instance.to_dict() +# create an instance of TableNotFoundError from a dict +table_not_found_error_from_dict = TableNotFoundError.from_dict(table_not_found_error_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/python/lance_namespace_urllib3_client/docs/TableSchemaMismatchError.md b/python/lance_namespace_urllib3_client/docs/TableSchemaMismatchError.md new file mode 100644 index 00000000..eece6db2 --- /dev/null +++ b/python/lance_namespace_urllib3_client/docs/TableSchemaMismatchError.md @@ -0,0 +1,34 @@ +# TableSchemaMismatchError + +The data schema does not match the table schema + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**error** | **str** | Brief error message | +**code** | **int** | HTTP status code | +**type** | **str** | Error type identifier | +**detail** | **str** | Detailed error explanation | [optional] +**instance** | **str** | Specific occurrence identifier | [optional] + +## Example + +```python +from lance_namespace_urllib3_client.models.table_schema_mismatch_error import TableSchemaMismatchError + +# TODO update the JSON string below +json = "{}" +# create an instance of TableSchemaMismatchError from a JSON string +table_schema_mismatch_error_instance = TableSchemaMismatchError.from_json(json) +# print the JSON string representation of the object +print(TableSchemaMismatchError.to_json()) + +# convert the object into a dict +table_schema_mismatch_error_dict = table_schema_mismatch_error_instance.to_dict() +# create an instance of TableSchemaMismatchError from a dict +table_schema_mismatch_error_from_dict = TableSchemaMismatchError.from_dict(table_schema_mismatch_error_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/python/lance_namespace_urllib3_client/docs/TableTagAlreadyExistsError.md b/python/lance_namespace_urllib3_client/docs/TableTagAlreadyExistsError.md new file mode 100644 index 00000000..a77c2b5e --- /dev/null +++ b/python/lance_namespace_urllib3_client/docs/TableTagAlreadyExistsError.md @@ -0,0 +1,34 @@ +# TableTagAlreadyExistsError + +A tag with the same name already exists + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**error** | **str** | Brief error message | +**code** | **int** | HTTP status code | +**type** | **str** | Error type identifier | +**detail** | **str** | Detailed error explanation | [optional] +**instance** | **str** | Specific occurrence identifier | [optional] + +## Example + +```python +from lance_namespace_urllib3_client.models.table_tag_already_exists_error import TableTagAlreadyExistsError + +# TODO update the JSON string below +json = "{}" +# create an instance of TableTagAlreadyExistsError from a JSON string +table_tag_already_exists_error_instance = TableTagAlreadyExistsError.from_json(json) +# print the JSON string representation of the object +print(TableTagAlreadyExistsError.to_json()) + +# convert the object into a dict +table_tag_already_exists_error_dict = table_tag_already_exists_error_instance.to_dict() +# create an instance of TableTagAlreadyExistsError from a dict +table_tag_already_exists_error_from_dict = TableTagAlreadyExistsError.from_dict(table_tag_already_exists_error_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/python/lance_namespace_urllib3_client/docs/TableTagNotFoundError.md b/python/lance_namespace_urllib3_client/docs/TableTagNotFoundError.md new file mode 100644 index 00000000..0e9e6990 --- /dev/null +++ b/python/lance_namespace_urllib3_client/docs/TableTagNotFoundError.md @@ -0,0 +1,34 @@ +# TableTagNotFoundError + +The requested tag does not exist + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**error** | **str** | Brief error message | +**code** | **int** | HTTP status code | +**type** | **str** | Error type identifier | +**detail** | **str** | Detailed error explanation | [optional] +**instance** | **str** | Specific occurrence identifier | [optional] + +## Example + +```python +from lance_namespace_urllib3_client.models.table_tag_not_found_error import TableTagNotFoundError + +# TODO update the JSON string below +json = "{}" +# create an instance of TableTagNotFoundError from a JSON string +table_tag_not_found_error_instance = TableTagNotFoundError.from_json(json) +# print the JSON string representation of the object +print(TableTagNotFoundError.to_json()) + +# convert the object into a dict +table_tag_not_found_error_dict = table_tag_not_found_error_instance.to_dict() +# create an instance of TableTagNotFoundError from a dict +table_tag_not_found_error_from_dict = TableTagNotFoundError.from_dict(table_tag_not_found_error_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/python/lance_namespace_urllib3_client/docs/TableVersionNotFoundError.md b/python/lance_namespace_urllib3_client/docs/TableVersionNotFoundError.md new file mode 100644 index 00000000..1f10b335 --- /dev/null +++ b/python/lance_namespace_urllib3_client/docs/TableVersionNotFoundError.md @@ -0,0 +1,34 @@ +# TableVersionNotFoundError + +The requested table version does not exist + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**error** | **str** | Brief error message | +**code** | **int** | HTTP status code | +**type** | **str** | Error type identifier | +**detail** | **str** | Detailed error explanation | [optional] +**instance** | **str** | Specific occurrence identifier | [optional] + +## Example + +```python +from lance_namespace_urllib3_client.models.table_version_not_found_error import TableVersionNotFoundError + +# TODO update the JSON string below +json = "{}" +# create an instance of TableVersionNotFoundError from a JSON string +table_version_not_found_error_instance = TableVersionNotFoundError.from_json(json) +# print the JSON string representation of the object +print(TableVersionNotFoundError.to_json()) + +# convert the object into a dict +table_version_not_found_error_dict = table_version_not_found_error_instance.to_dict() +# create an instance of TableVersionNotFoundError from a dict +table_version_not_found_error_from_dict = TableVersionNotFoundError.from_dict(table_version_not_found_error_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/python/lance_namespace_urllib3_client/docs/TagApi.md b/python/lance_namespace_urllib3_client/docs/TagApi.md index 8d78470e..17ff37cf 100644 --- a/python/lance_namespace_urllib3_client/docs/TagApi.md +++ b/python/lance_namespace_urllib3_client/docs/TagApi.md @@ -82,8 +82,8 @@ No authorization required **400** | Indicates a bad request error. It could be caused by an unexpected request body format or other forms of request validation failure, such as invalid json. Usually serves application/json content, although in some cases simple text/plain content might be returned by the server's middleware. | - | **401** | Unauthorized. The request lacks valid authentication credentials for the operation. | - | **403** | Forbidden. Authenticated user does not have the necessary permissions. | - | -**404** | A server-side problem that means can not find the specified resource. | - | -**409** | The request conflicts with the current state of the target resource. | - | +**404** | Not found - table or version does not exist | - | +**409** | A tag with the same name already exists | - | **503** | The service is not ready to handle the request. The client should wait and retry. The service may additionally send a Retry-After header to indicate when to retry. | - | **5XX** | A server-side problem that might not be addressable from the client side. Used for server 5xx errors without more specific documentation in individual routes. | - | @@ -160,7 +160,7 @@ No authorization required **400** | Indicates a bad request error. It could be caused by an unexpected request body format or other forms of request validation failure, such as invalid json. Usually serves application/json content, although in some cases simple text/plain content might be returned by the server's middleware. | - | **401** | Unauthorized. The request lacks valid authentication credentials for the operation. | - | **403** | Forbidden. Authenticated user does not have the necessary permissions. | - | -**404** | A server-side problem that means can not find the specified resource. | - | +**404** | Not found - table or tag does not exist | - | **503** | The service is not ready to handle the request. The client should wait and retry. The service may additionally send a Retry-After header to indicate when to retry. | - | **5XX** | A server-side problem that might not be addressable from the client side. Used for server 5xx errors without more specific documentation in individual routes. | - | @@ -240,7 +240,7 @@ No authorization required **400** | Indicates a bad request error. It could be caused by an unexpected request body format or other forms of request validation failure, such as invalid json. Usually serves application/json content, although in some cases simple text/plain content might be returned by the server's middleware. | - | **401** | Unauthorized. The request lacks valid authentication credentials for the operation. | - | **403** | Forbidden. Authenticated user does not have the necessary permissions. | - | -**404** | A server-side problem that means can not find the specified resource. | - | +**404** | Not found - table or tag does not exist | - | **503** | The service is not ready to handle the request. The client should wait and retry. The service may additionally send a Retry-After header to indicate when to retry. | - | **5XX** | A server-side problem that might not be addressable from the client side. Used for server 5xx errors without more specific documentation in individual routes. | - | @@ -329,7 +329,7 @@ No authorization required **400** | Indicates a bad request error. It could be caused by an unexpected request body format or other forms of request validation failure, such as invalid json. Usually serves application/json content, although in some cases simple text/plain content might be returned by the server's middleware. | - | **401** | Unauthorized. The request lacks valid authentication credentials for the operation. | - | **403** | Forbidden. Authenticated user does not have the necessary permissions. | - | -**404** | A server-side problem that means can not find the specified resource. | - | +**404** | The requested table does not exist | - | **503** | The service is not ready to handle the request. The client should wait and retry. The service may additionally send a Retry-After header to indicate when to retry. | - | **5XX** | A server-side problem that might not be addressable from the client side. Used for server 5xx errors without more specific documentation in individual routes. | - | @@ -406,7 +406,7 @@ No authorization required **400** | Indicates a bad request error. It could be caused by an unexpected request body format or other forms of request validation failure, such as invalid json. Usually serves application/json content, although in some cases simple text/plain content might be returned by the server's middleware. | - | **401** | Unauthorized. The request lacks valid authentication credentials for the operation. | - | **403** | Forbidden. Authenticated user does not have the necessary permissions. | - | -**404** | A server-side problem that means can not find the specified resource. | - | +**404** | Not found - table, tag, or version does not exist | - | **503** | The service is not ready to handle the request. The client should wait and retry. The service may additionally send a Retry-After header to indicate when to retry. | - | **5XX** | A server-side problem that might not be addressable from the client side. Used for server 5xx errors without more specific documentation in individual routes. | - | diff --git a/python/lance_namespace_urllib3_client/docs/TransactionApi.md b/python/lance_namespace_urllib3_client/docs/TransactionApi.md index ad99c8a1..235c5df3 100644 --- a/python/lance_namespace_urllib3_client/docs/TransactionApi.md +++ b/python/lance_namespace_urllib3_client/docs/TransactionApi.md @@ -83,8 +83,8 @@ No authorization required **400** | Indicates a bad request error. It could be caused by an unexpected request body format or other forms of request validation failure, such as invalid json. Usually serves application/json content, although in some cases simple text/plain content might be returned by the server's middleware. | - | **401** | Unauthorized. The request lacks valid authentication credentials for the operation. | - | **403** | Forbidden. Authenticated user does not have the necessary permissions. | - | -**404** | A server-side problem that means can not find the specified resource. | - | -**409** | The request conflicts with the current state of the target resource. | - | +**404** | The requested transaction does not exist | - | +**409** | Transaction failed due to concurrent modification | - | **503** | The service is not ready to handle the request. The client should wait and retry. The service may additionally send a Retry-After header to indicate when to retry. | - | **5XX** | A server-side problem that might not be addressable from the client side. Used for server 5xx errors without more specific documentation in individual routes. | - | @@ -164,7 +164,7 @@ No authorization required **400** | Indicates a bad request error. It could be caused by an unexpected request body format or other forms of request validation failure, such as invalid json. Usually serves application/json content, although in some cases simple text/plain content might be returned by the server's middleware. | - | **401** | Unauthorized. The request lacks valid authentication credentials for the operation. | - | **403** | Forbidden. Authenticated user does not have the necessary permissions. | - | -**404** | A server-side problem that means can not find the specified resource. | - | +**404** | The requested transaction does not exist | - | **503** | The service is not ready to handle the request. The client should wait and retry. The service may additionally send a Retry-After header to indicate when to retry. | - | **5XX** | A server-side problem that might not be addressable from the client side. Used for server 5xx errors without more specific documentation in individual routes. | - | diff --git a/python/lance_namespace_urllib3_client/docs/TransactionConflictError.md b/python/lance_namespace_urllib3_client/docs/TransactionConflictError.md new file mode 100644 index 00000000..b434c492 --- /dev/null +++ b/python/lance_namespace_urllib3_client/docs/TransactionConflictError.md @@ -0,0 +1,34 @@ +# TransactionConflictError + +Transaction failed due to concurrent modification + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**error** | **str** | Brief error message | +**code** | **int** | HTTP status code | +**type** | **str** | Error type identifier | +**detail** | **str** | Detailed error explanation | [optional] +**instance** | **str** | Specific occurrence identifier | [optional] + +## Example + +```python +from lance_namespace_urllib3_client.models.transaction_conflict_error import TransactionConflictError + +# TODO update the JSON string below +json = "{}" +# create an instance of TransactionConflictError from a JSON string +transaction_conflict_error_instance = TransactionConflictError.from_json(json) +# print the JSON string representation of the object +print(TransactionConflictError.to_json()) + +# convert the object into a dict +transaction_conflict_error_dict = transaction_conflict_error_instance.to_dict() +# create an instance of TransactionConflictError from a dict +transaction_conflict_error_from_dict = TransactionConflictError.from_dict(transaction_conflict_error_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/python/lance_namespace_urllib3_client/docs/TransactionNotFoundError.md b/python/lance_namespace_urllib3_client/docs/TransactionNotFoundError.md new file mode 100644 index 00000000..b6515aab --- /dev/null +++ b/python/lance_namespace_urllib3_client/docs/TransactionNotFoundError.md @@ -0,0 +1,34 @@ +# TransactionNotFoundError + +The requested transaction does not exist + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**error** | **str** | Brief error message | +**code** | **int** | HTTP status code | +**type** | **str** | Error type identifier | +**detail** | **str** | Detailed error explanation | [optional] +**instance** | **str** | Specific occurrence identifier | [optional] + +## Example + +```python +from lance_namespace_urllib3_client.models.transaction_not_found_error import TransactionNotFoundError + +# TODO update the JSON string below +json = "{}" +# create an instance of TransactionNotFoundError from a JSON string +transaction_not_found_error_instance = TransactionNotFoundError.from_json(json) +# print the JSON string representation of the object +print(TransactionNotFoundError.to_json()) + +# convert the object into a dict +transaction_not_found_error_dict = transaction_not_found_error_instance.to_dict() +# create an instance of TransactionNotFoundError from a dict +transaction_not_found_error_from_dict = TransactionNotFoundError.from_dict(transaction_not_found_error_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/python/lance_namespace_urllib3_client/docs/UnknownError.md b/python/lance_namespace_urllib3_client/docs/UnknownError.md new file mode 100644 index 00000000..b3cbb466 --- /dev/null +++ b/python/lance_namespace_urllib3_client/docs/UnknownError.md @@ -0,0 +1,34 @@ +# UnknownError + +Unknown or unclassified error + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**error** | **str** | Brief error message | +**code** | **int** | HTTP status code | +**type** | **str** | Error type identifier | +**detail** | **str** | Detailed error explanation | [optional] +**instance** | **str** | Specific occurrence identifier | [optional] + +## Example + +```python +from lance_namespace_urllib3_client.models.unknown_error import UnknownError + +# TODO update the JSON string below +json = "{}" +# create an instance of UnknownError from a JSON string +unknown_error_instance = UnknownError.from_json(json) +# print the JSON string representation of the object +print(UnknownError.to_json()) + +# convert the object into a dict +unknown_error_dict = unknown_error_instance.to_dict() +# create an instance of UnknownError from a dict +unknown_error_from_dict = UnknownError.from_dict(unknown_error_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/python/lance_namespace_urllib3_client/docs/UpdateTable400Response.md b/python/lance_namespace_urllib3_client/docs/UpdateTable400Response.md new file mode 100644 index 00000000..a06efdf5 --- /dev/null +++ b/python/lance_namespace_urllib3_client/docs/UpdateTable400Response.md @@ -0,0 +1,33 @@ +# UpdateTable400Response + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**error** | **str** | Brief error message | +**code** | **int** | HTTP status code | +**type** | **str** | Error type identifier | +**detail** | **str** | Detailed error explanation | [optional] +**instance** | **str** | Specific occurrence identifier | [optional] + +## Example + +```python +from lance_namespace_urllib3_client.models.update_table400_response import UpdateTable400Response + +# TODO update the JSON string below +json = "{}" +# create an instance of UpdateTable400Response from a JSON string +update_table400_response_instance = UpdateTable400Response.from_json(json) +# print the JSON string representation of the object +print(UpdateTable400Response.to_json()) + +# convert the object into a dict +update_table400_response_dict = update_table400_response_instance.to_dict() +# create an instance of UpdateTable400Response from a dict +update_table400_response_from_dict = UpdateTable400Response.from_dict(update_table400_response_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/python/lance_namespace_urllib3_client/docs/UpdateTableTag404Response.md b/python/lance_namespace_urllib3_client/docs/UpdateTableTag404Response.md new file mode 100644 index 00000000..b1ca855a --- /dev/null +++ b/python/lance_namespace_urllib3_client/docs/UpdateTableTag404Response.md @@ -0,0 +1,33 @@ +# UpdateTableTag404Response + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**error** | **str** | Brief error message | +**code** | **int** | HTTP status code | +**type** | **str** | Error type identifier | +**detail** | **str** | Detailed error explanation | [optional] +**instance** | **str** | Specific occurrence identifier | [optional] + +## Example + +```python +from lance_namespace_urllib3_client.models.update_table_tag404_response import UpdateTableTag404Response + +# TODO update the JSON string below +json = "{}" +# create an instance of UpdateTableTag404Response from a JSON string +update_table_tag404_response_instance = UpdateTableTag404Response.from_json(json) +# print the JSON string representation of the object +print(UpdateTableTag404Response.to_json()) + +# convert the object into a dict +update_table_tag404_response_dict = update_table_tag404_response_instance.to_dict() +# create an instance of UpdateTableTag404Response from a dict +update_table_tag404_response_from_dict = UpdateTableTag404Response.from_dict(update_table_tag404_response_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/python/lance_namespace_urllib3_client/lance_namespace_urllib3_client/__init__.py b/python/lance_namespace_urllib3_client/lance_namespace_urllib3_client/__init__.py index 2eaacb0a..e04e427e 100644 --- a/python/lance_namespace_urllib3_client/lance_namespace_urllib3_client/__init__.py +++ b/python/lance_namespace_urllib3_client/lance_namespace_urllib3_client/__init__.py @@ -37,8 +37,10 @@ from lance_namespace_urllib3_client.exceptions import ApiException # import models into sdk package +from lance_namespace_urllib3_client.models.alter_table_add_columns400_response import AlterTableAddColumns400Response from lance_namespace_urllib3_client.models.alter_table_add_columns_request import AlterTableAddColumnsRequest from lance_namespace_urllib3_client.models.alter_table_add_columns_response import AlterTableAddColumnsResponse +from lance_namespace_urllib3_client.models.alter_table_alter_columns400_response import AlterTableAlterColumns400Response from lance_namespace_urllib3_client.models.alter_table_alter_columns_request import AlterTableAlterColumnsRequest from lance_namespace_urllib3_client.models.alter_table_alter_columns_response import AlterTableAlterColumnsResponse from lance_namespace_urllib3_client.models.alter_table_drop_columns_request import AlterTableDropColumnsRequest @@ -57,13 +59,17 @@ from lance_namespace_urllib3_client.models.count_table_rows_request import CountTableRowsRequest from lance_namespace_urllib3_client.models.create_empty_table_request import CreateEmptyTableRequest from lance_namespace_urllib3_client.models.create_empty_table_response import CreateEmptyTableResponse +from lance_namespace_urllib3_client.models.create_namespace400_response import CreateNamespace400Response from lance_namespace_urllib3_client.models.create_namespace_request import CreateNamespaceRequest from lance_namespace_urllib3_client.models.create_namespace_response import CreateNamespaceResponse +from lance_namespace_urllib3_client.models.create_table400_response import CreateTable400Response +from lance_namespace_urllib3_client.models.create_table_index400_response import CreateTableIndex400Response from lance_namespace_urllib3_client.models.create_table_index_request import CreateTableIndexRequest from lance_namespace_urllib3_client.models.create_table_index_response import CreateTableIndexResponse from lance_namespace_urllib3_client.models.create_table_request import CreateTableRequest from lance_namespace_urllib3_client.models.create_table_response import CreateTableResponse from lance_namespace_urllib3_client.models.create_table_tag_request import CreateTableTagRequest +from lance_namespace_urllib3_client.models.delete_from_table400_response import DeleteFromTable400Response from lance_namespace_urllib3_client.models.delete_from_table_request import DeleteFromTableRequest from lance_namespace_urllib3_client.models.delete_from_table_response import DeleteFromTableResponse from lance_namespace_urllib3_client.models.delete_table_tag_request import DeleteTableTagRequest @@ -71,6 +77,7 @@ from lance_namespace_urllib3_client.models.deregister_table_response import DeregisterTableResponse from lance_namespace_urllib3_client.models.describe_namespace_request import DescribeNamespaceRequest from lance_namespace_urllib3_client.models.describe_namespace_response import DescribeNamespaceResponse +from lance_namespace_urllib3_client.models.describe_table_index_stats404_response import DescribeTableIndexStats404Response from lance_namespace_urllib3_client.models.describe_table_index_stats_request import DescribeTableIndexStatsRequest from lance_namespace_urllib3_client.models.describe_table_index_stats_response import DescribeTableIndexStatsResponse from lance_namespace_urllib3_client.models.describe_table_request import DescribeTableRequest @@ -89,11 +96,18 @@ from lance_namespace_urllib3_client.models.fts_query import FtsQuery from lance_namespace_urllib3_client.models.get_table_stats_request import GetTableStatsRequest from lance_namespace_urllib3_client.models.get_table_stats_response import GetTableStatsResponse +from lance_namespace_urllib3_client.models.get_table_tag_version404_response import GetTableTagVersion404Response from lance_namespace_urllib3_client.models.get_table_tag_version_request import GetTableTagVersionRequest from lance_namespace_urllib3_client.models.get_table_tag_version_response import GetTableTagVersionResponse from lance_namespace_urllib3_client.models.index_content import IndexContent +from lance_namespace_urllib3_client.models.insert_into_table400_response import InsertIntoTable400Response from lance_namespace_urllib3_client.models.insert_into_table_request import InsertIntoTableRequest from lance_namespace_urllib3_client.models.insert_into_table_response import InsertIntoTableResponse +from lance_namespace_urllib3_client.models.invalid_identifier_error import InvalidIdentifierError +from lance_namespace_urllib3_client.models.invalid_request_error import InvalidRequestError +from lance_namespace_urllib3_client.models.invalid_sql_expression_error import InvalidSqlExpressionError +from lance_namespace_urllib3_client.models.invalid_table_index_configuration_error import InvalidTableIndexConfigurationError +from lance_namespace_urllib3_client.models.invalid_table_schema_error import InvalidTableSchemaError from lance_namespace_urllib3_client.models.json_arrow_data_type import JsonArrowDataType from lance_namespace_urllib3_client.models.json_arrow_field import JsonArrowField from lance_namespace_urllib3_client.models.json_arrow_schema import JsonArrowSchema @@ -107,28 +121,48 @@ from lance_namespace_urllib3_client.models.list_tables_request import ListTablesRequest from lance_namespace_urllib3_client.models.list_tables_response import ListTablesResponse from lance_namespace_urllib3_client.models.match_query import MatchQuery +from lance_namespace_urllib3_client.models.merge_insert_into_table400_response import MergeInsertIntoTable400Response from lance_namespace_urllib3_client.models.merge_insert_into_table_request import MergeInsertIntoTableRequest from lance_namespace_urllib3_client.models.merge_insert_into_table_response import MergeInsertIntoTableResponse from lance_namespace_urllib3_client.models.multi_match_query import MultiMatchQuery +from lance_namespace_urllib3_client.models.namespace_already_exists_error import NamespaceAlreadyExistsError from lance_namespace_urllib3_client.models.namespace_exists_request import NamespaceExistsRequest +from lance_namespace_urllib3_client.models.namespace_not_empty_error import NamespaceNotEmptyError +from lance_namespace_urllib3_client.models.namespace_not_found_error import NamespaceNotFoundError from lance_namespace_urllib3_client.models.new_column_transform import NewColumnTransform from lance_namespace_urllib3_client.models.operator import Operator +from lance_namespace_urllib3_client.models.parent_namespace_not_found_error import ParentNamespaceNotFoundError from lance_namespace_urllib3_client.models.phrase_query import PhraseQuery from lance_namespace_urllib3_client.models.query_table_request import QueryTableRequest from lance_namespace_urllib3_client.models.query_table_request_full_text_query import QueryTableRequestFullTextQuery from lance_namespace_urllib3_client.models.query_table_request_vector import QueryTableRequestVector from lance_namespace_urllib3_client.models.register_table_request import RegisterTableRequest from lance_namespace_urllib3_client.models.register_table_response import RegisterTableResponse +from lance_namespace_urllib3_client.models.restore_table404_response import RestoreTable404Response from lance_namespace_urllib3_client.models.restore_table_request import RestoreTableRequest from lance_namespace_urllib3_client.models.restore_table_response import RestoreTableResponse from lance_namespace_urllib3_client.models.set_property_mode import SetPropertyMode from lance_namespace_urllib3_client.models.string_fts_query import StringFtsQuery from lance_namespace_urllib3_client.models.structured_fts_query import StructuredFtsQuery +from lance_namespace_urllib3_client.models.table_already_exists_error import TableAlreadyExistsError +from lance_namespace_urllib3_client.models.table_column_not_found_error import TableColumnNotFoundError from lance_namespace_urllib3_client.models.table_exists_request import TableExistsRequest +from lance_namespace_urllib3_client.models.table_index_already_exists_error import TableIndexAlreadyExistsError +from lance_namespace_urllib3_client.models.table_index_not_found_error import TableIndexNotFoundError +from lance_namespace_urllib3_client.models.table_not_found_error import TableNotFoundError +from lance_namespace_urllib3_client.models.table_schema_mismatch_error import TableSchemaMismatchError +from lance_namespace_urllib3_client.models.table_tag_already_exists_error import TableTagAlreadyExistsError +from lance_namespace_urllib3_client.models.table_tag_not_found_error import TableTagNotFoundError from lance_namespace_urllib3_client.models.table_version import TableVersion +from lance_namespace_urllib3_client.models.table_version_not_found_error import TableVersionNotFoundError from lance_namespace_urllib3_client.models.tag_contents import TagContents +from lance_namespace_urllib3_client.models.transaction_conflict_error import TransactionConflictError +from lance_namespace_urllib3_client.models.transaction_not_found_error import TransactionNotFoundError from lance_namespace_urllib3_client.models.transaction_status import TransactionStatus +from lance_namespace_urllib3_client.models.unknown_error import UnknownError from lance_namespace_urllib3_client.models.unset_property_mode import UnsetPropertyMode +from lance_namespace_urllib3_client.models.update_table400_response import UpdateTable400Response from lance_namespace_urllib3_client.models.update_table_request import UpdateTableRequest from lance_namespace_urllib3_client.models.update_table_response import UpdateTableResponse +from lance_namespace_urllib3_client.models.update_table_tag404_response import UpdateTableTag404Response from lance_namespace_urllib3_client.models.update_table_tag_request import UpdateTableTagRequest diff --git a/python/lance_namespace_urllib3_client/lance_namespace_urllib3_client/api/data_api.py b/python/lance_namespace_urllib3_client/lance_namespace_urllib3_client/api/data_api.py index a199bc3c..b0ef2c47 100644 --- a/python/lance_namespace_urllib3_client/lance_namespace_urllib3_client/api/data_api.py +++ b/python/lance_namespace_urllib3_client/lance_namespace_urllib3_client/api/data_api.py @@ -116,12 +116,12 @@ def alter_table_add_columns( _response_types_map: Dict[str, Optional[str]] = { '200': "AlterTableAddColumnsResponse", - '400': "ErrorResponse", + '400': "AlterTableAddColumns400Response", '401': "ErrorResponse", '403': "ErrorResponse", - '404': "ErrorResponse", + '404': "TableNotFoundError", '503': "ErrorResponse", - '5XX': "ErrorResponse", + '5XX': "UnknownError", } response_data = self.api_client.call_api( *_param, @@ -197,12 +197,12 @@ def alter_table_add_columns_with_http_info( _response_types_map: Dict[str, Optional[str]] = { '200': "AlterTableAddColumnsResponse", - '400': "ErrorResponse", + '400': "AlterTableAddColumns400Response", '401': "ErrorResponse", '403': "ErrorResponse", - '404': "ErrorResponse", + '404': "TableNotFoundError", '503': "ErrorResponse", - '5XX': "ErrorResponse", + '5XX': "UnknownError", } response_data = self.api_client.call_api( *_param, @@ -278,12 +278,12 @@ def alter_table_add_columns_without_preload_content( _response_types_map: Dict[str, Optional[str]] = { '200': "AlterTableAddColumnsResponse", - '400': "ErrorResponse", + '400': "AlterTableAddColumns400Response", '401': "ErrorResponse", '403': "ErrorResponse", - '404': "ErrorResponse", + '404': "TableNotFoundError", '503': "ErrorResponse", - '5XX': "ErrorResponse", + '5XX': "UnknownError", } response_data = self.api_client.call_api( *_param, @@ -439,12 +439,12 @@ def analyze_table_query_plan( _response_types_map: Dict[str, Optional[str]] = { '200': "AnalyzeTableQueryPlanResponse", - '400': "ErrorResponse", + '400': "DeleteFromTable400Response", '401': "ErrorResponse", '403': "ErrorResponse", - '404': "ErrorResponse", + '404': "TableNotFoundError", '503': "ErrorResponse", - '5XX': "ErrorResponse", + '5XX': "UnknownError", } response_data = self.api_client.call_api( *_param, @@ -520,12 +520,12 @@ def analyze_table_query_plan_with_http_info( _response_types_map: Dict[str, Optional[str]] = { '200': "AnalyzeTableQueryPlanResponse", - '400': "ErrorResponse", + '400': "DeleteFromTable400Response", '401': "ErrorResponse", '403': "ErrorResponse", - '404': "ErrorResponse", + '404': "TableNotFoundError", '503': "ErrorResponse", - '5XX': "ErrorResponse", + '5XX': "UnknownError", } response_data = self.api_client.call_api( *_param, @@ -601,12 +601,12 @@ def analyze_table_query_plan_without_preload_content( _response_types_map: Dict[str, Optional[str]] = { '200': "AnalyzeTableQueryPlanResponse", - '400': "ErrorResponse", + '400': "DeleteFromTable400Response", '401': "ErrorResponse", '403': "ErrorResponse", - '404': "ErrorResponse", + '404': "TableNotFoundError", '503': "ErrorResponse", - '5XX': "ErrorResponse", + '5XX': "UnknownError", } response_data = self.api_client.call_api( *_param, @@ -762,12 +762,12 @@ def count_table_rows( _response_types_map: Dict[str, Optional[str]] = { '200': "int", - '400': "ErrorResponse", + '400': "DeleteFromTable400Response", '401': "ErrorResponse", '403': "ErrorResponse", - '404': "ErrorResponse", + '404': "TableNotFoundError", '503': "ErrorResponse", - '5XX': "ErrorResponse", + '5XX': "UnknownError", } response_data = self.api_client.call_api( *_param, @@ -843,12 +843,12 @@ def count_table_rows_with_http_info( _response_types_map: Dict[str, Optional[str]] = { '200': "int", - '400': "ErrorResponse", + '400': "DeleteFromTable400Response", '401': "ErrorResponse", '403': "ErrorResponse", - '404': "ErrorResponse", + '404': "TableNotFoundError", '503': "ErrorResponse", - '5XX': "ErrorResponse", + '5XX': "UnknownError", } response_data = self.api_client.call_api( *_param, @@ -924,12 +924,12 @@ def count_table_rows_without_preload_content( _response_types_map: Dict[str, Optional[str]] = { '200': "int", - '400': "ErrorResponse", + '400': "DeleteFromTable400Response", '401': "ErrorResponse", '403': "ErrorResponse", - '404': "ErrorResponse", + '404': "TableNotFoundError", '503': "ErrorResponse", - '5XX': "ErrorResponse", + '5XX': "UnknownError", } response_data = self.api_client.call_api( *_param, @@ -1097,12 +1097,13 @@ def create_table( _response_types_map: Dict[str, Optional[str]] = { '200': "CreateTableResponse", - '400': "ErrorResponse", + '400': "CreateTable400Response", '401': "ErrorResponse", '403': "ErrorResponse", - '404': "ErrorResponse", + '404': "ParentNamespaceNotFoundError", + '409': "TableAlreadyExistsError", '503': "ErrorResponse", - '5XX': "ErrorResponse", + '5XX': "UnknownError", } response_data = self.api_client.call_api( *_param, @@ -1190,12 +1191,13 @@ def create_table_with_http_info( _response_types_map: Dict[str, Optional[str]] = { '200': "CreateTableResponse", - '400': "ErrorResponse", + '400': "CreateTable400Response", '401': "ErrorResponse", '403': "ErrorResponse", - '404': "ErrorResponse", + '404': "ParentNamespaceNotFoundError", + '409': "TableAlreadyExistsError", '503': "ErrorResponse", - '5XX': "ErrorResponse", + '5XX': "UnknownError", } response_data = self.api_client.call_api( *_param, @@ -1283,12 +1285,13 @@ def create_table_without_preload_content( _response_types_map: Dict[str, Optional[str]] = { '200': "CreateTableResponse", - '400': "ErrorResponse", + '400': "CreateTable400Response", '401': "ErrorResponse", '403': "ErrorResponse", - '404': "ErrorResponse", + '404': "ParentNamespaceNotFoundError", + '409': "TableAlreadyExistsError", '503': "ErrorResponse", - '5XX': "ErrorResponse", + '5XX': "UnknownError", } response_data = self.api_client.call_api( *_param, @@ -1463,12 +1466,12 @@ def delete_from_table( _response_types_map: Dict[str, Optional[str]] = { '200': "DeleteFromTableResponse", - '400': "ErrorResponse", + '400': "DeleteFromTable400Response", '401': "ErrorResponse", '403': "ErrorResponse", - '404': "ErrorResponse", + '404': "TableNotFoundError", '503': "ErrorResponse", - '5XX': "ErrorResponse", + '5XX': "UnknownError", } response_data = self.api_client.call_api( *_param, @@ -1544,12 +1547,12 @@ def delete_from_table_with_http_info( _response_types_map: Dict[str, Optional[str]] = { '200': "DeleteFromTableResponse", - '400': "ErrorResponse", + '400': "DeleteFromTable400Response", '401': "ErrorResponse", '403': "ErrorResponse", - '404': "ErrorResponse", + '404': "TableNotFoundError", '503': "ErrorResponse", - '5XX': "ErrorResponse", + '5XX': "UnknownError", } response_data = self.api_client.call_api( *_param, @@ -1625,12 +1628,12 @@ def delete_from_table_without_preload_content( _response_types_map: Dict[str, Optional[str]] = { '200': "DeleteFromTableResponse", - '400': "ErrorResponse", + '400': "DeleteFromTable400Response", '401': "ErrorResponse", '403': "ErrorResponse", - '404': "ErrorResponse", + '404': "TableNotFoundError", '503': "ErrorResponse", - '5XX': "ErrorResponse", + '5XX': "UnknownError", } response_data = self.api_client.call_api( *_param, @@ -1786,12 +1789,12 @@ def explain_table_query_plan( _response_types_map: Dict[str, Optional[str]] = { '200': "ExplainTableQueryPlanResponse", - '400': "ErrorResponse", + '400': "DeleteFromTable400Response", '401': "ErrorResponse", '403': "ErrorResponse", - '404': "ErrorResponse", + '404': "TableNotFoundError", '503': "ErrorResponse", - '5XX': "ErrorResponse", + '5XX': "UnknownError", } response_data = self.api_client.call_api( *_param, @@ -1867,12 +1870,12 @@ def explain_table_query_plan_with_http_info( _response_types_map: Dict[str, Optional[str]] = { '200': "ExplainTableQueryPlanResponse", - '400': "ErrorResponse", + '400': "DeleteFromTable400Response", '401': "ErrorResponse", '403': "ErrorResponse", - '404': "ErrorResponse", + '404': "TableNotFoundError", '503': "ErrorResponse", - '5XX': "ErrorResponse", + '5XX': "UnknownError", } response_data = self.api_client.call_api( *_param, @@ -1948,12 +1951,12 @@ def explain_table_query_plan_without_preload_content( _response_types_map: Dict[str, Optional[str]] = { '200': "ExplainTableQueryPlanResponse", - '400': "ErrorResponse", + '400': "DeleteFromTable400Response", '401': "ErrorResponse", '403': "ErrorResponse", - '404': "ErrorResponse", + '404': "TableNotFoundError", '503': "ErrorResponse", - '5XX': "ErrorResponse", + '5XX': "UnknownError", } response_data = self.api_client.call_api( *_param, @@ -2113,12 +2116,12 @@ def insert_into_table( _response_types_map: Dict[str, Optional[str]] = { '200': "InsertIntoTableResponse", - '400': "ErrorResponse", + '400': "InsertIntoTable400Response", '401': "ErrorResponse", '403': "ErrorResponse", - '404': "ErrorResponse", + '404': "TableNotFoundError", '503': "ErrorResponse", - '5XX': "ErrorResponse", + '5XX': "UnknownError", } response_data = self.api_client.call_api( *_param, @@ -2198,12 +2201,12 @@ def insert_into_table_with_http_info( _response_types_map: Dict[str, Optional[str]] = { '200': "InsertIntoTableResponse", - '400': "ErrorResponse", + '400': "InsertIntoTable400Response", '401': "ErrorResponse", '403': "ErrorResponse", - '404': "ErrorResponse", + '404': "TableNotFoundError", '503': "ErrorResponse", - '5XX': "ErrorResponse", + '5XX': "UnknownError", } response_data = self.api_client.call_api( *_param, @@ -2283,12 +2286,12 @@ def insert_into_table_without_preload_content( _response_types_map: Dict[str, Optional[str]] = { '200': "InsertIntoTableResponse", - '400': "ErrorResponse", + '400': "InsertIntoTable400Response", '401': "ErrorResponse", '403': "ErrorResponse", - '404': "ErrorResponse", + '404': "TableNotFoundError", '503': "ErrorResponse", - '5XX': "ErrorResponse", + '5XX': "UnknownError", } response_data = self.api_client.call_api( *_param, @@ -2481,12 +2484,12 @@ def merge_insert_into_table( _response_types_map: Dict[str, Optional[str]] = { '200': "MergeInsertIntoTableResponse", - '400': "ErrorResponse", + '400': "MergeInsertIntoTable400Response", '401': "ErrorResponse", '403': "ErrorResponse", - '404': "ErrorResponse", + '404': "TableNotFoundError", '503': "ErrorResponse", - '5XX': "ErrorResponse", + '5XX': "UnknownError", } response_data = self.api_client.call_api( *_param, @@ -2586,12 +2589,12 @@ def merge_insert_into_table_with_http_info( _response_types_map: Dict[str, Optional[str]] = { '200': "MergeInsertIntoTableResponse", - '400': "ErrorResponse", + '400': "MergeInsertIntoTable400Response", '401': "ErrorResponse", '403': "ErrorResponse", - '404': "ErrorResponse", + '404': "TableNotFoundError", '503': "ErrorResponse", - '5XX': "ErrorResponse", + '5XX': "UnknownError", } response_data = self.api_client.call_api( *_param, @@ -2691,12 +2694,12 @@ def merge_insert_into_table_without_preload_content( _response_types_map: Dict[str, Optional[str]] = { '200': "MergeInsertIntoTableResponse", - '400': "ErrorResponse", + '400': "MergeInsertIntoTable400Response", '401': "ErrorResponse", '403': "ErrorResponse", - '404': "ErrorResponse", + '404': "TableNotFoundError", '503': "ErrorResponse", - '5XX': "ErrorResponse", + '5XX': "UnknownError", } response_data = self.api_client.call_api( *_param, @@ -2890,12 +2893,12 @@ def query_table( _response_types_map: Dict[str, Optional[str]] = { '200': "bytearray", - '400': "ErrorResponse", + '400': "DeleteFromTable400Response", '401': "ErrorResponse", '403': "ErrorResponse", - '404': "ErrorResponse", + '404': "TableNotFoundError", '503': "ErrorResponse", - '5XX': "ErrorResponse", + '5XX': "UnknownError", } response_data = self.api_client.call_api( *_param, @@ -2971,12 +2974,12 @@ def query_table_with_http_info( _response_types_map: Dict[str, Optional[str]] = { '200': "bytearray", - '400': "ErrorResponse", + '400': "DeleteFromTable400Response", '401': "ErrorResponse", '403': "ErrorResponse", - '404': "ErrorResponse", + '404': "TableNotFoundError", '503': "ErrorResponse", - '5XX': "ErrorResponse", + '5XX': "UnknownError", } response_data = self.api_client.call_api( *_param, @@ -3052,12 +3055,12 @@ def query_table_without_preload_content( _response_types_map: Dict[str, Optional[str]] = { '200': "bytearray", - '400': "ErrorResponse", + '400': "DeleteFromTable400Response", '401': "ErrorResponse", '403': "ErrorResponse", - '404': "ErrorResponse", + '404': "TableNotFoundError", '503': "ErrorResponse", - '5XX': "ErrorResponse", + '5XX': "UnknownError", } response_data = self.api_client.call_api( *_param, @@ -3215,12 +3218,12 @@ def update_table( _response_types_map: Dict[str, Optional[str]] = { '200': "UpdateTableResponse", - '400': "ErrorResponse", + '400': "UpdateTable400Response", '401': "ErrorResponse", '403': "ErrorResponse", - '404': "ErrorResponse", + '404': "TableNotFoundError", '503': "ErrorResponse", - '5XX': "ErrorResponse", + '5XX': "UnknownError", } response_data = self.api_client.call_api( *_param, @@ -3296,12 +3299,12 @@ def update_table_with_http_info( _response_types_map: Dict[str, Optional[str]] = { '200': "UpdateTableResponse", - '400': "ErrorResponse", + '400': "UpdateTable400Response", '401': "ErrorResponse", '403': "ErrorResponse", - '404': "ErrorResponse", + '404': "TableNotFoundError", '503': "ErrorResponse", - '5XX': "ErrorResponse", + '5XX': "UnknownError", } response_data = self.api_client.call_api( *_param, @@ -3377,12 +3380,12 @@ def update_table_without_preload_content( _response_types_map: Dict[str, Optional[str]] = { '200': "UpdateTableResponse", - '400': "ErrorResponse", + '400': "UpdateTable400Response", '401': "ErrorResponse", '403': "ErrorResponse", - '404': "ErrorResponse", + '404': "TableNotFoundError", '503': "ErrorResponse", - '5XX': "ErrorResponse", + '5XX': "UnknownError", } response_data = self.api_client.call_api( *_param, diff --git a/python/lance_namespace_urllib3_client/lance_namespace_urllib3_client/api/index_api.py b/python/lance_namespace_urllib3_client/lance_namespace_urllib3_client/api/index_api.py index d8a97746..2e936a47 100644 --- a/python/lance_namespace_urllib3_client/lance_namespace_urllib3_client/api/index_api.py +++ b/python/lance_namespace_urllib3_client/lance_namespace_urllib3_client/api/index_api.py @@ -109,12 +109,13 @@ def create_table_index( _response_types_map: Dict[str, Optional[str]] = { '200': "CreateTableIndexResponse", - '400': "ErrorResponse", + '400': "CreateTableIndex400Response", '401': "ErrorResponse", '403': "ErrorResponse", - '404': "ErrorResponse", + '404': "TableNotFoundError", + '409': "TableIndexAlreadyExistsError", '503': "ErrorResponse", - '5XX': "ErrorResponse", + '5XX': "UnknownError", } response_data = self.api_client.call_api( *_param, @@ -190,12 +191,13 @@ def create_table_index_with_http_info( _response_types_map: Dict[str, Optional[str]] = { '200': "CreateTableIndexResponse", - '400': "ErrorResponse", + '400': "CreateTableIndex400Response", '401': "ErrorResponse", '403': "ErrorResponse", - '404': "ErrorResponse", + '404': "TableNotFoundError", + '409': "TableIndexAlreadyExistsError", '503': "ErrorResponse", - '5XX': "ErrorResponse", + '5XX': "UnknownError", } response_data = self.api_client.call_api( *_param, @@ -271,12 +273,13 @@ def create_table_index_without_preload_content( _response_types_map: Dict[str, Optional[str]] = { '200': "CreateTableIndexResponse", - '400': "ErrorResponse", + '400': "CreateTableIndex400Response", '401': "ErrorResponse", '403': "ErrorResponse", - '404': "ErrorResponse", + '404': "TableNotFoundError", + '409': "TableIndexAlreadyExistsError", '503': "ErrorResponse", - '5XX': "ErrorResponse", + '5XX': "UnknownError", } response_data = self.api_client.call_api( *_param, @@ -436,12 +439,12 @@ def describe_table_index_stats( _response_types_map: Dict[str, Optional[str]] = { '200': "DescribeTableIndexStatsResponse", - '400': "ErrorResponse", + '400': "InvalidRequestError", '401': "ErrorResponse", '403': "ErrorResponse", - '404': "ErrorResponse", + '404': "DescribeTableIndexStats404Response", '503': "ErrorResponse", - '5XX': "ErrorResponse", + '5XX': "UnknownError", } response_data = self.api_client.call_api( *_param, @@ -521,12 +524,12 @@ def describe_table_index_stats_with_http_info( _response_types_map: Dict[str, Optional[str]] = { '200': "DescribeTableIndexStatsResponse", - '400': "ErrorResponse", + '400': "InvalidRequestError", '401': "ErrorResponse", '403': "ErrorResponse", - '404': "ErrorResponse", + '404': "DescribeTableIndexStats404Response", '503': "ErrorResponse", - '5XX': "ErrorResponse", + '5XX': "UnknownError", } response_data = self.api_client.call_api( *_param, @@ -606,12 +609,12 @@ def describe_table_index_stats_without_preload_content( _response_types_map: Dict[str, Optional[str]] = { '200': "DescribeTableIndexStatsResponse", - '400': "ErrorResponse", + '400': "InvalidRequestError", '401': "ErrorResponse", '403': "ErrorResponse", - '404': "ErrorResponse", + '404': "DescribeTableIndexStats404Response", '503': "ErrorResponse", - '5XX': "ErrorResponse", + '5XX': "UnknownError", } response_data = self.api_client.call_api( *_param, @@ -777,7 +780,7 @@ def drop_table_index( '400': "ErrorResponse", '401': "ErrorResponse", '403': "ErrorResponse", - '404': "ErrorResponse", + '404': "DescribeTableIndexStats404Response", '503': "ErrorResponse", '5XX': "ErrorResponse", } @@ -862,7 +865,7 @@ def drop_table_index_with_http_info( '400': "ErrorResponse", '401': "ErrorResponse", '403': "ErrorResponse", - '404': "ErrorResponse", + '404': "DescribeTableIndexStats404Response", '503': "ErrorResponse", '5XX': "ErrorResponse", } @@ -947,7 +950,7 @@ def drop_table_index_without_preload_content( '400': "ErrorResponse", '401': "ErrorResponse", '403': "ErrorResponse", - '404': "ErrorResponse", + '404': "DescribeTableIndexStats404Response", '503': "ErrorResponse", '5XX': "ErrorResponse", } @@ -1108,12 +1111,12 @@ def list_table_indices( _response_types_map: Dict[str, Optional[str]] = { '200': "ListTableIndicesResponse", - '400': "ErrorResponse", + '400': "InvalidRequestError", '401': "ErrorResponse", '403': "ErrorResponse", - '404': "ErrorResponse", + '404': "TableNotFoundError", '503': "ErrorResponse", - '5XX': "ErrorResponse", + '5XX': "UnknownError", } response_data = self.api_client.call_api( *_param, @@ -1189,12 +1192,12 @@ def list_table_indices_with_http_info( _response_types_map: Dict[str, Optional[str]] = { '200': "ListTableIndicesResponse", - '400': "ErrorResponse", + '400': "InvalidRequestError", '401': "ErrorResponse", '403': "ErrorResponse", - '404': "ErrorResponse", + '404': "TableNotFoundError", '503': "ErrorResponse", - '5XX': "ErrorResponse", + '5XX': "UnknownError", } response_data = self.api_client.call_api( *_param, @@ -1270,12 +1273,12 @@ def list_table_indices_without_preload_content( _response_types_map: Dict[str, Optional[str]] = { '200': "ListTableIndicesResponse", - '400': "ErrorResponse", + '400': "InvalidRequestError", '401': "ErrorResponse", '403': "ErrorResponse", - '404': "ErrorResponse", + '404': "TableNotFoundError", '503': "ErrorResponse", - '5XX': "ErrorResponse", + '5XX': "UnknownError", } response_data = self.api_client.call_api( *_param, diff --git a/python/lance_namespace_urllib3_client/lance_namespace_urllib3_client/api/metadata_api.py b/python/lance_namespace_urllib3_client/lance_namespace_urllib3_client/api/metadata_api.py index dc1b2918..66995ff8 100644 --- a/python/lance_namespace_urllib3_client/lance_namespace_urllib3_client/api/metadata_api.py +++ b/python/lance_namespace_urllib3_client/lance_namespace_urllib3_client/api/metadata_api.py @@ -149,12 +149,12 @@ def alter_table_alter_columns( _response_types_map: Dict[str, Optional[str]] = { '200': "AlterTableAlterColumnsResponse", - '400': "ErrorResponse", + '400': "AlterTableAlterColumns400Response", '401': "ErrorResponse", '403': "ErrorResponse", - '404': "ErrorResponse", + '404': "TableNotFoundError", '503': "ErrorResponse", - '5XX': "ErrorResponse", + '5XX': "UnknownError", } response_data = self.api_client.call_api( *_param, @@ -230,12 +230,12 @@ def alter_table_alter_columns_with_http_info( _response_types_map: Dict[str, Optional[str]] = { '200': "AlterTableAlterColumnsResponse", - '400': "ErrorResponse", + '400': "AlterTableAlterColumns400Response", '401': "ErrorResponse", '403': "ErrorResponse", - '404': "ErrorResponse", + '404': "TableNotFoundError", '503': "ErrorResponse", - '5XX': "ErrorResponse", + '5XX': "UnknownError", } response_data = self.api_client.call_api( *_param, @@ -311,12 +311,12 @@ def alter_table_alter_columns_without_preload_content( _response_types_map: Dict[str, Optional[str]] = { '200': "AlterTableAlterColumnsResponse", - '400': "ErrorResponse", + '400': "AlterTableAlterColumns400Response", '401': "ErrorResponse", '403': "ErrorResponse", - '404': "ErrorResponse", + '404': "TableNotFoundError", '503': "ErrorResponse", - '5XX': "ErrorResponse", + '5XX': "UnknownError", } response_data = self.api_client.call_api( *_param, @@ -472,12 +472,12 @@ def alter_table_drop_columns( _response_types_map: Dict[str, Optional[str]] = { '200': "AlterTableDropColumnsResponse", - '400': "ErrorResponse", + '400': "AlterTableAlterColumns400Response", '401': "ErrorResponse", '403': "ErrorResponse", - '404': "ErrorResponse", + '404': "TableNotFoundError", '503': "ErrorResponse", - '5XX': "ErrorResponse", + '5XX': "UnknownError", } response_data = self.api_client.call_api( *_param, @@ -553,12 +553,12 @@ def alter_table_drop_columns_with_http_info( _response_types_map: Dict[str, Optional[str]] = { '200': "AlterTableDropColumnsResponse", - '400': "ErrorResponse", + '400': "AlterTableAlterColumns400Response", '401': "ErrorResponse", '403': "ErrorResponse", - '404': "ErrorResponse", + '404': "TableNotFoundError", '503': "ErrorResponse", - '5XX': "ErrorResponse", + '5XX': "UnknownError", } response_data = self.api_client.call_api( *_param, @@ -634,12 +634,12 @@ def alter_table_drop_columns_without_preload_content( _response_types_map: Dict[str, Optional[str]] = { '200': "AlterTableDropColumnsResponse", - '400': "ErrorResponse", + '400': "AlterTableAlterColumns400Response", '401': "ErrorResponse", '403': "ErrorResponse", - '404': "ErrorResponse", + '404': "TableNotFoundError", '503': "ErrorResponse", - '5XX': "ErrorResponse", + '5XX': "UnknownError", } response_data = self.api_client.call_api( *_param, @@ -798,8 +798,8 @@ def alter_transaction( '400': "ErrorResponse", '401': "ErrorResponse", '403': "ErrorResponse", - '404': "ErrorResponse", - '409': "ErrorResponse", + '404': "TransactionNotFoundError", + '409': "TransactionConflictError", '503': "ErrorResponse", '5XX': "ErrorResponse", } @@ -880,8 +880,8 @@ def alter_transaction_with_http_info( '400': "ErrorResponse", '401': "ErrorResponse", '403': "ErrorResponse", - '404': "ErrorResponse", - '409': "ErrorResponse", + '404': "TransactionNotFoundError", + '409': "TransactionConflictError", '503': "ErrorResponse", '5XX': "ErrorResponse", } @@ -962,8 +962,8 @@ def alter_transaction_without_preload_content( '400': "ErrorResponse", '401': "ErrorResponse", '403': "ErrorResponse", - '404': "ErrorResponse", - '409': "ErrorResponse", + '404': "TransactionNotFoundError", + '409': "TransactionConflictError", '503': "ErrorResponse", '5XX': "ErrorResponse", } @@ -1124,8 +1124,8 @@ def create_empty_table( '400': "ErrorResponse", '401': "ErrorResponse", '403': "ErrorResponse", - '404': "ErrorResponse", - '409': "ErrorResponse", + '404': "ParentNamespaceNotFoundError", + '409': "TableAlreadyExistsError", '503': "ErrorResponse", '5XX': "ErrorResponse", } @@ -1206,8 +1206,8 @@ def create_empty_table_with_http_info( '400': "ErrorResponse", '401': "ErrorResponse", '403': "ErrorResponse", - '404': "ErrorResponse", - '409': "ErrorResponse", + '404': "ParentNamespaceNotFoundError", + '409': "TableAlreadyExistsError", '503': "ErrorResponse", '5XX': "ErrorResponse", } @@ -1288,8 +1288,8 @@ def create_empty_table_without_preload_content( '400': "ErrorResponse", '401': "ErrorResponse", '403': "ErrorResponse", - '404': "ErrorResponse", - '409': "ErrorResponse", + '404': "ParentNamespaceNotFoundError", + '409': "TableAlreadyExistsError", '503': "ErrorResponse", '5XX': "ErrorResponse", } @@ -1447,14 +1447,14 @@ def create_namespace( _response_types_map: Dict[str, Optional[str]] = { '200': "CreateNamespaceResponse", - '400': "ErrorResponse", + '400': "CreateNamespace400Response", '401': "ErrorResponse", '403': "ErrorResponse", - '404': "ErrorResponse", + '404': "ParentNamespaceNotFoundError", '406': "ErrorResponse", - '409': "ErrorResponse", + '409': "NamespaceAlreadyExistsError", '503': "ErrorResponse", - '5XX': "ErrorResponse", + '5XX': "UnknownError", } response_data = self.api_client.call_api( *_param, @@ -1530,14 +1530,14 @@ def create_namespace_with_http_info( _response_types_map: Dict[str, Optional[str]] = { '200': "CreateNamespaceResponse", - '400': "ErrorResponse", + '400': "CreateNamespace400Response", '401': "ErrorResponse", '403': "ErrorResponse", - '404': "ErrorResponse", + '404': "ParentNamespaceNotFoundError", '406': "ErrorResponse", - '409': "ErrorResponse", + '409': "NamespaceAlreadyExistsError", '503': "ErrorResponse", - '5XX': "ErrorResponse", + '5XX': "UnknownError", } response_data = self.api_client.call_api( *_param, @@ -1613,14 +1613,14 @@ def create_namespace_without_preload_content( _response_types_map: Dict[str, Optional[str]] = { '200': "CreateNamespaceResponse", - '400': "ErrorResponse", + '400': "CreateNamespace400Response", '401': "ErrorResponse", '403': "ErrorResponse", - '404': "ErrorResponse", + '404': "ParentNamespaceNotFoundError", '406': "ErrorResponse", - '409': "ErrorResponse", + '409': "NamespaceAlreadyExistsError", '503': "ErrorResponse", - '5XX': "ErrorResponse", + '5XX': "UnknownError", } response_data = self.api_client.call_api( *_param, @@ -1776,12 +1776,13 @@ def create_table_index( _response_types_map: Dict[str, Optional[str]] = { '200': "CreateTableIndexResponse", - '400': "ErrorResponse", + '400': "CreateTableIndex400Response", '401': "ErrorResponse", '403': "ErrorResponse", - '404': "ErrorResponse", + '404': "TableNotFoundError", + '409': "TableIndexAlreadyExistsError", '503': "ErrorResponse", - '5XX': "ErrorResponse", + '5XX': "UnknownError", } response_data = self.api_client.call_api( *_param, @@ -1857,12 +1858,13 @@ def create_table_index_with_http_info( _response_types_map: Dict[str, Optional[str]] = { '200': "CreateTableIndexResponse", - '400': "ErrorResponse", + '400': "CreateTableIndex400Response", '401': "ErrorResponse", '403': "ErrorResponse", - '404': "ErrorResponse", + '404': "TableNotFoundError", + '409': "TableIndexAlreadyExistsError", '503': "ErrorResponse", - '5XX': "ErrorResponse", + '5XX': "UnknownError", } response_data = self.api_client.call_api( *_param, @@ -1938,12 +1940,13 @@ def create_table_index_without_preload_content( _response_types_map: Dict[str, Optional[str]] = { '200': "CreateTableIndexResponse", - '400': "ErrorResponse", + '400': "CreateTableIndex400Response", '401': "ErrorResponse", '403': "ErrorResponse", - '404': "ErrorResponse", + '404': "TableNotFoundError", + '409': "TableIndexAlreadyExistsError", '503': "ErrorResponse", - '5XX': "ErrorResponse", + '5XX': "UnknownError", } response_data = self.api_client.call_api( *_param, @@ -2102,8 +2105,8 @@ def create_table_tag( '400': "ErrorResponse", '401': "ErrorResponse", '403': "ErrorResponse", - '404': "ErrorResponse", - '409': "ErrorResponse", + '404': "RestoreTable404Response", + '409': "TableTagAlreadyExistsError", '503': "ErrorResponse", '5XX': "ErrorResponse", } @@ -2184,8 +2187,8 @@ def create_table_tag_with_http_info( '400': "ErrorResponse", '401': "ErrorResponse", '403': "ErrorResponse", - '404': "ErrorResponse", - '409': "ErrorResponse", + '404': "RestoreTable404Response", + '409': "TableTagAlreadyExistsError", '503': "ErrorResponse", '5XX': "ErrorResponse", } @@ -2266,8 +2269,8 @@ def create_table_tag_without_preload_content( '400': "ErrorResponse", '401': "ErrorResponse", '403': "ErrorResponse", - '404': "ErrorResponse", - '409': "ErrorResponse", + '404': "RestoreTable404Response", + '409': "TableTagAlreadyExistsError", '503': "ErrorResponse", '5XX': "ErrorResponse", } @@ -2428,7 +2431,7 @@ def delete_table_tag( '400': "ErrorResponse", '401': "ErrorResponse", '403': "ErrorResponse", - '404': "ErrorResponse", + '404': "GetTableTagVersion404Response", '503': "ErrorResponse", '5XX': "ErrorResponse", } @@ -2509,7 +2512,7 @@ def delete_table_tag_with_http_info( '400': "ErrorResponse", '401': "ErrorResponse", '403': "ErrorResponse", - '404': "ErrorResponse", + '404': "GetTableTagVersion404Response", '503': "ErrorResponse", '5XX': "ErrorResponse", } @@ -2590,7 +2593,7 @@ def delete_table_tag_without_preload_content( '400': "ErrorResponse", '401': "ErrorResponse", '403': "ErrorResponse", - '404': "ErrorResponse", + '404': "GetTableTagVersion404Response", '503': "ErrorResponse", '5XX': "ErrorResponse", } @@ -2748,12 +2751,12 @@ def deregister_table( _response_types_map: Dict[str, Optional[str]] = { '200': "DeregisterTableResponse", - '400': "ErrorResponse", + '400': "InvalidRequestError", '401': "ErrorResponse", '403': "ErrorResponse", - '404': "ErrorResponse", + '404': "TableNotFoundError", '503': "ErrorResponse", - '5XX': "ErrorResponse", + '5XX': "UnknownError", } response_data = self.api_client.call_api( *_param, @@ -2829,12 +2832,12 @@ def deregister_table_with_http_info( _response_types_map: Dict[str, Optional[str]] = { '200': "DeregisterTableResponse", - '400': "ErrorResponse", + '400': "InvalidRequestError", '401': "ErrorResponse", '403': "ErrorResponse", - '404': "ErrorResponse", + '404': "TableNotFoundError", '503': "ErrorResponse", - '5XX': "ErrorResponse", + '5XX': "UnknownError", } response_data = self.api_client.call_api( *_param, @@ -2910,12 +2913,12 @@ def deregister_table_without_preload_content( _response_types_map: Dict[str, Optional[str]] = { '200': "DeregisterTableResponse", - '400': "ErrorResponse", + '400': "InvalidRequestError", '401': "ErrorResponse", '403': "ErrorResponse", - '404': "ErrorResponse", + '404': "TableNotFoundError", '503': "ErrorResponse", - '5XX': "ErrorResponse", + '5XX': "UnknownError", } response_data = self.api_client.call_api( *_param, @@ -3071,12 +3074,12 @@ def describe_namespace( _response_types_map: Dict[str, Optional[str]] = { '200': "DescribeNamespaceResponse", - '400': "ErrorResponse", + '400': "InvalidRequestError", '401': "ErrorResponse", '403': "ErrorResponse", - '404': "ErrorResponse", + '404': "NamespaceNotFoundError", '503': "ErrorResponse", - '5XX': "ErrorResponse", + '5XX': "UnknownError", } response_data = self.api_client.call_api( *_param, @@ -3152,12 +3155,12 @@ def describe_namespace_with_http_info( _response_types_map: Dict[str, Optional[str]] = { '200': "DescribeNamespaceResponse", - '400': "ErrorResponse", + '400': "InvalidRequestError", '401': "ErrorResponse", '403': "ErrorResponse", - '404': "ErrorResponse", + '404': "NamespaceNotFoundError", '503': "ErrorResponse", - '5XX': "ErrorResponse", + '5XX': "UnknownError", } response_data = self.api_client.call_api( *_param, @@ -3233,12 +3236,12 @@ def describe_namespace_without_preload_content( _response_types_map: Dict[str, Optional[str]] = { '200': "DescribeNamespaceResponse", - '400': "ErrorResponse", + '400': "InvalidRequestError", '401': "ErrorResponse", '403': "ErrorResponse", - '404': "ErrorResponse", + '404': "NamespaceNotFoundError", '503': "ErrorResponse", - '5XX': "ErrorResponse", + '5XX': "UnknownError", } response_data = self.api_client.call_api( *_param, @@ -3394,12 +3397,12 @@ def describe_table( _response_types_map: Dict[str, Optional[str]] = { '200': "DescribeTableResponse", - '400': "ErrorResponse", + '400': "InvalidRequestError", '401': "ErrorResponse", '403': "ErrorResponse", - '404': "ErrorResponse", + '404': "TableNotFoundError", '503': "ErrorResponse", - '5XX': "ErrorResponse", + '5XX': "UnknownError", } response_data = self.api_client.call_api( *_param, @@ -3475,12 +3478,12 @@ def describe_table_with_http_info( _response_types_map: Dict[str, Optional[str]] = { '200': "DescribeTableResponse", - '400': "ErrorResponse", + '400': "InvalidRequestError", '401': "ErrorResponse", '403': "ErrorResponse", - '404': "ErrorResponse", + '404': "TableNotFoundError", '503': "ErrorResponse", - '5XX': "ErrorResponse", + '5XX': "UnknownError", } response_data = self.api_client.call_api( *_param, @@ -3556,12 +3559,12 @@ def describe_table_without_preload_content( _response_types_map: Dict[str, Optional[str]] = { '200': "DescribeTableResponse", - '400': "ErrorResponse", + '400': "InvalidRequestError", '401': "ErrorResponse", '403': "ErrorResponse", - '404': "ErrorResponse", + '404': "TableNotFoundError", '503': "ErrorResponse", - '5XX': "ErrorResponse", + '5XX': "UnknownError", } response_data = self.api_client.call_api( *_param, @@ -3721,12 +3724,12 @@ def describe_table_index_stats( _response_types_map: Dict[str, Optional[str]] = { '200': "DescribeTableIndexStatsResponse", - '400': "ErrorResponse", + '400': "InvalidRequestError", '401': "ErrorResponse", '403': "ErrorResponse", - '404': "ErrorResponse", + '404': "DescribeTableIndexStats404Response", '503': "ErrorResponse", - '5XX': "ErrorResponse", + '5XX': "UnknownError", } response_data = self.api_client.call_api( *_param, @@ -3806,12 +3809,12 @@ def describe_table_index_stats_with_http_info( _response_types_map: Dict[str, Optional[str]] = { '200': "DescribeTableIndexStatsResponse", - '400': "ErrorResponse", + '400': "InvalidRequestError", '401': "ErrorResponse", '403': "ErrorResponse", - '404': "ErrorResponse", + '404': "DescribeTableIndexStats404Response", '503': "ErrorResponse", - '5XX': "ErrorResponse", + '5XX': "UnknownError", } response_data = self.api_client.call_api( *_param, @@ -3891,12 +3894,12 @@ def describe_table_index_stats_without_preload_content( _response_types_map: Dict[str, Optional[str]] = { '200': "DescribeTableIndexStatsResponse", - '400': "ErrorResponse", + '400': "InvalidRequestError", '401': "ErrorResponse", '403': "ErrorResponse", - '404': "ErrorResponse", + '404': "DescribeTableIndexStats404Response", '503': "ErrorResponse", - '5XX': "ErrorResponse", + '5XX': "UnknownError", } response_data = self.api_client.call_api( *_param, @@ -4058,7 +4061,7 @@ def describe_transaction( '400': "ErrorResponse", '401': "ErrorResponse", '403': "ErrorResponse", - '404': "ErrorResponse", + '404': "TransactionNotFoundError", '503': "ErrorResponse", '5XX': "ErrorResponse", } @@ -4139,7 +4142,7 @@ def describe_transaction_with_http_info( '400': "ErrorResponse", '401': "ErrorResponse", '403': "ErrorResponse", - '404': "ErrorResponse", + '404': "TransactionNotFoundError", '503': "ErrorResponse", '5XX': "ErrorResponse", } @@ -4220,7 +4223,7 @@ def describe_transaction_without_preload_content( '400': "ErrorResponse", '401': "ErrorResponse", '403': "ErrorResponse", - '404': "ErrorResponse", + '404': "TransactionNotFoundError", '503': "ErrorResponse", '5XX': "ErrorResponse", } @@ -4378,13 +4381,13 @@ def drop_namespace( _response_types_map: Dict[str, Optional[str]] = { '200': "DropNamespaceResponse", - '400': "ErrorResponse", + '400': "InvalidRequestError", '401': "ErrorResponse", '403': "ErrorResponse", - '404': "ErrorResponse", - '409': "ErrorResponse", + '404': "NamespaceNotFoundError", + '409': "NamespaceNotEmptyError", '503': "ErrorResponse", - '5XX': "ErrorResponse", + '5XX': "UnknownError", } response_data = self.api_client.call_api( *_param, @@ -4460,13 +4463,13 @@ def drop_namespace_with_http_info( _response_types_map: Dict[str, Optional[str]] = { '200': "DropNamespaceResponse", - '400': "ErrorResponse", + '400': "InvalidRequestError", '401': "ErrorResponse", '403': "ErrorResponse", - '404': "ErrorResponse", - '409': "ErrorResponse", + '404': "NamespaceNotFoundError", + '409': "NamespaceNotEmptyError", '503': "ErrorResponse", - '5XX': "ErrorResponse", + '5XX': "UnknownError", } response_data = self.api_client.call_api( *_param, @@ -4542,13 +4545,13 @@ def drop_namespace_without_preload_content( _response_types_map: Dict[str, Optional[str]] = { '200': "DropNamespaceResponse", - '400': "ErrorResponse", + '400': "InvalidRequestError", '401': "ErrorResponse", '403': "ErrorResponse", - '404': "ErrorResponse", - '409': "ErrorResponse", + '404': "NamespaceNotFoundError", + '409': "NamespaceNotEmptyError", '503': "ErrorResponse", - '5XX': "ErrorResponse", + '5XX': "UnknownError", } response_data = self.api_client.call_api( *_param, @@ -4704,12 +4707,12 @@ def drop_table( _response_types_map: Dict[str, Optional[str]] = { '200': "DropTableResponse", - '400': "ErrorResponse", + '400': "InvalidRequestError", '401': "ErrorResponse", '403': "ErrorResponse", - '404': "ErrorResponse", + '404': "TableNotFoundError", '503': "ErrorResponse", - '5XX': "ErrorResponse", + '5XX': "UnknownError", } response_data = self.api_client.call_api( *_param, @@ -4785,12 +4788,12 @@ def drop_table_with_http_info( _response_types_map: Dict[str, Optional[str]] = { '200': "DropTableResponse", - '400': "ErrorResponse", + '400': "InvalidRequestError", '401': "ErrorResponse", '403': "ErrorResponse", - '404': "ErrorResponse", + '404': "TableNotFoundError", '503': "ErrorResponse", - '5XX': "ErrorResponse", + '5XX': "UnknownError", } response_data = self.api_client.call_api( *_param, @@ -4866,12 +4869,12 @@ def drop_table_without_preload_content( _response_types_map: Dict[str, Optional[str]] = { '200': "DropTableResponse", - '400': "ErrorResponse", + '400': "InvalidRequestError", '401': "ErrorResponse", '403': "ErrorResponse", - '404': "ErrorResponse", + '404': "TableNotFoundError", '503': "ErrorResponse", - '5XX': "ErrorResponse", + '5XX': "UnknownError", } response_data = self.api_client.call_api( *_param, @@ -5034,7 +5037,7 @@ def drop_table_index( '400': "ErrorResponse", '401': "ErrorResponse", '403': "ErrorResponse", - '404': "ErrorResponse", + '404': "DescribeTableIndexStats404Response", '503': "ErrorResponse", '5XX': "ErrorResponse", } @@ -5119,7 +5122,7 @@ def drop_table_index_with_http_info( '400': "ErrorResponse", '401': "ErrorResponse", '403': "ErrorResponse", - '404': "ErrorResponse", + '404': "DescribeTableIndexStats404Response", '503': "ErrorResponse", '5XX': "ErrorResponse", } @@ -5204,7 +5207,7 @@ def drop_table_index_without_preload_content( '400': "ErrorResponse", '401': "ErrorResponse", '403': "ErrorResponse", - '404': "ErrorResponse", + '404': "DescribeTableIndexStats404Response", '503': "ErrorResponse", '5XX': "ErrorResponse", } @@ -5365,12 +5368,12 @@ def get_table_stats( _response_types_map: Dict[str, Optional[str]] = { '200': "GetTableStatsResponse", - '400': "ErrorResponse", + '400': "InvalidRequestError", '401': "ErrorResponse", '403': "ErrorResponse", - '404': "ErrorResponse", + '404': "TableNotFoundError", '503': "ErrorResponse", - '5XX': "ErrorResponse", + '5XX': "UnknownError", } response_data = self.api_client.call_api( *_param, @@ -5446,12 +5449,12 @@ def get_table_stats_with_http_info( _response_types_map: Dict[str, Optional[str]] = { '200': "GetTableStatsResponse", - '400': "ErrorResponse", + '400': "InvalidRequestError", '401': "ErrorResponse", '403': "ErrorResponse", - '404': "ErrorResponse", + '404': "TableNotFoundError", '503': "ErrorResponse", - '5XX': "ErrorResponse", + '5XX': "UnknownError", } response_data = self.api_client.call_api( *_param, @@ -5527,12 +5530,12 @@ def get_table_stats_without_preload_content( _response_types_map: Dict[str, Optional[str]] = { '200': "GetTableStatsResponse", - '400': "ErrorResponse", + '400': "InvalidRequestError", '401': "ErrorResponse", '403': "ErrorResponse", - '404': "ErrorResponse", + '404': "TableNotFoundError", '503': "ErrorResponse", - '5XX': "ErrorResponse", + '5XX': "UnknownError", } response_data = self.api_client.call_api( *_param, @@ -5691,7 +5694,7 @@ def get_table_tag_version( '400': "ErrorResponse", '401': "ErrorResponse", '403': "ErrorResponse", - '404': "ErrorResponse", + '404': "GetTableTagVersion404Response", '503': "ErrorResponse", '5XX': "ErrorResponse", } @@ -5772,7 +5775,7 @@ def get_table_tag_version_with_http_info( '400': "ErrorResponse", '401': "ErrorResponse", '403': "ErrorResponse", - '404': "ErrorResponse", + '404': "GetTableTagVersion404Response", '503': "ErrorResponse", '5XX': "ErrorResponse", } @@ -5853,7 +5856,7 @@ def get_table_tag_version_without_preload_content( '400': "ErrorResponse", '401': "ErrorResponse", '403': "ErrorResponse", - '404': "ErrorResponse", + '404': "GetTableTagVersion404Response", '503': "ErrorResponse", '5XX': "ErrorResponse", } @@ -6015,13 +6018,13 @@ def list_namespaces( _response_types_map: Dict[str, Optional[str]] = { '200': "ListNamespacesResponse", - '400': "ErrorResponse", + '400': "InvalidRequestError", '401': "ErrorResponse", '403': "ErrorResponse", - '404': "ErrorResponse", + '404': "NamespaceNotFoundError", '406': "ErrorResponse", '503': "ErrorResponse", - '5XX': "ErrorResponse", + '5XX': "UnknownError", } response_data = self.api_client.call_api( *_param, @@ -6101,13 +6104,13 @@ def list_namespaces_with_http_info( _response_types_map: Dict[str, Optional[str]] = { '200': "ListNamespacesResponse", - '400': "ErrorResponse", + '400': "InvalidRequestError", '401': "ErrorResponse", '403': "ErrorResponse", - '404': "ErrorResponse", + '404': "NamespaceNotFoundError", '406': "ErrorResponse", '503': "ErrorResponse", - '5XX': "ErrorResponse", + '5XX': "UnknownError", } response_data = self.api_client.call_api( *_param, @@ -6187,13 +6190,13 @@ def list_namespaces_without_preload_content( _response_types_map: Dict[str, Optional[str]] = { '200': "ListNamespacesResponse", - '400': "ErrorResponse", + '400': "InvalidRequestError", '401': "ErrorResponse", '403': "ErrorResponse", - '404': "ErrorResponse", + '404': "NamespaceNotFoundError", '406': "ErrorResponse", '503': "ErrorResponse", - '5XX': "ErrorResponse", + '5XX': "UnknownError", } response_data = self.api_client.call_api( *_param, @@ -6343,12 +6346,12 @@ def list_table_indices( _response_types_map: Dict[str, Optional[str]] = { '200': "ListTableIndicesResponse", - '400': "ErrorResponse", + '400': "InvalidRequestError", '401': "ErrorResponse", '403': "ErrorResponse", - '404': "ErrorResponse", + '404': "TableNotFoundError", '503': "ErrorResponse", - '5XX': "ErrorResponse", + '5XX': "UnknownError", } response_data = self.api_client.call_api( *_param, @@ -6424,12 +6427,12 @@ def list_table_indices_with_http_info( _response_types_map: Dict[str, Optional[str]] = { '200': "ListTableIndicesResponse", - '400': "ErrorResponse", + '400': "InvalidRequestError", '401': "ErrorResponse", '403': "ErrorResponse", - '404': "ErrorResponse", + '404': "TableNotFoundError", '503': "ErrorResponse", - '5XX': "ErrorResponse", + '5XX': "UnknownError", } response_data = self.api_client.call_api( *_param, @@ -6505,12 +6508,12 @@ def list_table_indices_without_preload_content( _response_types_map: Dict[str, Optional[str]] = { '200': "ListTableIndicesResponse", - '400': "ErrorResponse", + '400': "InvalidRequestError", '401': "ErrorResponse", '403': "ErrorResponse", - '404': "ErrorResponse", + '404': "TableNotFoundError", '503': "ErrorResponse", - '5XX': "ErrorResponse", + '5XX': "UnknownError", } response_data = self.api_client.call_api( *_param, @@ -6673,7 +6676,7 @@ def list_table_tags( '400': "ErrorResponse", '401': "ErrorResponse", '403': "ErrorResponse", - '404': "ErrorResponse", + '404': "TableNotFoundError", '503': "ErrorResponse", '5XX': "ErrorResponse", } @@ -6758,7 +6761,7 @@ def list_table_tags_with_http_info( '400': "ErrorResponse", '401': "ErrorResponse", '403': "ErrorResponse", - '404': "ErrorResponse", + '404': "TableNotFoundError", '503': "ErrorResponse", '5XX': "ErrorResponse", } @@ -6843,7 +6846,7 @@ def list_table_tags_without_preload_content( '400': "ErrorResponse", '401': "ErrorResponse", '403': "ErrorResponse", - '404': "ErrorResponse", + '404': "TableNotFoundError", '503': "ErrorResponse", '5XX': "ErrorResponse", } @@ -6995,12 +6998,12 @@ def list_table_versions( _response_types_map: Dict[str, Optional[str]] = { '200': "ListTableVersionsResponse", - '400': "ErrorResponse", + '400': "InvalidRequestError", '401': "ErrorResponse", '403': "ErrorResponse", - '404': "ErrorResponse", + '404': "TableNotFoundError", '503': "ErrorResponse", - '5XX': "ErrorResponse", + '5XX': "UnknownError", } response_data = self.api_client.call_api( *_param, @@ -7076,12 +7079,12 @@ def list_table_versions_with_http_info( _response_types_map: Dict[str, Optional[str]] = { '200': "ListTableVersionsResponse", - '400': "ErrorResponse", + '400': "InvalidRequestError", '401': "ErrorResponse", '403': "ErrorResponse", - '404': "ErrorResponse", + '404': "TableNotFoundError", '503': "ErrorResponse", - '5XX': "ErrorResponse", + '5XX': "UnknownError", } response_data = self.api_client.call_api( *_param, @@ -7157,12 +7160,12 @@ def list_table_versions_without_preload_content( _response_types_map: Dict[str, Optional[str]] = { '200': "ListTableVersionsResponse", - '400': "ErrorResponse", + '400': "InvalidRequestError", '401': "ErrorResponse", '403': "ErrorResponse", - '404': "ErrorResponse", + '404': "TableNotFoundError", '503': "ErrorResponse", - '5XX': "ErrorResponse", + '5XX': "UnknownError", } response_data = self.api_client.call_api( *_param, @@ -7322,13 +7325,13 @@ def list_tables( _response_types_map: Dict[str, Optional[str]] = { '200': "ListTablesResponse", - '400': "ErrorResponse", + '400': "InvalidRequestError", '401': "ErrorResponse", '403': "ErrorResponse", - '404': "ErrorResponse", + '404': "NamespaceNotFoundError", '406': "ErrorResponse", '503': "ErrorResponse", - '5XX': "ErrorResponse", + '5XX': "UnknownError", } response_data = self.api_client.call_api( *_param, @@ -7408,13 +7411,13 @@ def list_tables_with_http_info( _response_types_map: Dict[str, Optional[str]] = { '200': "ListTablesResponse", - '400': "ErrorResponse", + '400': "InvalidRequestError", '401': "ErrorResponse", '403': "ErrorResponse", - '404': "ErrorResponse", + '404': "NamespaceNotFoundError", '406': "ErrorResponse", '503': "ErrorResponse", - '5XX': "ErrorResponse", + '5XX': "UnknownError", } response_data = self.api_client.call_api( *_param, @@ -7494,13 +7497,13 @@ def list_tables_without_preload_content( _response_types_map: Dict[str, Optional[str]] = { '200': "ListTablesResponse", - '400': "ErrorResponse", + '400': "InvalidRequestError", '401': "ErrorResponse", '403': "ErrorResponse", - '404': "ErrorResponse", + '404': "NamespaceNotFoundError", '406': "ErrorResponse", '503': "ErrorResponse", - '5XX': "ErrorResponse", + '5XX': "UnknownError", } response_data = self.api_client.call_api( *_param, @@ -7650,12 +7653,12 @@ def namespace_exists( _response_types_map: Dict[str, Optional[str]] = { '200': None, - '400': "ErrorResponse", + '400': "InvalidRequestError", '401': "ErrorResponse", '403': "ErrorResponse", - '404': "ErrorResponse", + '404': "NamespaceNotFoundError", '503': "ErrorResponse", - '5XX': "ErrorResponse", + '5XX': "UnknownError", } response_data = self.api_client.call_api( *_param, @@ -7731,12 +7734,12 @@ def namespace_exists_with_http_info( _response_types_map: Dict[str, Optional[str]] = { '200': None, - '400': "ErrorResponse", + '400': "InvalidRequestError", '401': "ErrorResponse", '403': "ErrorResponse", - '404': "ErrorResponse", + '404': "NamespaceNotFoundError", '503': "ErrorResponse", - '5XX': "ErrorResponse", + '5XX': "UnknownError", } response_data = self.api_client.call_api( *_param, @@ -7812,12 +7815,12 @@ def namespace_exists_without_preload_content( _response_types_map: Dict[str, Optional[str]] = { '200': None, - '400': "ErrorResponse", + '400': "InvalidRequestError", '401': "ErrorResponse", '403': "ErrorResponse", - '404': "ErrorResponse", + '404': "NamespaceNotFoundError", '503': "ErrorResponse", - '5XX': "ErrorResponse", + '5XX': "UnknownError", } response_data = self.api_client.call_api( *_param, @@ -7973,14 +7976,14 @@ def register_table( _response_types_map: Dict[str, Optional[str]] = { '200': "RegisterTableResponse", - '400': "ErrorResponse", + '400': "InvalidRequestError", '401': "ErrorResponse", '403': "ErrorResponse", - '404': "ErrorResponse", + '404': "ParentNamespaceNotFoundError", '406': "ErrorResponse", - '409': "ErrorResponse", + '409': "TableAlreadyExistsError", '503': "ErrorResponse", - '5XX': "ErrorResponse", + '5XX': "UnknownError", } response_data = self.api_client.call_api( *_param, @@ -8056,14 +8059,14 @@ def register_table_with_http_info( _response_types_map: Dict[str, Optional[str]] = { '200': "RegisterTableResponse", - '400': "ErrorResponse", + '400': "InvalidRequestError", '401': "ErrorResponse", '403': "ErrorResponse", - '404': "ErrorResponse", + '404': "ParentNamespaceNotFoundError", '406': "ErrorResponse", - '409': "ErrorResponse", + '409': "TableAlreadyExistsError", '503': "ErrorResponse", - '5XX': "ErrorResponse", + '5XX': "UnknownError", } response_data = self.api_client.call_api( *_param, @@ -8139,14 +8142,14 @@ def register_table_without_preload_content( _response_types_map: Dict[str, Optional[str]] = { '200': "RegisterTableResponse", - '400': "ErrorResponse", + '400': "InvalidRequestError", '401': "ErrorResponse", '403': "ErrorResponse", - '404': "ErrorResponse", + '404': "ParentNamespaceNotFoundError", '406': "ErrorResponse", - '409': "ErrorResponse", + '409': "TableAlreadyExistsError", '503': "ErrorResponse", - '5XX': "ErrorResponse", + '5XX': "UnknownError", } response_data = self.api_client.call_api( *_param, @@ -8302,12 +8305,12 @@ def restore_table( _response_types_map: Dict[str, Optional[str]] = { '200': "RestoreTableResponse", - '400': "ErrorResponse", + '400': "InvalidRequestError", '401': "ErrorResponse", '403': "ErrorResponse", - '404': "ErrorResponse", + '404': "RestoreTable404Response", '503': "ErrorResponse", - '5XX': "ErrorResponse", + '5XX': "UnknownError", } response_data = self.api_client.call_api( *_param, @@ -8383,12 +8386,12 @@ def restore_table_with_http_info( _response_types_map: Dict[str, Optional[str]] = { '200': "RestoreTableResponse", - '400': "ErrorResponse", + '400': "InvalidRequestError", '401': "ErrorResponse", '403': "ErrorResponse", - '404': "ErrorResponse", + '404': "RestoreTable404Response", '503': "ErrorResponse", - '5XX': "ErrorResponse", + '5XX': "UnknownError", } response_data = self.api_client.call_api( *_param, @@ -8464,12 +8467,12 @@ def restore_table_without_preload_content( _response_types_map: Dict[str, Optional[str]] = { '200': "RestoreTableResponse", - '400': "ErrorResponse", + '400': "InvalidRequestError", '401': "ErrorResponse", '403': "ErrorResponse", - '404': "ErrorResponse", + '404': "RestoreTable404Response", '503': "ErrorResponse", - '5XX': "ErrorResponse", + '5XX': "UnknownError", } response_data = self.api_client.call_api( *_param, @@ -8625,12 +8628,12 @@ def table_exists( _response_types_map: Dict[str, Optional[str]] = { '200': None, - '400': "ErrorResponse", + '400': "InvalidRequestError", '401': "ErrorResponse", '403': "ErrorResponse", - '404': "ErrorResponse", + '404': "TableNotFoundError", '503': "ErrorResponse", - '5XX': "ErrorResponse", + '5XX': "UnknownError", } response_data = self.api_client.call_api( *_param, @@ -8706,12 +8709,12 @@ def table_exists_with_http_info( _response_types_map: Dict[str, Optional[str]] = { '200': None, - '400': "ErrorResponse", + '400': "InvalidRequestError", '401': "ErrorResponse", '403': "ErrorResponse", - '404': "ErrorResponse", + '404': "TableNotFoundError", '503': "ErrorResponse", - '5XX': "ErrorResponse", + '5XX': "UnknownError", } response_data = self.api_client.call_api( *_param, @@ -8787,12 +8790,12 @@ def table_exists_without_preload_content( _response_types_map: Dict[str, Optional[str]] = { '200': None, - '400': "ErrorResponse", + '400': "InvalidRequestError", '401': "ErrorResponse", '403': "ErrorResponse", - '404': "ErrorResponse", + '404': "TableNotFoundError", '503': "ErrorResponse", - '5XX': "ErrorResponse", + '5XX': "UnknownError", } response_data = self.api_client.call_api( *_param, @@ -8951,7 +8954,7 @@ def update_table_tag( '400': "ErrorResponse", '401': "ErrorResponse", '403': "ErrorResponse", - '404': "ErrorResponse", + '404': "UpdateTableTag404Response", '503': "ErrorResponse", '5XX': "ErrorResponse", } @@ -9032,7 +9035,7 @@ def update_table_tag_with_http_info( '400': "ErrorResponse", '401': "ErrorResponse", '403': "ErrorResponse", - '404': "ErrorResponse", + '404': "UpdateTableTag404Response", '503': "ErrorResponse", '5XX': "ErrorResponse", } @@ -9113,7 +9116,7 @@ def update_table_tag_without_preload_content( '400': "ErrorResponse", '401': "ErrorResponse", '403': "ErrorResponse", - '404': "ErrorResponse", + '404': "UpdateTableTag404Response", '503': "ErrorResponse", '5XX': "ErrorResponse", } diff --git a/python/lance_namespace_urllib3_client/lance_namespace_urllib3_client/api/namespace_api.py b/python/lance_namespace_urllib3_client/lance_namespace_urllib3_client/api/namespace_api.py index 4cbf1316..324e9871 100644 --- a/python/lance_namespace_urllib3_client/lance_namespace_urllib3_client/api/namespace_api.py +++ b/python/lance_namespace_urllib3_client/lance_namespace_urllib3_client/api/namespace_api.py @@ -110,14 +110,14 @@ def create_namespace( _response_types_map: Dict[str, Optional[str]] = { '200': "CreateNamespaceResponse", - '400': "ErrorResponse", + '400': "CreateNamespace400Response", '401': "ErrorResponse", '403': "ErrorResponse", - '404': "ErrorResponse", + '404': "ParentNamespaceNotFoundError", '406': "ErrorResponse", - '409': "ErrorResponse", + '409': "NamespaceAlreadyExistsError", '503': "ErrorResponse", - '5XX': "ErrorResponse", + '5XX': "UnknownError", } response_data = self.api_client.call_api( *_param, @@ -193,14 +193,14 @@ def create_namespace_with_http_info( _response_types_map: Dict[str, Optional[str]] = { '200': "CreateNamespaceResponse", - '400': "ErrorResponse", + '400': "CreateNamespace400Response", '401': "ErrorResponse", '403': "ErrorResponse", - '404': "ErrorResponse", + '404': "ParentNamespaceNotFoundError", '406': "ErrorResponse", - '409': "ErrorResponse", + '409': "NamespaceAlreadyExistsError", '503': "ErrorResponse", - '5XX': "ErrorResponse", + '5XX': "UnknownError", } response_data = self.api_client.call_api( *_param, @@ -276,14 +276,14 @@ def create_namespace_without_preload_content( _response_types_map: Dict[str, Optional[str]] = { '200': "CreateNamespaceResponse", - '400': "ErrorResponse", + '400': "CreateNamespace400Response", '401': "ErrorResponse", '403': "ErrorResponse", - '404': "ErrorResponse", + '404': "ParentNamespaceNotFoundError", '406': "ErrorResponse", - '409': "ErrorResponse", + '409': "NamespaceAlreadyExistsError", '503': "ErrorResponse", - '5XX': "ErrorResponse", + '5XX': "UnknownError", } response_data = self.api_client.call_api( *_param, @@ -439,12 +439,12 @@ def describe_namespace( _response_types_map: Dict[str, Optional[str]] = { '200': "DescribeNamespaceResponse", - '400': "ErrorResponse", + '400': "InvalidRequestError", '401': "ErrorResponse", '403': "ErrorResponse", - '404': "ErrorResponse", + '404': "NamespaceNotFoundError", '503': "ErrorResponse", - '5XX': "ErrorResponse", + '5XX': "UnknownError", } response_data = self.api_client.call_api( *_param, @@ -520,12 +520,12 @@ def describe_namespace_with_http_info( _response_types_map: Dict[str, Optional[str]] = { '200': "DescribeNamespaceResponse", - '400': "ErrorResponse", + '400': "InvalidRequestError", '401': "ErrorResponse", '403': "ErrorResponse", - '404': "ErrorResponse", + '404': "NamespaceNotFoundError", '503': "ErrorResponse", - '5XX': "ErrorResponse", + '5XX': "UnknownError", } response_data = self.api_client.call_api( *_param, @@ -601,12 +601,12 @@ def describe_namespace_without_preload_content( _response_types_map: Dict[str, Optional[str]] = { '200': "DescribeNamespaceResponse", - '400': "ErrorResponse", + '400': "InvalidRequestError", '401': "ErrorResponse", '403': "ErrorResponse", - '404': "ErrorResponse", + '404': "NamespaceNotFoundError", '503': "ErrorResponse", - '5XX': "ErrorResponse", + '5XX': "UnknownError", } response_data = self.api_client.call_api( *_param, @@ -762,13 +762,13 @@ def drop_namespace( _response_types_map: Dict[str, Optional[str]] = { '200': "DropNamespaceResponse", - '400': "ErrorResponse", + '400': "InvalidRequestError", '401': "ErrorResponse", '403': "ErrorResponse", - '404': "ErrorResponse", - '409': "ErrorResponse", + '404': "NamespaceNotFoundError", + '409': "NamespaceNotEmptyError", '503': "ErrorResponse", - '5XX': "ErrorResponse", + '5XX': "UnknownError", } response_data = self.api_client.call_api( *_param, @@ -844,13 +844,13 @@ def drop_namespace_with_http_info( _response_types_map: Dict[str, Optional[str]] = { '200': "DropNamespaceResponse", - '400': "ErrorResponse", + '400': "InvalidRequestError", '401': "ErrorResponse", '403': "ErrorResponse", - '404': "ErrorResponse", - '409': "ErrorResponse", + '404': "NamespaceNotFoundError", + '409': "NamespaceNotEmptyError", '503': "ErrorResponse", - '5XX': "ErrorResponse", + '5XX': "UnknownError", } response_data = self.api_client.call_api( *_param, @@ -926,13 +926,13 @@ def drop_namespace_without_preload_content( _response_types_map: Dict[str, Optional[str]] = { '200': "DropNamespaceResponse", - '400': "ErrorResponse", + '400': "InvalidRequestError", '401': "ErrorResponse", '403': "ErrorResponse", - '404': "ErrorResponse", - '409': "ErrorResponse", + '404': "NamespaceNotFoundError", + '409': "NamespaceNotEmptyError", '503': "ErrorResponse", - '5XX': "ErrorResponse", + '5XX': "UnknownError", } response_data = self.api_client.call_api( *_param, @@ -1092,13 +1092,13 @@ def list_namespaces( _response_types_map: Dict[str, Optional[str]] = { '200': "ListNamespacesResponse", - '400': "ErrorResponse", + '400': "InvalidRequestError", '401': "ErrorResponse", '403': "ErrorResponse", - '404': "ErrorResponse", + '404': "NamespaceNotFoundError", '406': "ErrorResponse", '503': "ErrorResponse", - '5XX': "ErrorResponse", + '5XX': "UnknownError", } response_data = self.api_client.call_api( *_param, @@ -1178,13 +1178,13 @@ def list_namespaces_with_http_info( _response_types_map: Dict[str, Optional[str]] = { '200': "ListNamespacesResponse", - '400': "ErrorResponse", + '400': "InvalidRequestError", '401': "ErrorResponse", '403': "ErrorResponse", - '404': "ErrorResponse", + '404': "NamespaceNotFoundError", '406': "ErrorResponse", '503': "ErrorResponse", - '5XX': "ErrorResponse", + '5XX': "UnknownError", } response_data = self.api_client.call_api( *_param, @@ -1264,13 +1264,13 @@ def list_namespaces_without_preload_content( _response_types_map: Dict[str, Optional[str]] = { '200': "ListNamespacesResponse", - '400': "ErrorResponse", + '400': "InvalidRequestError", '401': "ErrorResponse", '403': "ErrorResponse", - '404': "ErrorResponse", + '404': "NamespaceNotFoundError", '406': "ErrorResponse", '503': "ErrorResponse", - '5XX': "ErrorResponse", + '5XX': "UnknownError", } response_data = self.api_client.call_api( *_param, @@ -1424,13 +1424,13 @@ def list_tables( _response_types_map: Dict[str, Optional[str]] = { '200': "ListTablesResponse", - '400': "ErrorResponse", + '400': "InvalidRequestError", '401': "ErrorResponse", '403': "ErrorResponse", - '404': "ErrorResponse", + '404': "NamespaceNotFoundError", '406': "ErrorResponse", '503': "ErrorResponse", - '5XX': "ErrorResponse", + '5XX': "UnknownError", } response_data = self.api_client.call_api( *_param, @@ -1510,13 +1510,13 @@ def list_tables_with_http_info( _response_types_map: Dict[str, Optional[str]] = { '200': "ListTablesResponse", - '400': "ErrorResponse", + '400': "InvalidRequestError", '401': "ErrorResponse", '403': "ErrorResponse", - '404': "ErrorResponse", + '404': "NamespaceNotFoundError", '406': "ErrorResponse", '503': "ErrorResponse", - '5XX': "ErrorResponse", + '5XX': "UnknownError", } response_data = self.api_client.call_api( *_param, @@ -1596,13 +1596,13 @@ def list_tables_without_preload_content( _response_types_map: Dict[str, Optional[str]] = { '200': "ListTablesResponse", - '400': "ErrorResponse", + '400': "InvalidRequestError", '401': "ErrorResponse", '403': "ErrorResponse", - '404': "ErrorResponse", + '404': "NamespaceNotFoundError", '406': "ErrorResponse", '503': "ErrorResponse", - '5XX': "ErrorResponse", + '5XX': "UnknownError", } response_data = self.api_client.call_api( *_param, @@ -1752,12 +1752,12 @@ def namespace_exists( _response_types_map: Dict[str, Optional[str]] = { '200': None, - '400': "ErrorResponse", + '400': "InvalidRequestError", '401': "ErrorResponse", '403': "ErrorResponse", - '404': "ErrorResponse", + '404': "NamespaceNotFoundError", '503': "ErrorResponse", - '5XX': "ErrorResponse", + '5XX': "UnknownError", } response_data = self.api_client.call_api( *_param, @@ -1833,12 +1833,12 @@ def namespace_exists_with_http_info( _response_types_map: Dict[str, Optional[str]] = { '200': None, - '400': "ErrorResponse", + '400': "InvalidRequestError", '401': "ErrorResponse", '403': "ErrorResponse", - '404': "ErrorResponse", + '404': "NamespaceNotFoundError", '503': "ErrorResponse", - '5XX': "ErrorResponse", + '5XX': "UnknownError", } response_data = self.api_client.call_api( *_param, @@ -1914,12 +1914,12 @@ def namespace_exists_without_preload_content( _response_types_map: Dict[str, Optional[str]] = { '200': None, - '400': "ErrorResponse", + '400': "InvalidRequestError", '401': "ErrorResponse", '403': "ErrorResponse", - '404': "ErrorResponse", + '404': "NamespaceNotFoundError", '503': "ErrorResponse", - '5XX': "ErrorResponse", + '5XX': "UnknownError", } response_data = self.api_client.call_api( *_param, diff --git a/python/lance_namespace_urllib3_client/lance_namespace_urllib3_client/api/table_api.py b/python/lance_namespace_urllib3_client/lance_namespace_urllib3_client/api/table_api.py index f9730e6a..21610b76 100644 --- a/python/lance_namespace_urllib3_client/lance_namespace_urllib3_client/api/table_api.py +++ b/python/lance_namespace_urllib3_client/lance_namespace_urllib3_client/api/table_api.py @@ -152,12 +152,12 @@ def alter_table_add_columns( _response_types_map: Dict[str, Optional[str]] = { '200': "AlterTableAddColumnsResponse", - '400': "ErrorResponse", + '400': "AlterTableAddColumns400Response", '401': "ErrorResponse", '403': "ErrorResponse", - '404': "ErrorResponse", + '404': "TableNotFoundError", '503': "ErrorResponse", - '5XX': "ErrorResponse", + '5XX': "UnknownError", } response_data = self.api_client.call_api( *_param, @@ -233,12 +233,12 @@ def alter_table_add_columns_with_http_info( _response_types_map: Dict[str, Optional[str]] = { '200': "AlterTableAddColumnsResponse", - '400': "ErrorResponse", + '400': "AlterTableAddColumns400Response", '401': "ErrorResponse", '403': "ErrorResponse", - '404': "ErrorResponse", + '404': "TableNotFoundError", '503': "ErrorResponse", - '5XX': "ErrorResponse", + '5XX': "UnknownError", } response_data = self.api_client.call_api( *_param, @@ -314,12 +314,12 @@ def alter_table_add_columns_without_preload_content( _response_types_map: Dict[str, Optional[str]] = { '200': "AlterTableAddColumnsResponse", - '400': "ErrorResponse", + '400': "AlterTableAddColumns400Response", '401': "ErrorResponse", '403': "ErrorResponse", - '404': "ErrorResponse", + '404': "TableNotFoundError", '503': "ErrorResponse", - '5XX': "ErrorResponse", + '5XX': "UnknownError", } response_data = self.api_client.call_api( *_param, @@ -475,12 +475,12 @@ def alter_table_alter_columns( _response_types_map: Dict[str, Optional[str]] = { '200': "AlterTableAlterColumnsResponse", - '400': "ErrorResponse", + '400': "AlterTableAlterColumns400Response", '401': "ErrorResponse", '403': "ErrorResponse", - '404': "ErrorResponse", + '404': "TableNotFoundError", '503': "ErrorResponse", - '5XX': "ErrorResponse", + '5XX': "UnknownError", } response_data = self.api_client.call_api( *_param, @@ -556,12 +556,12 @@ def alter_table_alter_columns_with_http_info( _response_types_map: Dict[str, Optional[str]] = { '200': "AlterTableAlterColumnsResponse", - '400': "ErrorResponse", + '400': "AlterTableAlterColumns400Response", '401': "ErrorResponse", '403': "ErrorResponse", - '404': "ErrorResponse", + '404': "TableNotFoundError", '503': "ErrorResponse", - '5XX': "ErrorResponse", + '5XX': "UnknownError", } response_data = self.api_client.call_api( *_param, @@ -637,12 +637,12 @@ def alter_table_alter_columns_without_preload_content( _response_types_map: Dict[str, Optional[str]] = { '200': "AlterTableAlterColumnsResponse", - '400': "ErrorResponse", + '400': "AlterTableAlterColumns400Response", '401': "ErrorResponse", '403': "ErrorResponse", - '404': "ErrorResponse", + '404': "TableNotFoundError", '503': "ErrorResponse", - '5XX': "ErrorResponse", + '5XX': "UnknownError", } response_data = self.api_client.call_api( *_param, @@ -798,12 +798,12 @@ def alter_table_drop_columns( _response_types_map: Dict[str, Optional[str]] = { '200': "AlterTableDropColumnsResponse", - '400': "ErrorResponse", + '400': "AlterTableAlterColumns400Response", '401': "ErrorResponse", '403': "ErrorResponse", - '404': "ErrorResponse", + '404': "TableNotFoundError", '503': "ErrorResponse", - '5XX': "ErrorResponse", + '5XX': "UnknownError", } response_data = self.api_client.call_api( *_param, @@ -879,12 +879,12 @@ def alter_table_drop_columns_with_http_info( _response_types_map: Dict[str, Optional[str]] = { '200': "AlterTableDropColumnsResponse", - '400': "ErrorResponse", + '400': "AlterTableAlterColumns400Response", '401': "ErrorResponse", '403': "ErrorResponse", - '404': "ErrorResponse", + '404': "TableNotFoundError", '503': "ErrorResponse", - '5XX': "ErrorResponse", + '5XX': "UnknownError", } response_data = self.api_client.call_api( *_param, @@ -960,12 +960,12 @@ def alter_table_drop_columns_without_preload_content( _response_types_map: Dict[str, Optional[str]] = { '200': "AlterTableDropColumnsResponse", - '400': "ErrorResponse", + '400': "AlterTableAlterColumns400Response", '401': "ErrorResponse", '403': "ErrorResponse", - '404': "ErrorResponse", + '404': "TableNotFoundError", '503': "ErrorResponse", - '5XX': "ErrorResponse", + '5XX': "UnknownError", } response_data = self.api_client.call_api( *_param, @@ -1121,12 +1121,12 @@ def analyze_table_query_plan( _response_types_map: Dict[str, Optional[str]] = { '200': "AnalyzeTableQueryPlanResponse", - '400': "ErrorResponse", + '400': "DeleteFromTable400Response", '401': "ErrorResponse", '403': "ErrorResponse", - '404': "ErrorResponse", + '404': "TableNotFoundError", '503': "ErrorResponse", - '5XX': "ErrorResponse", + '5XX': "UnknownError", } response_data = self.api_client.call_api( *_param, @@ -1202,12 +1202,12 @@ def analyze_table_query_plan_with_http_info( _response_types_map: Dict[str, Optional[str]] = { '200': "AnalyzeTableQueryPlanResponse", - '400': "ErrorResponse", + '400': "DeleteFromTable400Response", '401': "ErrorResponse", '403': "ErrorResponse", - '404': "ErrorResponse", + '404': "TableNotFoundError", '503': "ErrorResponse", - '5XX': "ErrorResponse", + '5XX': "UnknownError", } response_data = self.api_client.call_api( *_param, @@ -1283,12 +1283,12 @@ def analyze_table_query_plan_without_preload_content( _response_types_map: Dict[str, Optional[str]] = { '200': "AnalyzeTableQueryPlanResponse", - '400': "ErrorResponse", + '400': "DeleteFromTable400Response", '401': "ErrorResponse", '403': "ErrorResponse", - '404': "ErrorResponse", + '404': "TableNotFoundError", '503': "ErrorResponse", - '5XX': "ErrorResponse", + '5XX': "UnknownError", } response_data = self.api_client.call_api( *_param, @@ -1444,12 +1444,12 @@ def count_table_rows( _response_types_map: Dict[str, Optional[str]] = { '200': "int", - '400': "ErrorResponse", + '400': "DeleteFromTable400Response", '401': "ErrorResponse", '403': "ErrorResponse", - '404': "ErrorResponse", + '404': "TableNotFoundError", '503': "ErrorResponse", - '5XX': "ErrorResponse", + '5XX': "UnknownError", } response_data = self.api_client.call_api( *_param, @@ -1525,12 +1525,12 @@ def count_table_rows_with_http_info( _response_types_map: Dict[str, Optional[str]] = { '200': "int", - '400': "ErrorResponse", + '400': "DeleteFromTable400Response", '401': "ErrorResponse", '403': "ErrorResponse", - '404': "ErrorResponse", + '404': "TableNotFoundError", '503': "ErrorResponse", - '5XX': "ErrorResponse", + '5XX': "UnknownError", } response_data = self.api_client.call_api( *_param, @@ -1606,12 +1606,12 @@ def count_table_rows_without_preload_content( _response_types_map: Dict[str, Optional[str]] = { '200': "int", - '400': "ErrorResponse", + '400': "DeleteFromTable400Response", '401': "ErrorResponse", '403': "ErrorResponse", - '404': "ErrorResponse", + '404': "TableNotFoundError", '503': "ErrorResponse", - '5XX': "ErrorResponse", + '5XX': "UnknownError", } response_data = self.api_client.call_api( *_param, @@ -1770,8 +1770,8 @@ def create_empty_table( '400': "ErrorResponse", '401': "ErrorResponse", '403': "ErrorResponse", - '404': "ErrorResponse", - '409': "ErrorResponse", + '404': "ParentNamespaceNotFoundError", + '409': "TableAlreadyExistsError", '503': "ErrorResponse", '5XX': "ErrorResponse", } @@ -1852,8 +1852,8 @@ def create_empty_table_with_http_info( '400': "ErrorResponse", '401': "ErrorResponse", '403': "ErrorResponse", - '404': "ErrorResponse", - '409': "ErrorResponse", + '404': "ParentNamespaceNotFoundError", + '409': "TableAlreadyExistsError", '503': "ErrorResponse", '5XX': "ErrorResponse", } @@ -1934,8 +1934,8 @@ def create_empty_table_without_preload_content( '400': "ErrorResponse", '401': "ErrorResponse", '403': "ErrorResponse", - '404': "ErrorResponse", - '409': "ErrorResponse", + '404': "ParentNamespaceNotFoundError", + '409': "TableAlreadyExistsError", '503': "ErrorResponse", '5XX': "ErrorResponse", } @@ -2105,12 +2105,13 @@ def create_table( _response_types_map: Dict[str, Optional[str]] = { '200': "CreateTableResponse", - '400': "ErrorResponse", + '400': "CreateTable400Response", '401': "ErrorResponse", '403': "ErrorResponse", - '404': "ErrorResponse", + '404': "ParentNamespaceNotFoundError", + '409': "TableAlreadyExistsError", '503': "ErrorResponse", - '5XX': "ErrorResponse", + '5XX': "UnknownError", } response_data = self.api_client.call_api( *_param, @@ -2198,12 +2199,13 @@ def create_table_with_http_info( _response_types_map: Dict[str, Optional[str]] = { '200': "CreateTableResponse", - '400': "ErrorResponse", + '400': "CreateTable400Response", '401': "ErrorResponse", '403': "ErrorResponse", - '404': "ErrorResponse", + '404': "ParentNamespaceNotFoundError", + '409': "TableAlreadyExistsError", '503': "ErrorResponse", - '5XX': "ErrorResponse", + '5XX': "UnknownError", } response_data = self.api_client.call_api( *_param, @@ -2291,12 +2293,13 @@ def create_table_without_preload_content( _response_types_map: Dict[str, Optional[str]] = { '200': "CreateTableResponse", - '400': "ErrorResponse", + '400': "CreateTable400Response", '401': "ErrorResponse", '403': "ErrorResponse", - '404': "ErrorResponse", + '404': "ParentNamespaceNotFoundError", + '409': "TableAlreadyExistsError", '503': "ErrorResponse", - '5XX': "ErrorResponse", + '5XX': "UnknownError", } response_data = self.api_client.call_api( *_param, @@ -2471,12 +2474,13 @@ def create_table_index( _response_types_map: Dict[str, Optional[str]] = { '200': "CreateTableIndexResponse", - '400': "ErrorResponse", + '400': "CreateTableIndex400Response", '401': "ErrorResponse", '403': "ErrorResponse", - '404': "ErrorResponse", + '404': "TableNotFoundError", + '409': "TableIndexAlreadyExistsError", '503': "ErrorResponse", - '5XX': "ErrorResponse", + '5XX': "UnknownError", } response_data = self.api_client.call_api( *_param, @@ -2552,12 +2556,13 @@ def create_table_index_with_http_info( _response_types_map: Dict[str, Optional[str]] = { '200': "CreateTableIndexResponse", - '400': "ErrorResponse", + '400': "CreateTableIndex400Response", '401': "ErrorResponse", '403': "ErrorResponse", - '404': "ErrorResponse", + '404': "TableNotFoundError", + '409': "TableIndexAlreadyExistsError", '503': "ErrorResponse", - '5XX': "ErrorResponse", + '5XX': "UnknownError", } response_data = self.api_client.call_api( *_param, @@ -2633,12 +2638,13 @@ def create_table_index_without_preload_content( _response_types_map: Dict[str, Optional[str]] = { '200': "CreateTableIndexResponse", - '400': "ErrorResponse", + '400': "CreateTableIndex400Response", '401': "ErrorResponse", '403': "ErrorResponse", - '404': "ErrorResponse", + '404': "TableNotFoundError", + '409': "TableIndexAlreadyExistsError", '503': "ErrorResponse", - '5XX': "ErrorResponse", + '5XX': "UnknownError", } response_data = self.api_client.call_api( *_param, @@ -2797,8 +2803,8 @@ def create_table_tag( '400': "ErrorResponse", '401': "ErrorResponse", '403': "ErrorResponse", - '404': "ErrorResponse", - '409': "ErrorResponse", + '404': "RestoreTable404Response", + '409': "TableTagAlreadyExistsError", '503': "ErrorResponse", '5XX': "ErrorResponse", } @@ -2879,8 +2885,8 @@ def create_table_tag_with_http_info( '400': "ErrorResponse", '401': "ErrorResponse", '403': "ErrorResponse", - '404': "ErrorResponse", - '409': "ErrorResponse", + '404': "RestoreTable404Response", + '409': "TableTagAlreadyExistsError", '503': "ErrorResponse", '5XX': "ErrorResponse", } @@ -2961,8 +2967,8 @@ def create_table_tag_without_preload_content( '400': "ErrorResponse", '401': "ErrorResponse", '403': "ErrorResponse", - '404': "ErrorResponse", - '409': "ErrorResponse", + '404': "RestoreTable404Response", + '409': "TableTagAlreadyExistsError", '503': "ErrorResponse", '5XX': "ErrorResponse", } @@ -3120,12 +3126,12 @@ def delete_from_table( _response_types_map: Dict[str, Optional[str]] = { '200': "DeleteFromTableResponse", - '400': "ErrorResponse", + '400': "DeleteFromTable400Response", '401': "ErrorResponse", '403': "ErrorResponse", - '404': "ErrorResponse", + '404': "TableNotFoundError", '503': "ErrorResponse", - '5XX': "ErrorResponse", + '5XX': "UnknownError", } response_data = self.api_client.call_api( *_param, @@ -3201,12 +3207,12 @@ def delete_from_table_with_http_info( _response_types_map: Dict[str, Optional[str]] = { '200': "DeleteFromTableResponse", - '400': "ErrorResponse", + '400': "DeleteFromTable400Response", '401': "ErrorResponse", '403': "ErrorResponse", - '404': "ErrorResponse", + '404': "TableNotFoundError", '503': "ErrorResponse", - '5XX': "ErrorResponse", + '5XX': "UnknownError", } response_data = self.api_client.call_api( *_param, @@ -3282,12 +3288,12 @@ def delete_from_table_without_preload_content( _response_types_map: Dict[str, Optional[str]] = { '200': "DeleteFromTableResponse", - '400': "ErrorResponse", + '400': "DeleteFromTable400Response", '401': "ErrorResponse", '403': "ErrorResponse", - '404': "ErrorResponse", + '404': "TableNotFoundError", '503': "ErrorResponse", - '5XX': "ErrorResponse", + '5XX': "UnknownError", } response_data = self.api_client.call_api( *_param, @@ -3446,7 +3452,7 @@ def delete_table_tag( '400': "ErrorResponse", '401': "ErrorResponse", '403': "ErrorResponse", - '404': "ErrorResponse", + '404': "GetTableTagVersion404Response", '503': "ErrorResponse", '5XX': "ErrorResponse", } @@ -3527,7 +3533,7 @@ def delete_table_tag_with_http_info( '400': "ErrorResponse", '401': "ErrorResponse", '403': "ErrorResponse", - '404': "ErrorResponse", + '404': "GetTableTagVersion404Response", '503': "ErrorResponse", '5XX': "ErrorResponse", } @@ -3608,7 +3614,7 @@ def delete_table_tag_without_preload_content( '400': "ErrorResponse", '401': "ErrorResponse", '403': "ErrorResponse", - '404': "ErrorResponse", + '404': "GetTableTagVersion404Response", '503': "ErrorResponse", '5XX': "ErrorResponse", } @@ -3766,12 +3772,12 @@ def deregister_table( _response_types_map: Dict[str, Optional[str]] = { '200': "DeregisterTableResponse", - '400': "ErrorResponse", + '400': "InvalidRequestError", '401': "ErrorResponse", '403': "ErrorResponse", - '404': "ErrorResponse", + '404': "TableNotFoundError", '503': "ErrorResponse", - '5XX': "ErrorResponse", + '5XX': "UnknownError", } response_data = self.api_client.call_api( *_param, @@ -3847,12 +3853,12 @@ def deregister_table_with_http_info( _response_types_map: Dict[str, Optional[str]] = { '200': "DeregisterTableResponse", - '400': "ErrorResponse", + '400': "InvalidRequestError", '401': "ErrorResponse", '403': "ErrorResponse", - '404': "ErrorResponse", + '404': "TableNotFoundError", '503': "ErrorResponse", - '5XX': "ErrorResponse", + '5XX': "UnknownError", } response_data = self.api_client.call_api( *_param, @@ -3928,12 +3934,12 @@ def deregister_table_without_preload_content( _response_types_map: Dict[str, Optional[str]] = { '200': "DeregisterTableResponse", - '400': "ErrorResponse", + '400': "InvalidRequestError", '401': "ErrorResponse", '403': "ErrorResponse", - '404': "ErrorResponse", + '404': "TableNotFoundError", '503': "ErrorResponse", - '5XX': "ErrorResponse", + '5XX': "UnknownError", } response_data = self.api_client.call_api( *_param, @@ -4089,12 +4095,12 @@ def describe_table( _response_types_map: Dict[str, Optional[str]] = { '200': "DescribeTableResponse", - '400': "ErrorResponse", + '400': "InvalidRequestError", '401': "ErrorResponse", '403': "ErrorResponse", - '404': "ErrorResponse", + '404': "TableNotFoundError", '503': "ErrorResponse", - '5XX': "ErrorResponse", + '5XX': "UnknownError", } response_data = self.api_client.call_api( *_param, @@ -4170,12 +4176,12 @@ def describe_table_with_http_info( _response_types_map: Dict[str, Optional[str]] = { '200': "DescribeTableResponse", - '400': "ErrorResponse", + '400': "InvalidRequestError", '401': "ErrorResponse", '403': "ErrorResponse", - '404': "ErrorResponse", + '404': "TableNotFoundError", '503': "ErrorResponse", - '5XX': "ErrorResponse", + '5XX': "UnknownError", } response_data = self.api_client.call_api( *_param, @@ -4251,12 +4257,12 @@ def describe_table_without_preload_content( _response_types_map: Dict[str, Optional[str]] = { '200': "DescribeTableResponse", - '400': "ErrorResponse", + '400': "InvalidRequestError", '401': "ErrorResponse", '403': "ErrorResponse", - '404': "ErrorResponse", + '404': "TableNotFoundError", '503': "ErrorResponse", - '5XX': "ErrorResponse", + '5XX': "UnknownError", } response_data = self.api_client.call_api( *_param, @@ -4416,12 +4422,12 @@ def describe_table_index_stats( _response_types_map: Dict[str, Optional[str]] = { '200': "DescribeTableIndexStatsResponse", - '400': "ErrorResponse", + '400': "InvalidRequestError", '401': "ErrorResponse", '403': "ErrorResponse", - '404': "ErrorResponse", + '404': "DescribeTableIndexStats404Response", '503': "ErrorResponse", - '5XX': "ErrorResponse", + '5XX': "UnknownError", } response_data = self.api_client.call_api( *_param, @@ -4501,12 +4507,12 @@ def describe_table_index_stats_with_http_info( _response_types_map: Dict[str, Optional[str]] = { '200': "DescribeTableIndexStatsResponse", - '400': "ErrorResponse", + '400': "InvalidRequestError", '401': "ErrorResponse", '403': "ErrorResponse", - '404': "ErrorResponse", + '404': "DescribeTableIndexStats404Response", '503': "ErrorResponse", - '5XX': "ErrorResponse", + '5XX': "UnknownError", } response_data = self.api_client.call_api( *_param, @@ -4586,12 +4592,12 @@ def describe_table_index_stats_without_preload_content( _response_types_map: Dict[str, Optional[str]] = { '200': "DescribeTableIndexStatsResponse", - '400': "ErrorResponse", + '400': "InvalidRequestError", '401': "ErrorResponse", '403': "ErrorResponse", - '404': "ErrorResponse", + '404': "DescribeTableIndexStats404Response", '503': "ErrorResponse", - '5XX': "ErrorResponse", + '5XX': "UnknownError", } response_data = self.api_client.call_api( *_param, @@ -4750,12 +4756,12 @@ def drop_table( _response_types_map: Dict[str, Optional[str]] = { '200': "DropTableResponse", - '400': "ErrorResponse", + '400': "InvalidRequestError", '401': "ErrorResponse", '403': "ErrorResponse", - '404': "ErrorResponse", + '404': "TableNotFoundError", '503': "ErrorResponse", - '5XX': "ErrorResponse", + '5XX': "UnknownError", } response_data = self.api_client.call_api( *_param, @@ -4831,12 +4837,12 @@ def drop_table_with_http_info( _response_types_map: Dict[str, Optional[str]] = { '200': "DropTableResponse", - '400': "ErrorResponse", + '400': "InvalidRequestError", '401': "ErrorResponse", '403': "ErrorResponse", - '404': "ErrorResponse", + '404': "TableNotFoundError", '503': "ErrorResponse", - '5XX': "ErrorResponse", + '5XX': "UnknownError", } response_data = self.api_client.call_api( *_param, @@ -4912,12 +4918,12 @@ def drop_table_without_preload_content( _response_types_map: Dict[str, Optional[str]] = { '200': "DropTableResponse", - '400': "ErrorResponse", + '400': "InvalidRequestError", '401': "ErrorResponse", '403': "ErrorResponse", - '404': "ErrorResponse", + '404': "TableNotFoundError", '503': "ErrorResponse", - '5XX': "ErrorResponse", + '5XX': "UnknownError", } response_data = self.api_client.call_api( *_param, @@ -5080,7 +5086,7 @@ def drop_table_index( '400': "ErrorResponse", '401': "ErrorResponse", '403': "ErrorResponse", - '404': "ErrorResponse", + '404': "DescribeTableIndexStats404Response", '503': "ErrorResponse", '5XX': "ErrorResponse", } @@ -5165,7 +5171,7 @@ def drop_table_index_with_http_info( '400': "ErrorResponse", '401': "ErrorResponse", '403': "ErrorResponse", - '404': "ErrorResponse", + '404': "DescribeTableIndexStats404Response", '503': "ErrorResponse", '5XX': "ErrorResponse", } @@ -5250,7 +5256,7 @@ def drop_table_index_without_preload_content( '400': "ErrorResponse", '401': "ErrorResponse", '403': "ErrorResponse", - '404': "ErrorResponse", + '404': "DescribeTableIndexStats404Response", '503': "ErrorResponse", '5XX': "ErrorResponse", } @@ -5411,12 +5417,12 @@ def explain_table_query_plan( _response_types_map: Dict[str, Optional[str]] = { '200': "ExplainTableQueryPlanResponse", - '400': "ErrorResponse", + '400': "DeleteFromTable400Response", '401': "ErrorResponse", '403': "ErrorResponse", - '404': "ErrorResponse", + '404': "TableNotFoundError", '503': "ErrorResponse", - '5XX': "ErrorResponse", + '5XX': "UnknownError", } response_data = self.api_client.call_api( *_param, @@ -5492,12 +5498,12 @@ def explain_table_query_plan_with_http_info( _response_types_map: Dict[str, Optional[str]] = { '200': "ExplainTableQueryPlanResponse", - '400': "ErrorResponse", + '400': "DeleteFromTable400Response", '401': "ErrorResponse", '403': "ErrorResponse", - '404': "ErrorResponse", + '404': "TableNotFoundError", '503': "ErrorResponse", - '5XX': "ErrorResponse", + '5XX': "UnknownError", } response_data = self.api_client.call_api( *_param, @@ -5573,12 +5579,12 @@ def explain_table_query_plan_without_preload_content( _response_types_map: Dict[str, Optional[str]] = { '200': "ExplainTableQueryPlanResponse", - '400': "ErrorResponse", + '400': "DeleteFromTable400Response", '401': "ErrorResponse", '403': "ErrorResponse", - '404': "ErrorResponse", + '404': "TableNotFoundError", '503': "ErrorResponse", - '5XX': "ErrorResponse", + '5XX': "UnknownError", } response_data = self.api_client.call_api( *_param, @@ -5734,12 +5740,12 @@ def get_table_stats( _response_types_map: Dict[str, Optional[str]] = { '200': "GetTableStatsResponse", - '400': "ErrorResponse", + '400': "InvalidRequestError", '401': "ErrorResponse", '403': "ErrorResponse", - '404': "ErrorResponse", + '404': "TableNotFoundError", '503': "ErrorResponse", - '5XX': "ErrorResponse", + '5XX': "UnknownError", } response_data = self.api_client.call_api( *_param, @@ -5815,12 +5821,12 @@ def get_table_stats_with_http_info( _response_types_map: Dict[str, Optional[str]] = { '200': "GetTableStatsResponse", - '400': "ErrorResponse", + '400': "InvalidRequestError", '401': "ErrorResponse", '403': "ErrorResponse", - '404': "ErrorResponse", + '404': "TableNotFoundError", '503': "ErrorResponse", - '5XX': "ErrorResponse", + '5XX': "UnknownError", } response_data = self.api_client.call_api( *_param, @@ -5896,12 +5902,12 @@ def get_table_stats_without_preload_content( _response_types_map: Dict[str, Optional[str]] = { '200': "GetTableStatsResponse", - '400': "ErrorResponse", + '400': "InvalidRequestError", '401': "ErrorResponse", '403': "ErrorResponse", - '404': "ErrorResponse", + '404': "TableNotFoundError", '503': "ErrorResponse", - '5XX': "ErrorResponse", + '5XX': "UnknownError", } response_data = self.api_client.call_api( *_param, @@ -6060,7 +6066,7 @@ def get_table_tag_version( '400': "ErrorResponse", '401': "ErrorResponse", '403': "ErrorResponse", - '404': "ErrorResponse", + '404': "GetTableTagVersion404Response", '503': "ErrorResponse", '5XX': "ErrorResponse", } @@ -6141,7 +6147,7 @@ def get_table_tag_version_with_http_info( '400': "ErrorResponse", '401': "ErrorResponse", '403': "ErrorResponse", - '404': "ErrorResponse", + '404': "GetTableTagVersion404Response", '503': "ErrorResponse", '5XX': "ErrorResponse", } @@ -6222,7 +6228,7 @@ def get_table_tag_version_without_preload_content( '400': "ErrorResponse", '401': "ErrorResponse", '403': "ErrorResponse", - '404': "ErrorResponse", + '404': "GetTableTagVersion404Response", '503': "ErrorResponse", '5XX': "ErrorResponse", } @@ -6384,12 +6390,12 @@ def insert_into_table( _response_types_map: Dict[str, Optional[str]] = { '200': "InsertIntoTableResponse", - '400': "ErrorResponse", + '400': "InsertIntoTable400Response", '401': "ErrorResponse", '403': "ErrorResponse", - '404': "ErrorResponse", + '404': "TableNotFoundError", '503': "ErrorResponse", - '5XX': "ErrorResponse", + '5XX': "UnknownError", } response_data = self.api_client.call_api( *_param, @@ -6469,12 +6475,12 @@ def insert_into_table_with_http_info( _response_types_map: Dict[str, Optional[str]] = { '200': "InsertIntoTableResponse", - '400': "ErrorResponse", + '400': "InsertIntoTable400Response", '401': "ErrorResponse", '403': "ErrorResponse", - '404': "ErrorResponse", + '404': "TableNotFoundError", '503': "ErrorResponse", - '5XX': "ErrorResponse", + '5XX': "UnknownError", } response_data = self.api_client.call_api( *_param, @@ -6554,12 +6560,12 @@ def insert_into_table_without_preload_content( _response_types_map: Dict[str, Optional[str]] = { '200': "InsertIntoTableResponse", - '400': "ErrorResponse", + '400': "InsertIntoTable400Response", '401': "ErrorResponse", '403': "ErrorResponse", - '404': "ErrorResponse", + '404': "TableNotFoundError", '503': "ErrorResponse", - '5XX': "ErrorResponse", + '5XX': "UnknownError", } response_data = self.api_client.call_api( *_param, @@ -6728,12 +6734,12 @@ def list_table_indices( _response_types_map: Dict[str, Optional[str]] = { '200': "ListTableIndicesResponse", - '400': "ErrorResponse", + '400': "InvalidRequestError", '401': "ErrorResponse", '403': "ErrorResponse", - '404': "ErrorResponse", + '404': "TableNotFoundError", '503': "ErrorResponse", - '5XX': "ErrorResponse", + '5XX': "UnknownError", } response_data = self.api_client.call_api( *_param, @@ -6809,12 +6815,12 @@ def list_table_indices_with_http_info( _response_types_map: Dict[str, Optional[str]] = { '200': "ListTableIndicesResponse", - '400': "ErrorResponse", + '400': "InvalidRequestError", '401': "ErrorResponse", '403': "ErrorResponse", - '404': "ErrorResponse", + '404': "TableNotFoundError", '503': "ErrorResponse", - '5XX': "ErrorResponse", + '5XX': "UnknownError", } response_data = self.api_client.call_api( *_param, @@ -6890,12 +6896,12 @@ def list_table_indices_without_preload_content( _response_types_map: Dict[str, Optional[str]] = { '200': "ListTableIndicesResponse", - '400': "ErrorResponse", + '400': "InvalidRequestError", '401': "ErrorResponse", '403': "ErrorResponse", - '404': "ErrorResponse", + '404': "TableNotFoundError", '503': "ErrorResponse", - '5XX': "ErrorResponse", + '5XX': "UnknownError", } response_data = self.api_client.call_api( *_param, @@ -7058,7 +7064,7 @@ def list_table_tags( '400': "ErrorResponse", '401': "ErrorResponse", '403': "ErrorResponse", - '404': "ErrorResponse", + '404': "TableNotFoundError", '503': "ErrorResponse", '5XX': "ErrorResponse", } @@ -7143,7 +7149,7 @@ def list_table_tags_with_http_info( '400': "ErrorResponse", '401': "ErrorResponse", '403': "ErrorResponse", - '404': "ErrorResponse", + '404': "TableNotFoundError", '503': "ErrorResponse", '5XX': "ErrorResponse", } @@ -7228,7 +7234,7 @@ def list_table_tags_without_preload_content( '400': "ErrorResponse", '401': "ErrorResponse", '403': "ErrorResponse", - '404': "ErrorResponse", + '404': "TableNotFoundError", '503': "ErrorResponse", '5XX': "ErrorResponse", } @@ -7380,12 +7386,12 @@ def list_table_versions( _response_types_map: Dict[str, Optional[str]] = { '200': "ListTableVersionsResponse", - '400': "ErrorResponse", + '400': "InvalidRequestError", '401': "ErrorResponse", '403': "ErrorResponse", - '404': "ErrorResponse", + '404': "TableNotFoundError", '503': "ErrorResponse", - '5XX': "ErrorResponse", + '5XX': "UnknownError", } response_data = self.api_client.call_api( *_param, @@ -7461,12 +7467,12 @@ def list_table_versions_with_http_info( _response_types_map: Dict[str, Optional[str]] = { '200': "ListTableVersionsResponse", - '400': "ErrorResponse", + '400': "InvalidRequestError", '401': "ErrorResponse", '403': "ErrorResponse", - '404': "ErrorResponse", + '404': "TableNotFoundError", '503': "ErrorResponse", - '5XX': "ErrorResponse", + '5XX': "UnknownError", } response_data = self.api_client.call_api( *_param, @@ -7542,12 +7548,12 @@ def list_table_versions_without_preload_content( _response_types_map: Dict[str, Optional[str]] = { '200': "ListTableVersionsResponse", - '400': "ErrorResponse", + '400': "InvalidRequestError", '401': "ErrorResponse", '403': "ErrorResponse", - '404': "ErrorResponse", + '404': "TableNotFoundError", '503': "ErrorResponse", - '5XX': "ErrorResponse", + '5XX': "UnknownError", } response_data = self.api_client.call_api( *_param, @@ -7707,13 +7713,13 @@ def list_tables( _response_types_map: Dict[str, Optional[str]] = { '200': "ListTablesResponse", - '400': "ErrorResponse", + '400': "InvalidRequestError", '401': "ErrorResponse", '403': "ErrorResponse", - '404': "ErrorResponse", + '404': "NamespaceNotFoundError", '406': "ErrorResponse", '503': "ErrorResponse", - '5XX': "ErrorResponse", + '5XX': "UnknownError", } response_data = self.api_client.call_api( *_param, @@ -7793,13 +7799,13 @@ def list_tables_with_http_info( _response_types_map: Dict[str, Optional[str]] = { '200': "ListTablesResponse", - '400': "ErrorResponse", + '400': "InvalidRequestError", '401': "ErrorResponse", '403': "ErrorResponse", - '404': "ErrorResponse", + '404': "NamespaceNotFoundError", '406': "ErrorResponse", '503': "ErrorResponse", - '5XX': "ErrorResponse", + '5XX': "UnknownError", } response_data = self.api_client.call_api( *_param, @@ -7879,13 +7885,13 @@ def list_tables_without_preload_content( _response_types_map: Dict[str, Optional[str]] = { '200': "ListTablesResponse", - '400': "ErrorResponse", + '400': "InvalidRequestError", '401': "ErrorResponse", '403': "ErrorResponse", - '404': "ErrorResponse", + '404': "NamespaceNotFoundError", '406': "ErrorResponse", '503': "ErrorResponse", - '5XX': "ErrorResponse", + '5XX': "UnknownError", } response_data = self.api_client.call_api( *_param, @@ -8059,12 +8065,12 @@ def merge_insert_into_table( _response_types_map: Dict[str, Optional[str]] = { '200': "MergeInsertIntoTableResponse", - '400': "ErrorResponse", + '400': "MergeInsertIntoTable400Response", '401': "ErrorResponse", '403': "ErrorResponse", - '404': "ErrorResponse", + '404': "TableNotFoundError", '503': "ErrorResponse", - '5XX': "ErrorResponse", + '5XX': "UnknownError", } response_data = self.api_client.call_api( *_param, @@ -8164,12 +8170,12 @@ def merge_insert_into_table_with_http_info( _response_types_map: Dict[str, Optional[str]] = { '200': "MergeInsertIntoTableResponse", - '400': "ErrorResponse", + '400': "MergeInsertIntoTable400Response", '401': "ErrorResponse", '403': "ErrorResponse", - '404': "ErrorResponse", + '404': "TableNotFoundError", '503': "ErrorResponse", - '5XX': "ErrorResponse", + '5XX': "UnknownError", } response_data = self.api_client.call_api( *_param, @@ -8269,12 +8275,12 @@ def merge_insert_into_table_without_preload_content( _response_types_map: Dict[str, Optional[str]] = { '200': "MergeInsertIntoTableResponse", - '400': "ErrorResponse", + '400': "MergeInsertIntoTable400Response", '401': "ErrorResponse", '403': "ErrorResponse", - '404': "ErrorResponse", + '404': "TableNotFoundError", '503': "ErrorResponse", - '5XX': "ErrorResponse", + '5XX': "UnknownError", } response_data = self.api_client.call_api( *_param, @@ -8468,12 +8474,12 @@ def query_table( _response_types_map: Dict[str, Optional[str]] = { '200': "bytearray", - '400': "ErrorResponse", + '400': "DeleteFromTable400Response", '401': "ErrorResponse", '403': "ErrorResponse", - '404': "ErrorResponse", + '404': "TableNotFoundError", '503': "ErrorResponse", - '5XX': "ErrorResponse", + '5XX': "UnknownError", } response_data = self.api_client.call_api( *_param, @@ -8549,12 +8555,12 @@ def query_table_with_http_info( _response_types_map: Dict[str, Optional[str]] = { '200': "bytearray", - '400': "ErrorResponse", + '400': "DeleteFromTable400Response", '401': "ErrorResponse", '403': "ErrorResponse", - '404': "ErrorResponse", + '404': "TableNotFoundError", '503': "ErrorResponse", - '5XX': "ErrorResponse", + '5XX': "UnknownError", } response_data = self.api_client.call_api( *_param, @@ -8630,12 +8636,12 @@ def query_table_without_preload_content( _response_types_map: Dict[str, Optional[str]] = { '200': "bytearray", - '400': "ErrorResponse", + '400': "DeleteFromTable400Response", '401': "ErrorResponse", '403': "ErrorResponse", - '404': "ErrorResponse", + '404': "TableNotFoundError", '503': "ErrorResponse", - '5XX': "ErrorResponse", + '5XX': "UnknownError", } response_data = self.api_client.call_api( *_param, @@ -8793,14 +8799,14 @@ def register_table( _response_types_map: Dict[str, Optional[str]] = { '200': "RegisterTableResponse", - '400': "ErrorResponse", + '400': "InvalidRequestError", '401': "ErrorResponse", '403': "ErrorResponse", - '404': "ErrorResponse", + '404': "ParentNamespaceNotFoundError", '406': "ErrorResponse", - '409': "ErrorResponse", + '409': "TableAlreadyExistsError", '503': "ErrorResponse", - '5XX': "ErrorResponse", + '5XX': "UnknownError", } response_data = self.api_client.call_api( *_param, @@ -8876,14 +8882,14 @@ def register_table_with_http_info( _response_types_map: Dict[str, Optional[str]] = { '200': "RegisterTableResponse", - '400': "ErrorResponse", + '400': "InvalidRequestError", '401': "ErrorResponse", '403': "ErrorResponse", - '404': "ErrorResponse", + '404': "ParentNamespaceNotFoundError", '406': "ErrorResponse", - '409': "ErrorResponse", + '409': "TableAlreadyExistsError", '503': "ErrorResponse", - '5XX': "ErrorResponse", + '5XX': "UnknownError", } response_data = self.api_client.call_api( *_param, @@ -8959,14 +8965,14 @@ def register_table_without_preload_content( _response_types_map: Dict[str, Optional[str]] = { '200': "RegisterTableResponse", - '400': "ErrorResponse", + '400': "InvalidRequestError", '401': "ErrorResponse", '403': "ErrorResponse", - '404': "ErrorResponse", + '404': "ParentNamespaceNotFoundError", '406': "ErrorResponse", - '409': "ErrorResponse", + '409': "TableAlreadyExistsError", '503': "ErrorResponse", - '5XX': "ErrorResponse", + '5XX': "UnknownError", } response_data = self.api_client.call_api( *_param, @@ -9122,12 +9128,12 @@ def restore_table( _response_types_map: Dict[str, Optional[str]] = { '200': "RestoreTableResponse", - '400': "ErrorResponse", + '400': "InvalidRequestError", '401': "ErrorResponse", '403': "ErrorResponse", - '404': "ErrorResponse", + '404': "RestoreTable404Response", '503': "ErrorResponse", - '5XX': "ErrorResponse", + '5XX': "UnknownError", } response_data = self.api_client.call_api( *_param, @@ -9203,12 +9209,12 @@ def restore_table_with_http_info( _response_types_map: Dict[str, Optional[str]] = { '200': "RestoreTableResponse", - '400': "ErrorResponse", + '400': "InvalidRequestError", '401': "ErrorResponse", '403': "ErrorResponse", - '404': "ErrorResponse", + '404': "RestoreTable404Response", '503': "ErrorResponse", - '5XX': "ErrorResponse", + '5XX': "UnknownError", } response_data = self.api_client.call_api( *_param, @@ -9284,12 +9290,12 @@ def restore_table_without_preload_content( _response_types_map: Dict[str, Optional[str]] = { '200': "RestoreTableResponse", - '400': "ErrorResponse", + '400': "InvalidRequestError", '401': "ErrorResponse", '403': "ErrorResponse", - '404': "ErrorResponse", + '404': "RestoreTable404Response", '503': "ErrorResponse", - '5XX': "ErrorResponse", + '5XX': "UnknownError", } response_data = self.api_client.call_api( *_param, @@ -9445,12 +9451,12 @@ def table_exists( _response_types_map: Dict[str, Optional[str]] = { '200': None, - '400': "ErrorResponse", + '400': "InvalidRequestError", '401': "ErrorResponse", '403': "ErrorResponse", - '404': "ErrorResponse", + '404': "TableNotFoundError", '503': "ErrorResponse", - '5XX': "ErrorResponse", + '5XX': "UnknownError", } response_data = self.api_client.call_api( *_param, @@ -9526,12 +9532,12 @@ def table_exists_with_http_info( _response_types_map: Dict[str, Optional[str]] = { '200': None, - '400': "ErrorResponse", + '400': "InvalidRequestError", '401': "ErrorResponse", '403': "ErrorResponse", - '404': "ErrorResponse", + '404': "TableNotFoundError", '503': "ErrorResponse", - '5XX': "ErrorResponse", + '5XX': "UnknownError", } response_data = self.api_client.call_api( *_param, @@ -9607,12 +9613,12 @@ def table_exists_without_preload_content( _response_types_map: Dict[str, Optional[str]] = { '200': None, - '400': "ErrorResponse", + '400': "InvalidRequestError", '401': "ErrorResponse", '403': "ErrorResponse", - '404': "ErrorResponse", + '404': "TableNotFoundError", '503': "ErrorResponse", - '5XX': "ErrorResponse", + '5XX': "UnknownError", } response_data = self.api_client.call_api( *_param, @@ -9768,12 +9774,12 @@ def update_table( _response_types_map: Dict[str, Optional[str]] = { '200': "UpdateTableResponse", - '400': "ErrorResponse", + '400': "UpdateTable400Response", '401': "ErrorResponse", '403': "ErrorResponse", - '404': "ErrorResponse", + '404': "TableNotFoundError", '503': "ErrorResponse", - '5XX': "ErrorResponse", + '5XX': "UnknownError", } response_data = self.api_client.call_api( *_param, @@ -9849,12 +9855,12 @@ def update_table_with_http_info( _response_types_map: Dict[str, Optional[str]] = { '200': "UpdateTableResponse", - '400': "ErrorResponse", + '400': "UpdateTable400Response", '401': "ErrorResponse", '403': "ErrorResponse", - '404': "ErrorResponse", + '404': "TableNotFoundError", '503': "ErrorResponse", - '5XX': "ErrorResponse", + '5XX': "UnknownError", } response_data = self.api_client.call_api( *_param, @@ -9930,12 +9936,12 @@ def update_table_without_preload_content( _response_types_map: Dict[str, Optional[str]] = { '200': "UpdateTableResponse", - '400': "ErrorResponse", + '400': "UpdateTable400Response", '401': "ErrorResponse", '403': "ErrorResponse", - '404': "ErrorResponse", + '404': "TableNotFoundError", '503': "ErrorResponse", - '5XX': "ErrorResponse", + '5XX': "UnknownError", } response_data = self.api_client.call_api( *_param, @@ -10094,7 +10100,7 @@ def update_table_tag( '400': "ErrorResponse", '401': "ErrorResponse", '403': "ErrorResponse", - '404': "ErrorResponse", + '404': "UpdateTableTag404Response", '503': "ErrorResponse", '5XX': "ErrorResponse", } @@ -10175,7 +10181,7 @@ def update_table_tag_with_http_info( '400': "ErrorResponse", '401': "ErrorResponse", '403': "ErrorResponse", - '404': "ErrorResponse", + '404': "UpdateTableTag404Response", '503': "ErrorResponse", '5XX': "ErrorResponse", } @@ -10256,7 +10262,7 @@ def update_table_tag_without_preload_content( '400': "ErrorResponse", '401': "ErrorResponse", '403': "ErrorResponse", - '404': "ErrorResponse", + '404': "UpdateTableTag404Response", '503': "ErrorResponse", '5XX': "ErrorResponse", } diff --git a/python/lance_namespace_urllib3_client/lance_namespace_urllib3_client/api/tag_api.py b/python/lance_namespace_urllib3_client/lance_namespace_urllib3_client/api/tag_api.py index 4bcfdfe8..07ff6460 100644 --- a/python/lance_namespace_urllib3_client/lance_namespace_urllib3_client/api/tag_api.py +++ b/python/lance_namespace_urllib3_client/lance_namespace_urllib3_client/api/tag_api.py @@ -110,8 +110,8 @@ def create_table_tag( '400': "ErrorResponse", '401': "ErrorResponse", '403': "ErrorResponse", - '404': "ErrorResponse", - '409': "ErrorResponse", + '404': "RestoreTable404Response", + '409': "TableTagAlreadyExistsError", '503': "ErrorResponse", '5XX': "ErrorResponse", } @@ -192,8 +192,8 @@ def create_table_tag_with_http_info( '400': "ErrorResponse", '401': "ErrorResponse", '403': "ErrorResponse", - '404': "ErrorResponse", - '409': "ErrorResponse", + '404': "RestoreTable404Response", + '409': "TableTagAlreadyExistsError", '503': "ErrorResponse", '5XX': "ErrorResponse", } @@ -274,8 +274,8 @@ def create_table_tag_without_preload_content( '400': "ErrorResponse", '401': "ErrorResponse", '403': "ErrorResponse", - '404': "ErrorResponse", - '409': "ErrorResponse", + '404': "RestoreTable404Response", + '409': "TableTagAlreadyExistsError", '503': "ErrorResponse", '5XX': "ErrorResponse", } @@ -436,7 +436,7 @@ def delete_table_tag( '400': "ErrorResponse", '401': "ErrorResponse", '403': "ErrorResponse", - '404': "ErrorResponse", + '404': "GetTableTagVersion404Response", '503': "ErrorResponse", '5XX': "ErrorResponse", } @@ -517,7 +517,7 @@ def delete_table_tag_with_http_info( '400': "ErrorResponse", '401': "ErrorResponse", '403': "ErrorResponse", - '404': "ErrorResponse", + '404': "GetTableTagVersion404Response", '503': "ErrorResponse", '5XX': "ErrorResponse", } @@ -598,7 +598,7 @@ def delete_table_tag_without_preload_content( '400': "ErrorResponse", '401': "ErrorResponse", '403': "ErrorResponse", - '404': "ErrorResponse", + '404': "GetTableTagVersion404Response", '503': "ErrorResponse", '5XX': "ErrorResponse", } @@ -759,7 +759,7 @@ def get_table_tag_version( '400': "ErrorResponse", '401': "ErrorResponse", '403': "ErrorResponse", - '404': "ErrorResponse", + '404': "GetTableTagVersion404Response", '503': "ErrorResponse", '5XX': "ErrorResponse", } @@ -840,7 +840,7 @@ def get_table_tag_version_with_http_info( '400': "ErrorResponse", '401': "ErrorResponse", '403': "ErrorResponse", - '404': "ErrorResponse", + '404': "GetTableTagVersion404Response", '503': "ErrorResponse", '5XX': "ErrorResponse", } @@ -921,7 +921,7 @@ def get_table_tag_version_without_preload_content( '400': "ErrorResponse", '401': "ErrorResponse", '403': "ErrorResponse", - '404': "ErrorResponse", + '404': "GetTableTagVersion404Response", '503': "ErrorResponse", '5XX': "ErrorResponse", } @@ -1086,7 +1086,7 @@ def list_table_tags( '400': "ErrorResponse", '401': "ErrorResponse", '403': "ErrorResponse", - '404': "ErrorResponse", + '404': "TableNotFoundError", '503': "ErrorResponse", '5XX': "ErrorResponse", } @@ -1171,7 +1171,7 @@ def list_table_tags_with_http_info( '400': "ErrorResponse", '401': "ErrorResponse", '403': "ErrorResponse", - '404': "ErrorResponse", + '404': "TableNotFoundError", '503': "ErrorResponse", '5XX': "ErrorResponse", } @@ -1256,7 +1256,7 @@ def list_table_tags_without_preload_content( '400': "ErrorResponse", '401': "ErrorResponse", '403': "ErrorResponse", - '404': "ErrorResponse", + '404': "TableNotFoundError", '503': "ErrorResponse", '5XX': "ErrorResponse", } @@ -1411,7 +1411,7 @@ def update_table_tag( '400': "ErrorResponse", '401': "ErrorResponse", '403': "ErrorResponse", - '404': "ErrorResponse", + '404': "UpdateTableTag404Response", '503': "ErrorResponse", '5XX': "ErrorResponse", } @@ -1492,7 +1492,7 @@ def update_table_tag_with_http_info( '400': "ErrorResponse", '401': "ErrorResponse", '403': "ErrorResponse", - '404': "ErrorResponse", + '404': "UpdateTableTag404Response", '503': "ErrorResponse", '5XX': "ErrorResponse", } @@ -1573,7 +1573,7 @@ def update_table_tag_without_preload_content( '400': "ErrorResponse", '401': "ErrorResponse", '403': "ErrorResponse", - '404': "ErrorResponse", + '404': "UpdateTableTag404Response", '503': "ErrorResponse", '5XX': "ErrorResponse", } diff --git a/python/lance_namespace_urllib3_client/lance_namespace_urllib3_client/api/transaction_api.py b/python/lance_namespace_urllib3_client/lance_namespace_urllib3_client/api/transaction_api.py index d148f699..32f47510 100644 --- a/python/lance_namespace_urllib3_client/lance_namespace_urllib3_client/api/transaction_api.py +++ b/python/lance_namespace_urllib3_client/lance_namespace_urllib3_client/api/transaction_api.py @@ -108,8 +108,8 @@ def alter_transaction( '400': "ErrorResponse", '401': "ErrorResponse", '403': "ErrorResponse", - '404': "ErrorResponse", - '409': "ErrorResponse", + '404': "TransactionNotFoundError", + '409': "TransactionConflictError", '503': "ErrorResponse", '5XX': "ErrorResponse", } @@ -190,8 +190,8 @@ def alter_transaction_with_http_info( '400': "ErrorResponse", '401': "ErrorResponse", '403': "ErrorResponse", - '404': "ErrorResponse", - '409': "ErrorResponse", + '404': "TransactionNotFoundError", + '409': "TransactionConflictError", '503': "ErrorResponse", '5XX': "ErrorResponse", } @@ -272,8 +272,8 @@ def alter_transaction_without_preload_content( '400': "ErrorResponse", '401': "ErrorResponse", '403': "ErrorResponse", - '404': "ErrorResponse", - '409': "ErrorResponse", + '404': "TransactionNotFoundError", + '409': "TransactionConflictError", '503': "ErrorResponse", '5XX': "ErrorResponse", } @@ -434,7 +434,7 @@ def describe_transaction( '400': "ErrorResponse", '401': "ErrorResponse", '403': "ErrorResponse", - '404': "ErrorResponse", + '404': "TransactionNotFoundError", '503': "ErrorResponse", '5XX': "ErrorResponse", } @@ -515,7 +515,7 @@ def describe_transaction_with_http_info( '400': "ErrorResponse", '401': "ErrorResponse", '403': "ErrorResponse", - '404': "ErrorResponse", + '404': "TransactionNotFoundError", '503': "ErrorResponse", '5XX': "ErrorResponse", } @@ -596,7 +596,7 @@ def describe_transaction_without_preload_content( '400': "ErrorResponse", '401': "ErrorResponse", '403': "ErrorResponse", - '404': "ErrorResponse", + '404': "TransactionNotFoundError", '503': "ErrorResponse", '5XX': "ErrorResponse", } diff --git a/python/lance_namespace_urllib3_client/lance_namespace_urllib3_client/models/__init__.py b/python/lance_namespace_urllib3_client/lance_namespace_urllib3_client/models/__init__.py index 39fc9379..675a2ba0 100644 --- a/python/lance_namespace_urllib3_client/lance_namespace_urllib3_client/models/__init__.py +++ b/python/lance_namespace_urllib3_client/lance_namespace_urllib3_client/models/__init__.py @@ -14,8 +14,10 @@ # import models into model package +from lance_namespace_urllib3_client.models.alter_table_add_columns400_response import AlterTableAddColumns400Response from lance_namespace_urllib3_client.models.alter_table_add_columns_request import AlterTableAddColumnsRequest from lance_namespace_urllib3_client.models.alter_table_add_columns_response import AlterTableAddColumnsResponse +from lance_namespace_urllib3_client.models.alter_table_alter_columns400_response import AlterTableAlterColumns400Response from lance_namespace_urllib3_client.models.alter_table_alter_columns_request import AlterTableAlterColumnsRequest from lance_namespace_urllib3_client.models.alter_table_alter_columns_response import AlterTableAlterColumnsResponse from lance_namespace_urllib3_client.models.alter_table_drop_columns_request import AlterTableDropColumnsRequest @@ -34,13 +36,17 @@ from lance_namespace_urllib3_client.models.count_table_rows_request import CountTableRowsRequest from lance_namespace_urllib3_client.models.create_empty_table_request import CreateEmptyTableRequest from lance_namespace_urllib3_client.models.create_empty_table_response import CreateEmptyTableResponse +from lance_namespace_urllib3_client.models.create_namespace400_response import CreateNamespace400Response from lance_namespace_urllib3_client.models.create_namespace_request import CreateNamespaceRequest from lance_namespace_urllib3_client.models.create_namespace_response import CreateNamespaceResponse +from lance_namespace_urllib3_client.models.create_table400_response import CreateTable400Response +from lance_namespace_urllib3_client.models.create_table_index400_response import CreateTableIndex400Response from lance_namespace_urllib3_client.models.create_table_index_request import CreateTableIndexRequest from lance_namespace_urllib3_client.models.create_table_index_response import CreateTableIndexResponse from lance_namespace_urllib3_client.models.create_table_request import CreateTableRequest from lance_namespace_urllib3_client.models.create_table_response import CreateTableResponse from lance_namespace_urllib3_client.models.create_table_tag_request import CreateTableTagRequest +from lance_namespace_urllib3_client.models.delete_from_table400_response import DeleteFromTable400Response from lance_namespace_urllib3_client.models.delete_from_table_request import DeleteFromTableRequest from lance_namespace_urllib3_client.models.delete_from_table_response import DeleteFromTableResponse from lance_namespace_urllib3_client.models.delete_table_tag_request import DeleteTableTagRequest @@ -48,6 +54,7 @@ from lance_namespace_urllib3_client.models.deregister_table_response import DeregisterTableResponse from lance_namespace_urllib3_client.models.describe_namespace_request import DescribeNamespaceRequest from lance_namespace_urllib3_client.models.describe_namespace_response import DescribeNamespaceResponse +from lance_namespace_urllib3_client.models.describe_table_index_stats404_response import DescribeTableIndexStats404Response from lance_namespace_urllib3_client.models.describe_table_index_stats_request import DescribeTableIndexStatsRequest from lance_namespace_urllib3_client.models.describe_table_index_stats_response import DescribeTableIndexStatsResponse from lance_namespace_urllib3_client.models.describe_table_request import DescribeTableRequest @@ -66,11 +73,18 @@ from lance_namespace_urllib3_client.models.fts_query import FtsQuery from lance_namespace_urllib3_client.models.get_table_stats_request import GetTableStatsRequest from lance_namespace_urllib3_client.models.get_table_stats_response import GetTableStatsResponse +from lance_namespace_urllib3_client.models.get_table_tag_version404_response import GetTableTagVersion404Response from lance_namespace_urllib3_client.models.get_table_tag_version_request import GetTableTagVersionRequest from lance_namespace_urllib3_client.models.get_table_tag_version_response import GetTableTagVersionResponse from lance_namespace_urllib3_client.models.index_content import IndexContent +from lance_namespace_urllib3_client.models.insert_into_table400_response import InsertIntoTable400Response from lance_namespace_urllib3_client.models.insert_into_table_request import InsertIntoTableRequest from lance_namespace_urllib3_client.models.insert_into_table_response import InsertIntoTableResponse +from lance_namespace_urllib3_client.models.invalid_identifier_error import InvalidIdentifierError +from lance_namespace_urllib3_client.models.invalid_request_error import InvalidRequestError +from lance_namespace_urllib3_client.models.invalid_sql_expression_error import InvalidSqlExpressionError +from lance_namespace_urllib3_client.models.invalid_table_index_configuration_error import InvalidTableIndexConfigurationError +from lance_namespace_urllib3_client.models.invalid_table_schema_error import InvalidTableSchemaError from lance_namespace_urllib3_client.models.json_arrow_data_type import JsonArrowDataType from lance_namespace_urllib3_client.models.json_arrow_field import JsonArrowField from lance_namespace_urllib3_client.models.json_arrow_schema import JsonArrowSchema @@ -84,28 +98,48 @@ from lance_namespace_urllib3_client.models.list_tables_request import ListTablesRequest from lance_namespace_urllib3_client.models.list_tables_response import ListTablesResponse from lance_namespace_urllib3_client.models.match_query import MatchQuery +from lance_namespace_urllib3_client.models.merge_insert_into_table400_response import MergeInsertIntoTable400Response from lance_namespace_urllib3_client.models.merge_insert_into_table_request import MergeInsertIntoTableRequest from lance_namespace_urllib3_client.models.merge_insert_into_table_response import MergeInsertIntoTableResponse from lance_namespace_urllib3_client.models.multi_match_query import MultiMatchQuery +from lance_namespace_urllib3_client.models.namespace_already_exists_error import NamespaceAlreadyExistsError from lance_namespace_urllib3_client.models.namespace_exists_request import NamespaceExistsRequest +from lance_namespace_urllib3_client.models.namespace_not_empty_error import NamespaceNotEmptyError +from lance_namespace_urllib3_client.models.namespace_not_found_error import NamespaceNotFoundError from lance_namespace_urllib3_client.models.new_column_transform import NewColumnTransform from lance_namespace_urllib3_client.models.operator import Operator +from lance_namespace_urllib3_client.models.parent_namespace_not_found_error import ParentNamespaceNotFoundError from lance_namespace_urllib3_client.models.phrase_query import PhraseQuery from lance_namespace_urllib3_client.models.query_table_request import QueryTableRequest from lance_namespace_urllib3_client.models.query_table_request_full_text_query import QueryTableRequestFullTextQuery from lance_namespace_urllib3_client.models.query_table_request_vector import QueryTableRequestVector from lance_namespace_urllib3_client.models.register_table_request import RegisterTableRequest from lance_namespace_urllib3_client.models.register_table_response import RegisterTableResponse +from lance_namespace_urllib3_client.models.restore_table404_response import RestoreTable404Response from lance_namespace_urllib3_client.models.restore_table_request import RestoreTableRequest from lance_namespace_urllib3_client.models.restore_table_response import RestoreTableResponse from lance_namespace_urllib3_client.models.set_property_mode import SetPropertyMode from lance_namespace_urllib3_client.models.string_fts_query import StringFtsQuery from lance_namespace_urllib3_client.models.structured_fts_query import StructuredFtsQuery +from lance_namespace_urllib3_client.models.table_already_exists_error import TableAlreadyExistsError +from lance_namespace_urllib3_client.models.table_column_not_found_error import TableColumnNotFoundError from lance_namespace_urllib3_client.models.table_exists_request import TableExistsRequest +from lance_namespace_urllib3_client.models.table_index_already_exists_error import TableIndexAlreadyExistsError +from lance_namespace_urllib3_client.models.table_index_not_found_error import TableIndexNotFoundError +from lance_namespace_urllib3_client.models.table_not_found_error import TableNotFoundError +from lance_namespace_urllib3_client.models.table_schema_mismatch_error import TableSchemaMismatchError +from lance_namespace_urllib3_client.models.table_tag_already_exists_error import TableTagAlreadyExistsError +from lance_namespace_urllib3_client.models.table_tag_not_found_error import TableTagNotFoundError from lance_namespace_urllib3_client.models.table_version import TableVersion +from lance_namespace_urllib3_client.models.table_version_not_found_error import TableVersionNotFoundError from lance_namespace_urllib3_client.models.tag_contents import TagContents +from lance_namespace_urllib3_client.models.transaction_conflict_error import TransactionConflictError +from lance_namespace_urllib3_client.models.transaction_not_found_error import TransactionNotFoundError from lance_namespace_urllib3_client.models.transaction_status import TransactionStatus +from lance_namespace_urllib3_client.models.unknown_error import UnknownError from lance_namespace_urllib3_client.models.unset_property_mode import UnsetPropertyMode +from lance_namespace_urllib3_client.models.update_table400_response import UpdateTable400Response from lance_namespace_urllib3_client.models.update_table_request import UpdateTableRequest from lance_namespace_urllib3_client.models.update_table_response import UpdateTableResponse +from lance_namespace_urllib3_client.models.update_table_tag404_response import UpdateTableTag404Response from lance_namespace_urllib3_client.models.update_table_tag_request import UpdateTableTagRequest diff --git a/python/lance_namespace_urllib3_client/lance_namespace_urllib3_client/models/alter_table_add_columns400_response.py b/python/lance_namespace_urllib3_client/lance_namespace_urllib3_client/models/alter_table_add_columns400_response.py new file mode 100644 index 00000000..9ea153a4 --- /dev/null +++ b/python/lance_namespace_urllib3_client/lance_namespace_urllib3_client/models/alter_table_add_columns400_response.py @@ -0,0 +1,151 @@ +# coding: utf-8 + +""" + Lance Namespace Specification + + This OpenAPI specification is a part of the Lance namespace specification. It contains 2 parts: The `components/schemas`, `components/responses`, `components/examples`, `tags` sections define the request and response shape for each operation in a Lance Namespace across all implementations. See https://lance.org/format/namespace/operations for more details. The `servers`, `security`, `paths`, `components/parameters` sections are for the Lance REST Namespace implementation, which defines a complete REST server that can work with Lance datasets. See https://lance.org/format/namespace/rest for more details. + + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import json +import pprint +from pydantic import BaseModel, ConfigDict, Field, StrictStr, ValidationError, field_validator +from typing import Any, List, Optional +from lance_namespace_urllib3_client.models.invalid_request_error import InvalidRequestError +from lance_namespace_urllib3_client.models.invalid_sql_expression_error import InvalidSqlExpressionError +from lance_namespace_urllib3_client.models.invalid_table_schema_error import InvalidTableSchemaError +from pydantic import StrictStr, Field +from typing import Union, List, Set, Optional, Dict +from typing_extensions import Literal, Self + +ALTERTABLEADDCOLUMNS400RESPONSE_ONE_OF_SCHEMAS = ["InvalidRequestError", "InvalidSqlExpressionError", "InvalidTableSchemaError"] + +class AlterTableAddColumns400Response(BaseModel): + """ + AlterTableAddColumns400Response + """ + # data type: InvalidRequestError + oneof_schema_1_validator: Optional[InvalidRequestError] = None + # data type: InvalidTableSchemaError + oneof_schema_2_validator: Optional[InvalidTableSchemaError] = None + # data type: InvalidSqlExpressionError + oneof_schema_3_validator: Optional[InvalidSqlExpressionError] = None + actual_instance: Optional[Union[InvalidRequestError, InvalidSqlExpressionError, InvalidTableSchemaError]] = None + one_of_schemas: Set[str] = { "InvalidRequestError", "InvalidSqlExpressionError", "InvalidTableSchemaError" } + + model_config = ConfigDict( + validate_assignment=True, + protected_namespaces=(), + ) + + + def __init__(self, *args, **kwargs) -> None: + if args: + if len(args) > 1: + raise ValueError("If a position argument is used, only 1 is allowed to set `actual_instance`") + if kwargs: + raise ValueError("If a position argument is used, keyword arguments cannot be used.") + super().__init__(actual_instance=args[0]) + else: + super().__init__(**kwargs) + + @field_validator('actual_instance') + def actual_instance_must_validate_oneof(cls, v): + instance = AlterTableAddColumns400Response.model_construct() + error_messages = [] + match = 0 + # validate data type: InvalidRequestError + if not isinstance(v, InvalidRequestError): + error_messages.append(f"Error! Input type `{type(v)}` is not `InvalidRequestError`") + else: + match += 1 + # validate data type: InvalidTableSchemaError + if not isinstance(v, InvalidTableSchemaError): + error_messages.append(f"Error! Input type `{type(v)}` is not `InvalidTableSchemaError`") + else: + match += 1 + # validate data type: InvalidSqlExpressionError + if not isinstance(v, InvalidSqlExpressionError): + error_messages.append(f"Error! Input type `{type(v)}` is not `InvalidSqlExpressionError`") + else: + match += 1 + if match > 1: + # more than 1 match + raise ValueError("Multiple matches found when setting `actual_instance` in AlterTableAddColumns400Response with oneOf schemas: InvalidRequestError, InvalidSqlExpressionError, InvalidTableSchemaError. Details: " + ", ".join(error_messages)) + elif match == 0: + # no match + raise ValueError("No match found when setting `actual_instance` in AlterTableAddColumns400Response with oneOf schemas: InvalidRequestError, InvalidSqlExpressionError, InvalidTableSchemaError. Details: " + ", ".join(error_messages)) + else: + return v + + @classmethod + def from_dict(cls, obj: Union[str, Dict[str, Any]]) -> Self: + return cls.from_json(json.dumps(obj)) + + @classmethod + def from_json(cls, json_str: str) -> Self: + """Returns the object represented by the json string""" + instance = cls.model_construct() + error_messages = [] + match = 0 + + # deserialize data into InvalidRequestError + try: + instance.actual_instance = InvalidRequestError.from_json(json_str) + match += 1 + except (ValidationError, ValueError) as e: + error_messages.append(str(e)) + # deserialize data into InvalidTableSchemaError + try: + instance.actual_instance = InvalidTableSchemaError.from_json(json_str) + match += 1 + except (ValidationError, ValueError) as e: + error_messages.append(str(e)) + # deserialize data into InvalidSqlExpressionError + try: + instance.actual_instance = InvalidSqlExpressionError.from_json(json_str) + match += 1 + except (ValidationError, ValueError) as e: + error_messages.append(str(e)) + + if match > 1: + # more than 1 match + raise ValueError("Multiple matches found when deserializing the JSON string into AlterTableAddColumns400Response with oneOf schemas: InvalidRequestError, InvalidSqlExpressionError, InvalidTableSchemaError. Details: " + ", ".join(error_messages)) + elif match == 0: + # no match + raise ValueError("No match found when deserializing the JSON string into AlterTableAddColumns400Response with oneOf schemas: InvalidRequestError, InvalidSqlExpressionError, InvalidTableSchemaError. Details: " + ", ".join(error_messages)) + else: + return instance + + def to_json(self) -> str: + """Returns the JSON representation of the actual instance""" + if self.actual_instance is None: + return "null" + + if hasattr(self.actual_instance, "to_json") and callable(self.actual_instance.to_json): + return self.actual_instance.to_json() + else: + return json.dumps(self.actual_instance) + + def to_dict(self) -> Optional[Union[Dict[str, Any], InvalidRequestError, InvalidSqlExpressionError, InvalidTableSchemaError]]: + """Returns the dict representation of the actual instance""" + if self.actual_instance is None: + return None + + if hasattr(self.actual_instance, "to_dict") and callable(self.actual_instance.to_dict): + return self.actual_instance.to_dict() + else: + # primitive type + return self.actual_instance + + def to_str(self) -> str: + """Returns the string representation of the actual instance""" + return pprint.pformat(self.model_dump()) + + diff --git a/python/lance_namespace_urllib3_client/lance_namespace_urllib3_client/models/alter_table_alter_columns400_response.py b/python/lance_namespace_urllib3_client/lance_namespace_urllib3_client/models/alter_table_alter_columns400_response.py new file mode 100644 index 00000000..d1af86e6 --- /dev/null +++ b/python/lance_namespace_urllib3_client/lance_namespace_urllib3_client/models/alter_table_alter_columns400_response.py @@ -0,0 +1,137 @@ +# coding: utf-8 + +""" + Lance Namespace Specification + + This OpenAPI specification is a part of the Lance namespace specification. It contains 2 parts: The `components/schemas`, `components/responses`, `components/examples`, `tags` sections define the request and response shape for each operation in a Lance Namespace across all implementations. See https://lance.org/format/namespace/operations for more details. The `servers`, `security`, `paths`, `components/parameters` sections are for the Lance REST Namespace implementation, which defines a complete REST server that can work with Lance datasets. See https://lance.org/format/namespace/rest for more details. + + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import json +import pprint +from pydantic import BaseModel, ConfigDict, Field, StrictStr, ValidationError, field_validator +from typing import Any, List, Optional +from lance_namespace_urllib3_client.models.invalid_request_error import InvalidRequestError +from lance_namespace_urllib3_client.models.table_column_not_found_error import TableColumnNotFoundError +from pydantic import StrictStr, Field +from typing import Union, List, Set, Optional, Dict +from typing_extensions import Literal, Self + +ALTERTABLEALTERCOLUMNS400RESPONSE_ONE_OF_SCHEMAS = ["InvalidRequestError", "TableColumnNotFoundError"] + +class AlterTableAlterColumns400Response(BaseModel): + """ + AlterTableAlterColumns400Response + """ + # data type: InvalidRequestError + oneof_schema_1_validator: Optional[InvalidRequestError] = None + # data type: TableColumnNotFoundError + oneof_schema_2_validator: Optional[TableColumnNotFoundError] = None + actual_instance: Optional[Union[InvalidRequestError, TableColumnNotFoundError]] = None + one_of_schemas: Set[str] = { "InvalidRequestError", "TableColumnNotFoundError" } + + model_config = ConfigDict( + validate_assignment=True, + protected_namespaces=(), + ) + + + def __init__(self, *args, **kwargs) -> None: + if args: + if len(args) > 1: + raise ValueError("If a position argument is used, only 1 is allowed to set `actual_instance`") + if kwargs: + raise ValueError("If a position argument is used, keyword arguments cannot be used.") + super().__init__(actual_instance=args[0]) + else: + super().__init__(**kwargs) + + @field_validator('actual_instance') + def actual_instance_must_validate_oneof(cls, v): + instance = AlterTableAlterColumns400Response.model_construct() + error_messages = [] + match = 0 + # validate data type: InvalidRequestError + if not isinstance(v, InvalidRequestError): + error_messages.append(f"Error! Input type `{type(v)}` is not `InvalidRequestError`") + else: + match += 1 + # validate data type: TableColumnNotFoundError + if not isinstance(v, TableColumnNotFoundError): + error_messages.append(f"Error! Input type `{type(v)}` is not `TableColumnNotFoundError`") + else: + match += 1 + if match > 1: + # more than 1 match + raise ValueError("Multiple matches found when setting `actual_instance` in AlterTableAlterColumns400Response with oneOf schemas: InvalidRequestError, TableColumnNotFoundError. Details: " + ", ".join(error_messages)) + elif match == 0: + # no match + raise ValueError("No match found when setting `actual_instance` in AlterTableAlterColumns400Response with oneOf schemas: InvalidRequestError, TableColumnNotFoundError. Details: " + ", ".join(error_messages)) + else: + return v + + @classmethod + def from_dict(cls, obj: Union[str, Dict[str, Any]]) -> Self: + return cls.from_json(json.dumps(obj)) + + @classmethod + def from_json(cls, json_str: str) -> Self: + """Returns the object represented by the json string""" + instance = cls.model_construct() + error_messages = [] + match = 0 + + # deserialize data into InvalidRequestError + try: + instance.actual_instance = InvalidRequestError.from_json(json_str) + match += 1 + except (ValidationError, ValueError) as e: + error_messages.append(str(e)) + # deserialize data into TableColumnNotFoundError + try: + instance.actual_instance = TableColumnNotFoundError.from_json(json_str) + match += 1 + except (ValidationError, ValueError) as e: + error_messages.append(str(e)) + + if match > 1: + # more than 1 match + raise ValueError("Multiple matches found when deserializing the JSON string into AlterTableAlterColumns400Response with oneOf schemas: InvalidRequestError, TableColumnNotFoundError. Details: " + ", ".join(error_messages)) + elif match == 0: + # no match + raise ValueError("No match found when deserializing the JSON string into AlterTableAlterColumns400Response with oneOf schemas: InvalidRequestError, TableColumnNotFoundError. Details: " + ", ".join(error_messages)) + else: + return instance + + def to_json(self) -> str: + """Returns the JSON representation of the actual instance""" + if self.actual_instance is None: + return "null" + + if hasattr(self.actual_instance, "to_json") and callable(self.actual_instance.to_json): + return self.actual_instance.to_json() + else: + return json.dumps(self.actual_instance) + + def to_dict(self) -> Optional[Union[Dict[str, Any], InvalidRequestError, TableColumnNotFoundError]]: + """Returns the dict representation of the actual instance""" + if self.actual_instance is None: + return None + + if hasattr(self.actual_instance, "to_dict") and callable(self.actual_instance.to_dict): + return self.actual_instance.to_dict() + else: + # primitive type + return self.actual_instance + + def to_str(self) -> str: + """Returns the string representation of the actual instance""" + return pprint.pformat(self.model_dump()) + + diff --git a/python/lance_namespace_urllib3_client/lance_namespace_urllib3_client/models/create_namespace400_response.py b/python/lance_namespace_urllib3_client/lance_namespace_urllib3_client/models/create_namespace400_response.py new file mode 100644 index 00000000..feeea58c --- /dev/null +++ b/python/lance_namespace_urllib3_client/lance_namespace_urllib3_client/models/create_namespace400_response.py @@ -0,0 +1,137 @@ +# coding: utf-8 + +""" + Lance Namespace Specification + + This OpenAPI specification is a part of the Lance namespace specification. It contains 2 parts: The `components/schemas`, `components/responses`, `components/examples`, `tags` sections define the request and response shape for each operation in a Lance Namespace across all implementations. See https://lance.org/format/namespace/operations for more details. The `servers`, `security`, `paths`, `components/parameters` sections are for the Lance REST Namespace implementation, which defines a complete REST server that can work with Lance datasets. See https://lance.org/format/namespace/rest for more details. + + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import json +import pprint +from pydantic import BaseModel, ConfigDict, Field, StrictStr, ValidationError, field_validator +from typing import Any, List, Optional +from lance_namespace_urllib3_client.models.invalid_identifier_error import InvalidIdentifierError +from lance_namespace_urllib3_client.models.invalid_request_error import InvalidRequestError +from pydantic import StrictStr, Field +from typing import Union, List, Set, Optional, Dict +from typing_extensions import Literal, Self + +CREATENAMESPACE400RESPONSE_ONE_OF_SCHEMAS = ["InvalidIdentifierError", "InvalidRequestError"] + +class CreateNamespace400Response(BaseModel): + """ + CreateNamespace400Response + """ + # data type: InvalidRequestError + oneof_schema_1_validator: Optional[InvalidRequestError] = None + # data type: InvalidIdentifierError + oneof_schema_2_validator: Optional[InvalidIdentifierError] = None + actual_instance: Optional[Union[InvalidIdentifierError, InvalidRequestError]] = None + one_of_schemas: Set[str] = { "InvalidIdentifierError", "InvalidRequestError" } + + model_config = ConfigDict( + validate_assignment=True, + protected_namespaces=(), + ) + + + def __init__(self, *args, **kwargs) -> None: + if args: + if len(args) > 1: + raise ValueError("If a position argument is used, only 1 is allowed to set `actual_instance`") + if kwargs: + raise ValueError("If a position argument is used, keyword arguments cannot be used.") + super().__init__(actual_instance=args[0]) + else: + super().__init__(**kwargs) + + @field_validator('actual_instance') + def actual_instance_must_validate_oneof(cls, v): + instance = CreateNamespace400Response.model_construct() + error_messages = [] + match = 0 + # validate data type: InvalidRequestError + if not isinstance(v, InvalidRequestError): + error_messages.append(f"Error! Input type `{type(v)}` is not `InvalidRequestError`") + else: + match += 1 + # validate data type: InvalidIdentifierError + if not isinstance(v, InvalidIdentifierError): + error_messages.append(f"Error! Input type `{type(v)}` is not `InvalidIdentifierError`") + else: + match += 1 + if match > 1: + # more than 1 match + raise ValueError("Multiple matches found when setting `actual_instance` in CreateNamespace400Response with oneOf schemas: InvalidIdentifierError, InvalidRequestError. Details: " + ", ".join(error_messages)) + elif match == 0: + # no match + raise ValueError("No match found when setting `actual_instance` in CreateNamespace400Response with oneOf schemas: InvalidIdentifierError, InvalidRequestError. Details: " + ", ".join(error_messages)) + else: + return v + + @classmethod + def from_dict(cls, obj: Union[str, Dict[str, Any]]) -> Self: + return cls.from_json(json.dumps(obj)) + + @classmethod + def from_json(cls, json_str: str) -> Self: + """Returns the object represented by the json string""" + instance = cls.model_construct() + error_messages = [] + match = 0 + + # deserialize data into InvalidRequestError + try: + instance.actual_instance = InvalidRequestError.from_json(json_str) + match += 1 + except (ValidationError, ValueError) as e: + error_messages.append(str(e)) + # deserialize data into InvalidIdentifierError + try: + instance.actual_instance = InvalidIdentifierError.from_json(json_str) + match += 1 + except (ValidationError, ValueError) as e: + error_messages.append(str(e)) + + if match > 1: + # more than 1 match + raise ValueError("Multiple matches found when deserializing the JSON string into CreateNamespace400Response with oneOf schemas: InvalidIdentifierError, InvalidRequestError. Details: " + ", ".join(error_messages)) + elif match == 0: + # no match + raise ValueError("No match found when deserializing the JSON string into CreateNamespace400Response with oneOf schemas: InvalidIdentifierError, InvalidRequestError. Details: " + ", ".join(error_messages)) + else: + return instance + + def to_json(self) -> str: + """Returns the JSON representation of the actual instance""" + if self.actual_instance is None: + return "null" + + if hasattr(self.actual_instance, "to_json") and callable(self.actual_instance.to_json): + return self.actual_instance.to_json() + else: + return json.dumps(self.actual_instance) + + def to_dict(self) -> Optional[Union[Dict[str, Any], InvalidIdentifierError, InvalidRequestError]]: + """Returns the dict representation of the actual instance""" + if self.actual_instance is None: + return None + + if hasattr(self.actual_instance, "to_dict") and callable(self.actual_instance.to_dict): + return self.actual_instance.to_dict() + else: + # primitive type + return self.actual_instance + + def to_str(self) -> str: + """Returns the string representation of the actual instance""" + return pprint.pformat(self.model_dump()) + + diff --git a/python/lance_namespace_urllib3_client/lance_namespace_urllib3_client/models/create_table400_response.py b/python/lance_namespace_urllib3_client/lance_namespace_urllib3_client/models/create_table400_response.py new file mode 100644 index 00000000..c1d0e199 --- /dev/null +++ b/python/lance_namespace_urllib3_client/lance_namespace_urllib3_client/models/create_table400_response.py @@ -0,0 +1,137 @@ +# coding: utf-8 + +""" + Lance Namespace Specification + + This OpenAPI specification is a part of the Lance namespace specification. It contains 2 parts: The `components/schemas`, `components/responses`, `components/examples`, `tags` sections define the request and response shape for each operation in a Lance Namespace across all implementations. See https://lance.org/format/namespace/operations for more details. The `servers`, `security`, `paths`, `components/parameters` sections are for the Lance REST Namespace implementation, which defines a complete REST server that can work with Lance datasets. See https://lance.org/format/namespace/rest for more details. + + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import json +import pprint +from pydantic import BaseModel, ConfigDict, Field, StrictStr, ValidationError, field_validator +from typing import Any, List, Optional +from lance_namespace_urllib3_client.models.invalid_request_error import InvalidRequestError +from lance_namespace_urllib3_client.models.invalid_table_schema_error import InvalidTableSchemaError +from pydantic import StrictStr, Field +from typing import Union, List, Set, Optional, Dict +from typing_extensions import Literal, Self + +CREATETABLE400RESPONSE_ONE_OF_SCHEMAS = ["InvalidRequestError", "InvalidTableSchemaError"] + +class CreateTable400Response(BaseModel): + """ + CreateTable400Response + """ + # data type: InvalidRequestError + oneof_schema_1_validator: Optional[InvalidRequestError] = None + # data type: InvalidTableSchemaError + oneof_schema_2_validator: Optional[InvalidTableSchemaError] = None + actual_instance: Optional[Union[InvalidRequestError, InvalidTableSchemaError]] = None + one_of_schemas: Set[str] = { "InvalidRequestError", "InvalidTableSchemaError" } + + model_config = ConfigDict( + validate_assignment=True, + protected_namespaces=(), + ) + + + def __init__(self, *args, **kwargs) -> None: + if args: + if len(args) > 1: + raise ValueError("If a position argument is used, only 1 is allowed to set `actual_instance`") + if kwargs: + raise ValueError("If a position argument is used, keyword arguments cannot be used.") + super().__init__(actual_instance=args[0]) + else: + super().__init__(**kwargs) + + @field_validator('actual_instance') + def actual_instance_must_validate_oneof(cls, v): + instance = CreateTable400Response.model_construct() + error_messages = [] + match = 0 + # validate data type: InvalidRequestError + if not isinstance(v, InvalidRequestError): + error_messages.append(f"Error! Input type `{type(v)}` is not `InvalidRequestError`") + else: + match += 1 + # validate data type: InvalidTableSchemaError + if not isinstance(v, InvalidTableSchemaError): + error_messages.append(f"Error! Input type `{type(v)}` is not `InvalidTableSchemaError`") + else: + match += 1 + if match > 1: + # more than 1 match + raise ValueError("Multiple matches found when setting `actual_instance` in CreateTable400Response with oneOf schemas: InvalidRequestError, InvalidTableSchemaError. Details: " + ", ".join(error_messages)) + elif match == 0: + # no match + raise ValueError("No match found when setting `actual_instance` in CreateTable400Response with oneOf schemas: InvalidRequestError, InvalidTableSchemaError. Details: " + ", ".join(error_messages)) + else: + return v + + @classmethod + def from_dict(cls, obj: Union[str, Dict[str, Any]]) -> Self: + return cls.from_json(json.dumps(obj)) + + @classmethod + def from_json(cls, json_str: str) -> Self: + """Returns the object represented by the json string""" + instance = cls.model_construct() + error_messages = [] + match = 0 + + # deserialize data into InvalidRequestError + try: + instance.actual_instance = InvalidRequestError.from_json(json_str) + match += 1 + except (ValidationError, ValueError) as e: + error_messages.append(str(e)) + # deserialize data into InvalidTableSchemaError + try: + instance.actual_instance = InvalidTableSchemaError.from_json(json_str) + match += 1 + except (ValidationError, ValueError) as e: + error_messages.append(str(e)) + + if match > 1: + # more than 1 match + raise ValueError("Multiple matches found when deserializing the JSON string into CreateTable400Response with oneOf schemas: InvalidRequestError, InvalidTableSchemaError. Details: " + ", ".join(error_messages)) + elif match == 0: + # no match + raise ValueError("No match found when deserializing the JSON string into CreateTable400Response with oneOf schemas: InvalidRequestError, InvalidTableSchemaError. Details: " + ", ".join(error_messages)) + else: + return instance + + def to_json(self) -> str: + """Returns the JSON representation of the actual instance""" + if self.actual_instance is None: + return "null" + + if hasattr(self.actual_instance, "to_json") and callable(self.actual_instance.to_json): + return self.actual_instance.to_json() + else: + return json.dumps(self.actual_instance) + + def to_dict(self) -> Optional[Union[Dict[str, Any], InvalidRequestError, InvalidTableSchemaError]]: + """Returns the dict representation of the actual instance""" + if self.actual_instance is None: + return None + + if hasattr(self.actual_instance, "to_dict") and callable(self.actual_instance.to_dict): + return self.actual_instance.to_dict() + else: + # primitive type + return self.actual_instance + + def to_str(self) -> str: + """Returns the string representation of the actual instance""" + return pprint.pformat(self.model_dump()) + + diff --git a/python/lance_namespace_urllib3_client/lance_namespace_urllib3_client/models/create_table_index400_response.py b/python/lance_namespace_urllib3_client/lance_namespace_urllib3_client/models/create_table_index400_response.py new file mode 100644 index 00000000..6445941d --- /dev/null +++ b/python/lance_namespace_urllib3_client/lance_namespace_urllib3_client/models/create_table_index400_response.py @@ -0,0 +1,151 @@ +# coding: utf-8 + +""" + Lance Namespace Specification + + This OpenAPI specification is a part of the Lance namespace specification. It contains 2 parts: The `components/schemas`, `components/responses`, `components/examples`, `tags` sections define the request and response shape for each operation in a Lance Namespace across all implementations. See https://lance.org/format/namespace/operations for more details. The `servers`, `security`, `paths`, `components/parameters` sections are for the Lance REST Namespace implementation, which defines a complete REST server that can work with Lance datasets. See https://lance.org/format/namespace/rest for more details. + + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import json +import pprint +from pydantic import BaseModel, ConfigDict, Field, StrictStr, ValidationError, field_validator +from typing import Any, List, Optional +from lance_namespace_urllib3_client.models.invalid_request_error import InvalidRequestError +from lance_namespace_urllib3_client.models.invalid_table_index_configuration_error import InvalidTableIndexConfigurationError +from lance_namespace_urllib3_client.models.table_column_not_found_error import TableColumnNotFoundError +from pydantic import StrictStr, Field +from typing import Union, List, Set, Optional, Dict +from typing_extensions import Literal, Self + +CREATETABLEINDEX400RESPONSE_ONE_OF_SCHEMAS = ["InvalidRequestError", "InvalidTableIndexConfigurationError", "TableColumnNotFoundError"] + +class CreateTableIndex400Response(BaseModel): + """ + CreateTableIndex400Response + """ + # data type: InvalidRequestError + oneof_schema_1_validator: Optional[InvalidRequestError] = None + # data type: TableColumnNotFoundError + oneof_schema_2_validator: Optional[TableColumnNotFoundError] = None + # data type: InvalidTableIndexConfigurationError + oneof_schema_3_validator: Optional[InvalidTableIndexConfigurationError] = None + actual_instance: Optional[Union[InvalidRequestError, InvalidTableIndexConfigurationError, TableColumnNotFoundError]] = None + one_of_schemas: Set[str] = { "InvalidRequestError", "InvalidTableIndexConfigurationError", "TableColumnNotFoundError" } + + model_config = ConfigDict( + validate_assignment=True, + protected_namespaces=(), + ) + + + def __init__(self, *args, **kwargs) -> None: + if args: + if len(args) > 1: + raise ValueError("If a position argument is used, only 1 is allowed to set `actual_instance`") + if kwargs: + raise ValueError("If a position argument is used, keyword arguments cannot be used.") + super().__init__(actual_instance=args[0]) + else: + super().__init__(**kwargs) + + @field_validator('actual_instance') + def actual_instance_must_validate_oneof(cls, v): + instance = CreateTableIndex400Response.model_construct() + error_messages = [] + match = 0 + # validate data type: InvalidRequestError + if not isinstance(v, InvalidRequestError): + error_messages.append(f"Error! Input type `{type(v)}` is not `InvalidRequestError`") + else: + match += 1 + # validate data type: TableColumnNotFoundError + if not isinstance(v, TableColumnNotFoundError): + error_messages.append(f"Error! Input type `{type(v)}` is not `TableColumnNotFoundError`") + else: + match += 1 + # validate data type: InvalidTableIndexConfigurationError + if not isinstance(v, InvalidTableIndexConfigurationError): + error_messages.append(f"Error! Input type `{type(v)}` is not `InvalidTableIndexConfigurationError`") + else: + match += 1 + if match > 1: + # more than 1 match + raise ValueError("Multiple matches found when setting `actual_instance` in CreateTableIndex400Response with oneOf schemas: InvalidRequestError, InvalidTableIndexConfigurationError, TableColumnNotFoundError. Details: " + ", ".join(error_messages)) + elif match == 0: + # no match + raise ValueError("No match found when setting `actual_instance` in CreateTableIndex400Response with oneOf schemas: InvalidRequestError, InvalidTableIndexConfigurationError, TableColumnNotFoundError. Details: " + ", ".join(error_messages)) + else: + return v + + @classmethod + def from_dict(cls, obj: Union[str, Dict[str, Any]]) -> Self: + return cls.from_json(json.dumps(obj)) + + @classmethod + def from_json(cls, json_str: str) -> Self: + """Returns the object represented by the json string""" + instance = cls.model_construct() + error_messages = [] + match = 0 + + # deserialize data into InvalidRequestError + try: + instance.actual_instance = InvalidRequestError.from_json(json_str) + match += 1 + except (ValidationError, ValueError) as e: + error_messages.append(str(e)) + # deserialize data into TableColumnNotFoundError + try: + instance.actual_instance = TableColumnNotFoundError.from_json(json_str) + match += 1 + except (ValidationError, ValueError) as e: + error_messages.append(str(e)) + # deserialize data into InvalidTableIndexConfigurationError + try: + instance.actual_instance = InvalidTableIndexConfigurationError.from_json(json_str) + match += 1 + except (ValidationError, ValueError) as e: + error_messages.append(str(e)) + + if match > 1: + # more than 1 match + raise ValueError("Multiple matches found when deserializing the JSON string into CreateTableIndex400Response with oneOf schemas: InvalidRequestError, InvalidTableIndexConfigurationError, TableColumnNotFoundError. Details: " + ", ".join(error_messages)) + elif match == 0: + # no match + raise ValueError("No match found when deserializing the JSON string into CreateTableIndex400Response with oneOf schemas: InvalidRequestError, InvalidTableIndexConfigurationError, TableColumnNotFoundError. Details: " + ", ".join(error_messages)) + else: + return instance + + def to_json(self) -> str: + """Returns the JSON representation of the actual instance""" + if self.actual_instance is None: + return "null" + + if hasattr(self.actual_instance, "to_json") and callable(self.actual_instance.to_json): + return self.actual_instance.to_json() + else: + return json.dumps(self.actual_instance) + + def to_dict(self) -> Optional[Union[Dict[str, Any], InvalidRequestError, InvalidTableIndexConfigurationError, TableColumnNotFoundError]]: + """Returns the dict representation of the actual instance""" + if self.actual_instance is None: + return None + + if hasattr(self.actual_instance, "to_dict") and callable(self.actual_instance.to_dict): + return self.actual_instance.to_dict() + else: + # primitive type + return self.actual_instance + + def to_str(self) -> str: + """Returns the string representation of the actual instance""" + return pprint.pformat(self.model_dump()) + + diff --git a/python/lance_namespace_urllib3_client/lance_namespace_urllib3_client/models/delete_from_table400_response.py b/python/lance_namespace_urllib3_client/lance_namespace_urllib3_client/models/delete_from_table400_response.py new file mode 100644 index 00000000..e3049e26 --- /dev/null +++ b/python/lance_namespace_urllib3_client/lance_namespace_urllib3_client/models/delete_from_table400_response.py @@ -0,0 +1,137 @@ +# coding: utf-8 + +""" + Lance Namespace Specification + + This OpenAPI specification is a part of the Lance namespace specification. It contains 2 parts: The `components/schemas`, `components/responses`, `components/examples`, `tags` sections define the request and response shape for each operation in a Lance Namespace across all implementations. See https://lance.org/format/namespace/operations for more details. The `servers`, `security`, `paths`, `components/parameters` sections are for the Lance REST Namespace implementation, which defines a complete REST server that can work with Lance datasets. See https://lance.org/format/namespace/rest for more details. + + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import json +import pprint +from pydantic import BaseModel, ConfigDict, Field, StrictStr, ValidationError, field_validator +from typing import Any, List, Optional +from lance_namespace_urllib3_client.models.invalid_request_error import InvalidRequestError +from lance_namespace_urllib3_client.models.invalid_sql_expression_error import InvalidSqlExpressionError +from pydantic import StrictStr, Field +from typing import Union, List, Set, Optional, Dict +from typing_extensions import Literal, Self + +DELETEFROMTABLE400RESPONSE_ONE_OF_SCHEMAS = ["InvalidRequestError", "InvalidSqlExpressionError"] + +class DeleteFromTable400Response(BaseModel): + """ + DeleteFromTable400Response + """ + # data type: InvalidRequestError + oneof_schema_1_validator: Optional[InvalidRequestError] = None + # data type: InvalidSqlExpressionError + oneof_schema_2_validator: Optional[InvalidSqlExpressionError] = None + actual_instance: Optional[Union[InvalidRequestError, InvalidSqlExpressionError]] = None + one_of_schemas: Set[str] = { "InvalidRequestError", "InvalidSqlExpressionError" } + + model_config = ConfigDict( + validate_assignment=True, + protected_namespaces=(), + ) + + + def __init__(self, *args, **kwargs) -> None: + if args: + if len(args) > 1: + raise ValueError("If a position argument is used, only 1 is allowed to set `actual_instance`") + if kwargs: + raise ValueError("If a position argument is used, keyword arguments cannot be used.") + super().__init__(actual_instance=args[0]) + else: + super().__init__(**kwargs) + + @field_validator('actual_instance') + def actual_instance_must_validate_oneof(cls, v): + instance = DeleteFromTable400Response.model_construct() + error_messages = [] + match = 0 + # validate data type: InvalidRequestError + if not isinstance(v, InvalidRequestError): + error_messages.append(f"Error! Input type `{type(v)}` is not `InvalidRequestError`") + else: + match += 1 + # validate data type: InvalidSqlExpressionError + if not isinstance(v, InvalidSqlExpressionError): + error_messages.append(f"Error! Input type `{type(v)}` is not `InvalidSqlExpressionError`") + else: + match += 1 + if match > 1: + # more than 1 match + raise ValueError("Multiple matches found when setting `actual_instance` in DeleteFromTable400Response with oneOf schemas: InvalidRequestError, InvalidSqlExpressionError. Details: " + ", ".join(error_messages)) + elif match == 0: + # no match + raise ValueError("No match found when setting `actual_instance` in DeleteFromTable400Response with oneOf schemas: InvalidRequestError, InvalidSqlExpressionError. Details: " + ", ".join(error_messages)) + else: + return v + + @classmethod + def from_dict(cls, obj: Union[str, Dict[str, Any]]) -> Self: + return cls.from_json(json.dumps(obj)) + + @classmethod + def from_json(cls, json_str: str) -> Self: + """Returns the object represented by the json string""" + instance = cls.model_construct() + error_messages = [] + match = 0 + + # deserialize data into InvalidRequestError + try: + instance.actual_instance = InvalidRequestError.from_json(json_str) + match += 1 + except (ValidationError, ValueError) as e: + error_messages.append(str(e)) + # deserialize data into InvalidSqlExpressionError + try: + instance.actual_instance = InvalidSqlExpressionError.from_json(json_str) + match += 1 + except (ValidationError, ValueError) as e: + error_messages.append(str(e)) + + if match > 1: + # more than 1 match + raise ValueError("Multiple matches found when deserializing the JSON string into DeleteFromTable400Response with oneOf schemas: InvalidRequestError, InvalidSqlExpressionError. Details: " + ", ".join(error_messages)) + elif match == 0: + # no match + raise ValueError("No match found when deserializing the JSON string into DeleteFromTable400Response with oneOf schemas: InvalidRequestError, InvalidSqlExpressionError. Details: " + ", ".join(error_messages)) + else: + return instance + + def to_json(self) -> str: + """Returns the JSON representation of the actual instance""" + if self.actual_instance is None: + return "null" + + if hasattr(self.actual_instance, "to_json") and callable(self.actual_instance.to_json): + return self.actual_instance.to_json() + else: + return json.dumps(self.actual_instance) + + def to_dict(self) -> Optional[Union[Dict[str, Any], InvalidRequestError, InvalidSqlExpressionError]]: + """Returns the dict representation of the actual instance""" + if self.actual_instance is None: + return None + + if hasattr(self.actual_instance, "to_dict") and callable(self.actual_instance.to_dict): + return self.actual_instance.to_dict() + else: + # primitive type + return self.actual_instance + + def to_str(self) -> str: + """Returns the string representation of the actual instance""" + return pprint.pformat(self.model_dump()) + + diff --git a/python/lance_namespace_urllib3_client/lance_namespace_urllib3_client/models/describe_table_index_stats404_response.py b/python/lance_namespace_urllib3_client/lance_namespace_urllib3_client/models/describe_table_index_stats404_response.py new file mode 100644 index 00000000..ce04016b --- /dev/null +++ b/python/lance_namespace_urllib3_client/lance_namespace_urllib3_client/models/describe_table_index_stats404_response.py @@ -0,0 +1,137 @@ +# coding: utf-8 + +""" + Lance Namespace Specification + + This OpenAPI specification is a part of the Lance namespace specification. It contains 2 parts: The `components/schemas`, `components/responses`, `components/examples`, `tags` sections define the request and response shape for each operation in a Lance Namespace across all implementations. See https://lance.org/format/namespace/operations for more details. The `servers`, `security`, `paths`, `components/parameters` sections are for the Lance REST Namespace implementation, which defines a complete REST server that can work with Lance datasets. See https://lance.org/format/namespace/rest for more details. + + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import json +import pprint +from pydantic import BaseModel, ConfigDict, Field, StrictStr, ValidationError, field_validator +from typing import Any, List, Optional +from lance_namespace_urllib3_client.models.table_index_not_found_error import TableIndexNotFoundError +from lance_namespace_urllib3_client.models.table_not_found_error import TableNotFoundError +from pydantic import StrictStr, Field +from typing import Union, List, Set, Optional, Dict +from typing_extensions import Literal, Self + +DESCRIBETABLEINDEXSTATS404RESPONSE_ONE_OF_SCHEMAS = ["TableIndexNotFoundError", "TableNotFoundError"] + +class DescribeTableIndexStats404Response(BaseModel): + """ + DescribeTableIndexStats404Response + """ + # data type: TableNotFoundError + oneof_schema_1_validator: Optional[TableNotFoundError] = None + # data type: TableIndexNotFoundError + oneof_schema_2_validator: Optional[TableIndexNotFoundError] = None + actual_instance: Optional[Union[TableIndexNotFoundError, TableNotFoundError]] = None + one_of_schemas: Set[str] = { "TableIndexNotFoundError", "TableNotFoundError" } + + model_config = ConfigDict( + validate_assignment=True, + protected_namespaces=(), + ) + + + def __init__(self, *args, **kwargs) -> None: + if args: + if len(args) > 1: + raise ValueError("If a position argument is used, only 1 is allowed to set `actual_instance`") + if kwargs: + raise ValueError("If a position argument is used, keyword arguments cannot be used.") + super().__init__(actual_instance=args[0]) + else: + super().__init__(**kwargs) + + @field_validator('actual_instance') + def actual_instance_must_validate_oneof(cls, v): + instance = DescribeTableIndexStats404Response.model_construct() + error_messages = [] + match = 0 + # validate data type: TableNotFoundError + if not isinstance(v, TableNotFoundError): + error_messages.append(f"Error! Input type `{type(v)}` is not `TableNotFoundError`") + else: + match += 1 + # validate data type: TableIndexNotFoundError + if not isinstance(v, TableIndexNotFoundError): + error_messages.append(f"Error! Input type `{type(v)}` is not `TableIndexNotFoundError`") + else: + match += 1 + if match > 1: + # more than 1 match + raise ValueError("Multiple matches found when setting `actual_instance` in DescribeTableIndexStats404Response with oneOf schemas: TableIndexNotFoundError, TableNotFoundError. Details: " + ", ".join(error_messages)) + elif match == 0: + # no match + raise ValueError("No match found when setting `actual_instance` in DescribeTableIndexStats404Response with oneOf schemas: TableIndexNotFoundError, TableNotFoundError. Details: " + ", ".join(error_messages)) + else: + return v + + @classmethod + def from_dict(cls, obj: Union[str, Dict[str, Any]]) -> Self: + return cls.from_json(json.dumps(obj)) + + @classmethod + def from_json(cls, json_str: str) -> Self: + """Returns the object represented by the json string""" + instance = cls.model_construct() + error_messages = [] + match = 0 + + # deserialize data into TableNotFoundError + try: + instance.actual_instance = TableNotFoundError.from_json(json_str) + match += 1 + except (ValidationError, ValueError) as e: + error_messages.append(str(e)) + # deserialize data into TableIndexNotFoundError + try: + instance.actual_instance = TableIndexNotFoundError.from_json(json_str) + match += 1 + except (ValidationError, ValueError) as e: + error_messages.append(str(e)) + + if match > 1: + # more than 1 match + raise ValueError("Multiple matches found when deserializing the JSON string into DescribeTableIndexStats404Response with oneOf schemas: TableIndexNotFoundError, TableNotFoundError. Details: " + ", ".join(error_messages)) + elif match == 0: + # no match + raise ValueError("No match found when deserializing the JSON string into DescribeTableIndexStats404Response with oneOf schemas: TableIndexNotFoundError, TableNotFoundError. Details: " + ", ".join(error_messages)) + else: + return instance + + def to_json(self) -> str: + """Returns the JSON representation of the actual instance""" + if self.actual_instance is None: + return "null" + + if hasattr(self.actual_instance, "to_json") and callable(self.actual_instance.to_json): + return self.actual_instance.to_json() + else: + return json.dumps(self.actual_instance) + + def to_dict(self) -> Optional[Union[Dict[str, Any], TableIndexNotFoundError, TableNotFoundError]]: + """Returns the dict representation of the actual instance""" + if self.actual_instance is None: + return None + + if hasattr(self.actual_instance, "to_dict") and callable(self.actual_instance.to_dict): + return self.actual_instance.to_dict() + else: + # primitive type + return self.actual_instance + + def to_str(self) -> str: + """Returns the string representation of the actual instance""" + return pprint.pformat(self.model_dump()) + + diff --git a/python/lance_namespace_urllib3_client/lance_namespace_urllib3_client/models/get_table_tag_version404_response.py b/python/lance_namespace_urllib3_client/lance_namespace_urllib3_client/models/get_table_tag_version404_response.py new file mode 100644 index 00000000..5a855839 --- /dev/null +++ b/python/lance_namespace_urllib3_client/lance_namespace_urllib3_client/models/get_table_tag_version404_response.py @@ -0,0 +1,137 @@ +# coding: utf-8 + +""" + Lance Namespace Specification + + This OpenAPI specification is a part of the Lance namespace specification. It contains 2 parts: The `components/schemas`, `components/responses`, `components/examples`, `tags` sections define the request and response shape for each operation in a Lance Namespace across all implementations. See https://lance.org/format/namespace/operations for more details. The `servers`, `security`, `paths`, `components/parameters` sections are for the Lance REST Namespace implementation, which defines a complete REST server that can work with Lance datasets. See https://lance.org/format/namespace/rest for more details. + + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import json +import pprint +from pydantic import BaseModel, ConfigDict, Field, StrictStr, ValidationError, field_validator +from typing import Any, List, Optional +from lance_namespace_urllib3_client.models.table_not_found_error import TableNotFoundError +from lance_namespace_urllib3_client.models.table_tag_not_found_error import TableTagNotFoundError +from pydantic import StrictStr, Field +from typing import Union, List, Set, Optional, Dict +from typing_extensions import Literal, Self + +GETTABLETAGVERSION404RESPONSE_ONE_OF_SCHEMAS = ["TableNotFoundError", "TableTagNotFoundError"] + +class GetTableTagVersion404Response(BaseModel): + """ + GetTableTagVersion404Response + """ + # data type: TableNotFoundError + oneof_schema_1_validator: Optional[TableNotFoundError] = None + # data type: TableTagNotFoundError + oneof_schema_2_validator: Optional[TableTagNotFoundError] = None + actual_instance: Optional[Union[TableNotFoundError, TableTagNotFoundError]] = None + one_of_schemas: Set[str] = { "TableNotFoundError", "TableTagNotFoundError" } + + model_config = ConfigDict( + validate_assignment=True, + protected_namespaces=(), + ) + + + def __init__(self, *args, **kwargs) -> None: + if args: + if len(args) > 1: + raise ValueError("If a position argument is used, only 1 is allowed to set `actual_instance`") + if kwargs: + raise ValueError("If a position argument is used, keyword arguments cannot be used.") + super().__init__(actual_instance=args[0]) + else: + super().__init__(**kwargs) + + @field_validator('actual_instance') + def actual_instance_must_validate_oneof(cls, v): + instance = GetTableTagVersion404Response.model_construct() + error_messages = [] + match = 0 + # validate data type: TableNotFoundError + if not isinstance(v, TableNotFoundError): + error_messages.append(f"Error! Input type `{type(v)}` is not `TableNotFoundError`") + else: + match += 1 + # validate data type: TableTagNotFoundError + if not isinstance(v, TableTagNotFoundError): + error_messages.append(f"Error! Input type `{type(v)}` is not `TableTagNotFoundError`") + else: + match += 1 + if match > 1: + # more than 1 match + raise ValueError("Multiple matches found when setting `actual_instance` in GetTableTagVersion404Response with oneOf schemas: TableNotFoundError, TableTagNotFoundError. Details: " + ", ".join(error_messages)) + elif match == 0: + # no match + raise ValueError("No match found when setting `actual_instance` in GetTableTagVersion404Response with oneOf schemas: TableNotFoundError, TableTagNotFoundError. Details: " + ", ".join(error_messages)) + else: + return v + + @classmethod + def from_dict(cls, obj: Union[str, Dict[str, Any]]) -> Self: + return cls.from_json(json.dumps(obj)) + + @classmethod + def from_json(cls, json_str: str) -> Self: + """Returns the object represented by the json string""" + instance = cls.model_construct() + error_messages = [] + match = 0 + + # deserialize data into TableNotFoundError + try: + instance.actual_instance = TableNotFoundError.from_json(json_str) + match += 1 + except (ValidationError, ValueError) as e: + error_messages.append(str(e)) + # deserialize data into TableTagNotFoundError + try: + instance.actual_instance = TableTagNotFoundError.from_json(json_str) + match += 1 + except (ValidationError, ValueError) as e: + error_messages.append(str(e)) + + if match > 1: + # more than 1 match + raise ValueError("Multiple matches found when deserializing the JSON string into GetTableTagVersion404Response with oneOf schemas: TableNotFoundError, TableTagNotFoundError. Details: " + ", ".join(error_messages)) + elif match == 0: + # no match + raise ValueError("No match found when deserializing the JSON string into GetTableTagVersion404Response with oneOf schemas: TableNotFoundError, TableTagNotFoundError. Details: " + ", ".join(error_messages)) + else: + return instance + + def to_json(self) -> str: + """Returns the JSON representation of the actual instance""" + if self.actual_instance is None: + return "null" + + if hasattr(self.actual_instance, "to_json") and callable(self.actual_instance.to_json): + return self.actual_instance.to_json() + else: + return json.dumps(self.actual_instance) + + def to_dict(self) -> Optional[Union[Dict[str, Any], TableNotFoundError, TableTagNotFoundError]]: + """Returns the dict representation of the actual instance""" + if self.actual_instance is None: + return None + + if hasattr(self.actual_instance, "to_dict") and callable(self.actual_instance.to_dict): + return self.actual_instance.to_dict() + else: + # primitive type + return self.actual_instance + + def to_str(self) -> str: + """Returns the string representation of the actual instance""" + return pprint.pformat(self.model_dump()) + + diff --git a/python/lance_namespace_urllib3_client/lance_namespace_urllib3_client/models/insert_into_table400_response.py b/python/lance_namespace_urllib3_client/lance_namespace_urllib3_client/models/insert_into_table400_response.py new file mode 100644 index 00000000..b9aef848 --- /dev/null +++ b/python/lance_namespace_urllib3_client/lance_namespace_urllib3_client/models/insert_into_table400_response.py @@ -0,0 +1,137 @@ +# coding: utf-8 + +""" + Lance Namespace Specification + + This OpenAPI specification is a part of the Lance namespace specification. It contains 2 parts: The `components/schemas`, `components/responses`, `components/examples`, `tags` sections define the request and response shape for each operation in a Lance Namespace across all implementations. See https://lance.org/format/namespace/operations for more details. The `servers`, `security`, `paths`, `components/parameters` sections are for the Lance REST Namespace implementation, which defines a complete REST server that can work with Lance datasets. See https://lance.org/format/namespace/rest for more details. + + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import json +import pprint +from pydantic import BaseModel, ConfigDict, Field, StrictStr, ValidationError, field_validator +from typing import Any, List, Optional +from lance_namespace_urllib3_client.models.invalid_request_error import InvalidRequestError +from lance_namespace_urllib3_client.models.table_schema_mismatch_error import TableSchemaMismatchError +from pydantic import StrictStr, Field +from typing import Union, List, Set, Optional, Dict +from typing_extensions import Literal, Self + +INSERTINTOTABLE400RESPONSE_ONE_OF_SCHEMAS = ["InvalidRequestError", "TableSchemaMismatchError"] + +class InsertIntoTable400Response(BaseModel): + """ + InsertIntoTable400Response + """ + # data type: InvalidRequestError + oneof_schema_1_validator: Optional[InvalidRequestError] = None + # data type: TableSchemaMismatchError + oneof_schema_2_validator: Optional[TableSchemaMismatchError] = None + actual_instance: Optional[Union[InvalidRequestError, TableSchemaMismatchError]] = None + one_of_schemas: Set[str] = { "InvalidRequestError", "TableSchemaMismatchError" } + + model_config = ConfigDict( + validate_assignment=True, + protected_namespaces=(), + ) + + + def __init__(self, *args, **kwargs) -> None: + if args: + if len(args) > 1: + raise ValueError("If a position argument is used, only 1 is allowed to set `actual_instance`") + if kwargs: + raise ValueError("If a position argument is used, keyword arguments cannot be used.") + super().__init__(actual_instance=args[0]) + else: + super().__init__(**kwargs) + + @field_validator('actual_instance') + def actual_instance_must_validate_oneof(cls, v): + instance = InsertIntoTable400Response.model_construct() + error_messages = [] + match = 0 + # validate data type: InvalidRequestError + if not isinstance(v, InvalidRequestError): + error_messages.append(f"Error! Input type `{type(v)}` is not `InvalidRequestError`") + else: + match += 1 + # validate data type: TableSchemaMismatchError + if not isinstance(v, TableSchemaMismatchError): + error_messages.append(f"Error! Input type `{type(v)}` is not `TableSchemaMismatchError`") + else: + match += 1 + if match > 1: + # more than 1 match + raise ValueError("Multiple matches found when setting `actual_instance` in InsertIntoTable400Response with oneOf schemas: InvalidRequestError, TableSchemaMismatchError. Details: " + ", ".join(error_messages)) + elif match == 0: + # no match + raise ValueError("No match found when setting `actual_instance` in InsertIntoTable400Response with oneOf schemas: InvalidRequestError, TableSchemaMismatchError. Details: " + ", ".join(error_messages)) + else: + return v + + @classmethod + def from_dict(cls, obj: Union[str, Dict[str, Any]]) -> Self: + return cls.from_json(json.dumps(obj)) + + @classmethod + def from_json(cls, json_str: str) -> Self: + """Returns the object represented by the json string""" + instance = cls.model_construct() + error_messages = [] + match = 0 + + # deserialize data into InvalidRequestError + try: + instance.actual_instance = InvalidRequestError.from_json(json_str) + match += 1 + except (ValidationError, ValueError) as e: + error_messages.append(str(e)) + # deserialize data into TableSchemaMismatchError + try: + instance.actual_instance = TableSchemaMismatchError.from_json(json_str) + match += 1 + except (ValidationError, ValueError) as e: + error_messages.append(str(e)) + + if match > 1: + # more than 1 match + raise ValueError("Multiple matches found when deserializing the JSON string into InsertIntoTable400Response with oneOf schemas: InvalidRequestError, TableSchemaMismatchError. Details: " + ", ".join(error_messages)) + elif match == 0: + # no match + raise ValueError("No match found when deserializing the JSON string into InsertIntoTable400Response with oneOf schemas: InvalidRequestError, TableSchemaMismatchError. Details: " + ", ".join(error_messages)) + else: + return instance + + def to_json(self) -> str: + """Returns the JSON representation of the actual instance""" + if self.actual_instance is None: + return "null" + + if hasattr(self.actual_instance, "to_json") and callable(self.actual_instance.to_json): + return self.actual_instance.to_json() + else: + return json.dumps(self.actual_instance) + + def to_dict(self) -> Optional[Union[Dict[str, Any], InvalidRequestError, TableSchemaMismatchError]]: + """Returns the dict representation of the actual instance""" + if self.actual_instance is None: + return None + + if hasattr(self.actual_instance, "to_dict") and callable(self.actual_instance.to_dict): + return self.actual_instance.to_dict() + else: + # primitive type + return self.actual_instance + + def to_str(self) -> str: + """Returns the string representation of the actual instance""" + return pprint.pformat(self.model_dump()) + + diff --git a/python/lance_namespace_urllib3_client/lance_namespace_urllib3_client/models/invalid_identifier_error.py b/python/lance_namespace_urllib3_client/lance_namespace_urllib3_client/models/invalid_identifier_error.py new file mode 100644 index 00000000..c1152e92 --- /dev/null +++ b/python/lance_namespace_urllib3_client/lance_namespace_urllib3_client/models/invalid_identifier_error.py @@ -0,0 +1,109 @@ +# coding: utf-8 + +""" + Lance Namespace Specification + + This OpenAPI specification is a part of the Lance namespace specification. It contains 2 parts: The `components/schemas`, `components/responses`, `components/examples`, `tags` sections define the request and response shape for each operation in a Lance Namespace across all implementations. See https://lance.org/format/namespace/operations for more details. The `servers`, `security`, `paths`, `components/parameters` sections are for the Lance REST Namespace implementation, which defines a complete REST server that can work with Lance datasets. See https://lance.org/format/namespace/rest for more details. + + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictInt, StrictStr, field_validator +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class InvalidIdentifierError(BaseModel): + """ + Invalid identifier format + """ # noqa: E501 + error: StrictStr = Field(description="Brief error message") + code: StrictInt = Field(description="HTTP status code") + type: StrictStr = Field(description="Error type identifier") + detail: Optional[StrictStr] = Field(default=None, description="Detailed error explanation") + instance: Optional[StrictStr] = Field(default=None, description="Specific occurrence identifier") + __properties: ClassVar[List[str]] = ["error", "code", "type", "detail", "instance"] + + @field_validator('code') + def code_validate_enum(cls, value): + """Validates the enum""" + if value not in set([400]): + raise ValueError("must be one of enum values (400)") + return value + + @field_validator('type') + def type_validate_enum(cls, value): + """Validates the enum""" + if value not in set(['lance-namespace:603']): + raise ValueError("must be one of enum values ('lance-namespace:603')") + return value + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of InvalidIdentifierError from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of InvalidIdentifierError from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "error": obj.get("error"), + "code": obj.get("code"), + "type": obj.get("type"), + "detail": obj.get("detail"), + "instance": obj.get("instance") + }) + return _obj + + diff --git a/python/lance_namespace_urllib3_client/lance_namespace_urllib3_client/models/invalid_request_error.py b/python/lance_namespace_urllib3_client/lance_namespace_urllib3_client/models/invalid_request_error.py new file mode 100644 index 00000000..d3f042b3 --- /dev/null +++ b/python/lance_namespace_urllib3_client/lance_namespace_urllib3_client/models/invalid_request_error.py @@ -0,0 +1,109 @@ +# coding: utf-8 + +""" + Lance Namespace Specification + + This OpenAPI specification is a part of the Lance namespace specification. It contains 2 parts: The `components/schemas`, `components/responses`, `components/examples`, `tags` sections define the request and response shape for each operation in a Lance Namespace across all implementations. See https://lance.org/format/namespace/operations for more details. The `servers`, `security`, `paths`, `components/parameters` sections are for the Lance REST Namespace implementation, which defines a complete REST server that can work with Lance datasets. See https://lance.org/format/namespace/rest for more details. + + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictInt, StrictStr, field_validator +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class InvalidRequestError(BaseModel): + """ + Malformed request or validation failure + """ # noqa: E501 + error: StrictStr = Field(description="Brief error message") + code: StrictInt = Field(description="HTTP status code") + type: StrictStr = Field(description="Error type identifier") + detail: Optional[StrictStr] = Field(default=None, description="Detailed error explanation") + instance: Optional[StrictStr] = Field(default=None, description="Specific occurrence identifier") + __properties: ClassVar[List[str]] = ["error", "code", "type", "detail", "instance"] + + @field_validator('code') + def code_validate_enum(cls, value): + """Validates the enum""" + if value not in set([400]): + raise ValueError("must be one of enum values (400)") + return value + + @field_validator('type') + def type_validate_enum(cls, value): + """Validates the enum""" + if value not in set(['lance-namespace:601']): + raise ValueError("must be one of enum values ('lance-namespace:601')") + return value + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of InvalidRequestError from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of InvalidRequestError from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "error": obj.get("error"), + "code": obj.get("code"), + "type": obj.get("type"), + "detail": obj.get("detail"), + "instance": obj.get("instance") + }) + return _obj + + diff --git a/python/lance_namespace_urllib3_client/lance_namespace_urllib3_client/models/invalid_sql_expression_error.py b/python/lance_namespace_urllib3_client/lance_namespace_urllib3_client/models/invalid_sql_expression_error.py new file mode 100644 index 00000000..31f33b55 --- /dev/null +++ b/python/lance_namespace_urllib3_client/lance_namespace_urllib3_client/models/invalid_sql_expression_error.py @@ -0,0 +1,109 @@ +# coding: utf-8 + +""" + Lance Namespace Specification + + This OpenAPI specification is a part of the Lance namespace specification. It contains 2 parts: The `components/schemas`, `components/responses`, `components/examples`, `tags` sections define the request and response shape for each operation in a Lance Namespace across all implementations. See https://lance.org/format/namespace/operations for more details. The `servers`, `security`, `paths`, `components/parameters` sections are for the Lance REST Namespace implementation, which defines a complete REST server that can work with Lance datasets. See https://lance.org/format/namespace/rest for more details. + + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictInt, StrictStr, field_validator +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class InvalidSqlExpressionError(BaseModel): + """ + Invalid SQL expression provided + """ # noqa: E501 + error: StrictStr = Field(description="Brief error message") + code: StrictInt = Field(description="HTTP status code") + type: StrictStr = Field(description="Error type identifier") + detail: Optional[StrictStr] = Field(default=None, description="Detailed error explanation") + instance: Optional[StrictStr] = Field(default=None, description="Specific occurrence identifier") + __properties: ClassVar[List[str]] = ["error", "code", "type", "detail", "instance"] + + @field_validator('code') + def code_validate_enum(cls, value): + """Validates the enum""" + if value not in set([400]): + raise ValueError("must be one of enum values (400)") + return value + + @field_validator('type') + def type_validate_enum(cls, value): + """Validates the enum""" + if value not in set(['lance-namespace:602']): + raise ValueError("must be one of enum values ('lance-namespace:602')") + return value + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of InvalidSqlExpressionError from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of InvalidSqlExpressionError from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "error": obj.get("error"), + "code": obj.get("code"), + "type": obj.get("type"), + "detail": obj.get("detail"), + "instance": obj.get("instance") + }) + return _obj + + diff --git a/python/lance_namespace_urllib3_client/lance_namespace_urllib3_client/models/invalid_table_index_configuration_error.py b/python/lance_namespace_urllib3_client/lance_namespace_urllib3_client/models/invalid_table_index_configuration_error.py new file mode 100644 index 00000000..c99d44a3 --- /dev/null +++ b/python/lance_namespace_urllib3_client/lance_namespace_urllib3_client/models/invalid_table_index_configuration_error.py @@ -0,0 +1,109 @@ +# coding: utf-8 + +""" + Lance Namespace Specification + + This OpenAPI specification is a part of the Lance namespace specification. It contains 2 parts: The `components/schemas`, `components/responses`, `components/examples`, `tags` sections define the request and response shape for each operation in a Lance Namespace across all implementations. See https://lance.org/format/namespace/operations for more details. The `servers`, `security`, `paths`, `components/parameters` sections are for the Lance REST Namespace implementation, which defines a complete REST server that can work with Lance datasets. See https://lance.org/format/namespace/rest for more details. + + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictInt, StrictStr, field_validator +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class InvalidTableIndexConfigurationError(BaseModel): + """ + The provided index configuration is invalid + """ # noqa: E501 + error: StrictStr = Field(description="Brief error message") + code: StrictInt = Field(description="HTTP status code") + type: StrictStr = Field(description="Error type identifier") + detail: Optional[StrictStr] = Field(default=None, description="Detailed error explanation") + instance: Optional[StrictStr] = Field(default=None, description="Specific occurrence identifier") + __properties: ClassVar[List[str]] = ["error", "code", "type", "detail", "instance"] + + @field_validator('code') + def code_validate_enum(cls, value): + """Validates the enum""" + if value not in set([400]): + raise ValueError("must be one of enum values (400)") + return value + + @field_validator('type') + def type_validate_enum(cls, value): + """Validates the enum""" + if value not in set(['lance-namespace:303']): + raise ValueError("must be one of enum values ('lance-namespace:303')") + return value + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of InvalidTableIndexConfigurationError from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of InvalidTableIndexConfigurationError from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "error": obj.get("error"), + "code": obj.get("code"), + "type": obj.get("type"), + "detail": obj.get("detail"), + "instance": obj.get("instance") + }) + return _obj + + diff --git a/python/lance_namespace_urllib3_client/lance_namespace_urllib3_client/models/invalid_table_schema_error.py b/python/lance_namespace_urllib3_client/lance_namespace_urllib3_client/models/invalid_table_schema_error.py new file mode 100644 index 00000000..77944e31 --- /dev/null +++ b/python/lance_namespace_urllib3_client/lance_namespace_urllib3_client/models/invalid_table_schema_error.py @@ -0,0 +1,109 @@ +# coding: utf-8 + +""" + Lance Namespace Specification + + This OpenAPI specification is a part of the Lance namespace specification. It contains 2 parts: The `components/schemas`, `components/responses`, `components/examples`, `tags` sections define the request and response shape for each operation in a Lance Namespace across all implementations. See https://lance.org/format/namespace/operations for more details. The `servers`, `security`, `paths`, `components/parameters` sections are for the Lance REST Namespace implementation, which defines a complete REST server that can work with Lance datasets. See https://lance.org/format/namespace/rest for more details. + + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictInt, StrictStr, field_validator +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class InvalidTableSchemaError(BaseModel): + """ + The provided schema is invalid + """ # noqa: E501 + error: StrictStr = Field(description="Brief error message") + code: StrictInt = Field(description="HTTP status code") + type: StrictStr = Field(description="Error type identifier") + detail: Optional[StrictStr] = Field(default=None, description="Detailed error explanation") + instance: Optional[StrictStr] = Field(default=None, description="Specific occurrence identifier") + __properties: ClassVar[List[str]] = ["error", "code", "type", "detail", "instance"] + + @field_validator('code') + def code_validate_enum(cls, value): + """Validates the enum""" + if value not in set([400]): + raise ValueError("must be one of enum values (400)") + return value + + @field_validator('type') + def type_validate_enum(cls, value): + """Validates the enum""" + if value not in set(['lance-namespace:205']): + raise ValueError("must be one of enum values ('lance-namespace:205')") + return value + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of InvalidTableSchemaError from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of InvalidTableSchemaError from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "error": obj.get("error"), + "code": obj.get("code"), + "type": obj.get("type"), + "detail": obj.get("detail"), + "instance": obj.get("instance") + }) + return _obj + + diff --git a/python/lance_namespace_urllib3_client/lance_namespace_urllib3_client/models/merge_insert_into_table400_response.py b/python/lance_namespace_urllib3_client/lance_namespace_urllib3_client/models/merge_insert_into_table400_response.py new file mode 100644 index 00000000..765005bd --- /dev/null +++ b/python/lance_namespace_urllib3_client/lance_namespace_urllib3_client/models/merge_insert_into_table400_response.py @@ -0,0 +1,151 @@ +# coding: utf-8 + +""" + Lance Namespace Specification + + This OpenAPI specification is a part of the Lance namespace specification. It contains 2 parts: The `components/schemas`, `components/responses`, `components/examples`, `tags` sections define the request and response shape for each operation in a Lance Namespace across all implementations. See https://lance.org/format/namespace/operations for more details. The `servers`, `security`, `paths`, `components/parameters` sections are for the Lance REST Namespace implementation, which defines a complete REST server that can work with Lance datasets. See https://lance.org/format/namespace/rest for more details. + + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import json +import pprint +from pydantic import BaseModel, ConfigDict, Field, StrictStr, ValidationError, field_validator +from typing import Any, List, Optional +from lance_namespace_urllib3_client.models.invalid_request_error import InvalidRequestError +from lance_namespace_urllib3_client.models.table_column_not_found_error import TableColumnNotFoundError +from lance_namespace_urllib3_client.models.table_schema_mismatch_error import TableSchemaMismatchError +from pydantic import StrictStr, Field +from typing import Union, List, Set, Optional, Dict +from typing_extensions import Literal, Self + +MERGEINSERTINTOTABLE400RESPONSE_ONE_OF_SCHEMAS = ["InvalidRequestError", "TableColumnNotFoundError", "TableSchemaMismatchError"] + +class MergeInsertIntoTable400Response(BaseModel): + """ + MergeInsertIntoTable400Response + """ + # data type: InvalidRequestError + oneof_schema_1_validator: Optional[InvalidRequestError] = None + # data type: TableColumnNotFoundError + oneof_schema_2_validator: Optional[TableColumnNotFoundError] = None + # data type: TableSchemaMismatchError + oneof_schema_3_validator: Optional[TableSchemaMismatchError] = None + actual_instance: Optional[Union[InvalidRequestError, TableColumnNotFoundError, TableSchemaMismatchError]] = None + one_of_schemas: Set[str] = { "InvalidRequestError", "TableColumnNotFoundError", "TableSchemaMismatchError" } + + model_config = ConfigDict( + validate_assignment=True, + protected_namespaces=(), + ) + + + def __init__(self, *args, **kwargs) -> None: + if args: + if len(args) > 1: + raise ValueError("If a position argument is used, only 1 is allowed to set `actual_instance`") + if kwargs: + raise ValueError("If a position argument is used, keyword arguments cannot be used.") + super().__init__(actual_instance=args[0]) + else: + super().__init__(**kwargs) + + @field_validator('actual_instance') + def actual_instance_must_validate_oneof(cls, v): + instance = MergeInsertIntoTable400Response.model_construct() + error_messages = [] + match = 0 + # validate data type: InvalidRequestError + if not isinstance(v, InvalidRequestError): + error_messages.append(f"Error! Input type `{type(v)}` is not `InvalidRequestError`") + else: + match += 1 + # validate data type: TableColumnNotFoundError + if not isinstance(v, TableColumnNotFoundError): + error_messages.append(f"Error! Input type `{type(v)}` is not `TableColumnNotFoundError`") + else: + match += 1 + # validate data type: TableSchemaMismatchError + if not isinstance(v, TableSchemaMismatchError): + error_messages.append(f"Error! Input type `{type(v)}` is not `TableSchemaMismatchError`") + else: + match += 1 + if match > 1: + # more than 1 match + raise ValueError("Multiple matches found when setting `actual_instance` in MergeInsertIntoTable400Response with oneOf schemas: InvalidRequestError, TableColumnNotFoundError, TableSchemaMismatchError. Details: " + ", ".join(error_messages)) + elif match == 0: + # no match + raise ValueError("No match found when setting `actual_instance` in MergeInsertIntoTable400Response with oneOf schemas: InvalidRequestError, TableColumnNotFoundError, TableSchemaMismatchError. Details: " + ", ".join(error_messages)) + else: + return v + + @classmethod + def from_dict(cls, obj: Union[str, Dict[str, Any]]) -> Self: + return cls.from_json(json.dumps(obj)) + + @classmethod + def from_json(cls, json_str: str) -> Self: + """Returns the object represented by the json string""" + instance = cls.model_construct() + error_messages = [] + match = 0 + + # deserialize data into InvalidRequestError + try: + instance.actual_instance = InvalidRequestError.from_json(json_str) + match += 1 + except (ValidationError, ValueError) as e: + error_messages.append(str(e)) + # deserialize data into TableColumnNotFoundError + try: + instance.actual_instance = TableColumnNotFoundError.from_json(json_str) + match += 1 + except (ValidationError, ValueError) as e: + error_messages.append(str(e)) + # deserialize data into TableSchemaMismatchError + try: + instance.actual_instance = TableSchemaMismatchError.from_json(json_str) + match += 1 + except (ValidationError, ValueError) as e: + error_messages.append(str(e)) + + if match > 1: + # more than 1 match + raise ValueError("Multiple matches found when deserializing the JSON string into MergeInsertIntoTable400Response with oneOf schemas: InvalidRequestError, TableColumnNotFoundError, TableSchemaMismatchError. Details: " + ", ".join(error_messages)) + elif match == 0: + # no match + raise ValueError("No match found when deserializing the JSON string into MergeInsertIntoTable400Response with oneOf schemas: InvalidRequestError, TableColumnNotFoundError, TableSchemaMismatchError. Details: " + ", ".join(error_messages)) + else: + return instance + + def to_json(self) -> str: + """Returns the JSON representation of the actual instance""" + if self.actual_instance is None: + return "null" + + if hasattr(self.actual_instance, "to_json") and callable(self.actual_instance.to_json): + return self.actual_instance.to_json() + else: + return json.dumps(self.actual_instance) + + def to_dict(self) -> Optional[Union[Dict[str, Any], InvalidRequestError, TableColumnNotFoundError, TableSchemaMismatchError]]: + """Returns the dict representation of the actual instance""" + if self.actual_instance is None: + return None + + if hasattr(self.actual_instance, "to_dict") and callable(self.actual_instance.to_dict): + return self.actual_instance.to_dict() + else: + # primitive type + return self.actual_instance + + def to_str(self) -> str: + """Returns the string representation of the actual instance""" + return pprint.pformat(self.model_dump()) + + diff --git a/python/lance_namespace_urllib3_client/lance_namespace_urllib3_client/models/namespace_already_exists_error.py b/python/lance_namespace_urllib3_client/lance_namespace_urllib3_client/models/namespace_already_exists_error.py new file mode 100644 index 00000000..eead0286 --- /dev/null +++ b/python/lance_namespace_urllib3_client/lance_namespace_urllib3_client/models/namespace_already_exists_error.py @@ -0,0 +1,109 @@ +# coding: utf-8 + +""" + Lance Namespace Specification + + This OpenAPI specification is a part of the Lance namespace specification. It contains 2 parts: The `components/schemas`, `components/responses`, `components/examples`, `tags` sections define the request and response shape for each operation in a Lance Namespace across all implementations. See https://lance.org/format/namespace/operations for more details. The `servers`, `security`, `paths`, `components/parameters` sections are for the Lance REST Namespace implementation, which defines a complete REST server that can work with Lance datasets. See https://lance.org/format/namespace/rest for more details. + + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictInt, StrictStr, field_validator +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class NamespaceAlreadyExistsError(BaseModel): + """ + A namespace with the same name already exists + """ # noqa: E501 + error: StrictStr = Field(description="Brief error message") + code: StrictInt = Field(description="HTTP status code") + type: StrictStr = Field(description="Error type identifier") + detail: Optional[StrictStr] = Field(default=None, description="Detailed error explanation") + instance: Optional[StrictStr] = Field(default=None, description="Specific occurrence identifier") + __properties: ClassVar[List[str]] = ["error", "code", "type", "detail", "instance"] + + @field_validator('code') + def code_validate_enum(cls, value): + """Validates the enum""" + if value not in set([409]): + raise ValueError("must be one of enum values (409)") + return value + + @field_validator('type') + def type_validate_enum(cls, value): + """Validates the enum""" + if value not in set(['lance-namespace:102']): + raise ValueError("must be one of enum values ('lance-namespace:102')") + return value + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of NamespaceAlreadyExistsError from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of NamespaceAlreadyExistsError from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "error": obj.get("error"), + "code": obj.get("code"), + "type": obj.get("type"), + "detail": obj.get("detail"), + "instance": obj.get("instance") + }) + return _obj + + diff --git a/python/lance_namespace_urllib3_client/lance_namespace_urllib3_client/models/namespace_not_empty_error.py b/python/lance_namespace_urllib3_client/lance_namespace_urllib3_client/models/namespace_not_empty_error.py new file mode 100644 index 00000000..6145857c --- /dev/null +++ b/python/lance_namespace_urllib3_client/lance_namespace_urllib3_client/models/namespace_not_empty_error.py @@ -0,0 +1,109 @@ +# coding: utf-8 + +""" + Lance Namespace Specification + + This OpenAPI specification is a part of the Lance namespace specification. It contains 2 parts: The `components/schemas`, `components/responses`, `components/examples`, `tags` sections define the request and response shape for each operation in a Lance Namespace across all implementations. See https://lance.org/format/namespace/operations for more details. The `servers`, `security`, `paths`, `components/parameters` sections are for the Lance REST Namespace implementation, which defines a complete REST server that can work with Lance datasets. See https://lance.org/format/namespace/rest for more details. + + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictInt, StrictStr, field_validator +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class NamespaceNotEmptyError(BaseModel): + """ + Cannot drop namespace because it contains tables or child namespaces + """ # noqa: E501 + error: StrictStr = Field(description="Brief error message") + code: StrictInt = Field(description="HTTP status code") + type: StrictStr = Field(description="Error type identifier") + detail: Optional[StrictStr] = Field(default=None, description="Detailed error explanation") + instance: Optional[StrictStr] = Field(default=None, description="Specific occurrence identifier") + __properties: ClassVar[List[str]] = ["error", "code", "type", "detail", "instance"] + + @field_validator('code') + def code_validate_enum(cls, value): + """Validates the enum""" + if value not in set([409]): + raise ValueError("must be one of enum values (409)") + return value + + @field_validator('type') + def type_validate_enum(cls, value): + """Validates the enum""" + if value not in set(['lance-namespace:104']): + raise ValueError("must be one of enum values ('lance-namespace:104')") + return value + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of NamespaceNotEmptyError from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of NamespaceNotEmptyError from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "error": obj.get("error"), + "code": obj.get("code"), + "type": obj.get("type"), + "detail": obj.get("detail"), + "instance": obj.get("instance") + }) + return _obj + + diff --git a/python/lance_namespace_urllib3_client/lance_namespace_urllib3_client/models/namespace_not_found_error.py b/python/lance_namespace_urllib3_client/lance_namespace_urllib3_client/models/namespace_not_found_error.py new file mode 100644 index 00000000..ce48e821 --- /dev/null +++ b/python/lance_namespace_urllib3_client/lance_namespace_urllib3_client/models/namespace_not_found_error.py @@ -0,0 +1,109 @@ +# coding: utf-8 + +""" + Lance Namespace Specification + + This OpenAPI specification is a part of the Lance namespace specification. It contains 2 parts: The `components/schemas`, `components/responses`, `components/examples`, `tags` sections define the request and response shape for each operation in a Lance Namespace across all implementations. See https://lance.org/format/namespace/operations for more details. The `servers`, `security`, `paths`, `components/parameters` sections are for the Lance REST Namespace implementation, which defines a complete REST server that can work with Lance datasets. See https://lance.org/format/namespace/rest for more details. + + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictInt, StrictStr, field_validator +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class NamespaceNotFoundError(BaseModel): + """ + The requested namespace does not exist + """ # noqa: E501 + error: StrictStr = Field(description="Brief error message") + code: StrictInt = Field(description="HTTP status code") + type: StrictStr = Field(description="Error type identifier") + detail: Optional[StrictStr] = Field(default=None, description="Detailed error explanation") + instance: Optional[StrictStr] = Field(default=None, description="Specific occurrence identifier") + __properties: ClassVar[List[str]] = ["error", "code", "type", "detail", "instance"] + + @field_validator('code') + def code_validate_enum(cls, value): + """Validates the enum""" + if value not in set([404]): + raise ValueError("must be one of enum values (404)") + return value + + @field_validator('type') + def type_validate_enum(cls, value): + """Validates the enum""" + if value not in set(['lance-namespace:101']): + raise ValueError("must be one of enum values ('lance-namespace:101')") + return value + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of NamespaceNotFoundError from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of NamespaceNotFoundError from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "error": obj.get("error"), + "code": obj.get("code"), + "type": obj.get("type"), + "detail": obj.get("detail"), + "instance": obj.get("instance") + }) + return _obj + + diff --git a/python/lance_namespace_urllib3_client/lance_namespace_urllib3_client/models/parent_namespace_not_found_error.py b/python/lance_namespace_urllib3_client/lance_namespace_urllib3_client/models/parent_namespace_not_found_error.py new file mode 100644 index 00000000..bffd59c4 --- /dev/null +++ b/python/lance_namespace_urllib3_client/lance_namespace_urllib3_client/models/parent_namespace_not_found_error.py @@ -0,0 +1,109 @@ +# coding: utf-8 + +""" + Lance Namespace Specification + + This OpenAPI specification is a part of the Lance namespace specification. It contains 2 parts: The `components/schemas`, `components/responses`, `components/examples`, `tags` sections define the request and response shape for each operation in a Lance Namespace across all implementations. See https://lance.org/format/namespace/operations for more details. The `servers`, `security`, `paths`, `components/parameters` sections are for the Lance REST Namespace implementation, which defines a complete REST server that can work with Lance datasets. See https://lance.org/format/namespace/rest for more details. + + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictInt, StrictStr, field_validator +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class ParentNamespaceNotFoundError(BaseModel): + """ + The parent namespace does not exist + """ # noqa: E501 + error: StrictStr = Field(description="Brief error message") + code: StrictInt = Field(description="HTTP status code") + type: StrictStr = Field(description="Error type identifier") + detail: Optional[StrictStr] = Field(default=None, description="Detailed error explanation") + instance: Optional[StrictStr] = Field(default=None, description="Specific occurrence identifier") + __properties: ClassVar[List[str]] = ["error", "code", "type", "detail", "instance"] + + @field_validator('code') + def code_validate_enum(cls, value): + """Validates the enum""" + if value not in set([404]): + raise ValueError("must be one of enum values (404)") + return value + + @field_validator('type') + def type_validate_enum(cls, value): + """Validates the enum""" + if value not in set(['lance-namespace:103']): + raise ValueError("must be one of enum values ('lance-namespace:103')") + return value + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of ParentNamespaceNotFoundError from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of ParentNamespaceNotFoundError from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "error": obj.get("error"), + "code": obj.get("code"), + "type": obj.get("type"), + "detail": obj.get("detail"), + "instance": obj.get("instance") + }) + return _obj + + diff --git a/python/lance_namespace_urllib3_client/lance_namespace_urllib3_client/models/restore_table404_response.py b/python/lance_namespace_urllib3_client/lance_namespace_urllib3_client/models/restore_table404_response.py new file mode 100644 index 00000000..94d23895 --- /dev/null +++ b/python/lance_namespace_urllib3_client/lance_namespace_urllib3_client/models/restore_table404_response.py @@ -0,0 +1,137 @@ +# coding: utf-8 + +""" + Lance Namespace Specification + + This OpenAPI specification is a part of the Lance namespace specification. It contains 2 parts: The `components/schemas`, `components/responses`, `components/examples`, `tags` sections define the request and response shape for each operation in a Lance Namespace across all implementations. See https://lance.org/format/namespace/operations for more details. The `servers`, `security`, `paths`, `components/parameters` sections are for the Lance REST Namespace implementation, which defines a complete REST server that can work with Lance datasets. See https://lance.org/format/namespace/rest for more details. + + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import json +import pprint +from pydantic import BaseModel, ConfigDict, Field, StrictStr, ValidationError, field_validator +from typing import Any, List, Optional +from lance_namespace_urllib3_client.models.table_not_found_error import TableNotFoundError +from lance_namespace_urllib3_client.models.table_version_not_found_error import TableVersionNotFoundError +from pydantic import StrictStr, Field +from typing import Union, List, Set, Optional, Dict +from typing_extensions import Literal, Self + +RESTORETABLE404RESPONSE_ONE_OF_SCHEMAS = ["TableNotFoundError", "TableVersionNotFoundError"] + +class RestoreTable404Response(BaseModel): + """ + RestoreTable404Response + """ + # data type: TableNotFoundError + oneof_schema_1_validator: Optional[TableNotFoundError] = None + # data type: TableVersionNotFoundError + oneof_schema_2_validator: Optional[TableVersionNotFoundError] = None + actual_instance: Optional[Union[TableNotFoundError, TableVersionNotFoundError]] = None + one_of_schemas: Set[str] = { "TableNotFoundError", "TableVersionNotFoundError" } + + model_config = ConfigDict( + validate_assignment=True, + protected_namespaces=(), + ) + + + def __init__(self, *args, **kwargs) -> None: + if args: + if len(args) > 1: + raise ValueError("If a position argument is used, only 1 is allowed to set `actual_instance`") + if kwargs: + raise ValueError("If a position argument is used, keyword arguments cannot be used.") + super().__init__(actual_instance=args[0]) + else: + super().__init__(**kwargs) + + @field_validator('actual_instance') + def actual_instance_must_validate_oneof(cls, v): + instance = RestoreTable404Response.model_construct() + error_messages = [] + match = 0 + # validate data type: TableNotFoundError + if not isinstance(v, TableNotFoundError): + error_messages.append(f"Error! Input type `{type(v)}` is not `TableNotFoundError`") + else: + match += 1 + # validate data type: TableVersionNotFoundError + if not isinstance(v, TableVersionNotFoundError): + error_messages.append(f"Error! Input type `{type(v)}` is not `TableVersionNotFoundError`") + else: + match += 1 + if match > 1: + # more than 1 match + raise ValueError("Multiple matches found when setting `actual_instance` in RestoreTable404Response with oneOf schemas: TableNotFoundError, TableVersionNotFoundError. Details: " + ", ".join(error_messages)) + elif match == 0: + # no match + raise ValueError("No match found when setting `actual_instance` in RestoreTable404Response with oneOf schemas: TableNotFoundError, TableVersionNotFoundError. Details: " + ", ".join(error_messages)) + else: + return v + + @classmethod + def from_dict(cls, obj: Union[str, Dict[str, Any]]) -> Self: + return cls.from_json(json.dumps(obj)) + + @classmethod + def from_json(cls, json_str: str) -> Self: + """Returns the object represented by the json string""" + instance = cls.model_construct() + error_messages = [] + match = 0 + + # deserialize data into TableNotFoundError + try: + instance.actual_instance = TableNotFoundError.from_json(json_str) + match += 1 + except (ValidationError, ValueError) as e: + error_messages.append(str(e)) + # deserialize data into TableVersionNotFoundError + try: + instance.actual_instance = TableVersionNotFoundError.from_json(json_str) + match += 1 + except (ValidationError, ValueError) as e: + error_messages.append(str(e)) + + if match > 1: + # more than 1 match + raise ValueError("Multiple matches found when deserializing the JSON string into RestoreTable404Response with oneOf schemas: TableNotFoundError, TableVersionNotFoundError. Details: " + ", ".join(error_messages)) + elif match == 0: + # no match + raise ValueError("No match found when deserializing the JSON string into RestoreTable404Response with oneOf schemas: TableNotFoundError, TableVersionNotFoundError. Details: " + ", ".join(error_messages)) + else: + return instance + + def to_json(self) -> str: + """Returns the JSON representation of the actual instance""" + if self.actual_instance is None: + return "null" + + if hasattr(self.actual_instance, "to_json") and callable(self.actual_instance.to_json): + return self.actual_instance.to_json() + else: + return json.dumps(self.actual_instance) + + def to_dict(self) -> Optional[Union[Dict[str, Any], TableNotFoundError, TableVersionNotFoundError]]: + """Returns the dict representation of the actual instance""" + if self.actual_instance is None: + return None + + if hasattr(self.actual_instance, "to_dict") and callable(self.actual_instance.to_dict): + return self.actual_instance.to_dict() + else: + # primitive type + return self.actual_instance + + def to_str(self) -> str: + """Returns the string representation of the actual instance""" + return pprint.pformat(self.model_dump()) + + diff --git a/python/lance_namespace_urllib3_client/lance_namespace_urllib3_client/models/table_already_exists_error.py b/python/lance_namespace_urllib3_client/lance_namespace_urllib3_client/models/table_already_exists_error.py new file mode 100644 index 00000000..d9e2f2a9 --- /dev/null +++ b/python/lance_namespace_urllib3_client/lance_namespace_urllib3_client/models/table_already_exists_error.py @@ -0,0 +1,109 @@ +# coding: utf-8 + +""" + Lance Namespace Specification + + This OpenAPI specification is a part of the Lance namespace specification. It contains 2 parts: The `components/schemas`, `components/responses`, `components/examples`, `tags` sections define the request and response shape for each operation in a Lance Namespace across all implementations. See https://lance.org/format/namespace/operations for more details. The `servers`, `security`, `paths`, `components/parameters` sections are for the Lance REST Namespace implementation, which defines a complete REST server that can work with Lance datasets. See https://lance.org/format/namespace/rest for more details. + + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictInt, StrictStr, field_validator +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class TableAlreadyExistsError(BaseModel): + """ + A table with the same name already exists + """ # noqa: E501 + error: StrictStr = Field(description="Brief error message") + code: StrictInt = Field(description="HTTP status code") + type: StrictStr = Field(description="Error type identifier") + detail: Optional[StrictStr] = Field(default=None, description="Detailed error explanation") + instance: Optional[StrictStr] = Field(default=None, description="Specific occurrence identifier") + __properties: ClassVar[List[str]] = ["error", "code", "type", "detail", "instance"] + + @field_validator('code') + def code_validate_enum(cls, value): + """Validates the enum""" + if value not in set([409]): + raise ValueError("must be one of enum values (409)") + return value + + @field_validator('type') + def type_validate_enum(cls, value): + """Validates the enum""" + if value not in set(['lance-namespace:202']): + raise ValueError("must be one of enum values ('lance-namespace:202')") + return value + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of TableAlreadyExistsError from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of TableAlreadyExistsError from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "error": obj.get("error"), + "code": obj.get("code"), + "type": obj.get("type"), + "detail": obj.get("detail"), + "instance": obj.get("instance") + }) + return _obj + + diff --git a/python/lance_namespace_urllib3_client/lance_namespace_urllib3_client/models/table_column_not_found_error.py b/python/lance_namespace_urllib3_client/lance_namespace_urllib3_client/models/table_column_not_found_error.py new file mode 100644 index 00000000..1223966b --- /dev/null +++ b/python/lance_namespace_urllib3_client/lance_namespace_urllib3_client/models/table_column_not_found_error.py @@ -0,0 +1,109 @@ +# coding: utf-8 + +""" + Lance Namespace Specification + + This OpenAPI specification is a part of the Lance namespace specification. It contains 2 parts: The `components/schemas`, `components/responses`, `components/examples`, `tags` sections define the request and response shape for each operation in a Lance Namespace across all implementations. See https://lance.org/format/namespace/operations for more details. The `servers`, `security`, `paths`, `components/parameters` sections are for the Lance REST Namespace implementation, which defines a complete REST server that can work with Lance datasets. See https://lance.org/format/namespace/rest for more details. + + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictInt, StrictStr, field_validator +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class TableColumnNotFoundError(BaseModel): + """ + The specified column does not exist in the table + """ # noqa: E501 + error: StrictStr = Field(description="Brief error message") + code: StrictInt = Field(description="HTTP status code") + type: StrictStr = Field(description="Error type identifier") + detail: Optional[StrictStr] = Field(default=None, description="Detailed error explanation") + instance: Optional[StrictStr] = Field(default=None, description="Specific occurrence identifier") + __properties: ClassVar[List[str]] = ["error", "code", "type", "detail", "instance"] + + @field_validator('code') + def code_validate_enum(cls, value): + """Validates the enum""" + if value not in set([400]): + raise ValueError("must be one of enum values (400)") + return value + + @field_validator('type') + def type_validate_enum(cls, value): + """Validates the enum""" + if value not in set(['lance-namespace:204']): + raise ValueError("must be one of enum values ('lance-namespace:204')") + return value + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of TableColumnNotFoundError from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of TableColumnNotFoundError from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "error": obj.get("error"), + "code": obj.get("code"), + "type": obj.get("type"), + "detail": obj.get("detail"), + "instance": obj.get("instance") + }) + return _obj + + diff --git a/python/lance_namespace_urllib3_client/lance_namespace_urllib3_client/models/table_index_already_exists_error.py b/python/lance_namespace_urllib3_client/lance_namespace_urllib3_client/models/table_index_already_exists_error.py new file mode 100644 index 00000000..26e4baf8 --- /dev/null +++ b/python/lance_namespace_urllib3_client/lance_namespace_urllib3_client/models/table_index_already_exists_error.py @@ -0,0 +1,109 @@ +# coding: utf-8 + +""" + Lance Namespace Specification + + This OpenAPI specification is a part of the Lance namespace specification. It contains 2 parts: The `components/schemas`, `components/responses`, `components/examples`, `tags` sections define the request and response shape for each operation in a Lance Namespace across all implementations. See https://lance.org/format/namespace/operations for more details. The `servers`, `security`, `paths`, `components/parameters` sections are for the Lance REST Namespace implementation, which defines a complete REST server that can work with Lance datasets. See https://lance.org/format/namespace/rest for more details. + + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictInt, StrictStr, field_validator +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class TableIndexAlreadyExistsError(BaseModel): + """ + An index with the same name already exists + """ # noqa: E501 + error: StrictStr = Field(description="Brief error message") + code: StrictInt = Field(description="HTTP status code") + type: StrictStr = Field(description="Error type identifier") + detail: Optional[StrictStr] = Field(default=None, description="Detailed error explanation") + instance: Optional[StrictStr] = Field(default=None, description="Specific occurrence identifier") + __properties: ClassVar[List[str]] = ["error", "code", "type", "detail", "instance"] + + @field_validator('code') + def code_validate_enum(cls, value): + """Validates the enum""" + if value not in set([409]): + raise ValueError("must be one of enum values (409)") + return value + + @field_validator('type') + def type_validate_enum(cls, value): + """Validates the enum""" + if value not in set(['lance-namespace:302']): + raise ValueError("must be one of enum values ('lance-namespace:302')") + return value + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of TableIndexAlreadyExistsError from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of TableIndexAlreadyExistsError from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "error": obj.get("error"), + "code": obj.get("code"), + "type": obj.get("type"), + "detail": obj.get("detail"), + "instance": obj.get("instance") + }) + return _obj + + diff --git a/python/lance_namespace_urllib3_client/lance_namespace_urllib3_client/models/table_index_not_found_error.py b/python/lance_namespace_urllib3_client/lance_namespace_urllib3_client/models/table_index_not_found_error.py new file mode 100644 index 00000000..26c6f7b4 --- /dev/null +++ b/python/lance_namespace_urllib3_client/lance_namespace_urllib3_client/models/table_index_not_found_error.py @@ -0,0 +1,109 @@ +# coding: utf-8 + +""" + Lance Namespace Specification + + This OpenAPI specification is a part of the Lance namespace specification. It contains 2 parts: The `components/schemas`, `components/responses`, `components/examples`, `tags` sections define the request and response shape for each operation in a Lance Namespace across all implementations. See https://lance.org/format/namespace/operations for more details. The `servers`, `security`, `paths`, `components/parameters` sections are for the Lance REST Namespace implementation, which defines a complete REST server that can work with Lance datasets. See https://lance.org/format/namespace/rest for more details. + + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictInt, StrictStr, field_validator +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class TableIndexNotFoundError(BaseModel): + """ + The requested index does not exist + """ # noqa: E501 + error: StrictStr = Field(description="Brief error message") + code: StrictInt = Field(description="HTTP status code") + type: StrictStr = Field(description="Error type identifier") + detail: Optional[StrictStr] = Field(default=None, description="Detailed error explanation") + instance: Optional[StrictStr] = Field(default=None, description="Specific occurrence identifier") + __properties: ClassVar[List[str]] = ["error", "code", "type", "detail", "instance"] + + @field_validator('code') + def code_validate_enum(cls, value): + """Validates the enum""" + if value not in set([404]): + raise ValueError("must be one of enum values (404)") + return value + + @field_validator('type') + def type_validate_enum(cls, value): + """Validates the enum""" + if value not in set(['lance-namespace:301']): + raise ValueError("must be one of enum values ('lance-namespace:301')") + return value + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of TableIndexNotFoundError from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of TableIndexNotFoundError from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "error": obj.get("error"), + "code": obj.get("code"), + "type": obj.get("type"), + "detail": obj.get("detail"), + "instance": obj.get("instance") + }) + return _obj + + diff --git a/python/lance_namespace_urllib3_client/lance_namespace_urllib3_client/models/table_not_found_error.py b/python/lance_namespace_urllib3_client/lance_namespace_urllib3_client/models/table_not_found_error.py new file mode 100644 index 00000000..74177a90 --- /dev/null +++ b/python/lance_namespace_urllib3_client/lance_namespace_urllib3_client/models/table_not_found_error.py @@ -0,0 +1,109 @@ +# coding: utf-8 + +""" + Lance Namespace Specification + + This OpenAPI specification is a part of the Lance namespace specification. It contains 2 parts: The `components/schemas`, `components/responses`, `components/examples`, `tags` sections define the request and response shape for each operation in a Lance Namespace across all implementations. See https://lance.org/format/namespace/operations for more details. The `servers`, `security`, `paths`, `components/parameters` sections are for the Lance REST Namespace implementation, which defines a complete REST server that can work with Lance datasets. See https://lance.org/format/namespace/rest for more details. + + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictInt, StrictStr, field_validator +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class TableNotFoundError(BaseModel): + """ + The requested table does not exist + """ # noqa: E501 + error: StrictStr = Field(description="Brief error message") + code: StrictInt = Field(description="HTTP status code") + type: StrictStr = Field(description="Error type identifier") + detail: Optional[StrictStr] = Field(default=None, description="Detailed error explanation") + instance: Optional[StrictStr] = Field(default=None, description="Specific occurrence identifier") + __properties: ClassVar[List[str]] = ["error", "code", "type", "detail", "instance"] + + @field_validator('code') + def code_validate_enum(cls, value): + """Validates the enum""" + if value not in set([404]): + raise ValueError("must be one of enum values (404)") + return value + + @field_validator('type') + def type_validate_enum(cls, value): + """Validates the enum""" + if value not in set(['lance-namespace:201']): + raise ValueError("must be one of enum values ('lance-namespace:201')") + return value + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of TableNotFoundError from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of TableNotFoundError from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "error": obj.get("error"), + "code": obj.get("code"), + "type": obj.get("type"), + "detail": obj.get("detail"), + "instance": obj.get("instance") + }) + return _obj + + diff --git a/python/lance_namespace_urllib3_client/lance_namespace_urllib3_client/models/table_schema_mismatch_error.py b/python/lance_namespace_urllib3_client/lance_namespace_urllib3_client/models/table_schema_mismatch_error.py new file mode 100644 index 00000000..af75691f --- /dev/null +++ b/python/lance_namespace_urllib3_client/lance_namespace_urllib3_client/models/table_schema_mismatch_error.py @@ -0,0 +1,109 @@ +# coding: utf-8 + +""" + Lance Namespace Specification + + This OpenAPI specification is a part of the Lance namespace specification. It contains 2 parts: The `components/schemas`, `components/responses`, `components/examples`, `tags` sections define the request and response shape for each operation in a Lance Namespace across all implementations. See https://lance.org/format/namespace/operations for more details. The `servers`, `security`, `paths`, `components/parameters` sections are for the Lance REST Namespace implementation, which defines a complete REST server that can work with Lance datasets. See https://lance.org/format/namespace/rest for more details. + + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictInt, StrictStr, field_validator +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class TableSchemaMismatchError(BaseModel): + """ + The data schema does not match the table schema + """ # noqa: E501 + error: StrictStr = Field(description="Brief error message") + code: StrictInt = Field(description="HTTP status code") + type: StrictStr = Field(description="Error type identifier") + detail: Optional[StrictStr] = Field(default=None, description="Detailed error explanation") + instance: Optional[StrictStr] = Field(default=None, description="Specific occurrence identifier") + __properties: ClassVar[List[str]] = ["error", "code", "type", "detail", "instance"] + + @field_validator('code') + def code_validate_enum(cls, value): + """Validates the enum""" + if value not in set([400]): + raise ValueError("must be one of enum values (400)") + return value + + @field_validator('type') + def type_validate_enum(cls, value): + """Validates the enum""" + if value not in set(['lance-namespace:206']): + raise ValueError("must be one of enum values ('lance-namespace:206')") + return value + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of TableSchemaMismatchError from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of TableSchemaMismatchError from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "error": obj.get("error"), + "code": obj.get("code"), + "type": obj.get("type"), + "detail": obj.get("detail"), + "instance": obj.get("instance") + }) + return _obj + + diff --git a/python/lance_namespace_urllib3_client/lance_namespace_urllib3_client/models/table_tag_already_exists_error.py b/python/lance_namespace_urllib3_client/lance_namespace_urllib3_client/models/table_tag_already_exists_error.py new file mode 100644 index 00000000..bc558098 --- /dev/null +++ b/python/lance_namespace_urllib3_client/lance_namespace_urllib3_client/models/table_tag_already_exists_error.py @@ -0,0 +1,109 @@ +# coding: utf-8 + +""" + Lance Namespace Specification + + This OpenAPI specification is a part of the Lance namespace specification. It contains 2 parts: The `components/schemas`, `components/responses`, `components/examples`, `tags` sections define the request and response shape for each operation in a Lance Namespace across all implementations. See https://lance.org/format/namespace/operations for more details. The `servers`, `security`, `paths`, `components/parameters` sections are for the Lance REST Namespace implementation, which defines a complete REST server that can work with Lance datasets. See https://lance.org/format/namespace/rest for more details. + + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictInt, StrictStr, field_validator +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class TableTagAlreadyExistsError(BaseModel): + """ + A tag with the same name already exists + """ # noqa: E501 + error: StrictStr = Field(description="Brief error message") + code: StrictInt = Field(description="HTTP status code") + type: StrictStr = Field(description="Error type identifier") + detail: Optional[StrictStr] = Field(default=None, description="Detailed error explanation") + instance: Optional[StrictStr] = Field(default=None, description="Specific occurrence identifier") + __properties: ClassVar[List[str]] = ["error", "code", "type", "detail", "instance"] + + @field_validator('code') + def code_validate_enum(cls, value): + """Validates the enum""" + if value not in set([409]): + raise ValueError("must be one of enum values (409)") + return value + + @field_validator('type') + def type_validate_enum(cls, value): + """Validates the enum""" + if value not in set(['lance-namespace:402']): + raise ValueError("must be one of enum values ('lance-namespace:402')") + return value + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of TableTagAlreadyExistsError from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of TableTagAlreadyExistsError from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "error": obj.get("error"), + "code": obj.get("code"), + "type": obj.get("type"), + "detail": obj.get("detail"), + "instance": obj.get("instance") + }) + return _obj + + diff --git a/python/lance_namespace_urllib3_client/lance_namespace_urllib3_client/models/table_tag_not_found_error.py b/python/lance_namespace_urllib3_client/lance_namespace_urllib3_client/models/table_tag_not_found_error.py new file mode 100644 index 00000000..dcd3c3dc --- /dev/null +++ b/python/lance_namespace_urllib3_client/lance_namespace_urllib3_client/models/table_tag_not_found_error.py @@ -0,0 +1,109 @@ +# coding: utf-8 + +""" + Lance Namespace Specification + + This OpenAPI specification is a part of the Lance namespace specification. It contains 2 parts: The `components/schemas`, `components/responses`, `components/examples`, `tags` sections define the request and response shape for each operation in a Lance Namespace across all implementations. See https://lance.org/format/namespace/operations for more details. The `servers`, `security`, `paths`, `components/parameters` sections are for the Lance REST Namespace implementation, which defines a complete REST server that can work with Lance datasets. See https://lance.org/format/namespace/rest for more details. + + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictInt, StrictStr, field_validator +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class TableTagNotFoundError(BaseModel): + """ + The requested tag does not exist + """ # noqa: E501 + error: StrictStr = Field(description="Brief error message") + code: StrictInt = Field(description="HTTP status code") + type: StrictStr = Field(description="Error type identifier") + detail: Optional[StrictStr] = Field(default=None, description="Detailed error explanation") + instance: Optional[StrictStr] = Field(default=None, description="Specific occurrence identifier") + __properties: ClassVar[List[str]] = ["error", "code", "type", "detail", "instance"] + + @field_validator('code') + def code_validate_enum(cls, value): + """Validates the enum""" + if value not in set([404]): + raise ValueError("must be one of enum values (404)") + return value + + @field_validator('type') + def type_validate_enum(cls, value): + """Validates the enum""" + if value not in set(['lance-namespace:401']): + raise ValueError("must be one of enum values ('lance-namespace:401')") + return value + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of TableTagNotFoundError from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of TableTagNotFoundError from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "error": obj.get("error"), + "code": obj.get("code"), + "type": obj.get("type"), + "detail": obj.get("detail"), + "instance": obj.get("instance") + }) + return _obj + + diff --git a/python/lance_namespace_urllib3_client/lance_namespace_urllib3_client/models/table_version_not_found_error.py b/python/lance_namespace_urllib3_client/lance_namespace_urllib3_client/models/table_version_not_found_error.py new file mode 100644 index 00000000..49c3d3b1 --- /dev/null +++ b/python/lance_namespace_urllib3_client/lance_namespace_urllib3_client/models/table_version_not_found_error.py @@ -0,0 +1,109 @@ +# coding: utf-8 + +""" + Lance Namespace Specification + + This OpenAPI specification is a part of the Lance namespace specification. It contains 2 parts: The `components/schemas`, `components/responses`, `components/examples`, `tags` sections define the request and response shape for each operation in a Lance Namespace across all implementations. See https://lance.org/format/namespace/operations for more details. The `servers`, `security`, `paths`, `components/parameters` sections are for the Lance REST Namespace implementation, which defines a complete REST server that can work with Lance datasets. See https://lance.org/format/namespace/rest for more details. + + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictInt, StrictStr, field_validator +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class TableVersionNotFoundError(BaseModel): + """ + The requested table version does not exist + """ # noqa: E501 + error: StrictStr = Field(description="Brief error message") + code: StrictInt = Field(description="HTTP status code") + type: StrictStr = Field(description="Error type identifier") + detail: Optional[StrictStr] = Field(default=None, description="Detailed error explanation") + instance: Optional[StrictStr] = Field(default=None, description="Specific occurrence identifier") + __properties: ClassVar[List[str]] = ["error", "code", "type", "detail", "instance"] + + @field_validator('code') + def code_validate_enum(cls, value): + """Validates the enum""" + if value not in set([404]): + raise ValueError("must be one of enum values (404)") + return value + + @field_validator('type') + def type_validate_enum(cls, value): + """Validates the enum""" + if value not in set(['lance-namespace:203']): + raise ValueError("must be one of enum values ('lance-namespace:203')") + return value + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of TableVersionNotFoundError from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of TableVersionNotFoundError from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "error": obj.get("error"), + "code": obj.get("code"), + "type": obj.get("type"), + "detail": obj.get("detail"), + "instance": obj.get("instance") + }) + return _obj + + diff --git a/python/lance_namespace_urllib3_client/lance_namespace_urllib3_client/models/transaction_conflict_error.py b/python/lance_namespace_urllib3_client/lance_namespace_urllib3_client/models/transaction_conflict_error.py new file mode 100644 index 00000000..604f5a61 --- /dev/null +++ b/python/lance_namespace_urllib3_client/lance_namespace_urllib3_client/models/transaction_conflict_error.py @@ -0,0 +1,109 @@ +# coding: utf-8 + +""" + Lance Namespace Specification + + This OpenAPI specification is a part of the Lance namespace specification. It contains 2 parts: The `components/schemas`, `components/responses`, `components/examples`, `tags` sections define the request and response shape for each operation in a Lance Namespace across all implementations. See https://lance.org/format/namespace/operations for more details. The `servers`, `security`, `paths`, `components/parameters` sections are for the Lance REST Namespace implementation, which defines a complete REST server that can work with Lance datasets. See https://lance.org/format/namespace/rest for more details. + + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictInt, StrictStr, field_validator +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class TransactionConflictError(BaseModel): + """ + Transaction failed due to concurrent modification + """ # noqa: E501 + error: StrictStr = Field(description="Brief error message") + code: StrictInt = Field(description="HTTP status code") + type: StrictStr = Field(description="Error type identifier") + detail: Optional[StrictStr] = Field(default=None, description="Detailed error explanation") + instance: Optional[StrictStr] = Field(default=None, description="Specific occurrence identifier") + __properties: ClassVar[List[str]] = ["error", "code", "type", "detail", "instance"] + + @field_validator('code') + def code_validate_enum(cls, value): + """Validates the enum""" + if value not in set([409]): + raise ValueError("must be one of enum values (409)") + return value + + @field_validator('type') + def type_validate_enum(cls, value): + """Validates the enum""" + if value not in set(['lance-namespace:502']): + raise ValueError("must be one of enum values ('lance-namespace:502')") + return value + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of TransactionConflictError from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of TransactionConflictError from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "error": obj.get("error"), + "code": obj.get("code"), + "type": obj.get("type"), + "detail": obj.get("detail"), + "instance": obj.get("instance") + }) + return _obj + + diff --git a/python/lance_namespace_urllib3_client/lance_namespace_urllib3_client/models/transaction_not_found_error.py b/python/lance_namespace_urllib3_client/lance_namespace_urllib3_client/models/transaction_not_found_error.py new file mode 100644 index 00000000..f5f404d8 --- /dev/null +++ b/python/lance_namespace_urllib3_client/lance_namespace_urllib3_client/models/transaction_not_found_error.py @@ -0,0 +1,109 @@ +# coding: utf-8 + +""" + Lance Namespace Specification + + This OpenAPI specification is a part of the Lance namespace specification. It contains 2 parts: The `components/schemas`, `components/responses`, `components/examples`, `tags` sections define the request and response shape for each operation in a Lance Namespace across all implementations. See https://lance.org/format/namespace/operations for more details. The `servers`, `security`, `paths`, `components/parameters` sections are for the Lance REST Namespace implementation, which defines a complete REST server that can work with Lance datasets. See https://lance.org/format/namespace/rest for more details. + + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictInt, StrictStr, field_validator +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class TransactionNotFoundError(BaseModel): + """ + The requested transaction does not exist + """ # noqa: E501 + error: StrictStr = Field(description="Brief error message") + code: StrictInt = Field(description="HTTP status code") + type: StrictStr = Field(description="Error type identifier") + detail: Optional[StrictStr] = Field(default=None, description="Detailed error explanation") + instance: Optional[StrictStr] = Field(default=None, description="Specific occurrence identifier") + __properties: ClassVar[List[str]] = ["error", "code", "type", "detail", "instance"] + + @field_validator('code') + def code_validate_enum(cls, value): + """Validates the enum""" + if value not in set([404]): + raise ValueError("must be one of enum values (404)") + return value + + @field_validator('type') + def type_validate_enum(cls, value): + """Validates the enum""" + if value not in set(['lance-namespace:501']): + raise ValueError("must be one of enum values ('lance-namespace:501')") + return value + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of TransactionNotFoundError from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of TransactionNotFoundError from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "error": obj.get("error"), + "code": obj.get("code"), + "type": obj.get("type"), + "detail": obj.get("detail"), + "instance": obj.get("instance") + }) + return _obj + + diff --git a/python/lance_namespace_urllib3_client/lance_namespace_urllib3_client/models/unknown_error.py b/python/lance_namespace_urllib3_client/lance_namespace_urllib3_client/models/unknown_error.py new file mode 100644 index 00000000..a83476ce --- /dev/null +++ b/python/lance_namespace_urllib3_client/lance_namespace_urllib3_client/models/unknown_error.py @@ -0,0 +1,109 @@ +# coding: utf-8 + +""" + Lance Namespace Specification + + This OpenAPI specification is a part of the Lance namespace specification. It contains 2 parts: The `components/schemas`, `components/responses`, `components/examples`, `tags` sections define the request and response shape for each operation in a Lance Namespace across all implementations. See https://lance.org/format/namespace/operations for more details. The `servers`, `security`, `paths`, `components/parameters` sections are for the Lance REST Namespace implementation, which defines a complete REST server that can work with Lance datasets. See https://lance.org/format/namespace/rest for more details. + + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictInt, StrictStr, field_validator +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class UnknownError(BaseModel): + """ + Unknown or unclassified error + """ # noqa: E501 + error: StrictStr = Field(description="Brief error message") + code: StrictInt = Field(description="HTTP status code") + type: StrictStr = Field(description="Error type identifier") + detail: Optional[StrictStr] = Field(default=None, description="Detailed error explanation") + instance: Optional[StrictStr] = Field(default=None, description="Specific occurrence identifier") + __properties: ClassVar[List[str]] = ["error", "code", "type", "detail", "instance"] + + @field_validator('code') + def code_validate_enum(cls, value): + """Validates the enum""" + if value not in set([500]): + raise ValueError("must be one of enum values (500)") + return value + + @field_validator('type') + def type_validate_enum(cls, value): + """Validates the enum""" + if value not in set(['lance-namespace:0']): + raise ValueError("must be one of enum values ('lance-namespace:0')") + return value + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of UnknownError from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of UnknownError from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "error": obj.get("error"), + "code": obj.get("code"), + "type": obj.get("type"), + "detail": obj.get("detail"), + "instance": obj.get("instance") + }) + return _obj + + diff --git a/python/lance_namespace_urllib3_client/lance_namespace_urllib3_client/models/update_table400_response.py b/python/lance_namespace_urllib3_client/lance_namespace_urllib3_client/models/update_table400_response.py new file mode 100644 index 00000000..c9e0dc8e --- /dev/null +++ b/python/lance_namespace_urllib3_client/lance_namespace_urllib3_client/models/update_table400_response.py @@ -0,0 +1,151 @@ +# coding: utf-8 + +""" + Lance Namespace Specification + + This OpenAPI specification is a part of the Lance namespace specification. It contains 2 parts: The `components/schemas`, `components/responses`, `components/examples`, `tags` sections define the request and response shape for each operation in a Lance Namespace across all implementations. See https://lance.org/format/namespace/operations for more details. The `servers`, `security`, `paths`, `components/parameters` sections are for the Lance REST Namespace implementation, which defines a complete REST server that can work with Lance datasets. See https://lance.org/format/namespace/rest for more details. + + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import json +import pprint +from pydantic import BaseModel, ConfigDict, Field, StrictStr, ValidationError, field_validator +from typing import Any, List, Optional +from lance_namespace_urllib3_client.models.invalid_request_error import InvalidRequestError +from lance_namespace_urllib3_client.models.invalid_sql_expression_error import InvalidSqlExpressionError +from lance_namespace_urllib3_client.models.table_column_not_found_error import TableColumnNotFoundError +from pydantic import StrictStr, Field +from typing import Union, List, Set, Optional, Dict +from typing_extensions import Literal, Self + +UPDATETABLE400RESPONSE_ONE_OF_SCHEMAS = ["InvalidRequestError", "InvalidSqlExpressionError", "TableColumnNotFoundError"] + +class UpdateTable400Response(BaseModel): + """ + UpdateTable400Response + """ + # data type: InvalidRequestError + oneof_schema_1_validator: Optional[InvalidRequestError] = None + # data type: TableColumnNotFoundError + oneof_schema_2_validator: Optional[TableColumnNotFoundError] = None + # data type: InvalidSqlExpressionError + oneof_schema_3_validator: Optional[InvalidSqlExpressionError] = None + actual_instance: Optional[Union[InvalidRequestError, InvalidSqlExpressionError, TableColumnNotFoundError]] = None + one_of_schemas: Set[str] = { "InvalidRequestError", "InvalidSqlExpressionError", "TableColumnNotFoundError" } + + model_config = ConfigDict( + validate_assignment=True, + protected_namespaces=(), + ) + + + def __init__(self, *args, **kwargs) -> None: + if args: + if len(args) > 1: + raise ValueError("If a position argument is used, only 1 is allowed to set `actual_instance`") + if kwargs: + raise ValueError("If a position argument is used, keyword arguments cannot be used.") + super().__init__(actual_instance=args[0]) + else: + super().__init__(**kwargs) + + @field_validator('actual_instance') + def actual_instance_must_validate_oneof(cls, v): + instance = UpdateTable400Response.model_construct() + error_messages = [] + match = 0 + # validate data type: InvalidRequestError + if not isinstance(v, InvalidRequestError): + error_messages.append(f"Error! Input type `{type(v)}` is not `InvalidRequestError`") + else: + match += 1 + # validate data type: TableColumnNotFoundError + if not isinstance(v, TableColumnNotFoundError): + error_messages.append(f"Error! Input type `{type(v)}` is not `TableColumnNotFoundError`") + else: + match += 1 + # validate data type: InvalidSqlExpressionError + if not isinstance(v, InvalidSqlExpressionError): + error_messages.append(f"Error! Input type `{type(v)}` is not `InvalidSqlExpressionError`") + else: + match += 1 + if match > 1: + # more than 1 match + raise ValueError("Multiple matches found when setting `actual_instance` in UpdateTable400Response with oneOf schemas: InvalidRequestError, InvalidSqlExpressionError, TableColumnNotFoundError. Details: " + ", ".join(error_messages)) + elif match == 0: + # no match + raise ValueError("No match found when setting `actual_instance` in UpdateTable400Response with oneOf schemas: InvalidRequestError, InvalidSqlExpressionError, TableColumnNotFoundError. Details: " + ", ".join(error_messages)) + else: + return v + + @classmethod + def from_dict(cls, obj: Union[str, Dict[str, Any]]) -> Self: + return cls.from_json(json.dumps(obj)) + + @classmethod + def from_json(cls, json_str: str) -> Self: + """Returns the object represented by the json string""" + instance = cls.model_construct() + error_messages = [] + match = 0 + + # deserialize data into InvalidRequestError + try: + instance.actual_instance = InvalidRequestError.from_json(json_str) + match += 1 + except (ValidationError, ValueError) as e: + error_messages.append(str(e)) + # deserialize data into TableColumnNotFoundError + try: + instance.actual_instance = TableColumnNotFoundError.from_json(json_str) + match += 1 + except (ValidationError, ValueError) as e: + error_messages.append(str(e)) + # deserialize data into InvalidSqlExpressionError + try: + instance.actual_instance = InvalidSqlExpressionError.from_json(json_str) + match += 1 + except (ValidationError, ValueError) as e: + error_messages.append(str(e)) + + if match > 1: + # more than 1 match + raise ValueError("Multiple matches found when deserializing the JSON string into UpdateTable400Response with oneOf schemas: InvalidRequestError, InvalidSqlExpressionError, TableColumnNotFoundError. Details: " + ", ".join(error_messages)) + elif match == 0: + # no match + raise ValueError("No match found when deserializing the JSON string into UpdateTable400Response with oneOf schemas: InvalidRequestError, InvalidSqlExpressionError, TableColumnNotFoundError. Details: " + ", ".join(error_messages)) + else: + return instance + + def to_json(self) -> str: + """Returns the JSON representation of the actual instance""" + if self.actual_instance is None: + return "null" + + if hasattr(self.actual_instance, "to_json") and callable(self.actual_instance.to_json): + return self.actual_instance.to_json() + else: + return json.dumps(self.actual_instance) + + def to_dict(self) -> Optional[Union[Dict[str, Any], InvalidRequestError, InvalidSqlExpressionError, TableColumnNotFoundError]]: + """Returns the dict representation of the actual instance""" + if self.actual_instance is None: + return None + + if hasattr(self.actual_instance, "to_dict") and callable(self.actual_instance.to_dict): + return self.actual_instance.to_dict() + else: + # primitive type + return self.actual_instance + + def to_str(self) -> str: + """Returns the string representation of the actual instance""" + return pprint.pformat(self.model_dump()) + + diff --git a/python/lance_namespace_urllib3_client/lance_namespace_urllib3_client/models/update_table_tag404_response.py b/python/lance_namespace_urllib3_client/lance_namespace_urllib3_client/models/update_table_tag404_response.py new file mode 100644 index 00000000..69659e65 --- /dev/null +++ b/python/lance_namespace_urllib3_client/lance_namespace_urllib3_client/models/update_table_tag404_response.py @@ -0,0 +1,151 @@ +# coding: utf-8 + +""" + Lance Namespace Specification + + This OpenAPI specification is a part of the Lance namespace specification. It contains 2 parts: The `components/schemas`, `components/responses`, `components/examples`, `tags` sections define the request and response shape for each operation in a Lance Namespace across all implementations. See https://lance.org/format/namespace/operations for more details. The `servers`, `security`, `paths`, `components/parameters` sections are for the Lance REST Namespace implementation, which defines a complete REST server that can work with Lance datasets. See https://lance.org/format/namespace/rest for more details. + + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import json +import pprint +from pydantic import BaseModel, ConfigDict, Field, StrictStr, ValidationError, field_validator +from typing import Any, List, Optional +from lance_namespace_urllib3_client.models.table_not_found_error import TableNotFoundError +from lance_namespace_urllib3_client.models.table_tag_not_found_error import TableTagNotFoundError +from lance_namespace_urllib3_client.models.table_version_not_found_error import TableVersionNotFoundError +from pydantic import StrictStr, Field +from typing import Union, List, Set, Optional, Dict +from typing_extensions import Literal, Self + +UPDATETABLETAG404RESPONSE_ONE_OF_SCHEMAS = ["TableNotFoundError", "TableTagNotFoundError", "TableVersionNotFoundError"] + +class UpdateTableTag404Response(BaseModel): + """ + UpdateTableTag404Response + """ + # data type: TableNotFoundError + oneof_schema_1_validator: Optional[TableNotFoundError] = None + # data type: TableTagNotFoundError + oneof_schema_2_validator: Optional[TableTagNotFoundError] = None + # data type: TableVersionNotFoundError + oneof_schema_3_validator: Optional[TableVersionNotFoundError] = None + actual_instance: Optional[Union[TableNotFoundError, TableTagNotFoundError, TableVersionNotFoundError]] = None + one_of_schemas: Set[str] = { "TableNotFoundError", "TableTagNotFoundError", "TableVersionNotFoundError" } + + model_config = ConfigDict( + validate_assignment=True, + protected_namespaces=(), + ) + + + def __init__(self, *args, **kwargs) -> None: + if args: + if len(args) > 1: + raise ValueError("If a position argument is used, only 1 is allowed to set `actual_instance`") + if kwargs: + raise ValueError("If a position argument is used, keyword arguments cannot be used.") + super().__init__(actual_instance=args[0]) + else: + super().__init__(**kwargs) + + @field_validator('actual_instance') + def actual_instance_must_validate_oneof(cls, v): + instance = UpdateTableTag404Response.model_construct() + error_messages = [] + match = 0 + # validate data type: TableNotFoundError + if not isinstance(v, TableNotFoundError): + error_messages.append(f"Error! Input type `{type(v)}` is not `TableNotFoundError`") + else: + match += 1 + # validate data type: TableTagNotFoundError + if not isinstance(v, TableTagNotFoundError): + error_messages.append(f"Error! Input type `{type(v)}` is not `TableTagNotFoundError`") + else: + match += 1 + # validate data type: TableVersionNotFoundError + if not isinstance(v, TableVersionNotFoundError): + error_messages.append(f"Error! Input type `{type(v)}` is not `TableVersionNotFoundError`") + else: + match += 1 + if match > 1: + # more than 1 match + raise ValueError("Multiple matches found when setting `actual_instance` in UpdateTableTag404Response with oneOf schemas: TableNotFoundError, TableTagNotFoundError, TableVersionNotFoundError. Details: " + ", ".join(error_messages)) + elif match == 0: + # no match + raise ValueError("No match found when setting `actual_instance` in UpdateTableTag404Response with oneOf schemas: TableNotFoundError, TableTagNotFoundError, TableVersionNotFoundError. Details: " + ", ".join(error_messages)) + else: + return v + + @classmethod + def from_dict(cls, obj: Union[str, Dict[str, Any]]) -> Self: + return cls.from_json(json.dumps(obj)) + + @classmethod + def from_json(cls, json_str: str) -> Self: + """Returns the object represented by the json string""" + instance = cls.model_construct() + error_messages = [] + match = 0 + + # deserialize data into TableNotFoundError + try: + instance.actual_instance = TableNotFoundError.from_json(json_str) + match += 1 + except (ValidationError, ValueError) as e: + error_messages.append(str(e)) + # deserialize data into TableTagNotFoundError + try: + instance.actual_instance = TableTagNotFoundError.from_json(json_str) + match += 1 + except (ValidationError, ValueError) as e: + error_messages.append(str(e)) + # deserialize data into TableVersionNotFoundError + try: + instance.actual_instance = TableVersionNotFoundError.from_json(json_str) + match += 1 + except (ValidationError, ValueError) as e: + error_messages.append(str(e)) + + if match > 1: + # more than 1 match + raise ValueError("Multiple matches found when deserializing the JSON string into UpdateTableTag404Response with oneOf schemas: TableNotFoundError, TableTagNotFoundError, TableVersionNotFoundError. Details: " + ", ".join(error_messages)) + elif match == 0: + # no match + raise ValueError("No match found when deserializing the JSON string into UpdateTableTag404Response with oneOf schemas: TableNotFoundError, TableTagNotFoundError, TableVersionNotFoundError. Details: " + ", ".join(error_messages)) + else: + return instance + + def to_json(self) -> str: + """Returns the JSON representation of the actual instance""" + if self.actual_instance is None: + return "null" + + if hasattr(self.actual_instance, "to_json") and callable(self.actual_instance.to_json): + return self.actual_instance.to_json() + else: + return json.dumps(self.actual_instance) + + def to_dict(self) -> Optional[Union[Dict[str, Any], TableNotFoundError, TableTagNotFoundError, TableVersionNotFoundError]]: + """Returns the dict representation of the actual instance""" + if self.actual_instance is None: + return None + + if hasattr(self.actual_instance, "to_dict") and callable(self.actual_instance.to_dict): + return self.actual_instance.to_dict() + else: + # primitive type + return self.actual_instance + + def to_str(self) -> str: + """Returns the string representation of the actual instance""" + return pprint.pformat(self.model_dump()) + + diff --git a/python/lance_namespace_urllib3_client/test/test_alter_table_add_columns400_response.py b/python/lance_namespace_urllib3_client/test/test_alter_table_add_columns400_response.py new file mode 100644 index 00000000..ab3ad397 --- /dev/null +++ b/python/lance_namespace_urllib3_client/test/test_alter_table_add_columns400_response.py @@ -0,0 +1,58 @@ +# coding: utf-8 + +""" + Lance Namespace Specification + + This OpenAPI specification is a part of the Lance namespace specification. It contains 2 parts: The `components/schemas`, `components/responses`, `components/examples`, `tags` sections define the request and response shape for each operation in a Lance Namespace across all implementations. See https://lance.org/format/namespace/operations for more details. The `servers`, `security`, `paths`, `components/parameters` sections are for the Lance REST Namespace implementation, which defines a complete REST server that can work with Lance datasets. See https://lance.org/format/namespace/rest for more details. + + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from lance_namespace_urllib3_client.models.alter_table_add_columns400_response import AlterTableAddColumns400Response + +class TestAlterTableAddColumns400Response(unittest.TestCase): + """AlterTableAddColumns400Response unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> AlterTableAddColumns400Response: + """Test AlterTableAddColumns400Response + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `AlterTableAddColumns400Response` + """ + model = AlterTableAddColumns400Response() + if include_optional: + return AlterTableAddColumns400Response( + error = 'Invalid SQL expression', + code = 400, + type = 'lance-namespace:601', + detail = '', + instance = '' + ) + else: + return AlterTableAddColumns400Response( + error = 'Invalid SQL expression', + code = 400, + type = 'lance-namespace:601', + ) + """ + + def testAlterTableAddColumns400Response(self): + """Test AlterTableAddColumns400Response""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/python/lance_namespace_urllib3_client/test/test_alter_table_alter_columns400_response.py b/python/lance_namespace_urllib3_client/test/test_alter_table_alter_columns400_response.py new file mode 100644 index 00000000..d4ffb5c2 --- /dev/null +++ b/python/lance_namespace_urllib3_client/test/test_alter_table_alter_columns400_response.py @@ -0,0 +1,58 @@ +# coding: utf-8 + +""" + Lance Namespace Specification + + This OpenAPI specification is a part of the Lance namespace specification. It contains 2 parts: The `components/schemas`, `components/responses`, `components/examples`, `tags` sections define the request and response shape for each operation in a Lance Namespace across all implementations. See https://lance.org/format/namespace/operations for more details. The `servers`, `security`, `paths`, `components/parameters` sections are for the Lance REST Namespace implementation, which defines a complete REST server that can work with Lance datasets. See https://lance.org/format/namespace/rest for more details. + + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from lance_namespace_urllib3_client.models.alter_table_alter_columns400_response import AlterTableAlterColumns400Response + +class TestAlterTableAlterColumns400Response(unittest.TestCase): + """AlterTableAlterColumns400Response unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> AlterTableAlterColumns400Response: + """Test AlterTableAlterColumns400Response + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `AlterTableAlterColumns400Response` + """ + model = AlterTableAlterColumns400Response() + if include_optional: + return AlterTableAlterColumns400Response( + error = 'Column not found', + code = 400, + type = 'lance-namespace:601', + detail = '', + instance = '' + ) + else: + return AlterTableAlterColumns400Response( + error = 'Column not found', + code = 400, + type = 'lance-namespace:601', + ) + """ + + def testAlterTableAlterColumns400Response(self): + """Test AlterTableAlterColumns400Response""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/python/lance_namespace_urllib3_client/test/test_create_namespace400_response.py b/python/lance_namespace_urllib3_client/test/test_create_namespace400_response.py new file mode 100644 index 00000000..bffbefbf --- /dev/null +++ b/python/lance_namespace_urllib3_client/test/test_create_namespace400_response.py @@ -0,0 +1,58 @@ +# coding: utf-8 + +""" + Lance Namespace Specification + + This OpenAPI specification is a part of the Lance namespace specification. It contains 2 parts: The `components/schemas`, `components/responses`, `components/examples`, `tags` sections define the request and response shape for each operation in a Lance Namespace across all implementations. See https://lance.org/format/namespace/operations for more details. The `servers`, `security`, `paths`, `components/parameters` sections are for the Lance REST Namespace implementation, which defines a complete REST server that can work with Lance datasets. See https://lance.org/format/namespace/rest for more details. + + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from lance_namespace_urllib3_client.models.create_namespace400_response import CreateNamespace400Response + +class TestCreateNamespace400Response(unittest.TestCase): + """CreateNamespace400Response unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> CreateNamespace400Response: + """Test CreateNamespace400Response + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `CreateNamespace400Response` + """ + model = CreateNamespace400Response() + if include_optional: + return CreateNamespace400Response( + error = 'Invalid identifier', + code = 400, + type = 'lance-namespace:601', + detail = '', + instance = '' + ) + else: + return CreateNamespace400Response( + error = 'Invalid identifier', + code = 400, + type = 'lance-namespace:601', + ) + """ + + def testCreateNamespace400Response(self): + """Test CreateNamespace400Response""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/python/lance_namespace_urllib3_client/test/test_create_table400_response.py b/python/lance_namespace_urllib3_client/test/test_create_table400_response.py new file mode 100644 index 00000000..01fbe69b --- /dev/null +++ b/python/lance_namespace_urllib3_client/test/test_create_table400_response.py @@ -0,0 +1,58 @@ +# coding: utf-8 + +""" + Lance Namespace Specification + + This OpenAPI specification is a part of the Lance namespace specification. It contains 2 parts: The `components/schemas`, `components/responses`, `components/examples`, `tags` sections define the request and response shape for each operation in a Lance Namespace across all implementations. See https://lance.org/format/namespace/operations for more details. The `servers`, `security`, `paths`, `components/parameters` sections are for the Lance REST Namespace implementation, which defines a complete REST server that can work with Lance datasets. See https://lance.org/format/namespace/rest for more details. + + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from lance_namespace_urllib3_client.models.create_table400_response import CreateTable400Response + +class TestCreateTable400Response(unittest.TestCase): + """CreateTable400Response unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> CreateTable400Response: + """Test CreateTable400Response + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `CreateTable400Response` + """ + model = CreateTable400Response() + if include_optional: + return CreateTable400Response( + error = 'Invalid schema', + code = 400, + type = 'lance-namespace:601', + detail = '', + instance = '' + ) + else: + return CreateTable400Response( + error = 'Invalid schema', + code = 400, + type = 'lance-namespace:601', + ) + """ + + def testCreateTable400Response(self): + """Test CreateTable400Response""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/python/lance_namespace_urllib3_client/test/test_create_table_index400_response.py b/python/lance_namespace_urllib3_client/test/test_create_table_index400_response.py new file mode 100644 index 00000000..c6688ad6 --- /dev/null +++ b/python/lance_namespace_urllib3_client/test/test_create_table_index400_response.py @@ -0,0 +1,58 @@ +# coding: utf-8 + +""" + Lance Namespace Specification + + This OpenAPI specification is a part of the Lance namespace specification. It contains 2 parts: The `components/schemas`, `components/responses`, `components/examples`, `tags` sections define the request and response shape for each operation in a Lance Namespace across all implementations. See https://lance.org/format/namespace/operations for more details. The `servers`, `security`, `paths`, `components/parameters` sections are for the Lance REST Namespace implementation, which defines a complete REST server that can work with Lance datasets. See https://lance.org/format/namespace/rest for more details. + + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from lance_namespace_urllib3_client.models.create_table_index400_response import CreateTableIndex400Response + +class TestCreateTableIndex400Response(unittest.TestCase): + """CreateTableIndex400Response unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> CreateTableIndex400Response: + """Test CreateTableIndex400Response + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `CreateTableIndex400Response` + """ + model = CreateTableIndex400Response() + if include_optional: + return CreateTableIndex400Response( + error = 'Invalid index configuration', + code = 400, + type = 'lance-namespace:601', + detail = '', + instance = '' + ) + else: + return CreateTableIndex400Response( + error = 'Invalid index configuration', + code = 400, + type = 'lance-namespace:601', + ) + """ + + def testCreateTableIndex400Response(self): + """Test CreateTableIndex400Response""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/python/lance_namespace_urllib3_client/test/test_delete_from_table400_response.py b/python/lance_namespace_urllib3_client/test/test_delete_from_table400_response.py new file mode 100644 index 00000000..9c705bbe --- /dev/null +++ b/python/lance_namespace_urllib3_client/test/test_delete_from_table400_response.py @@ -0,0 +1,58 @@ +# coding: utf-8 + +""" + Lance Namespace Specification + + This OpenAPI specification is a part of the Lance namespace specification. It contains 2 parts: The `components/schemas`, `components/responses`, `components/examples`, `tags` sections define the request and response shape for each operation in a Lance Namespace across all implementations. See https://lance.org/format/namespace/operations for more details. The `servers`, `security`, `paths`, `components/parameters` sections are for the Lance REST Namespace implementation, which defines a complete REST server that can work with Lance datasets. See https://lance.org/format/namespace/rest for more details. + + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from lance_namespace_urllib3_client.models.delete_from_table400_response import DeleteFromTable400Response + +class TestDeleteFromTable400Response(unittest.TestCase): + """DeleteFromTable400Response unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> DeleteFromTable400Response: + """Test DeleteFromTable400Response + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `DeleteFromTable400Response` + """ + model = DeleteFromTable400Response() + if include_optional: + return DeleteFromTable400Response( + error = 'Invalid SQL expression', + code = 400, + type = 'lance-namespace:601', + detail = '', + instance = '' + ) + else: + return DeleteFromTable400Response( + error = 'Invalid SQL expression', + code = 400, + type = 'lance-namespace:601', + ) + """ + + def testDeleteFromTable400Response(self): + """Test DeleteFromTable400Response""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/python/lance_namespace_urllib3_client/test/test_describe_table_index_stats404_response.py b/python/lance_namespace_urllib3_client/test/test_describe_table_index_stats404_response.py new file mode 100644 index 00000000..b193a21c --- /dev/null +++ b/python/lance_namespace_urllib3_client/test/test_describe_table_index_stats404_response.py @@ -0,0 +1,58 @@ +# coding: utf-8 + +""" + Lance Namespace Specification + + This OpenAPI specification is a part of the Lance namespace specification. It contains 2 parts: The `components/schemas`, `components/responses`, `components/examples`, `tags` sections define the request and response shape for each operation in a Lance Namespace across all implementations. See https://lance.org/format/namespace/operations for more details. The `servers`, `security`, `paths`, `components/parameters` sections are for the Lance REST Namespace implementation, which defines a complete REST server that can work with Lance datasets. See https://lance.org/format/namespace/rest for more details. + + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from lance_namespace_urllib3_client.models.describe_table_index_stats404_response import DescribeTableIndexStats404Response + +class TestDescribeTableIndexStats404Response(unittest.TestCase): + """DescribeTableIndexStats404Response unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> DescribeTableIndexStats404Response: + """Test DescribeTableIndexStats404Response + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `DescribeTableIndexStats404Response` + """ + model = DescribeTableIndexStats404Response() + if include_optional: + return DescribeTableIndexStats404Response( + error = 'Index not found', + code = 404, + type = 'lance-namespace:201', + detail = '', + instance = '' + ) + else: + return DescribeTableIndexStats404Response( + error = 'Index not found', + code = 404, + type = 'lance-namespace:201', + ) + """ + + def testDescribeTableIndexStats404Response(self): + """Test DescribeTableIndexStats404Response""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/python/lance_namespace_urllib3_client/test/test_get_table_tag_version404_response.py b/python/lance_namespace_urllib3_client/test/test_get_table_tag_version404_response.py new file mode 100644 index 00000000..1fcdf006 --- /dev/null +++ b/python/lance_namespace_urllib3_client/test/test_get_table_tag_version404_response.py @@ -0,0 +1,58 @@ +# coding: utf-8 + +""" + Lance Namespace Specification + + This OpenAPI specification is a part of the Lance namespace specification. It contains 2 parts: The `components/schemas`, `components/responses`, `components/examples`, `tags` sections define the request and response shape for each operation in a Lance Namespace across all implementations. See https://lance.org/format/namespace/operations for more details. The `servers`, `security`, `paths`, `components/parameters` sections are for the Lance REST Namespace implementation, which defines a complete REST server that can work with Lance datasets. See https://lance.org/format/namespace/rest for more details. + + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from lance_namespace_urllib3_client.models.get_table_tag_version404_response import GetTableTagVersion404Response + +class TestGetTableTagVersion404Response(unittest.TestCase): + """GetTableTagVersion404Response unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> GetTableTagVersion404Response: + """Test GetTableTagVersion404Response + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `GetTableTagVersion404Response` + """ + model = GetTableTagVersion404Response() + if include_optional: + return GetTableTagVersion404Response( + error = 'Tag not found', + code = 404, + type = 'lance-namespace:201', + detail = '', + instance = '' + ) + else: + return GetTableTagVersion404Response( + error = 'Tag not found', + code = 404, + type = 'lance-namespace:201', + ) + """ + + def testGetTableTagVersion404Response(self): + """Test GetTableTagVersion404Response""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/python/lance_namespace_urllib3_client/test/test_insert_into_table400_response.py b/python/lance_namespace_urllib3_client/test/test_insert_into_table400_response.py new file mode 100644 index 00000000..9dbcc4d6 --- /dev/null +++ b/python/lance_namespace_urllib3_client/test/test_insert_into_table400_response.py @@ -0,0 +1,58 @@ +# coding: utf-8 + +""" + Lance Namespace Specification + + This OpenAPI specification is a part of the Lance namespace specification. It contains 2 parts: The `components/schemas`, `components/responses`, `components/examples`, `tags` sections define the request and response shape for each operation in a Lance Namespace across all implementations. See https://lance.org/format/namespace/operations for more details. The `servers`, `security`, `paths`, `components/parameters` sections are for the Lance REST Namespace implementation, which defines a complete REST server that can work with Lance datasets. See https://lance.org/format/namespace/rest for more details. + + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from lance_namespace_urllib3_client.models.insert_into_table400_response import InsertIntoTable400Response + +class TestInsertIntoTable400Response(unittest.TestCase): + """InsertIntoTable400Response unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> InsertIntoTable400Response: + """Test InsertIntoTable400Response + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `InsertIntoTable400Response` + """ + model = InsertIntoTable400Response() + if include_optional: + return InsertIntoTable400Response( + error = 'Schema mismatch', + code = 400, + type = 'lance-namespace:601', + detail = '', + instance = '' + ) + else: + return InsertIntoTable400Response( + error = 'Schema mismatch', + code = 400, + type = 'lance-namespace:601', + ) + """ + + def testInsertIntoTable400Response(self): + """Test InsertIntoTable400Response""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/python/lance_namespace_urllib3_client/test/test_invalid_identifier_error.py b/python/lance_namespace_urllib3_client/test/test_invalid_identifier_error.py new file mode 100644 index 00000000..c80021d1 --- /dev/null +++ b/python/lance_namespace_urllib3_client/test/test_invalid_identifier_error.py @@ -0,0 +1,58 @@ +# coding: utf-8 + +""" + Lance Namespace Specification + + This OpenAPI specification is a part of the Lance namespace specification. It contains 2 parts: The `components/schemas`, `components/responses`, `components/examples`, `tags` sections define the request and response shape for each operation in a Lance Namespace across all implementations. See https://lance.org/format/namespace/operations for more details. The `servers`, `security`, `paths`, `components/parameters` sections are for the Lance REST Namespace implementation, which defines a complete REST server that can work with Lance datasets. See https://lance.org/format/namespace/rest for more details. + + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from lance_namespace_urllib3_client.models.invalid_identifier_error import InvalidIdentifierError + +class TestInvalidIdentifierError(unittest.TestCase): + """InvalidIdentifierError unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> InvalidIdentifierError: + """Test InvalidIdentifierError + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `InvalidIdentifierError` + """ + model = InvalidIdentifierError() + if include_optional: + return InvalidIdentifierError( + error = 'Invalid identifier', + code = 400, + type = 'lance-namespace:603', + detail = '', + instance = '' + ) + else: + return InvalidIdentifierError( + error = 'Invalid identifier', + code = 400, + type = 'lance-namespace:603', + ) + """ + + def testInvalidIdentifierError(self): + """Test InvalidIdentifierError""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/python/lance_namespace_urllib3_client/test/test_invalid_request_error.py b/python/lance_namespace_urllib3_client/test/test_invalid_request_error.py new file mode 100644 index 00000000..313a4cb5 --- /dev/null +++ b/python/lance_namespace_urllib3_client/test/test_invalid_request_error.py @@ -0,0 +1,58 @@ +# coding: utf-8 + +""" + Lance Namespace Specification + + This OpenAPI specification is a part of the Lance namespace specification. It contains 2 parts: The `components/schemas`, `components/responses`, `components/examples`, `tags` sections define the request and response shape for each operation in a Lance Namespace across all implementations. See https://lance.org/format/namespace/operations for more details. The `servers`, `security`, `paths`, `components/parameters` sections are for the Lance REST Namespace implementation, which defines a complete REST server that can work with Lance datasets. See https://lance.org/format/namespace/rest for more details. + + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from lance_namespace_urllib3_client.models.invalid_request_error import InvalidRequestError + +class TestInvalidRequestError(unittest.TestCase): + """InvalidRequestError unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> InvalidRequestError: + """Test InvalidRequestError + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `InvalidRequestError` + """ + model = InvalidRequestError() + if include_optional: + return InvalidRequestError( + error = 'Invalid request', + code = 400, + type = 'lance-namespace:601', + detail = '', + instance = '' + ) + else: + return InvalidRequestError( + error = 'Invalid request', + code = 400, + type = 'lance-namespace:601', + ) + """ + + def testInvalidRequestError(self): + """Test InvalidRequestError""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/python/lance_namespace_urllib3_client/test/test_invalid_sql_expression_error.py b/python/lance_namespace_urllib3_client/test/test_invalid_sql_expression_error.py new file mode 100644 index 00000000..d38780e2 --- /dev/null +++ b/python/lance_namespace_urllib3_client/test/test_invalid_sql_expression_error.py @@ -0,0 +1,58 @@ +# coding: utf-8 + +""" + Lance Namespace Specification + + This OpenAPI specification is a part of the Lance namespace specification. It contains 2 parts: The `components/schemas`, `components/responses`, `components/examples`, `tags` sections define the request and response shape for each operation in a Lance Namespace across all implementations. See https://lance.org/format/namespace/operations for more details. The `servers`, `security`, `paths`, `components/parameters` sections are for the Lance REST Namespace implementation, which defines a complete REST server that can work with Lance datasets. See https://lance.org/format/namespace/rest for more details. + + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from lance_namespace_urllib3_client.models.invalid_sql_expression_error import InvalidSqlExpressionError + +class TestInvalidSqlExpressionError(unittest.TestCase): + """InvalidSqlExpressionError unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> InvalidSqlExpressionError: + """Test InvalidSqlExpressionError + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `InvalidSqlExpressionError` + """ + model = InvalidSqlExpressionError() + if include_optional: + return InvalidSqlExpressionError( + error = 'Invalid SQL expression', + code = 400, + type = 'lance-namespace:602', + detail = '', + instance = '' + ) + else: + return InvalidSqlExpressionError( + error = 'Invalid SQL expression', + code = 400, + type = 'lance-namespace:602', + ) + """ + + def testInvalidSqlExpressionError(self): + """Test InvalidSqlExpressionError""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/python/lance_namespace_urllib3_client/test/test_invalid_table_index_configuration_error.py b/python/lance_namespace_urllib3_client/test/test_invalid_table_index_configuration_error.py new file mode 100644 index 00000000..fcff71c0 --- /dev/null +++ b/python/lance_namespace_urllib3_client/test/test_invalid_table_index_configuration_error.py @@ -0,0 +1,58 @@ +# coding: utf-8 + +""" + Lance Namespace Specification + + This OpenAPI specification is a part of the Lance namespace specification. It contains 2 parts: The `components/schemas`, `components/responses`, `components/examples`, `tags` sections define the request and response shape for each operation in a Lance Namespace across all implementations. See https://lance.org/format/namespace/operations for more details. The `servers`, `security`, `paths`, `components/parameters` sections are for the Lance REST Namespace implementation, which defines a complete REST server that can work with Lance datasets. See https://lance.org/format/namespace/rest for more details. + + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from lance_namespace_urllib3_client.models.invalid_table_index_configuration_error import InvalidTableIndexConfigurationError + +class TestInvalidTableIndexConfigurationError(unittest.TestCase): + """InvalidTableIndexConfigurationError unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> InvalidTableIndexConfigurationError: + """Test InvalidTableIndexConfigurationError + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `InvalidTableIndexConfigurationError` + """ + model = InvalidTableIndexConfigurationError() + if include_optional: + return InvalidTableIndexConfigurationError( + error = 'Invalid index configuration', + code = 400, + type = 'lance-namespace:303', + detail = '', + instance = '' + ) + else: + return InvalidTableIndexConfigurationError( + error = 'Invalid index configuration', + code = 400, + type = 'lance-namespace:303', + ) + """ + + def testInvalidTableIndexConfigurationError(self): + """Test InvalidTableIndexConfigurationError""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/python/lance_namespace_urllib3_client/test/test_invalid_table_schema_error.py b/python/lance_namespace_urllib3_client/test/test_invalid_table_schema_error.py new file mode 100644 index 00000000..832c309a --- /dev/null +++ b/python/lance_namespace_urllib3_client/test/test_invalid_table_schema_error.py @@ -0,0 +1,58 @@ +# coding: utf-8 + +""" + Lance Namespace Specification + + This OpenAPI specification is a part of the Lance namespace specification. It contains 2 parts: The `components/schemas`, `components/responses`, `components/examples`, `tags` sections define the request and response shape for each operation in a Lance Namespace across all implementations. See https://lance.org/format/namespace/operations for more details. The `servers`, `security`, `paths`, `components/parameters` sections are for the Lance REST Namespace implementation, which defines a complete REST server that can work with Lance datasets. See https://lance.org/format/namespace/rest for more details. + + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from lance_namespace_urllib3_client.models.invalid_table_schema_error import InvalidTableSchemaError + +class TestInvalidTableSchemaError(unittest.TestCase): + """InvalidTableSchemaError unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> InvalidTableSchemaError: + """Test InvalidTableSchemaError + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `InvalidTableSchemaError` + """ + model = InvalidTableSchemaError() + if include_optional: + return InvalidTableSchemaError( + error = 'Invalid schema', + code = 400, + type = 'lance-namespace:205', + detail = '', + instance = '' + ) + else: + return InvalidTableSchemaError( + error = 'Invalid schema', + code = 400, + type = 'lance-namespace:205', + ) + """ + + def testInvalidTableSchemaError(self): + """Test InvalidTableSchemaError""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/python/lance_namespace_urllib3_client/test/test_merge_insert_into_table400_response.py b/python/lance_namespace_urllib3_client/test/test_merge_insert_into_table400_response.py new file mode 100644 index 00000000..8cf045d5 --- /dev/null +++ b/python/lance_namespace_urllib3_client/test/test_merge_insert_into_table400_response.py @@ -0,0 +1,58 @@ +# coding: utf-8 + +""" + Lance Namespace Specification + + This OpenAPI specification is a part of the Lance namespace specification. It contains 2 parts: The `components/schemas`, `components/responses`, `components/examples`, `tags` sections define the request and response shape for each operation in a Lance Namespace across all implementations. See https://lance.org/format/namespace/operations for more details. The `servers`, `security`, `paths`, `components/parameters` sections are for the Lance REST Namespace implementation, which defines a complete REST server that can work with Lance datasets. See https://lance.org/format/namespace/rest for more details. + + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from lance_namespace_urllib3_client.models.merge_insert_into_table400_response import MergeInsertIntoTable400Response + +class TestMergeInsertIntoTable400Response(unittest.TestCase): + """MergeInsertIntoTable400Response unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> MergeInsertIntoTable400Response: + """Test MergeInsertIntoTable400Response + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `MergeInsertIntoTable400Response` + """ + model = MergeInsertIntoTable400Response() + if include_optional: + return MergeInsertIntoTable400Response( + error = 'Schema mismatch', + code = 400, + type = 'lance-namespace:601', + detail = '', + instance = '' + ) + else: + return MergeInsertIntoTable400Response( + error = 'Schema mismatch', + code = 400, + type = 'lance-namespace:601', + ) + """ + + def testMergeInsertIntoTable400Response(self): + """Test MergeInsertIntoTable400Response""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/python/lance_namespace_urllib3_client/test/test_namespace_already_exists_error.py b/python/lance_namespace_urllib3_client/test/test_namespace_already_exists_error.py new file mode 100644 index 00000000..0ed6ba53 --- /dev/null +++ b/python/lance_namespace_urllib3_client/test/test_namespace_already_exists_error.py @@ -0,0 +1,58 @@ +# coding: utf-8 + +""" + Lance Namespace Specification + + This OpenAPI specification is a part of the Lance namespace specification. It contains 2 parts: The `components/schemas`, `components/responses`, `components/examples`, `tags` sections define the request and response shape for each operation in a Lance Namespace across all implementations. See https://lance.org/format/namespace/operations for more details. The `servers`, `security`, `paths`, `components/parameters` sections are for the Lance REST Namespace implementation, which defines a complete REST server that can work with Lance datasets. See https://lance.org/format/namespace/rest for more details. + + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from lance_namespace_urllib3_client.models.namespace_already_exists_error import NamespaceAlreadyExistsError + +class TestNamespaceAlreadyExistsError(unittest.TestCase): + """NamespaceAlreadyExistsError unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> NamespaceAlreadyExistsError: + """Test NamespaceAlreadyExistsError + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `NamespaceAlreadyExistsError` + """ + model = NamespaceAlreadyExistsError() + if include_optional: + return NamespaceAlreadyExistsError( + error = 'Namespace already exists', + code = 409, + type = 'lance-namespace:102', + detail = '', + instance = '' + ) + else: + return NamespaceAlreadyExistsError( + error = 'Namespace already exists', + code = 409, + type = 'lance-namespace:102', + ) + """ + + def testNamespaceAlreadyExistsError(self): + """Test NamespaceAlreadyExistsError""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/python/lance_namespace_urllib3_client/test/test_namespace_not_empty_error.py b/python/lance_namespace_urllib3_client/test/test_namespace_not_empty_error.py new file mode 100644 index 00000000..363c1d00 --- /dev/null +++ b/python/lance_namespace_urllib3_client/test/test_namespace_not_empty_error.py @@ -0,0 +1,58 @@ +# coding: utf-8 + +""" + Lance Namespace Specification + + This OpenAPI specification is a part of the Lance namespace specification. It contains 2 parts: The `components/schemas`, `components/responses`, `components/examples`, `tags` sections define the request and response shape for each operation in a Lance Namespace across all implementations. See https://lance.org/format/namespace/operations for more details. The `servers`, `security`, `paths`, `components/parameters` sections are for the Lance REST Namespace implementation, which defines a complete REST server that can work with Lance datasets. See https://lance.org/format/namespace/rest for more details. + + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from lance_namespace_urllib3_client.models.namespace_not_empty_error import NamespaceNotEmptyError + +class TestNamespaceNotEmptyError(unittest.TestCase): + """NamespaceNotEmptyError unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> NamespaceNotEmptyError: + """Test NamespaceNotEmptyError + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `NamespaceNotEmptyError` + """ + model = NamespaceNotEmptyError() + if include_optional: + return NamespaceNotEmptyError( + error = 'Namespace not empty', + code = 409, + type = 'lance-namespace:104', + detail = '', + instance = '' + ) + else: + return NamespaceNotEmptyError( + error = 'Namespace not empty', + code = 409, + type = 'lance-namespace:104', + ) + """ + + def testNamespaceNotEmptyError(self): + """Test NamespaceNotEmptyError""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/python/lance_namespace_urllib3_client/test/test_namespace_not_found_error.py b/python/lance_namespace_urllib3_client/test/test_namespace_not_found_error.py new file mode 100644 index 00000000..ad4ab40c --- /dev/null +++ b/python/lance_namespace_urllib3_client/test/test_namespace_not_found_error.py @@ -0,0 +1,58 @@ +# coding: utf-8 + +""" + Lance Namespace Specification + + This OpenAPI specification is a part of the Lance namespace specification. It contains 2 parts: The `components/schemas`, `components/responses`, `components/examples`, `tags` sections define the request and response shape for each operation in a Lance Namespace across all implementations. See https://lance.org/format/namespace/operations for more details. The `servers`, `security`, `paths`, `components/parameters` sections are for the Lance REST Namespace implementation, which defines a complete REST server that can work with Lance datasets. See https://lance.org/format/namespace/rest for more details. + + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from lance_namespace_urllib3_client.models.namespace_not_found_error import NamespaceNotFoundError + +class TestNamespaceNotFoundError(unittest.TestCase): + """NamespaceNotFoundError unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> NamespaceNotFoundError: + """Test NamespaceNotFoundError + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `NamespaceNotFoundError` + """ + model = NamespaceNotFoundError() + if include_optional: + return NamespaceNotFoundError( + error = 'Namespace not found', + code = 404, + type = 'lance-namespace:101', + detail = '', + instance = '' + ) + else: + return NamespaceNotFoundError( + error = 'Namespace not found', + code = 404, + type = 'lance-namespace:101', + ) + """ + + def testNamespaceNotFoundError(self): + """Test NamespaceNotFoundError""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/python/lance_namespace_urllib3_client/test/test_parent_namespace_not_found_error.py b/python/lance_namespace_urllib3_client/test/test_parent_namespace_not_found_error.py new file mode 100644 index 00000000..6efbc0f1 --- /dev/null +++ b/python/lance_namespace_urllib3_client/test/test_parent_namespace_not_found_error.py @@ -0,0 +1,58 @@ +# coding: utf-8 + +""" + Lance Namespace Specification + + This OpenAPI specification is a part of the Lance namespace specification. It contains 2 parts: The `components/schemas`, `components/responses`, `components/examples`, `tags` sections define the request and response shape for each operation in a Lance Namespace across all implementations. See https://lance.org/format/namespace/operations for more details. The `servers`, `security`, `paths`, `components/parameters` sections are for the Lance REST Namespace implementation, which defines a complete REST server that can work with Lance datasets. See https://lance.org/format/namespace/rest for more details. + + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from lance_namespace_urllib3_client.models.parent_namespace_not_found_error import ParentNamespaceNotFoundError + +class TestParentNamespaceNotFoundError(unittest.TestCase): + """ParentNamespaceNotFoundError unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> ParentNamespaceNotFoundError: + """Test ParentNamespaceNotFoundError + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `ParentNamespaceNotFoundError` + """ + model = ParentNamespaceNotFoundError() + if include_optional: + return ParentNamespaceNotFoundError( + error = 'Parent namespace not found', + code = 404, + type = 'lance-namespace:103', + detail = '', + instance = '' + ) + else: + return ParentNamespaceNotFoundError( + error = 'Parent namespace not found', + code = 404, + type = 'lance-namespace:103', + ) + """ + + def testParentNamespaceNotFoundError(self): + """Test ParentNamespaceNotFoundError""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/python/lance_namespace_urllib3_client/test/test_restore_table404_response.py b/python/lance_namespace_urllib3_client/test/test_restore_table404_response.py new file mode 100644 index 00000000..01953722 --- /dev/null +++ b/python/lance_namespace_urllib3_client/test/test_restore_table404_response.py @@ -0,0 +1,58 @@ +# coding: utf-8 + +""" + Lance Namespace Specification + + This OpenAPI specification is a part of the Lance namespace specification. It contains 2 parts: The `components/schemas`, `components/responses`, `components/examples`, `tags` sections define the request and response shape for each operation in a Lance Namespace across all implementations. See https://lance.org/format/namespace/operations for more details. The `servers`, `security`, `paths`, `components/parameters` sections are for the Lance REST Namespace implementation, which defines a complete REST server that can work with Lance datasets. See https://lance.org/format/namespace/rest for more details. + + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from lance_namespace_urllib3_client.models.restore_table404_response import RestoreTable404Response + +class TestRestoreTable404Response(unittest.TestCase): + """RestoreTable404Response unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> RestoreTable404Response: + """Test RestoreTable404Response + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `RestoreTable404Response` + """ + model = RestoreTable404Response() + if include_optional: + return RestoreTable404Response( + error = 'Table version not found', + code = 404, + type = 'lance-namespace:201', + detail = '', + instance = '' + ) + else: + return RestoreTable404Response( + error = 'Table version not found', + code = 404, + type = 'lance-namespace:201', + ) + """ + + def testRestoreTable404Response(self): + """Test RestoreTable404Response""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/python/lance_namespace_urllib3_client/test/test_table_already_exists_error.py b/python/lance_namespace_urllib3_client/test/test_table_already_exists_error.py new file mode 100644 index 00000000..446ca0eb --- /dev/null +++ b/python/lance_namespace_urllib3_client/test/test_table_already_exists_error.py @@ -0,0 +1,58 @@ +# coding: utf-8 + +""" + Lance Namespace Specification + + This OpenAPI specification is a part of the Lance namespace specification. It contains 2 parts: The `components/schemas`, `components/responses`, `components/examples`, `tags` sections define the request and response shape for each operation in a Lance Namespace across all implementations. See https://lance.org/format/namespace/operations for more details. The `servers`, `security`, `paths`, `components/parameters` sections are for the Lance REST Namespace implementation, which defines a complete REST server that can work with Lance datasets. See https://lance.org/format/namespace/rest for more details. + + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from lance_namespace_urllib3_client.models.table_already_exists_error import TableAlreadyExistsError + +class TestTableAlreadyExistsError(unittest.TestCase): + """TableAlreadyExistsError unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> TableAlreadyExistsError: + """Test TableAlreadyExistsError + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `TableAlreadyExistsError` + """ + model = TableAlreadyExistsError() + if include_optional: + return TableAlreadyExistsError( + error = 'Table already exists', + code = 409, + type = 'lance-namespace:202', + detail = '', + instance = '' + ) + else: + return TableAlreadyExistsError( + error = 'Table already exists', + code = 409, + type = 'lance-namespace:202', + ) + """ + + def testTableAlreadyExistsError(self): + """Test TableAlreadyExistsError""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/python/lance_namespace_urllib3_client/test/test_table_column_not_found_error.py b/python/lance_namespace_urllib3_client/test/test_table_column_not_found_error.py new file mode 100644 index 00000000..50a50569 --- /dev/null +++ b/python/lance_namespace_urllib3_client/test/test_table_column_not_found_error.py @@ -0,0 +1,58 @@ +# coding: utf-8 + +""" + Lance Namespace Specification + + This OpenAPI specification is a part of the Lance namespace specification. It contains 2 parts: The `components/schemas`, `components/responses`, `components/examples`, `tags` sections define the request and response shape for each operation in a Lance Namespace across all implementations. See https://lance.org/format/namespace/operations for more details. The `servers`, `security`, `paths`, `components/parameters` sections are for the Lance REST Namespace implementation, which defines a complete REST server that can work with Lance datasets. See https://lance.org/format/namespace/rest for more details. + + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from lance_namespace_urllib3_client.models.table_column_not_found_error import TableColumnNotFoundError + +class TestTableColumnNotFoundError(unittest.TestCase): + """TableColumnNotFoundError unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> TableColumnNotFoundError: + """Test TableColumnNotFoundError + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `TableColumnNotFoundError` + """ + model = TableColumnNotFoundError() + if include_optional: + return TableColumnNotFoundError( + error = 'Column not found', + code = 400, + type = 'lance-namespace:204', + detail = '', + instance = '' + ) + else: + return TableColumnNotFoundError( + error = 'Column not found', + code = 400, + type = 'lance-namespace:204', + ) + """ + + def testTableColumnNotFoundError(self): + """Test TableColumnNotFoundError""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/python/lance_namespace_urllib3_client/test/test_table_index_already_exists_error.py b/python/lance_namespace_urllib3_client/test/test_table_index_already_exists_error.py new file mode 100644 index 00000000..9fb477f3 --- /dev/null +++ b/python/lance_namespace_urllib3_client/test/test_table_index_already_exists_error.py @@ -0,0 +1,58 @@ +# coding: utf-8 + +""" + Lance Namespace Specification + + This OpenAPI specification is a part of the Lance namespace specification. It contains 2 parts: The `components/schemas`, `components/responses`, `components/examples`, `tags` sections define the request and response shape for each operation in a Lance Namespace across all implementations. See https://lance.org/format/namespace/operations for more details. The `servers`, `security`, `paths`, `components/parameters` sections are for the Lance REST Namespace implementation, which defines a complete REST server that can work with Lance datasets. See https://lance.org/format/namespace/rest for more details. + + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from lance_namespace_urllib3_client.models.table_index_already_exists_error import TableIndexAlreadyExistsError + +class TestTableIndexAlreadyExistsError(unittest.TestCase): + """TableIndexAlreadyExistsError unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> TableIndexAlreadyExistsError: + """Test TableIndexAlreadyExistsError + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `TableIndexAlreadyExistsError` + """ + model = TableIndexAlreadyExistsError() + if include_optional: + return TableIndexAlreadyExistsError( + error = 'Index already exists', + code = 409, + type = 'lance-namespace:302', + detail = '', + instance = '' + ) + else: + return TableIndexAlreadyExistsError( + error = 'Index already exists', + code = 409, + type = 'lance-namespace:302', + ) + """ + + def testTableIndexAlreadyExistsError(self): + """Test TableIndexAlreadyExistsError""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/python/lance_namespace_urllib3_client/test/test_table_index_not_found_error.py b/python/lance_namespace_urllib3_client/test/test_table_index_not_found_error.py new file mode 100644 index 00000000..fd7306b8 --- /dev/null +++ b/python/lance_namespace_urllib3_client/test/test_table_index_not_found_error.py @@ -0,0 +1,58 @@ +# coding: utf-8 + +""" + Lance Namespace Specification + + This OpenAPI specification is a part of the Lance namespace specification. It contains 2 parts: The `components/schemas`, `components/responses`, `components/examples`, `tags` sections define the request and response shape for each operation in a Lance Namespace across all implementations. See https://lance.org/format/namespace/operations for more details. The `servers`, `security`, `paths`, `components/parameters` sections are for the Lance REST Namespace implementation, which defines a complete REST server that can work with Lance datasets. See https://lance.org/format/namespace/rest for more details. + + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from lance_namespace_urllib3_client.models.table_index_not_found_error import TableIndexNotFoundError + +class TestTableIndexNotFoundError(unittest.TestCase): + """TableIndexNotFoundError unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> TableIndexNotFoundError: + """Test TableIndexNotFoundError + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `TableIndexNotFoundError` + """ + model = TableIndexNotFoundError() + if include_optional: + return TableIndexNotFoundError( + error = 'Index not found', + code = 404, + type = 'lance-namespace:301', + detail = '', + instance = '' + ) + else: + return TableIndexNotFoundError( + error = 'Index not found', + code = 404, + type = 'lance-namespace:301', + ) + """ + + def testTableIndexNotFoundError(self): + """Test TableIndexNotFoundError""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/python/lance_namespace_urllib3_client/test/test_table_not_found_error.py b/python/lance_namespace_urllib3_client/test/test_table_not_found_error.py new file mode 100644 index 00000000..44cb26c5 --- /dev/null +++ b/python/lance_namespace_urllib3_client/test/test_table_not_found_error.py @@ -0,0 +1,58 @@ +# coding: utf-8 + +""" + Lance Namespace Specification + + This OpenAPI specification is a part of the Lance namespace specification. It contains 2 parts: The `components/schemas`, `components/responses`, `components/examples`, `tags` sections define the request and response shape for each operation in a Lance Namespace across all implementations. See https://lance.org/format/namespace/operations for more details. The `servers`, `security`, `paths`, `components/parameters` sections are for the Lance REST Namespace implementation, which defines a complete REST server that can work with Lance datasets. See https://lance.org/format/namespace/rest for more details. + + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from lance_namespace_urllib3_client.models.table_not_found_error import TableNotFoundError + +class TestTableNotFoundError(unittest.TestCase): + """TableNotFoundError unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> TableNotFoundError: + """Test TableNotFoundError + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `TableNotFoundError` + """ + model = TableNotFoundError() + if include_optional: + return TableNotFoundError( + error = 'Table not found', + code = 404, + type = 'lance-namespace:201', + detail = '', + instance = '' + ) + else: + return TableNotFoundError( + error = 'Table not found', + code = 404, + type = 'lance-namespace:201', + ) + """ + + def testTableNotFoundError(self): + """Test TableNotFoundError""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/python/lance_namespace_urllib3_client/test/test_table_schema_mismatch_error.py b/python/lance_namespace_urllib3_client/test/test_table_schema_mismatch_error.py new file mode 100644 index 00000000..65fb3e86 --- /dev/null +++ b/python/lance_namespace_urllib3_client/test/test_table_schema_mismatch_error.py @@ -0,0 +1,58 @@ +# coding: utf-8 + +""" + Lance Namespace Specification + + This OpenAPI specification is a part of the Lance namespace specification. It contains 2 parts: The `components/schemas`, `components/responses`, `components/examples`, `tags` sections define the request and response shape for each operation in a Lance Namespace across all implementations. See https://lance.org/format/namespace/operations for more details. The `servers`, `security`, `paths`, `components/parameters` sections are for the Lance REST Namespace implementation, which defines a complete REST server that can work with Lance datasets. See https://lance.org/format/namespace/rest for more details. + + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from lance_namespace_urllib3_client.models.table_schema_mismatch_error import TableSchemaMismatchError + +class TestTableSchemaMismatchError(unittest.TestCase): + """TableSchemaMismatchError unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> TableSchemaMismatchError: + """Test TableSchemaMismatchError + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `TableSchemaMismatchError` + """ + model = TableSchemaMismatchError() + if include_optional: + return TableSchemaMismatchError( + error = 'Schema mismatch', + code = 400, + type = 'lance-namespace:206', + detail = '', + instance = '' + ) + else: + return TableSchemaMismatchError( + error = 'Schema mismatch', + code = 400, + type = 'lance-namespace:206', + ) + """ + + def testTableSchemaMismatchError(self): + """Test TableSchemaMismatchError""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/python/lance_namespace_urllib3_client/test/test_table_tag_already_exists_error.py b/python/lance_namespace_urllib3_client/test/test_table_tag_already_exists_error.py new file mode 100644 index 00000000..6519b2bf --- /dev/null +++ b/python/lance_namespace_urllib3_client/test/test_table_tag_already_exists_error.py @@ -0,0 +1,58 @@ +# coding: utf-8 + +""" + Lance Namespace Specification + + This OpenAPI specification is a part of the Lance namespace specification. It contains 2 parts: The `components/schemas`, `components/responses`, `components/examples`, `tags` sections define the request and response shape for each operation in a Lance Namespace across all implementations. See https://lance.org/format/namespace/operations for more details. The `servers`, `security`, `paths`, `components/parameters` sections are for the Lance REST Namespace implementation, which defines a complete REST server that can work with Lance datasets. See https://lance.org/format/namespace/rest for more details. + + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from lance_namespace_urllib3_client.models.table_tag_already_exists_error import TableTagAlreadyExistsError + +class TestTableTagAlreadyExistsError(unittest.TestCase): + """TableTagAlreadyExistsError unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> TableTagAlreadyExistsError: + """Test TableTagAlreadyExistsError + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `TableTagAlreadyExistsError` + """ + model = TableTagAlreadyExistsError() + if include_optional: + return TableTagAlreadyExistsError( + error = 'Tag already exists', + code = 409, + type = 'lance-namespace:402', + detail = '', + instance = '' + ) + else: + return TableTagAlreadyExistsError( + error = 'Tag already exists', + code = 409, + type = 'lance-namespace:402', + ) + """ + + def testTableTagAlreadyExistsError(self): + """Test TableTagAlreadyExistsError""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/python/lance_namespace_urllib3_client/test/test_table_tag_not_found_error.py b/python/lance_namespace_urllib3_client/test/test_table_tag_not_found_error.py new file mode 100644 index 00000000..ef2fec7e --- /dev/null +++ b/python/lance_namespace_urllib3_client/test/test_table_tag_not_found_error.py @@ -0,0 +1,58 @@ +# coding: utf-8 + +""" + Lance Namespace Specification + + This OpenAPI specification is a part of the Lance namespace specification. It contains 2 parts: The `components/schemas`, `components/responses`, `components/examples`, `tags` sections define the request and response shape for each operation in a Lance Namespace across all implementations. See https://lance.org/format/namespace/operations for more details. The `servers`, `security`, `paths`, `components/parameters` sections are for the Lance REST Namespace implementation, which defines a complete REST server that can work with Lance datasets. See https://lance.org/format/namespace/rest for more details. + + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from lance_namespace_urllib3_client.models.table_tag_not_found_error import TableTagNotFoundError + +class TestTableTagNotFoundError(unittest.TestCase): + """TableTagNotFoundError unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> TableTagNotFoundError: + """Test TableTagNotFoundError + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `TableTagNotFoundError` + """ + model = TableTagNotFoundError() + if include_optional: + return TableTagNotFoundError( + error = 'Tag not found', + code = 404, + type = 'lance-namespace:401', + detail = '', + instance = '' + ) + else: + return TableTagNotFoundError( + error = 'Tag not found', + code = 404, + type = 'lance-namespace:401', + ) + """ + + def testTableTagNotFoundError(self): + """Test TableTagNotFoundError""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/python/lance_namespace_urllib3_client/test/test_table_version_not_found_error.py b/python/lance_namespace_urllib3_client/test/test_table_version_not_found_error.py new file mode 100644 index 00000000..6d43a11c --- /dev/null +++ b/python/lance_namespace_urllib3_client/test/test_table_version_not_found_error.py @@ -0,0 +1,58 @@ +# coding: utf-8 + +""" + Lance Namespace Specification + + This OpenAPI specification is a part of the Lance namespace specification. It contains 2 parts: The `components/schemas`, `components/responses`, `components/examples`, `tags` sections define the request and response shape for each operation in a Lance Namespace across all implementations. See https://lance.org/format/namespace/operations for more details. The `servers`, `security`, `paths`, `components/parameters` sections are for the Lance REST Namespace implementation, which defines a complete REST server that can work with Lance datasets. See https://lance.org/format/namespace/rest for more details. + + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from lance_namespace_urllib3_client.models.table_version_not_found_error import TableVersionNotFoundError + +class TestTableVersionNotFoundError(unittest.TestCase): + """TableVersionNotFoundError unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> TableVersionNotFoundError: + """Test TableVersionNotFoundError + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `TableVersionNotFoundError` + """ + model = TableVersionNotFoundError() + if include_optional: + return TableVersionNotFoundError( + error = 'Table version not found', + code = 404, + type = 'lance-namespace:203', + detail = '', + instance = '' + ) + else: + return TableVersionNotFoundError( + error = 'Table version not found', + code = 404, + type = 'lance-namespace:203', + ) + """ + + def testTableVersionNotFoundError(self): + """Test TableVersionNotFoundError""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/python/lance_namespace_urllib3_client/test/test_transaction_conflict_error.py b/python/lance_namespace_urllib3_client/test/test_transaction_conflict_error.py new file mode 100644 index 00000000..b1ffc56c --- /dev/null +++ b/python/lance_namespace_urllib3_client/test/test_transaction_conflict_error.py @@ -0,0 +1,58 @@ +# coding: utf-8 + +""" + Lance Namespace Specification + + This OpenAPI specification is a part of the Lance namespace specification. It contains 2 parts: The `components/schemas`, `components/responses`, `components/examples`, `tags` sections define the request and response shape for each operation in a Lance Namespace across all implementations. See https://lance.org/format/namespace/operations for more details. The `servers`, `security`, `paths`, `components/parameters` sections are for the Lance REST Namespace implementation, which defines a complete REST server that can work with Lance datasets. See https://lance.org/format/namespace/rest for more details. + + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from lance_namespace_urllib3_client.models.transaction_conflict_error import TransactionConflictError + +class TestTransactionConflictError(unittest.TestCase): + """TransactionConflictError unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> TransactionConflictError: + """Test TransactionConflictError + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `TransactionConflictError` + """ + model = TransactionConflictError() + if include_optional: + return TransactionConflictError( + error = 'Transaction conflict', + code = 409, + type = 'lance-namespace:502', + detail = '', + instance = '' + ) + else: + return TransactionConflictError( + error = 'Transaction conflict', + code = 409, + type = 'lance-namespace:502', + ) + """ + + def testTransactionConflictError(self): + """Test TransactionConflictError""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/python/lance_namespace_urllib3_client/test/test_transaction_not_found_error.py b/python/lance_namespace_urllib3_client/test/test_transaction_not_found_error.py new file mode 100644 index 00000000..4075ee89 --- /dev/null +++ b/python/lance_namespace_urllib3_client/test/test_transaction_not_found_error.py @@ -0,0 +1,58 @@ +# coding: utf-8 + +""" + Lance Namespace Specification + + This OpenAPI specification is a part of the Lance namespace specification. It contains 2 parts: The `components/schemas`, `components/responses`, `components/examples`, `tags` sections define the request and response shape for each operation in a Lance Namespace across all implementations. See https://lance.org/format/namespace/operations for more details. The `servers`, `security`, `paths`, `components/parameters` sections are for the Lance REST Namespace implementation, which defines a complete REST server that can work with Lance datasets. See https://lance.org/format/namespace/rest for more details. + + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from lance_namespace_urllib3_client.models.transaction_not_found_error import TransactionNotFoundError + +class TestTransactionNotFoundError(unittest.TestCase): + """TransactionNotFoundError unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> TransactionNotFoundError: + """Test TransactionNotFoundError + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `TransactionNotFoundError` + """ + model = TransactionNotFoundError() + if include_optional: + return TransactionNotFoundError( + error = 'Transaction not found', + code = 404, + type = 'lance-namespace:501', + detail = '', + instance = '' + ) + else: + return TransactionNotFoundError( + error = 'Transaction not found', + code = 404, + type = 'lance-namespace:501', + ) + """ + + def testTransactionNotFoundError(self): + """Test TransactionNotFoundError""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/python/lance_namespace_urllib3_client/test/test_unknown_error.py b/python/lance_namespace_urllib3_client/test/test_unknown_error.py new file mode 100644 index 00000000..0972985c --- /dev/null +++ b/python/lance_namespace_urllib3_client/test/test_unknown_error.py @@ -0,0 +1,58 @@ +# coding: utf-8 + +""" + Lance Namespace Specification + + This OpenAPI specification is a part of the Lance namespace specification. It contains 2 parts: The `components/schemas`, `components/responses`, `components/examples`, `tags` sections define the request and response shape for each operation in a Lance Namespace across all implementations. See https://lance.org/format/namespace/operations for more details. The `servers`, `security`, `paths`, `components/parameters` sections are for the Lance REST Namespace implementation, which defines a complete REST server that can work with Lance datasets. See https://lance.org/format/namespace/rest for more details. + + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from lance_namespace_urllib3_client.models.unknown_error import UnknownError + +class TestUnknownError(unittest.TestCase): + """UnknownError unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> UnknownError: + """Test UnknownError + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `UnknownError` + """ + model = UnknownError() + if include_optional: + return UnknownError( + error = 'Unknown error', + code = 500, + type = 'lance-namespace:0', + detail = '', + instance = '' + ) + else: + return UnknownError( + error = 'Unknown error', + code = 500, + type = 'lance-namespace:0', + ) + """ + + def testUnknownError(self): + """Test UnknownError""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/python/lance_namespace_urllib3_client/test/test_update_table400_response.py b/python/lance_namespace_urllib3_client/test/test_update_table400_response.py new file mode 100644 index 00000000..76df305e --- /dev/null +++ b/python/lance_namespace_urllib3_client/test/test_update_table400_response.py @@ -0,0 +1,58 @@ +# coding: utf-8 + +""" + Lance Namespace Specification + + This OpenAPI specification is a part of the Lance namespace specification. It contains 2 parts: The `components/schemas`, `components/responses`, `components/examples`, `tags` sections define the request and response shape for each operation in a Lance Namespace across all implementations. See https://lance.org/format/namespace/operations for more details. The `servers`, `security`, `paths`, `components/parameters` sections are for the Lance REST Namespace implementation, which defines a complete REST server that can work with Lance datasets. See https://lance.org/format/namespace/rest for more details. + + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from lance_namespace_urllib3_client.models.update_table400_response import UpdateTable400Response + +class TestUpdateTable400Response(unittest.TestCase): + """UpdateTable400Response unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> UpdateTable400Response: + """Test UpdateTable400Response + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `UpdateTable400Response` + """ + model = UpdateTable400Response() + if include_optional: + return UpdateTable400Response( + error = 'Invalid SQL expression', + code = 400, + type = 'lance-namespace:601', + detail = '', + instance = '' + ) + else: + return UpdateTable400Response( + error = 'Invalid SQL expression', + code = 400, + type = 'lance-namespace:601', + ) + """ + + def testUpdateTable400Response(self): + """Test UpdateTable400Response""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/python/lance_namespace_urllib3_client/test/test_update_table_tag404_response.py b/python/lance_namespace_urllib3_client/test/test_update_table_tag404_response.py new file mode 100644 index 00000000..4763623d --- /dev/null +++ b/python/lance_namespace_urllib3_client/test/test_update_table_tag404_response.py @@ -0,0 +1,58 @@ +# coding: utf-8 + +""" + Lance Namespace Specification + + This OpenAPI specification is a part of the Lance namespace specification. It contains 2 parts: The `components/schemas`, `components/responses`, `components/examples`, `tags` sections define the request and response shape for each operation in a Lance Namespace across all implementations. See https://lance.org/format/namespace/operations for more details. The `servers`, `security`, `paths`, `components/parameters` sections are for the Lance REST Namespace implementation, which defines a complete REST server that can work with Lance datasets. See https://lance.org/format/namespace/rest for more details. + + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from lance_namespace_urllib3_client.models.update_table_tag404_response import UpdateTableTag404Response + +class TestUpdateTableTag404Response(unittest.TestCase): + """UpdateTableTag404Response unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> UpdateTableTag404Response: + """Test UpdateTableTag404Response + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `UpdateTableTag404Response` + """ + model = UpdateTableTag404Response() + if include_optional: + return UpdateTableTag404Response( + error = 'Table version not found', + code = 404, + type = 'lance-namespace:201', + detail = '', + instance = '' + ) + else: + return UpdateTableTag404Response( + error = 'Table version not found', + code = 404, + type = 'lance-namespace:201', + ) + """ + + def testUpdateTableTag404Response(self): + """Test UpdateTableTag404Response""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/rust/lance-namespace-reqwest-client/README.md b/rust/lance-namespace-reqwest-client/README.md index c20ab452..b51685ee 100644 --- a/rust/lance-namespace-reqwest-client/README.md +++ b/rust/lance-namespace-reqwest-client/README.md @@ -125,8 +125,10 @@ Class | Method | HTTP request | Description ## Documentation For Models + - [AlterTableAddColumns400Response](docs/AlterTableAddColumns400Response.md) - [AlterTableAddColumnsRequest](docs/AlterTableAddColumnsRequest.md) - [AlterTableAddColumnsResponse](docs/AlterTableAddColumnsResponse.md) + - [AlterTableAlterColumns400Response](docs/AlterTableAlterColumns400Response.md) - [AlterTableAlterColumnsRequest](docs/AlterTableAlterColumnsRequest.md) - [AlterTableAlterColumnsResponse](docs/AlterTableAlterColumnsResponse.md) - [AlterTableDropColumnsRequest](docs/AlterTableDropColumnsRequest.md) @@ -145,13 +147,17 @@ Class | Method | HTTP request | Description - [CountTableRowsRequest](docs/CountTableRowsRequest.md) - [CreateEmptyTableRequest](docs/CreateEmptyTableRequest.md) - [CreateEmptyTableResponse](docs/CreateEmptyTableResponse.md) + - [CreateNamespace400Response](docs/CreateNamespace400Response.md) - [CreateNamespaceRequest](docs/CreateNamespaceRequest.md) - [CreateNamespaceResponse](docs/CreateNamespaceResponse.md) + - [CreateTable400Response](docs/CreateTable400Response.md) + - [CreateTableIndex400Response](docs/CreateTableIndex400Response.md) - [CreateTableIndexRequest](docs/CreateTableIndexRequest.md) - [CreateTableIndexResponse](docs/CreateTableIndexResponse.md) - [CreateTableRequest](docs/CreateTableRequest.md) - [CreateTableResponse](docs/CreateTableResponse.md) - [CreateTableTagRequest](docs/CreateTableTagRequest.md) + - [DeleteFromTable400Response](docs/DeleteFromTable400Response.md) - [DeleteFromTableRequest](docs/DeleteFromTableRequest.md) - [DeleteFromTableResponse](docs/DeleteFromTableResponse.md) - [DeleteTableTagRequest](docs/DeleteTableTagRequest.md) @@ -159,6 +165,7 @@ Class | Method | HTTP request | Description - [DeregisterTableResponse](docs/DeregisterTableResponse.md) - [DescribeNamespaceRequest](docs/DescribeNamespaceRequest.md) - [DescribeNamespaceResponse](docs/DescribeNamespaceResponse.md) + - [DescribeTableIndexStats404Response](docs/DescribeTableIndexStats404Response.md) - [DescribeTableIndexStatsRequest](docs/DescribeTableIndexStatsRequest.md) - [DescribeTableIndexStatsResponse](docs/DescribeTableIndexStatsResponse.md) - [DescribeTableRequest](docs/DescribeTableRequest.md) @@ -177,11 +184,18 @@ Class | Method | HTTP request | Description - [FtsQuery](docs/FtsQuery.md) - [GetTableStatsRequest](docs/GetTableStatsRequest.md) - [GetTableStatsResponse](docs/GetTableStatsResponse.md) + - [GetTableTagVersion404Response](docs/GetTableTagVersion404Response.md) - [GetTableTagVersionRequest](docs/GetTableTagVersionRequest.md) - [GetTableTagVersionResponse](docs/GetTableTagVersionResponse.md) - [IndexContent](docs/IndexContent.md) + - [InsertIntoTable400Response](docs/InsertIntoTable400Response.md) - [InsertIntoTableRequest](docs/InsertIntoTableRequest.md) - [InsertIntoTableResponse](docs/InsertIntoTableResponse.md) + - [InvalidIdentifierError](docs/InvalidIdentifierError.md) + - [InvalidRequestError](docs/InvalidRequestError.md) + - [InvalidSqlExpressionError](docs/InvalidSqlExpressionError.md) + - [InvalidTableIndexConfigurationError](docs/InvalidTableIndexConfigurationError.md) + - [InvalidTableSchemaError](docs/InvalidTableSchemaError.md) - [JsonArrowDataType](docs/JsonArrowDataType.md) - [JsonArrowField](docs/JsonArrowField.md) - [JsonArrowSchema](docs/JsonArrowSchema.md) @@ -195,30 +209,50 @@ Class | Method | HTTP request | Description - [ListTablesRequest](docs/ListTablesRequest.md) - [ListTablesResponse](docs/ListTablesResponse.md) - [MatchQuery](docs/MatchQuery.md) + - [MergeInsertIntoTable400Response](docs/MergeInsertIntoTable400Response.md) - [MergeInsertIntoTableRequest](docs/MergeInsertIntoTableRequest.md) - [MergeInsertIntoTableResponse](docs/MergeInsertIntoTableResponse.md) - [MultiMatchQuery](docs/MultiMatchQuery.md) + - [NamespaceAlreadyExistsError](docs/NamespaceAlreadyExistsError.md) - [NamespaceExistsRequest](docs/NamespaceExistsRequest.md) + - [NamespaceNotEmptyError](docs/NamespaceNotEmptyError.md) + - [NamespaceNotFoundError](docs/NamespaceNotFoundError.md) - [NewColumnTransform](docs/NewColumnTransform.md) - [Operator](docs/Operator.md) + - [ParentNamespaceNotFoundError](docs/ParentNamespaceNotFoundError.md) - [PhraseQuery](docs/PhraseQuery.md) - [QueryTableRequest](docs/QueryTableRequest.md) - [QueryTableRequestFullTextQuery](docs/QueryTableRequestFullTextQuery.md) - [QueryTableRequestVector](docs/QueryTableRequestVector.md) - [RegisterTableRequest](docs/RegisterTableRequest.md) - [RegisterTableResponse](docs/RegisterTableResponse.md) + - [RestoreTable404Response](docs/RestoreTable404Response.md) - [RestoreTableRequest](docs/RestoreTableRequest.md) - [RestoreTableResponse](docs/RestoreTableResponse.md) - [SetPropertyMode](docs/SetPropertyMode.md) - [StringFtsQuery](docs/StringFtsQuery.md) - [StructuredFtsQuery](docs/StructuredFtsQuery.md) + - [TableAlreadyExistsError](docs/TableAlreadyExistsError.md) + - [TableColumnNotFoundError](docs/TableColumnNotFoundError.md) - [TableExistsRequest](docs/TableExistsRequest.md) + - [TableIndexAlreadyExistsError](docs/TableIndexAlreadyExistsError.md) + - [TableIndexNotFoundError](docs/TableIndexNotFoundError.md) + - [TableNotFoundError](docs/TableNotFoundError.md) + - [TableSchemaMismatchError](docs/TableSchemaMismatchError.md) + - [TableTagAlreadyExistsError](docs/TableTagAlreadyExistsError.md) + - [TableTagNotFoundError](docs/TableTagNotFoundError.md) - [TableVersion](docs/TableVersion.md) + - [TableVersionNotFoundError](docs/TableVersionNotFoundError.md) - [TagContents](docs/TagContents.md) + - [TransactionConflictError](docs/TransactionConflictError.md) + - [TransactionNotFoundError](docs/TransactionNotFoundError.md) - [TransactionStatus](docs/TransactionStatus.md) + - [UnknownError](docs/UnknownError.md) - [UnsetPropertyMode](docs/UnsetPropertyMode.md) + - [UpdateTable400Response](docs/UpdateTable400Response.md) - [UpdateTableRequest](docs/UpdateTableRequest.md) - [UpdateTableResponse](docs/UpdateTableResponse.md) + - [UpdateTableTag404Response](docs/UpdateTableTag404Response.md) - [UpdateTableTagRequest](docs/UpdateTableTagRequest.md) diff --git a/rust/lance-namespace-reqwest-client/docs/AlterTableAddColumns400Response.md b/rust/lance-namespace-reqwest-client/docs/AlterTableAddColumns400Response.md new file mode 100644 index 00000000..85a6f489 --- /dev/null +++ b/rust/lance-namespace-reqwest-client/docs/AlterTableAddColumns400Response.md @@ -0,0 +1,13 @@ +# AlterTableAddColumns400Response + +## Enum Variants + +| Name | Description | +|---- | -----| +| InvalidRequestError | | +| InvalidSqlExpressionError | | +| InvalidTableSchemaError | | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/rust/lance-namespace-reqwest-client/docs/AlterTableAlterColumns400Response.md b/rust/lance-namespace-reqwest-client/docs/AlterTableAlterColumns400Response.md new file mode 100644 index 00000000..7f62078d --- /dev/null +++ b/rust/lance-namespace-reqwest-client/docs/AlterTableAlterColumns400Response.md @@ -0,0 +1,12 @@ +# AlterTableAlterColumns400Response + +## Enum Variants + +| Name | Description | +|---- | -----| +| InvalidRequestError | | +| TableColumnNotFoundError | | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/rust/lance-namespace-reqwest-client/docs/CreateNamespace400Response.md b/rust/lance-namespace-reqwest-client/docs/CreateNamespace400Response.md new file mode 100644 index 00000000..6930d4d2 --- /dev/null +++ b/rust/lance-namespace-reqwest-client/docs/CreateNamespace400Response.md @@ -0,0 +1,12 @@ +# CreateNamespace400Response + +## Enum Variants + +| Name | Description | +|---- | -----| +| InvalidIdentifierError | | +| InvalidRequestError | | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/rust/lance-namespace-reqwest-client/docs/CreateTable400Response.md b/rust/lance-namespace-reqwest-client/docs/CreateTable400Response.md new file mode 100644 index 00000000..9775eaa5 --- /dev/null +++ b/rust/lance-namespace-reqwest-client/docs/CreateTable400Response.md @@ -0,0 +1,12 @@ +# CreateTable400Response + +## Enum Variants + +| Name | Description | +|---- | -----| +| InvalidRequestError | | +| InvalidTableSchemaError | | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/rust/lance-namespace-reqwest-client/docs/CreateTableIndex400Response.md b/rust/lance-namespace-reqwest-client/docs/CreateTableIndex400Response.md new file mode 100644 index 00000000..41e2a14c --- /dev/null +++ b/rust/lance-namespace-reqwest-client/docs/CreateTableIndex400Response.md @@ -0,0 +1,13 @@ +# CreateTableIndex400Response + +## Enum Variants + +| Name | Description | +|---- | -----| +| InvalidRequestError | | +| InvalidTableIndexConfigurationError | | +| TableColumnNotFoundError | | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/rust/lance-namespace-reqwest-client/docs/DeleteFromTable400Response.md b/rust/lance-namespace-reqwest-client/docs/DeleteFromTable400Response.md new file mode 100644 index 00000000..9391ea29 --- /dev/null +++ b/rust/lance-namespace-reqwest-client/docs/DeleteFromTable400Response.md @@ -0,0 +1,12 @@ +# DeleteFromTable400Response + +## Enum Variants + +| Name | Description | +|---- | -----| +| InvalidRequestError | | +| InvalidSqlExpressionError | | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/rust/lance-namespace-reqwest-client/docs/DescribeTableIndexStats404Response.md b/rust/lance-namespace-reqwest-client/docs/DescribeTableIndexStats404Response.md new file mode 100644 index 00000000..0c99629c --- /dev/null +++ b/rust/lance-namespace-reqwest-client/docs/DescribeTableIndexStats404Response.md @@ -0,0 +1,12 @@ +# DescribeTableIndexStats404Response + +## Enum Variants + +| Name | Description | +|---- | -----| +| TableIndexNotFoundError | | +| TableNotFoundError | | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/rust/lance-namespace-reqwest-client/docs/GetTableTagVersion404Response.md b/rust/lance-namespace-reqwest-client/docs/GetTableTagVersion404Response.md new file mode 100644 index 00000000..89259cc7 --- /dev/null +++ b/rust/lance-namespace-reqwest-client/docs/GetTableTagVersion404Response.md @@ -0,0 +1,12 @@ +# GetTableTagVersion404Response + +## Enum Variants + +| Name | Description | +|---- | -----| +| TableNotFoundError | | +| TableTagNotFoundError | | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/rust/lance-namespace-reqwest-client/docs/InsertIntoTable400Response.md b/rust/lance-namespace-reqwest-client/docs/InsertIntoTable400Response.md new file mode 100644 index 00000000..2e4acc21 --- /dev/null +++ b/rust/lance-namespace-reqwest-client/docs/InsertIntoTable400Response.md @@ -0,0 +1,12 @@ +# InsertIntoTable400Response + +## Enum Variants + +| Name | Description | +|---- | -----| +| InvalidRequestError | | +| TableSchemaMismatchError | | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/rust/lance-namespace-reqwest-client/docs/InvalidIdentifierError.md b/rust/lance-namespace-reqwest-client/docs/InvalidIdentifierError.md new file mode 100644 index 00000000..a85cef9e --- /dev/null +++ b/rust/lance-namespace-reqwest-client/docs/InvalidIdentifierError.md @@ -0,0 +1,15 @@ +# InvalidIdentifierError + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**error** | **String** | Brief error message | +**code** | **i32** | HTTP status code | +**r#type** | **String** | Error type identifier | +**detail** | Option<**String**> | Detailed error explanation | [optional] +**instance** | Option<**String**> | Specific occurrence identifier | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/rust/lance-namespace-reqwest-client/docs/InvalidRequestError.md b/rust/lance-namespace-reqwest-client/docs/InvalidRequestError.md new file mode 100644 index 00000000..5aa52064 --- /dev/null +++ b/rust/lance-namespace-reqwest-client/docs/InvalidRequestError.md @@ -0,0 +1,15 @@ +# InvalidRequestError + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**error** | **String** | Brief error message | +**code** | **i32** | HTTP status code | +**r#type** | **String** | Error type identifier | +**detail** | Option<**String**> | Detailed error explanation | [optional] +**instance** | Option<**String**> | Specific occurrence identifier | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/rust/lance-namespace-reqwest-client/docs/InvalidSqlExpressionError.md b/rust/lance-namespace-reqwest-client/docs/InvalidSqlExpressionError.md new file mode 100644 index 00000000..39998482 --- /dev/null +++ b/rust/lance-namespace-reqwest-client/docs/InvalidSqlExpressionError.md @@ -0,0 +1,15 @@ +# InvalidSqlExpressionError + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**error** | **String** | Brief error message | +**code** | **i32** | HTTP status code | +**r#type** | **String** | Error type identifier | +**detail** | Option<**String**> | Detailed error explanation | [optional] +**instance** | Option<**String**> | Specific occurrence identifier | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/rust/lance-namespace-reqwest-client/docs/InvalidTableIndexConfigurationError.md b/rust/lance-namespace-reqwest-client/docs/InvalidTableIndexConfigurationError.md new file mode 100644 index 00000000..8cb75b11 --- /dev/null +++ b/rust/lance-namespace-reqwest-client/docs/InvalidTableIndexConfigurationError.md @@ -0,0 +1,15 @@ +# InvalidTableIndexConfigurationError + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**error** | **String** | Brief error message | +**code** | **i32** | HTTP status code | +**r#type** | **String** | Error type identifier | +**detail** | Option<**String**> | Detailed error explanation | [optional] +**instance** | Option<**String**> | Specific occurrence identifier | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/rust/lance-namespace-reqwest-client/docs/InvalidTableSchemaError.md b/rust/lance-namespace-reqwest-client/docs/InvalidTableSchemaError.md new file mode 100644 index 00000000..306da6bc --- /dev/null +++ b/rust/lance-namespace-reqwest-client/docs/InvalidTableSchemaError.md @@ -0,0 +1,15 @@ +# InvalidTableSchemaError + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**error** | **String** | Brief error message | +**code** | **i32** | HTTP status code | +**r#type** | **String** | Error type identifier | +**detail** | Option<**String**> | Detailed error explanation | [optional] +**instance** | Option<**String**> | Specific occurrence identifier | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/rust/lance-namespace-reqwest-client/docs/MergeInsertIntoTable400Response.md b/rust/lance-namespace-reqwest-client/docs/MergeInsertIntoTable400Response.md new file mode 100644 index 00000000..f8bc849a --- /dev/null +++ b/rust/lance-namespace-reqwest-client/docs/MergeInsertIntoTable400Response.md @@ -0,0 +1,13 @@ +# MergeInsertIntoTable400Response + +## Enum Variants + +| Name | Description | +|---- | -----| +| InvalidRequestError | | +| TableColumnNotFoundError | | +| TableSchemaMismatchError | | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/rust/lance-namespace-reqwest-client/docs/NamespaceAlreadyExistsError.md b/rust/lance-namespace-reqwest-client/docs/NamespaceAlreadyExistsError.md new file mode 100644 index 00000000..766c1cbc --- /dev/null +++ b/rust/lance-namespace-reqwest-client/docs/NamespaceAlreadyExistsError.md @@ -0,0 +1,15 @@ +# NamespaceAlreadyExistsError + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**error** | **String** | Brief error message | +**code** | **i32** | HTTP status code | +**r#type** | **String** | Error type identifier | +**detail** | Option<**String**> | Detailed error explanation | [optional] +**instance** | Option<**String**> | Specific occurrence identifier | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/rust/lance-namespace-reqwest-client/docs/NamespaceNotEmptyError.md b/rust/lance-namespace-reqwest-client/docs/NamespaceNotEmptyError.md new file mode 100644 index 00000000..7c9c631e --- /dev/null +++ b/rust/lance-namespace-reqwest-client/docs/NamespaceNotEmptyError.md @@ -0,0 +1,15 @@ +# NamespaceNotEmptyError + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**error** | **String** | Brief error message | +**code** | **i32** | HTTP status code | +**r#type** | **String** | Error type identifier | +**detail** | Option<**String**> | Detailed error explanation | [optional] +**instance** | Option<**String**> | Specific occurrence identifier | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/rust/lance-namespace-reqwest-client/docs/NamespaceNotFoundError.md b/rust/lance-namespace-reqwest-client/docs/NamespaceNotFoundError.md new file mode 100644 index 00000000..08be4ff2 --- /dev/null +++ b/rust/lance-namespace-reqwest-client/docs/NamespaceNotFoundError.md @@ -0,0 +1,15 @@ +# NamespaceNotFoundError + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**error** | **String** | Brief error message | +**code** | **i32** | HTTP status code | +**r#type** | **String** | Error type identifier | +**detail** | Option<**String**> | Detailed error explanation | [optional] +**instance** | Option<**String**> | Specific occurrence identifier | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/rust/lance-namespace-reqwest-client/docs/ParentNamespaceNotFoundError.md b/rust/lance-namespace-reqwest-client/docs/ParentNamespaceNotFoundError.md new file mode 100644 index 00000000..867d13f1 --- /dev/null +++ b/rust/lance-namespace-reqwest-client/docs/ParentNamespaceNotFoundError.md @@ -0,0 +1,15 @@ +# ParentNamespaceNotFoundError + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**error** | **String** | Brief error message | +**code** | **i32** | HTTP status code | +**r#type** | **String** | Error type identifier | +**detail** | Option<**String**> | Detailed error explanation | [optional] +**instance** | Option<**String**> | Specific occurrence identifier | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/rust/lance-namespace-reqwest-client/docs/RestoreTable404Response.md b/rust/lance-namespace-reqwest-client/docs/RestoreTable404Response.md new file mode 100644 index 00000000..787278c9 --- /dev/null +++ b/rust/lance-namespace-reqwest-client/docs/RestoreTable404Response.md @@ -0,0 +1,12 @@ +# RestoreTable404Response + +## Enum Variants + +| Name | Description | +|---- | -----| +| TableNotFoundError | | +| TableVersionNotFoundError | | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/rust/lance-namespace-reqwest-client/docs/TableAlreadyExistsError.md b/rust/lance-namespace-reqwest-client/docs/TableAlreadyExistsError.md new file mode 100644 index 00000000..97a7d35b --- /dev/null +++ b/rust/lance-namespace-reqwest-client/docs/TableAlreadyExistsError.md @@ -0,0 +1,15 @@ +# TableAlreadyExistsError + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**error** | **String** | Brief error message | +**code** | **i32** | HTTP status code | +**r#type** | **String** | Error type identifier | +**detail** | Option<**String**> | Detailed error explanation | [optional] +**instance** | Option<**String**> | Specific occurrence identifier | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/rust/lance-namespace-reqwest-client/docs/TableColumnNotFoundError.md b/rust/lance-namespace-reqwest-client/docs/TableColumnNotFoundError.md new file mode 100644 index 00000000..0748440a --- /dev/null +++ b/rust/lance-namespace-reqwest-client/docs/TableColumnNotFoundError.md @@ -0,0 +1,15 @@ +# TableColumnNotFoundError + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**error** | **String** | Brief error message | +**code** | **i32** | HTTP status code | +**r#type** | **String** | Error type identifier | +**detail** | Option<**String**> | Detailed error explanation | [optional] +**instance** | Option<**String**> | Specific occurrence identifier | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/rust/lance-namespace-reqwest-client/docs/TableIndexAlreadyExistsError.md b/rust/lance-namespace-reqwest-client/docs/TableIndexAlreadyExistsError.md new file mode 100644 index 00000000..bd8d2508 --- /dev/null +++ b/rust/lance-namespace-reqwest-client/docs/TableIndexAlreadyExistsError.md @@ -0,0 +1,15 @@ +# TableIndexAlreadyExistsError + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**error** | **String** | Brief error message | +**code** | **i32** | HTTP status code | +**r#type** | **String** | Error type identifier | +**detail** | Option<**String**> | Detailed error explanation | [optional] +**instance** | Option<**String**> | Specific occurrence identifier | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/rust/lance-namespace-reqwest-client/docs/TableIndexNotFoundError.md b/rust/lance-namespace-reqwest-client/docs/TableIndexNotFoundError.md new file mode 100644 index 00000000..49d8582a --- /dev/null +++ b/rust/lance-namespace-reqwest-client/docs/TableIndexNotFoundError.md @@ -0,0 +1,15 @@ +# TableIndexNotFoundError + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**error** | **String** | Brief error message | +**code** | **i32** | HTTP status code | +**r#type** | **String** | Error type identifier | +**detail** | Option<**String**> | Detailed error explanation | [optional] +**instance** | Option<**String**> | Specific occurrence identifier | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/rust/lance-namespace-reqwest-client/docs/TableNotFoundError.md b/rust/lance-namespace-reqwest-client/docs/TableNotFoundError.md new file mode 100644 index 00000000..79a7eb97 --- /dev/null +++ b/rust/lance-namespace-reqwest-client/docs/TableNotFoundError.md @@ -0,0 +1,15 @@ +# TableNotFoundError + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**error** | **String** | Brief error message | +**code** | **i32** | HTTP status code | +**r#type** | **String** | Error type identifier | +**detail** | Option<**String**> | Detailed error explanation | [optional] +**instance** | Option<**String**> | Specific occurrence identifier | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/rust/lance-namespace-reqwest-client/docs/TableSchemaMismatchError.md b/rust/lance-namespace-reqwest-client/docs/TableSchemaMismatchError.md new file mode 100644 index 00000000..f0accbec --- /dev/null +++ b/rust/lance-namespace-reqwest-client/docs/TableSchemaMismatchError.md @@ -0,0 +1,15 @@ +# TableSchemaMismatchError + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**error** | **String** | Brief error message | +**code** | **i32** | HTTP status code | +**r#type** | **String** | Error type identifier | +**detail** | Option<**String**> | Detailed error explanation | [optional] +**instance** | Option<**String**> | Specific occurrence identifier | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/rust/lance-namespace-reqwest-client/docs/TableTagAlreadyExistsError.md b/rust/lance-namespace-reqwest-client/docs/TableTagAlreadyExistsError.md new file mode 100644 index 00000000..62258fca --- /dev/null +++ b/rust/lance-namespace-reqwest-client/docs/TableTagAlreadyExistsError.md @@ -0,0 +1,15 @@ +# TableTagAlreadyExistsError + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**error** | **String** | Brief error message | +**code** | **i32** | HTTP status code | +**r#type** | **String** | Error type identifier | +**detail** | Option<**String**> | Detailed error explanation | [optional] +**instance** | Option<**String**> | Specific occurrence identifier | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/rust/lance-namespace-reqwest-client/docs/TableTagNotFoundError.md b/rust/lance-namespace-reqwest-client/docs/TableTagNotFoundError.md new file mode 100644 index 00000000..1f57b677 --- /dev/null +++ b/rust/lance-namespace-reqwest-client/docs/TableTagNotFoundError.md @@ -0,0 +1,15 @@ +# TableTagNotFoundError + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**error** | **String** | Brief error message | +**code** | **i32** | HTTP status code | +**r#type** | **String** | Error type identifier | +**detail** | Option<**String**> | Detailed error explanation | [optional] +**instance** | Option<**String**> | Specific occurrence identifier | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/rust/lance-namespace-reqwest-client/docs/TableVersionNotFoundError.md b/rust/lance-namespace-reqwest-client/docs/TableVersionNotFoundError.md new file mode 100644 index 00000000..d0c67f6f --- /dev/null +++ b/rust/lance-namespace-reqwest-client/docs/TableVersionNotFoundError.md @@ -0,0 +1,15 @@ +# TableVersionNotFoundError + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**error** | **String** | Brief error message | +**code** | **i32** | HTTP status code | +**r#type** | **String** | Error type identifier | +**detail** | Option<**String**> | Detailed error explanation | [optional] +**instance** | Option<**String**> | Specific occurrence identifier | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/rust/lance-namespace-reqwest-client/docs/TransactionConflictError.md b/rust/lance-namespace-reqwest-client/docs/TransactionConflictError.md new file mode 100644 index 00000000..64155da7 --- /dev/null +++ b/rust/lance-namespace-reqwest-client/docs/TransactionConflictError.md @@ -0,0 +1,15 @@ +# TransactionConflictError + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**error** | **String** | Brief error message | +**code** | **i32** | HTTP status code | +**r#type** | **String** | Error type identifier | +**detail** | Option<**String**> | Detailed error explanation | [optional] +**instance** | Option<**String**> | Specific occurrence identifier | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/rust/lance-namespace-reqwest-client/docs/TransactionNotFoundError.md b/rust/lance-namespace-reqwest-client/docs/TransactionNotFoundError.md new file mode 100644 index 00000000..a9c21ed4 --- /dev/null +++ b/rust/lance-namespace-reqwest-client/docs/TransactionNotFoundError.md @@ -0,0 +1,15 @@ +# TransactionNotFoundError + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**error** | **String** | Brief error message | +**code** | **i32** | HTTP status code | +**r#type** | **String** | Error type identifier | +**detail** | Option<**String**> | Detailed error explanation | [optional] +**instance** | Option<**String**> | Specific occurrence identifier | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/rust/lance-namespace-reqwest-client/docs/UnknownError.md b/rust/lance-namespace-reqwest-client/docs/UnknownError.md new file mode 100644 index 00000000..03c96f24 --- /dev/null +++ b/rust/lance-namespace-reqwest-client/docs/UnknownError.md @@ -0,0 +1,15 @@ +# UnknownError + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**error** | **String** | Brief error message | +**code** | **i32** | HTTP status code | +**r#type** | **String** | Error type identifier | +**detail** | Option<**String**> | Detailed error explanation | [optional] +**instance** | Option<**String**> | Specific occurrence identifier | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/rust/lance-namespace-reqwest-client/docs/UpdateTable400Response.md b/rust/lance-namespace-reqwest-client/docs/UpdateTable400Response.md new file mode 100644 index 00000000..f1058edc --- /dev/null +++ b/rust/lance-namespace-reqwest-client/docs/UpdateTable400Response.md @@ -0,0 +1,13 @@ +# UpdateTable400Response + +## Enum Variants + +| Name | Description | +|---- | -----| +| InvalidRequestError | | +| InvalidSqlExpressionError | | +| TableColumnNotFoundError | | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/rust/lance-namespace-reqwest-client/docs/UpdateTableTag404Response.md b/rust/lance-namespace-reqwest-client/docs/UpdateTableTag404Response.md new file mode 100644 index 00000000..7fb4e7db --- /dev/null +++ b/rust/lance-namespace-reqwest-client/docs/UpdateTableTag404Response.md @@ -0,0 +1,13 @@ +# UpdateTableTag404Response + +## Enum Variants + +| Name | Description | +|---- | -----| +| TableNotFoundError | | +| TableTagNotFoundError | | +| TableVersionNotFoundError | | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/rust/lance-namespace-reqwest-client/src/apis/data_api.rs b/rust/lance-namespace-reqwest-client/src/apis/data_api.rs index 2386c5ae..a3ef2e7f 100644 --- a/rust/lance-namespace-reqwest-client/src/apis/data_api.rs +++ b/rust/lance-namespace-reqwest-client/src/apis/data_api.rs @@ -19,12 +19,12 @@ use super::{Error, configuration, ContentType}; #[derive(Debug, Clone, Serialize, Deserialize)] #[serde(untagged)] pub enum AlterTableAddColumnsError { - Status400(models::ErrorResponse), + Status400(models::AlterTableAddColumns400Response), Status401(models::ErrorResponse), Status403(models::ErrorResponse), - Status404(models::ErrorResponse), + Status404(models::TableNotFoundError), Status503(models::ErrorResponse), - Status5XX(models::ErrorResponse), + Status5XX(models::UnknownError), UnknownValue(serde_json::Value), } @@ -32,12 +32,12 @@ pub enum AlterTableAddColumnsError { #[derive(Debug, Clone, Serialize, Deserialize)] #[serde(untagged)] pub enum AnalyzeTableQueryPlanError { - Status400(models::ErrorResponse), + Status400(models::DeleteFromTable400Response), Status401(models::ErrorResponse), Status403(models::ErrorResponse), - Status404(models::ErrorResponse), + Status404(models::TableNotFoundError), Status503(models::ErrorResponse), - Status5XX(models::ErrorResponse), + Status5XX(models::UnknownError), UnknownValue(serde_json::Value), } @@ -45,12 +45,12 @@ pub enum AnalyzeTableQueryPlanError { #[derive(Debug, Clone, Serialize, Deserialize)] #[serde(untagged)] pub enum CountTableRowsError { - Status400(models::ErrorResponse), + Status400(models::DeleteFromTable400Response), Status401(models::ErrorResponse), Status403(models::ErrorResponse), - Status404(models::ErrorResponse), + Status404(models::TableNotFoundError), Status503(models::ErrorResponse), - Status5XX(models::ErrorResponse), + Status5XX(models::UnknownError), UnknownValue(serde_json::Value), } @@ -58,12 +58,13 @@ pub enum CountTableRowsError { #[derive(Debug, Clone, Serialize, Deserialize)] #[serde(untagged)] pub enum CreateTableError { - Status400(models::ErrorResponse), + Status400(models::CreateTable400Response), Status401(models::ErrorResponse), Status403(models::ErrorResponse), - Status404(models::ErrorResponse), + Status404(models::ParentNamespaceNotFoundError), + Status409(models::TableAlreadyExistsError), Status503(models::ErrorResponse), - Status5XX(models::ErrorResponse), + Status5XX(models::UnknownError), UnknownValue(serde_json::Value), } @@ -71,12 +72,12 @@ pub enum CreateTableError { #[derive(Debug, Clone, Serialize, Deserialize)] #[serde(untagged)] pub enum DeleteFromTableError { - Status400(models::ErrorResponse), + Status400(models::DeleteFromTable400Response), Status401(models::ErrorResponse), Status403(models::ErrorResponse), - Status404(models::ErrorResponse), + Status404(models::TableNotFoundError), Status503(models::ErrorResponse), - Status5XX(models::ErrorResponse), + Status5XX(models::UnknownError), UnknownValue(serde_json::Value), } @@ -84,12 +85,12 @@ pub enum DeleteFromTableError { #[derive(Debug, Clone, Serialize, Deserialize)] #[serde(untagged)] pub enum ExplainTableQueryPlanError { - Status400(models::ErrorResponse), + Status400(models::DeleteFromTable400Response), Status401(models::ErrorResponse), Status403(models::ErrorResponse), - Status404(models::ErrorResponse), + Status404(models::TableNotFoundError), Status503(models::ErrorResponse), - Status5XX(models::ErrorResponse), + Status5XX(models::UnknownError), UnknownValue(serde_json::Value), } @@ -97,12 +98,12 @@ pub enum ExplainTableQueryPlanError { #[derive(Debug, Clone, Serialize, Deserialize)] #[serde(untagged)] pub enum InsertIntoTableError { - Status400(models::ErrorResponse), + Status400(models::InsertIntoTable400Response), Status401(models::ErrorResponse), Status403(models::ErrorResponse), - Status404(models::ErrorResponse), + Status404(models::TableNotFoundError), Status503(models::ErrorResponse), - Status5XX(models::ErrorResponse), + Status5XX(models::UnknownError), UnknownValue(serde_json::Value), } @@ -110,12 +111,12 @@ pub enum InsertIntoTableError { #[derive(Debug, Clone, Serialize, Deserialize)] #[serde(untagged)] pub enum MergeInsertIntoTableError { - Status400(models::ErrorResponse), + Status400(models::MergeInsertIntoTable400Response), Status401(models::ErrorResponse), Status403(models::ErrorResponse), - Status404(models::ErrorResponse), + Status404(models::TableNotFoundError), Status503(models::ErrorResponse), - Status5XX(models::ErrorResponse), + Status5XX(models::UnknownError), UnknownValue(serde_json::Value), } @@ -123,12 +124,12 @@ pub enum MergeInsertIntoTableError { #[derive(Debug, Clone, Serialize, Deserialize)] #[serde(untagged)] pub enum QueryTableError { - Status400(models::ErrorResponse), + Status400(models::DeleteFromTable400Response), Status401(models::ErrorResponse), Status403(models::ErrorResponse), - Status404(models::ErrorResponse), + Status404(models::TableNotFoundError), Status503(models::ErrorResponse), - Status5XX(models::ErrorResponse), + Status5XX(models::UnknownError), UnknownValue(serde_json::Value), } @@ -136,12 +137,12 @@ pub enum QueryTableError { #[derive(Debug, Clone, Serialize, Deserialize)] #[serde(untagged)] pub enum UpdateTableError { - Status400(models::ErrorResponse), + Status400(models::UpdateTable400Response), Status401(models::ErrorResponse), Status403(models::ErrorResponse), - Status404(models::ErrorResponse), + Status404(models::TableNotFoundError), Status503(models::ErrorResponse), - Status5XX(models::ErrorResponse), + Status5XX(models::UnknownError), UnknownValue(serde_json::Value), } diff --git a/rust/lance-namespace-reqwest-client/src/apis/index_api.rs b/rust/lance-namespace-reqwest-client/src/apis/index_api.rs index ef173edb..f64142f5 100644 --- a/rust/lance-namespace-reqwest-client/src/apis/index_api.rs +++ b/rust/lance-namespace-reqwest-client/src/apis/index_api.rs @@ -19,12 +19,13 @@ use super::{Error, configuration, ContentType}; #[derive(Debug, Clone, Serialize, Deserialize)] #[serde(untagged)] pub enum CreateTableIndexError { - Status400(models::ErrorResponse), + Status400(models::CreateTableIndex400Response), Status401(models::ErrorResponse), Status403(models::ErrorResponse), - Status404(models::ErrorResponse), + Status404(models::TableNotFoundError), + Status409(models::TableIndexAlreadyExistsError), Status503(models::ErrorResponse), - Status5XX(models::ErrorResponse), + Status5XX(models::UnknownError), UnknownValue(serde_json::Value), } @@ -32,12 +33,12 @@ pub enum CreateTableIndexError { #[derive(Debug, Clone, Serialize, Deserialize)] #[serde(untagged)] pub enum DescribeTableIndexStatsError { - Status400(models::ErrorResponse), + Status400(models::InvalidRequestError), Status401(models::ErrorResponse), Status403(models::ErrorResponse), - Status404(models::ErrorResponse), + Status404(models::DescribeTableIndexStats404Response), Status503(models::ErrorResponse), - Status5XX(models::ErrorResponse), + Status5XX(models::UnknownError), UnknownValue(serde_json::Value), } @@ -48,7 +49,7 @@ pub enum DropTableIndexError { Status400(models::ErrorResponse), Status401(models::ErrorResponse), Status403(models::ErrorResponse), - Status404(models::ErrorResponse), + Status404(models::DescribeTableIndexStats404Response), Status503(models::ErrorResponse), Status5XX(models::ErrorResponse), UnknownValue(serde_json::Value), @@ -58,12 +59,12 @@ pub enum DropTableIndexError { #[derive(Debug, Clone, Serialize, Deserialize)] #[serde(untagged)] pub enum ListTableIndicesError { - Status400(models::ErrorResponse), + Status400(models::InvalidRequestError), Status401(models::ErrorResponse), Status403(models::ErrorResponse), - Status404(models::ErrorResponse), + Status404(models::TableNotFoundError), Status503(models::ErrorResponse), - Status5XX(models::ErrorResponse), + Status5XX(models::UnknownError), UnknownValue(serde_json::Value), } diff --git a/rust/lance-namespace-reqwest-client/src/apis/metadata_api.rs b/rust/lance-namespace-reqwest-client/src/apis/metadata_api.rs index 26eb0172..47a9807a 100644 --- a/rust/lance-namespace-reqwest-client/src/apis/metadata_api.rs +++ b/rust/lance-namespace-reqwest-client/src/apis/metadata_api.rs @@ -19,12 +19,12 @@ use super::{Error, configuration, ContentType}; #[derive(Debug, Clone, Serialize, Deserialize)] #[serde(untagged)] pub enum AlterTableAlterColumnsError { - Status400(models::ErrorResponse), + Status400(models::AlterTableAlterColumns400Response), Status401(models::ErrorResponse), Status403(models::ErrorResponse), - Status404(models::ErrorResponse), + Status404(models::TableNotFoundError), Status503(models::ErrorResponse), - Status5XX(models::ErrorResponse), + Status5XX(models::UnknownError), UnknownValue(serde_json::Value), } @@ -32,12 +32,12 @@ pub enum AlterTableAlterColumnsError { #[derive(Debug, Clone, Serialize, Deserialize)] #[serde(untagged)] pub enum AlterTableDropColumnsError { - Status400(models::ErrorResponse), + Status400(models::AlterTableAlterColumns400Response), Status401(models::ErrorResponse), Status403(models::ErrorResponse), - Status404(models::ErrorResponse), + Status404(models::TableNotFoundError), Status503(models::ErrorResponse), - Status5XX(models::ErrorResponse), + Status5XX(models::UnknownError), UnknownValue(serde_json::Value), } @@ -48,8 +48,8 @@ pub enum AlterTransactionError { Status400(models::ErrorResponse), Status401(models::ErrorResponse), Status403(models::ErrorResponse), - Status404(models::ErrorResponse), - Status409(models::ErrorResponse), + Status404(models::TransactionNotFoundError), + Status409(models::TransactionConflictError), Status503(models::ErrorResponse), Status5XX(models::ErrorResponse), UnknownValue(serde_json::Value), @@ -62,8 +62,8 @@ pub enum CreateEmptyTableError { Status400(models::ErrorResponse), Status401(models::ErrorResponse), Status403(models::ErrorResponse), - Status404(models::ErrorResponse), - Status409(models::ErrorResponse), + Status404(models::ParentNamespaceNotFoundError), + Status409(models::TableAlreadyExistsError), Status503(models::ErrorResponse), Status5XX(models::ErrorResponse), UnknownValue(serde_json::Value), @@ -73,14 +73,14 @@ pub enum CreateEmptyTableError { #[derive(Debug, Clone, Serialize, Deserialize)] #[serde(untagged)] pub enum CreateNamespaceError { - Status400(models::ErrorResponse), + Status400(models::CreateNamespace400Response), Status401(models::ErrorResponse), Status403(models::ErrorResponse), - Status404(models::ErrorResponse), + Status404(models::ParentNamespaceNotFoundError), Status406(models::ErrorResponse), - Status409(models::ErrorResponse), + Status409(models::NamespaceAlreadyExistsError), Status503(models::ErrorResponse), - Status5XX(models::ErrorResponse), + Status5XX(models::UnknownError), UnknownValue(serde_json::Value), } @@ -88,12 +88,13 @@ pub enum CreateNamespaceError { #[derive(Debug, Clone, Serialize, Deserialize)] #[serde(untagged)] pub enum CreateTableIndexError { - Status400(models::ErrorResponse), + Status400(models::CreateTableIndex400Response), Status401(models::ErrorResponse), Status403(models::ErrorResponse), - Status404(models::ErrorResponse), + Status404(models::TableNotFoundError), + Status409(models::TableIndexAlreadyExistsError), Status503(models::ErrorResponse), - Status5XX(models::ErrorResponse), + Status5XX(models::UnknownError), UnknownValue(serde_json::Value), } @@ -104,8 +105,8 @@ pub enum CreateTableTagError { Status400(models::ErrorResponse), Status401(models::ErrorResponse), Status403(models::ErrorResponse), - Status404(models::ErrorResponse), - Status409(models::ErrorResponse), + Status404(models::RestoreTable404Response), + Status409(models::TableTagAlreadyExistsError), Status503(models::ErrorResponse), Status5XX(models::ErrorResponse), UnknownValue(serde_json::Value), @@ -118,7 +119,7 @@ pub enum DeleteTableTagError { Status400(models::ErrorResponse), Status401(models::ErrorResponse), Status403(models::ErrorResponse), - Status404(models::ErrorResponse), + Status404(models::GetTableTagVersion404Response), Status503(models::ErrorResponse), Status5XX(models::ErrorResponse), UnknownValue(serde_json::Value), @@ -128,12 +129,12 @@ pub enum DeleteTableTagError { #[derive(Debug, Clone, Serialize, Deserialize)] #[serde(untagged)] pub enum DeregisterTableError { - Status400(models::ErrorResponse), + Status400(models::InvalidRequestError), Status401(models::ErrorResponse), Status403(models::ErrorResponse), - Status404(models::ErrorResponse), + Status404(models::TableNotFoundError), Status503(models::ErrorResponse), - Status5XX(models::ErrorResponse), + Status5XX(models::UnknownError), UnknownValue(serde_json::Value), } @@ -141,12 +142,12 @@ pub enum DeregisterTableError { #[derive(Debug, Clone, Serialize, Deserialize)] #[serde(untagged)] pub enum DescribeNamespaceError { - Status400(models::ErrorResponse), + Status400(models::InvalidRequestError), Status401(models::ErrorResponse), Status403(models::ErrorResponse), - Status404(models::ErrorResponse), + Status404(models::NamespaceNotFoundError), Status503(models::ErrorResponse), - Status5XX(models::ErrorResponse), + Status5XX(models::UnknownError), UnknownValue(serde_json::Value), } @@ -154,12 +155,12 @@ pub enum DescribeNamespaceError { #[derive(Debug, Clone, Serialize, Deserialize)] #[serde(untagged)] pub enum DescribeTableError { - Status400(models::ErrorResponse), + Status400(models::InvalidRequestError), Status401(models::ErrorResponse), Status403(models::ErrorResponse), - Status404(models::ErrorResponse), + Status404(models::TableNotFoundError), Status503(models::ErrorResponse), - Status5XX(models::ErrorResponse), + Status5XX(models::UnknownError), UnknownValue(serde_json::Value), } @@ -167,12 +168,12 @@ pub enum DescribeTableError { #[derive(Debug, Clone, Serialize, Deserialize)] #[serde(untagged)] pub enum DescribeTableIndexStatsError { - Status400(models::ErrorResponse), + Status400(models::InvalidRequestError), Status401(models::ErrorResponse), Status403(models::ErrorResponse), - Status404(models::ErrorResponse), + Status404(models::DescribeTableIndexStats404Response), Status503(models::ErrorResponse), - Status5XX(models::ErrorResponse), + Status5XX(models::UnknownError), UnknownValue(serde_json::Value), } @@ -183,7 +184,7 @@ pub enum DescribeTransactionError { Status400(models::ErrorResponse), Status401(models::ErrorResponse), Status403(models::ErrorResponse), - Status404(models::ErrorResponse), + Status404(models::TransactionNotFoundError), Status503(models::ErrorResponse), Status5XX(models::ErrorResponse), UnknownValue(serde_json::Value), @@ -193,13 +194,13 @@ pub enum DescribeTransactionError { #[derive(Debug, Clone, Serialize, Deserialize)] #[serde(untagged)] pub enum DropNamespaceError { - Status400(models::ErrorResponse), + Status400(models::InvalidRequestError), Status401(models::ErrorResponse), Status403(models::ErrorResponse), - Status404(models::ErrorResponse), - Status409(models::ErrorResponse), + Status404(models::NamespaceNotFoundError), + Status409(models::NamespaceNotEmptyError), Status503(models::ErrorResponse), - Status5XX(models::ErrorResponse), + Status5XX(models::UnknownError), UnknownValue(serde_json::Value), } @@ -207,12 +208,12 @@ pub enum DropNamespaceError { #[derive(Debug, Clone, Serialize, Deserialize)] #[serde(untagged)] pub enum DropTableError { - Status400(models::ErrorResponse), + Status400(models::InvalidRequestError), Status401(models::ErrorResponse), Status403(models::ErrorResponse), - Status404(models::ErrorResponse), + Status404(models::TableNotFoundError), Status503(models::ErrorResponse), - Status5XX(models::ErrorResponse), + Status5XX(models::UnknownError), UnknownValue(serde_json::Value), } @@ -223,7 +224,7 @@ pub enum DropTableIndexError { Status400(models::ErrorResponse), Status401(models::ErrorResponse), Status403(models::ErrorResponse), - Status404(models::ErrorResponse), + Status404(models::DescribeTableIndexStats404Response), Status503(models::ErrorResponse), Status5XX(models::ErrorResponse), UnknownValue(serde_json::Value), @@ -233,12 +234,12 @@ pub enum DropTableIndexError { #[derive(Debug, Clone, Serialize, Deserialize)] #[serde(untagged)] pub enum GetTableStatsError { - Status400(models::ErrorResponse), + Status400(models::InvalidRequestError), Status401(models::ErrorResponse), Status403(models::ErrorResponse), - Status404(models::ErrorResponse), + Status404(models::TableNotFoundError), Status503(models::ErrorResponse), - Status5XX(models::ErrorResponse), + Status5XX(models::UnknownError), UnknownValue(serde_json::Value), } @@ -249,7 +250,7 @@ pub enum GetTableTagVersionError { Status400(models::ErrorResponse), Status401(models::ErrorResponse), Status403(models::ErrorResponse), - Status404(models::ErrorResponse), + Status404(models::GetTableTagVersion404Response), Status503(models::ErrorResponse), Status5XX(models::ErrorResponse), UnknownValue(serde_json::Value), @@ -259,13 +260,13 @@ pub enum GetTableTagVersionError { #[derive(Debug, Clone, Serialize, Deserialize)] #[serde(untagged)] pub enum ListNamespacesError { - Status400(models::ErrorResponse), + Status400(models::InvalidRequestError), Status401(models::ErrorResponse), Status403(models::ErrorResponse), - Status404(models::ErrorResponse), + Status404(models::NamespaceNotFoundError), Status406(models::ErrorResponse), Status503(models::ErrorResponse), - Status5XX(models::ErrorResponse), + Status5XX(models::UnknownError), UnknownValue(serde_json::Value), } @@ -273,12 +274,12 @@ pub enum ListNamespacesError { #[derive(Debug, Clone, Serialize, Deserialize)] #[serde(untagged)] pub enum ListTableIndicesError { - Status400(models::ErrorResponse), + Status400(models::InvalidRequestError), Status401(models::ErrorResponse), Status403(models::ErrorResponse), - Status404(models::ErrorResponse), + Status404(models::TableNotFoundError), Status503(models::ErrorResponse), - Status5XX(models::ErrorResponse), + Status5XX(models::UnknownError), UnknownValue(serde_json::Value), } @@ -289,7 +290,7 @@ pub enum ListTableTagsError { Status400(models::ErrorResponse), Status401(models::ErrorResponse), Status403(models::ErrorResponse), - Status404(models::ErrorResponse), + Status404(models::TableNotFoundError), Status503(models::ErrorResponse), Status5XX(models::ErrorResponse), UnknownValue(serde_json::Value), @@ -299,12 +300,12 @@ pub enum ListTableTagsError { #[derive(Debug, Clone, Serialize, Deserialize)] #[serde(untagged)] pub enum ListTableVersionsError { - Status400(models::ErrorResponse), + Status400(models::InvalidRequestError), Status401(models::ErrorResponse), Status403(models::ErrorResponse), - Status404(models::ErrorResponse), + Status404(models::TableNotFoundError), Status503(models::ErrorResponse), - Status5XX(models::ErrorResponse), + Status5XX(models::UnknownError), UnknownValue(serde_json::Value), } @@ -312,13 +313,13 @@ pub enum ListTableVersionsError { #[derive(Debug, Clone, Serialize, Deserialize)] #[serde(untagged)] pub enum ListTablesError { - Status400(models::ErrorResponse), + Status400(models::InvalidRequestError), Status401(models::ErrorResponse), Status403(models::ErrorResponse), - Status404(models::ErrorResponse), + Status404(models::NamespaceNotFoundError), Status406(models::ErrorResponse), Status503(models::ErrorResponse), - Status5XX(models::ErrorResponse), + Status5XX(models::UnknownError), UnknownValue(serde_json::Value), } @@ -326,12 +327,12 @@ pub enum ListTablesError { #[derive(Debug, Clone, Serialize, Deserialize)] #[serde(untagged)] pub enum NamespaceExistsError { - Status400(models::ErrorResponse), + Status400(models::InvalidRequestError), Status401(models::ErrorResponse), Status403(models::ErrorResponse), - Status404(models::ErrorResponse), + Status404(models::NamespaceNotFoundError), Status503(models::ErrorResponse), - Status5XX(models::ErrorResponse), + Status5XX(models::UnknownError), UnknownValue(serde_json::Value), } @@ -339,14 +340,14 @@ pub enum NamespaceExistsError { #[derive(Debug, Clone, Serialize, Deserialize)] #[serde(untagged)] pub enum RegisterTableError { - Status400(models::ErrorResponse), + Status400(models::InvalidRequestError), Status401(models::ErrorResponse), Status403(models::ErrorResponse), - Status404(models::ErrorResponse), + Status404(models::ParentNamespaceNotFoundError), Status406(models::ErrorResponse), - Status409(models::ErrorResponse), + Status409(models::TableAlreadyExistsError), Status503(models::ErrorResponse), - Status5XX(models::ErrorResponse), + Status5XX(models::UnknownError), UnknownValue(serde_json::Value), } @@ -354,12 +355,12 @@ pub enum RegisterTableError { #[derive(Debug, Clone, Serialize, Deserialize)] #[serde(untagged)] pub enum RestoreTableError { - Status400(models::ErrorResponse), + Status400(models::InvalidRequestError), Status401(models::ErrorResponse), Status403(models::ErrorResponse), - Status404(models::ErrorResponse), + Status404(models::RestoreTable404Response), Status503(models::ErrorResponse), - Status5XX(models::ErrorResponse), + Status5XX(models::UnknownError), UnknownValue(serde_json::Value), } @@ -367,12 +368,12 @@ pub enum RestoreTableError { #[derive(Debug, Clone, Serialize, Deserialize)] #[serde(untagged)] pub enum TableExistsError { - Status400(models::ErrorResponse), + Status400(models::InvalidRequestError), Status401(models::ErrorResponse), Status403(models::ErrorResponse), - Status404(models::ErrorResponse), + Status404(models::TableNotFoundError), Status503(models::ErrorResponse), - Status5XX(models::ErrorResponse), + Status5XX(models::UnknownError), UnknownValue(serde_json::Value), } @@ -383,7 +384,7 @@ pub enum UpdateTableTagError { Status400(models::ErrorResponse), Status401(models::ErrorResponse), Status403(models::ErrorResponse), - Status404(models::ErrorResponse), + Status404(models::UpdateTableTag404Response), Status503(models::ErrorResponse), Status5XX(models::ErrorResponse), UnknownValue(serde_json::Value), diff --git a/rust/lance-namespace-reqwest-client/src/apis/namespace_api.rs b/rust/lance-namespace-reqwest-client/src/apis/namespace_api.rs index 634bb7fd..0ef7982f 100644 --- a/rust/lance-namespace-reqwest-client/src/apis/namespace_api.rs +++ b/rust/lance-namespace-reqwest-client/src/apis/namespace_api.rs @@ -19,14 +19,14 @@ use super::{Error, configuration, ContentType}; #[derive(Debug, Clone, Serialize, Deserialize)] #[serde(untagged)] pub enum CreateNamespaceError { - Status400(models::ErrorResponse), + Status400(models::CreateNamespace400Response), Status401(models::ErrorResponse), Status403(models::ErrorResponse), - Status404(models::ErrorResponse), + Status404(models::ParentNamespaceNotFoundError), Status406(models::ErrorResponse), - Status409(models::ErrorResponse), + Status409(models::NamespaceAlreadyExistsError), Status503(models::ErrorResponse), - Status5XX(models::ErrorResponse), + Status5XX(models::UnknownError), UnknownValue(serde_json::Value), } @@ -34,12 +34,12 @@ pub enum CreateNamespaceError { #[derive(Debug, Clone, Serialize, Deserialize)] #[serde(untagged)] pub enum DescribeNamespaceError { - Status400(models::ErrorResponse), + Status400(models::InvalidRequestError), Status401(models::ErrorResponse), Status403(models::ErrorResponse), - Status404(models::ErrorResponse), + Status404(models::NamespaceNotFoundError), Status503(models::ErrorResponse), - Status5XX(models::ErrorResponse), + Status5XX(models::UnknownError), UnknownValue(serde_json::Value), } @@ -47,13 +47,13 @@ pub enum DescribeNamespaceError { #[derive(Debug, Clone, Serialize, Deserialize)] #[serde(untagged)] pub enum DropNamespaceError { - Status400(models::ErrorResponse), + Status400(models::InvalidRequestError), Status401(models::ErrorResponse), Status403(models::ErrorResponse), - Status404(models::ErrorResponse), - Status409(models::ErrorResponse), + Status404(models::NamespaceNotFoundError), + Status409(models::NamespaceNotEmptyError), Status503(models::ErrorResponse), - Status5XX(models::ErrorResponse), + Status5XX(models::UnknownError), UnknownValue(serde_json::Value), } @@ -61,13 +61,13 @@ pub enum DropNamespaceError { #[derive(Debug, Clone, Serialize, Deserialize)] #[serde(untagged)] pub enum ListNamespacesError { - Status400(models::ErrorResponse), + Status400(models::InvalidRequestError), Status401(models::ErrorResponse), Status403(models::ErrorResponse), - Status404(models::ErrorResponse), + Status404(models::NamespaceNotFoundError), Status406(models::ErrorResponse), Status503(models::ErrorResponse), - Status5XX(models::ErrorResponse), + Status5XX(models::UnknownError), UnknownValue(serde_json::Value), } @@ -75,13 +75,13 @@ pub enum ListNamespacesError { #[derive(Debug, Clone, Serialize, Deserialize)] #[serde(untagged)] pub enum ListTablesError { - Status400(models::ErrorResponse), + Status400(models::InvalidRequestError), Status401(models::ErrorResponse), Status403(models::ErrorResponse), - Status404(models::ErrorResponse), + Status404(models::NamespaceNotFoundError), Status406(models::ErrorResponse), Status503(models::ErrorResponse), - Status5XX(models::ErrorResponse), + Status5XX(models::UnknownError), UnknownValue(serde_json::Value), } @@ -89,12 +89,12 @@ pub enum ListTablesError { #[derive(Debug, Clone, Serialize, Deserialize)] #[serde(untagged)] pub enum NamespaceExistsError { - Status400(models::ErrorResponse), + Status400(models::InvalidRequestError), Status401(models::ErrorResponse), Status403(models::ErrorResponse), - Status404(models::ErrorResponse), + Status404(models::NamespaceNotFoundError), Status503(models::ErrorResponse), - Status5XX(models::ErrorResponse), + Status5XX(models::UnknownError), UnknownValue(serde_json::Value), } diff --git a/rust/lance-namespace-reqwest-client/src/apis/table_api.rs b/rust/lance-namespace-reqwest-client/src/apis/table_api.rs index 40d9bcd2..ac53c07f 100644 --- a/rust/lance-namespace-reqwest-client/src/apis/table_api.rs +++ b/rust/lance-namespace-reqwest-client/src/apis/table_api.rs @@ -19,12 +19,12 @@ use super::{Error, configuration, ContentType}; #[derive(Debug, Clone, Serialize, Deserialize)] #[serde(untagged)] pub enum AlterTableAddColumnsError { - Status400(models::ErrorResponse), + Status400(models::AlterTableAddColumns400Response), Status401(models::ErrorResponse), Status403(models::ErrorResponse), - Status404(models::ErrorResponse), + Status404(models::TableNotFoundError), Status503(models::ErrorResponse), - Status5XX(models::ErrorResponse), + Status5XX(models::UnknownError), UnknownValue(serde_json::Value), } @@ -32,12 +32,12 @@ pub enum AlterTableAddColumnsError { #[derive(Debug, Clone, Serialize, Deserialize)] #[serde(untagged)] pub enum AlterTableAlterColumnsError { - Status400(models::ErrorResponse), + Status400(models::AlterTableAlterColumns400Response), Status401(models::ErrorResponse), Status403(models::ErrorResponse), - Status404(models::ErrorResponse), + Status404(models::TableNotFoundError), Status503(models::ErrorResponse), - Status5XX(models::ErrorResponse), + Status5XX(models::UnknownError), UnknownValue(serde_json::Value), } @@ -45,12 +45,12 @@ pub enum AlterTableAlterColumnsError { #[derive(Debug, Clone, Serialize, Deserialize)] #[serde(untagged)] pub enum AlterTableDropColumnsError { - Status400(models::ErrorResponse), + Status400(models::AlterTableAlterColumns400Response), Status401(models::ErrorResponse), Status403(models::ErrorResponse), - Status404(models::ErrorResponse), + Status404(models::TableNotFoundError), Status503(models::ErrorResponse), - Status5XX(models::ErrorResponse), + Status5XX(models::UnknownError), UnknownValue(serde_json::Value), } @@ -58,12 +58,12 @@ pub enum AlterTableDropColumnsError { #[derive(Debug, Clone, Serialize, Deserialize)] #[serde(untagged)] pub enum AnalyzeTableQueryPlanError { - Status400(models::ErrorResponse), + Status400(models::DeleteFromTable400Response), Status401(models::ErrorResponse), Status403(models::ErrorResponse), - Status404(models::ErrorResponse), + Status404(models::TableNotFoundError), Status503(models::ErrorResponse), - Status5XX(models::ErrorResponse), + Status5XX(models::UnknownError), UnknownValue(serde_json::Value), } @@ -71,12 +71,12 @@ pub enum AnalyzeTableQueryPlanError { #[derive(Debug, Clone, Serialize, Deserialize)] #[serde(untagged)] pub enum CountTableRowsError { - Status400(models::ErrorResponse), + Status400(models::DeleteFromTable400Response), Status401(models::ErrorResponse), Status403(models::ErrorResponse), - Status404(models::ErrorResponse), + Status404(models::TableNotFoundError), Status503(models::ErrorResponse), - Status5XX(models::ErrorResponse), + Status5XX(models::UnknownError), UnknownValue(serde_json::Value), } @@ -87,8 +87,8 @@ pub enum CreateEmptyTableError { Status400(models::ErrorResponse), Status401(models::ErrorResponse), Status403(models::ErrorResponse), - Status404(models::ErrorResponse), - Status409(models::ErrorResponse), + Status404(models::ParentNamespaceNotFoundError), + Status409(models::TableAlreadyExistsError), Status503(models::ErrorResponse), Status5XX(models::ErrorResponse), UnknownValue(serde_json::Value), @@ -98,12 +98,13 @@ pub enum CreateEmptyTableError { #[derive(Debug, Clone, Serialize, Deserialize)] #[serde(untagged)] pub enum CreateTableError { - Status400(models::ErrorResponse), + Status400(models::CreateTable400Response), Status401(models::ErrorResponse), Status403(models::ErrorResponse), - Status404(models::ErrorResponse), + Status404(models::ParentNamespaceNotFoundError), + Status409(models::TableAlreadyExistsError), Status503(models::ErrorResponse), - Status5XX(models::ErrorResponse), + Status5XX(models::UnknownError), UnknownValue(serde_json::Value), } @@ -111,12 +112,13 @@ pub enum CreateTableError { #[derive(Debug, Clone, Serialize, Deserialize)] #[serde(untagged)] pub enum CreateTableIndexError { - Status400(models::ErrorResponse), + Status400(models::CreateTableIndex400Response), Status401(models::ErrorResponse), Status403(models::ErrorResponse), - Status404(models::ErrorResponse), + Status404(models::TableNotFoundError), + Status409(models::TableIndexAlreadyExistsError), Status503(models::ErrorResponse), - Status5XX(models::ErrorResponse), + Status5XX(models::UnknownError), UnknownValue(serde_json::Value), } @@ -127,8 +129,8 @@ pub enum CreateTableTagError { Status400(models::ErrorResponse), Status401(models::ErrorResponse), Status403(models::ErrorResponse), - Status404(models::ErrorResponse), - Status409(models::ErrorResponse), + Status404(models::RestoreTable404Response), + Status409(models::TableTagAlreadyExistsError), Status503(models::ErrorResponse), Status5XX(models::ErrorResponse), UnknownValue(serde_json::Value), @@ -138,12 +140,12 @@ pub enum CreateTableTagError { #[derive(Debug, Clone, Serialize, Deserialize)] #[serde(untagged)] pub enum DeleteFromTableError { - Status400(models::ErrorResponse), + Status400(models::DeleteFromTable400Response), Status401(models::ErrorResponse), Status403(models::ErrorResponse), - Status404(models::ErrorResponse), + Status404(models::TableNotFoundError), Status503(models::ErrorResponse), - Status5XX(models::ErrorResponse), + Status5XX(models::UnknownError), UnknownValue(serde_json::Value), } @@ -154,7 +156,7 @@ pub enum DeleteTableTagError { Status400(models::ErrorResponse), Status401(models::ErrorResponse), Status403(models::ErrorResponse), - Status404(models::ErrorResponse), + Status404(models::GetTableTagVersion404Response), Status503(models::ErrorResponse), Status5XX(models::ErrorResponse), UnknownValue(serde_json::Value), @@ -164,12 +166,12 @@ pub enum DeleteTableTagError { #[derive(Debug, Clone, Serialize, Deserialize)] #[serde(untagged)] pub enum DeregisterTableError { - Status400(models::ErrorResponse), + Status400(models::InvalidRequestError), Status401(models::ErrorResponse), Status403(models::ErrorResponse), - Status404(models::ErrorResponse), + Status404(models::TableNotFoundError), Status503(models::ErrorResponse), - Status5XX(models::ErrorResponse), + Status5XX(models::UnknownError), UnknownValue(serde_json::Value), } @@ -177,12 +179,12 @@ pub enum DeregisterTableError { #[derive(Debug, Clone, Serialize, Deserialize)] #[serde(untagged)] pub enum DescribeTableError { - Status400(models::ErrorResponse), + Status400(models::InvalidRequestError), Status401(models::ErrorResponse), Status403(models::ErrorResponse), - Status404(models::ErrorResponse), + Status404(models::TableNotFoundError), Status503(models::ErrorResponse), - Status5XX(models::ErrorResponse), + Status5XX(models::UnknownError), UnknownValue(serde_json::Value), } @@ -190,12 +192,12 @@ pub enum DescribeTableError { #[derive(Debug, Clone, Serialize, Deserialize)] #[serde(untagged)] pub enum DescribeTableIndexStatsError { - Status400(models::ErrorResponse), + Status400(models::InvalidRequestError), Status401(models::ErrorResponse), Status403(models::ErrorResponse), - Status404(models::ErrorResponse), + Status404(models::DescribeTableIndexStats404Response), Status503(models::ErrorResponse), - Status5XX(models::ErrorResponse), + Status5XX(models::UnknownError), UnknownValue(serde_json::Value), } @@ -203,12 +205,12 @@ pub enum DescribeTableIndexStatsError { #[derive(Debug, Clone, Serialize, Deserialize)] #[serde(untagged)] pub enum DropTableError { - Status400(models::ErrorResponse), + Status400(models::InvalidRequestError), Status401(models::ErrorResponse), Status403(models::ErrorResponse), - Status404(models::ErrorResponse), + Status404(models::TableNotFoundError), Status503(models::ErrorResponse), - Status5XX(models::ErrorResponse), + Status5XX(models::UnknownError), UnknownValue(serde_json::Value), } @@ -219,7 +221,7 @@ pub enum DropTableIndexError { Status400(models::ErrorResponse), Status401(models::ErrorResponse), Status403(models::ErrorResponse), - Status404(models::ErrorResponse), + Status404(models::DescribeTableIndexStats404Response), Status503(models::ErrorResponse), Status5XX(models::ErrorResponse), UnknownValue(serde_json::Value), @@ -229,12 +231,12 @@ pub enum DropTableIndexError { #[derive(Debug, Clone, Serialize, Deserialize)] #[serde(untagged)] pub enum ExplainTableQueryPlanError { - Status400(models::ErrorResponse), + Status400(models::DeleteFromTable400Response), Status401(models::ErrorResponse), Status403(models::ErrorResponse), - Status404(models::ErrorResponse), + Status404(models::TableNotFoundError), Status503(models::ErrorResponse), - Status5XX(models::ErrorResponse), + Status5XX(models::UnknownError), UnknownValue(serde_json::Value), } @@ -242,12 +244,12 @@ pub enum ExplainTableQueryPlanError { #[derive(Debug, Clone, Serialize, Deserialize)] #[serde(untagged)] pub enum GetTableStatsError { - Status400(models::ErrorResponse), + Status400(models::InvalidRequestError), Status401(models::ErrorResponse), Status403(models::ErrorResponse), - Status404(models::ErrorResponse), + Status404(models::TableNotFoundError), Status503(models::ErrorResponse), - Status5XX(models::ErrorResponse), + Status5XX(models::UnknownError), UnknownValue(serde_json::Value), } @@ -258,7 +260,7 @@ pub enum GetTableTagVersionError { Status400(models::ErrorResponse), Status401(models::ErrorResponse), Status403(models::ErrorResponse), - Status404(models::ErrorResponse), + Status404(models::GetTableTagVersion404Response), Status503(models::ErrorResponse), Status5XX(models::ErrorResponse), UnknownValue(serde_json::Value), @@ -268,12 +270,12 @@ pub enum GetTableTagVersionError { #[derive(Debug, Clone, Serialize, Deserialize)] #[serde(untagged)] pub enum InsertIntoTableError { - Status400(models::ErrorResponse), + Status400(models::InsertIntoTable400Response), Status401(models::ErrorResponse), Status403(models::ErrorResponse), - Status404(models::ErrorResponse), + Status404(models::TableNotFoundError), Status503(models::ErrorResponse), - Status5XX(models::ErrorResponse), + Status5XX(models::UnknownError), UnknownValue(serde_json::Value), } @@ -281,12 +283,12 @@ pub enum InsertIntoTableError { #[derive(Debug, Clone, Serialize, Deserialize)] #[serde(untagged)] pub enum ListTableIndicesError { - Status400(models::ErrorResponse), + Status400(models::InvalidRequestError), Status401(models::ErrorResponse), Status403(models::ErrorResponse), - Status404(models::ErrorResponse), + Status404(models::TableNotFoundError), Status503(models::ErrorResponse), - Status5XX(models::ErrorResponse), + Status5XX(models::UnknownError), UnknownValue(serde_json::Value), } @@ -297,7 +299,7 @@ pub enum ListTableTagsError { Status400(models::ErrorResponse), Status401(models::ErrorResponse), Status403(models::ErrorResponse), - Status404(models::ErrorResponse), + Status404(models::TableNotFoundError), Status503(models::ErrorResponse), Status5XX(models::ErrorResponse), UnknownValue(serde_json::Value), @@ -307,12 +309,12 @@ pub enum ListTableTagsError { #[derive(Debug, Clone, Serialize, Deserialize)] #[serde(untagged)] pub enum ListTableVersionsError { - Status400(models::ErrorResponse), + Status400(models::InvalidRequestError), Status401(models::ErrorResponse), Status403(models::ErrorResponse), - Status404(models::ErrorResponse), + Status404(models::TableNotFoundError), Status503(models::ErrorResponse), - Status5XX(models::ErrorResponse), + Status5XX(models::UnknownError), UnknownValue(serde_json::Value), } @@ -320,13 +322,13 @@ pub enum ListTableVersionsError { #[derive(Debug, Clone, Serialize, Deserialize)] #[serde(untagged)] pub enum ListTablesError { - Status400(models::ErrorResponse), + Status400(models::InvalidRequestError), Status401(models::ErrorResponse), Status403(models::ErrorResponse), - Status404(models::ErrorResponse), + Status404(models::NamespaceNotFoundError), Status406(models::ErrorResponse), Status503(models::ErrorResponse), - Status5XX(models::ErrorResponse), + Status5XX(models::UnknownError), UnknownValue(serde_json::Value), } @@ -334,12 +336,12 @@ pub enum ListTablesError { #[derive(Debug, Clone, Serialize, Deserialize)] #[serde(untagged)] pub enum MergeInsertIntoTableError { - Status400(models::ErrorResponse), + Status400(models::MergeInsertIntoTable400Response), Status401(models::ErrorResponse), Status403(models::ErrorResponse), - Status404(models::ErrorResponse), + Status404(models::TableNotFoundError), Status503(models::ErrorResponse), - Status5XX(models::ErrorResponse), + Status5XX(models::UnknownError), UnknownValue(serde_json::Value), } @@ -347,12 +349,12 @@ pub enum MergeInsertIntoTableError { #[derive(Debug, Clone, Serialize, Deserialize)] #[serde(untagged)] pub enum QueryTableError { - Status400(models::ErrorResponse), + Status400(models::DeleteFromTable400Response), Status401(models::ErrorResponse), Status403(models::ErrorResponse), - Status404(models::ErrorResponse), + Status404(models::TableNotFoundError), Status503(models::ErrorResponse), - Status5XX(models::ErrorResponse), + Status5XX(models::UnknownError), UnknownValue(serde_json::Value), } @@ -360,14 +362,14 @@ pub enum QueryTableError { #[derive(Debug, Clone, Serialize, Deserialize)] #[serde(untagged)] pub enum RegisterTableError { - Status400(models::ErrorResponse), + Status400(models::InvalidRequestError), Status401(models::ErrorResponse), Status403(models::ErrorResponse), - Status404(models::ErrorResponse), + Status404(models::ParentNamespaceNotFoundError), Status406(models::ErrorResponse), - Status409(models::ErrorResponse), + Status409(models::TableAlreadyExistsError), Status503(models::ErrorResponse), - Status5XX(models::ErrorResponse), + Status5XX(models::UnknownError), UnknownValue(serde_json::Value), } @@ -375,12 +377,12 @@ pub enum RegisterTableError { #[derive(Debug, Clone, Serialize, Deserialize)] #[serde(untagged)] pub enum RestoreTableError { - Status400(models::ErrorResponse), + Status400(models::InvalidRequestError), Status401(models::ErrorResponse), Status403(models::ErrorResponse), - Status404(models::ErrorResponse), + Status404(models::RestoreTable404Response), Status503(models::ErrorResponse), - Status5XX(models::ErrorResponse), + Status5XX(models::UnknownError), UnknownValue(serde_json::Value), } @@ -388,12 +390,12 @@ pub enum RestoreTableError { #[derive(Debug, Clone, Serialize, Deserialize)] #[serde(untagged)] pub enum TableExistsError { - Status400(models::ErrorResponse), + Status400(models::InvalidRequestError), Status401(models::ErrorResponse), Status403(models::ErrorResponse), - Status404(models::ErrorResponse), + Status404(models::TableNotFoundError), Status503(models::ErrorResponse), - Status5XX(models::ErrorResponse), + Status5XX(models::UnknownError), UnknownValue(serde_json::Value), } @@ -401,12 +403,12 @@ pub enum TableExistsError { #[derive(Debug, Clone, Serialize, Deserialize)] #[serde(untagged)] pub enum UpdateTableError { - Status400(models::ErrorResponse), + Status400(models::UpdateTable400Response), Status401(models::ErrorResponse), Status403(models::ErrorResponse), - Status404(models::ErrorResponse), + Status404(models::TableNotFoundError), Status503(models::ErrorResponse), - Status5XX(models::ErrorResponse), + Status5XX(models::UnknownError), UnknownValue(serde_json::Value), } @@ -417,7 +419,7 @@ pub enum UpdateTableTagError { Status400(models::ErrorResponse), Status401(models::ErrorResponse), Status403(models::ErrorResponse), - Status404(models::ErrorResponse), + Status404(models::UpdateTableTag404Response), Status503(models::ErrorResponse), Status5XX(models::ErrorResponse), UnknownValue(serde_json::Value), diff --git a/rust/lance-namespace-reqwest-client/src/apis/tag_api.rs b/rust/lance-namespace-reqwest-client/src/apis/tag_api.rs index 512a3014..d7dab8d9 100644 --- a/rust/lance-namespace-reqwest-client/src/apis/tag_api.rs +++ b/rust/lance-namespace-reqwest-client/src/apis/tag_api.rs @@ -22,8 +22,8 @@ pub enum CreateTableTagError { Status400(models::ErrorResponse), Status401(models::ErrorResponse), Status403(models::ErrorResponse), - Status404(models::ErrorResponse), - Status409(models::ErrorResponse), + Status404(models::RestoreTable404Response), + Status409(models::TableTagAlreadyExistsError), Status503(models::ErrorResponse), Status5XX(models::ErrorResponse), UnknownValue(serde_json::Value), @@ -36,7 +36,7 @@ pub enum DeleteTableTagError { Status400(models::ErrorResponse), Status401(models::ErrorResponse), Status403(models::ErrorResponse), - Status404(models::ErrorResponse), + Status404(models::GetTableTagVersion404Response), Status503(models::ErrorResponse), Status5XX(models::ErrorResponse), UnknownValue(serde_json::Value), @@ -49,7 +49,7 @@ pub enum GetTableTagVersionError { Status400(models::ErrorResponse), Status401(models::ErrorResponse), Status403(models::ErrorResponse), - Status404(models::ErrorResponse), + Status404(models::GetTableTagVersion404Response), Status503(models::ErrorResponse), Status5XX(models::ErrorResponse), UnknownValue(serde_json::Value), @@ -62,7 +62,7 @@ pub enum ListTableTagsError { Status400(models::ErrorResponse), Status401(models::ErrorResponse), Status403(models::ErrorResponse), - Status404(models::ErrorResponse), + Status404(models::TableNotFoundError), Status503(models::ErrorResponse), Status5XX(models::ErrorResponse), UnknownValue(serde_json::Value), @@ -75,7 +75,7 @@ pub enum UpdateTableTagError { Status400(models::ErrorResponse), Status401(models::ErrorResponse), Status403(models::ErrorResponse), - Status404(models::ErrorResponse), + Status404(models::UpdateTableTag404Response), Status503(models::ErrorResponse), Status5XX(models::ErrorResponse), UnknownValue(serde_json::Value), diff --git a/rust/lance-namespace-reqwest-client/src/apis/transaction_api.rs b/rust/lance-namespace-reqwest-client/src/apis/transaction_api.rs index a05d2ff3..f4353492 100644 --- a/rust/lance-namespace-reqwest-client/src/apis/transaction_api.rs +++ b/rust/lance-namespace-reqwest-client/src/apis/transaction_api.rs @@ -22,8 +22,8 @@ pub enum AlterTransactionError { Status400(models::ErrorResponse), Status401(models::ErrorResponse), Status403(models::ErrorResponse), - Status404(models::ErrorResponse), - Status409(models::ErrorResponse), + Status404(models::TransactionNotFoundError), + Status409(models::TransactionConflictError), Status503(models::ErrorResponse), Status5XX(models::ErrorResponse), UnknownValue(serde_json::Value), @@ -36,7 +36,7 @@ pub enum DescribeTransactionError { Status400(models::ErrorResponse), Status401(models::ErrorResponse), Status403(models::ErrorResponse), - Status404(models::ErrorResponse), + Status404(models::TransactionNotFoundError), Status503(models::ErrorResponse), Status5XX(models::ErrorResponse), UnknownValue(serde_json::Value), diff --git a/rust/lance-namespace-reqwest-client/src/models/alter_table_add_columns_400_response.rs b/rust/lance-namespace-reqwest-client/src/models/alter_table_add_columns_400_response.rs new file mode 100644 index 00000000..f35927c3 --- /dev/null +++ b/rust/lance-namespace-reqwest-client/src/models/alter_table_add_columns_400_response.rs @@ -0,0 +1,55 @@ +/* + * Lance Namespace Specification + * + * This OpenAPI specification is a part of the Lance namespace specification. It contains 2 parts: The `components/schemas`, `components/responses`, `components/examples`, `tags` sections define the request and response shape for each operation in a Lance Namespace across all implementations. See https://lance.org/format/namespace/operations for more details. The `servers`, `security`, `paths`, `components/parameters` sections are for the Lance REST Namespace implementation, which defines a complete REST server that can work with Lance datasets. See https://lance.org/format/namespace/rest for more details. + * + * The version of the OpenAPI document: 1.0.0 + * + * Generated by: https://openapi-generator.tech + */ + +use crate::models; +use serde::{Deserialize, Serialize}; + +#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] +#[serde(untagged)] +pub enum AlterTableAddColumns400Response { + InvalidRequestError(Box), + InvalidTableSchemaError(Box), + InvalidSqlExpressionError(Box), +} + +impl Default for AlterTableAddColumns400Response { + fn default() -> Self { + Self::InvalidRequestError(Default::default()) + } +} +/// HTTP status code +#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)] +pub enum Code { + #[serde(rename = "400")] + Variant400, +} + +impl Default for Code { + fn default() -> Code { + Self::Variant400 + } +} +/// Error type identifier +#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)] +pub enum Type { + #[serde(rename = "lance-namespace:601")] + LanceNamespaceColon601, + #[serde(rename = "lance-namespace:205")] + LanceNamespaceColon205, + #[serde(rename = "lance-namespace:602")] + LanceNamespaceColon602, +} + +impl Default for Type { + fn default() -> Type { + Self::LanceNamespaceColon601 + } +} + diff --git a/rust/lance-namespace-reqwest-client/src/models/alter_table_alter_columns_400_response.rs b/rust/lance-namespace-reqwest-client/src/models/alter_table_alter_columns_400_response.rs new file mode 100644 index 00000000..1826e1e0 --- /dev/null +++ b/rust/lance-namespace-reqwest-client/src/models/alter_table_alter_columns_400_response.rs @@ -0,0 +1,52 @@ +/* + * Lance Namespace Specification + * + * This OpenAPI specification is a part of the Lance namespace specification. It contains 2 parts: The `components/schemas`, `components/responses`, `components/examples`, `tags` sections define the request and response shape for each operation in a Lance Namespace across all implementations. See https://lance.org/format/namespace/operations for more details. The `servers`, `security`, `paths`, `components/parameters` sections are for the Lance REST Namespace implementation, which defines a complete REST server that can work with Lance datasets. See https://lance.org/format/namespace/rest for more details. + * + * The version of the OpenAPI document: 1.0.0 + * + * Generated by: https://openapi-generator.tech + */ + +use crate::models; +use serde::{Deserialize, Serialize}; + +#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] +#[serde(untagged)] +pub enum AlterTableAlterColumns400Response { + InvalidRequestError(Box), + TableColumnNotFoundError(Box), +} + +impl Default for AlterTableAlterColumns400Response { + fn default() -> Self { + Self::InvalidRequestError(Default::default()) + } +} +/// HTTP status code +#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)] +pub enum Code { + #[serde(rename = "400")] + Variant400, +} + +impl Default for Code { + fn default() -> Code { + Self::Variant400 + } +} +/// Error type identifier +#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)] +pub enum Type { + #[serde(rename = "lance-namespace:601")] + LanceNamespaceColon601, + #[serde(rename = "lance-namespace:204")] + LanceNamespaceColon204, +} + +impl Default for Type { + fn default() -> Type { + Self::LanceNamespaceColon601 + } +} + diff --git a/rust/lance-namespace-reqwest-client/src/models/create_namespace_400_response.rs b/rust/lance-namespace-reqwest-client/src/models/create_namespace_400_response.rs new file mode 100644 index 00000000..d9495be7 --- /dev/null +++ b/rust/lance-namespace-reqwest-client/src/models/create_namespace_400_response.rs @@ -0,0 +1,52 @@ +/* + * Lance Namespace Specification + * + * This OpenAPI specification is a part of the Lance namespace specification. It contains 2 parts: The `components/schemas`, `components/responses`, `components/examples`, `tags` sections define the request and response shape for each operation in a Lance Namespace across all implementations. See https://lance.org/format/namespace/operations for more details. The `servers`, `security`, `paths`, `components/parameters` sections are for the Lance REST Namespace implementation, which defines a complete REST server that can work with Lance datasets. See https://lance.org/format/namespace/rest for more details. + * + * The version of the OpenAPI document: 1.0.0 + * + * Generated by: https://openapi-generator.tech + */ + +use crate::models; +use serde::{Deserialize, Serialize}; + +#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] +#[serde(untagged)] +pub enum CreateNamespace400Response { + InvalidRequestError(Box), + InvalidIdentifierError(Box), +} + +impl Default for CreateNamespace400Response { + fn default() -> Self { + Self::InvalidRequestError(Default::default()) + } +} +/// HTTP status code +#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)] +pub enum Code { + #[serde(rename = "400")] + Variant400, +} + +impl Default for Code { + fn default() -> Code { + Self::Variant400 + } +} +/// Error type identifier +#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)] +pub enum Type { + #[serde(rename = "lance-namespace:601")] + LanceNamespaceColon601, + #[serde(rename = "lance-namespace:603")] + LanceNamespaceColon603, +} + +impl Default for Type { + fn default() -> Type { + Self::LanceNamespaceColon601 + } +} + diff --git a/rust/lance-namespace-reqwest-client/src/models/create_table_400_response.rs b/rust/lance-namespace-reqwest-client/src/models/create_table_400_response.rs new file mode 100644 index 00000000..2761cbc3 --- /dev/null +++ b/rust/lance-namespace-reqwest-client/src/models/create_table_400_response.rs @@ -0,0 +1,52 @@ +/* + * Lance Namespace Specification + * + * This OpenAPI specification is a part of the Lance namespace specification. It contains 2 parts: The `components/schemas`, `components/responses`, `components/examples`, `tags` sections define the request and response shape for each operation in a Lance Namespace across all implementations. See https://lance.org/format/namespace/operations for more details. The `servers`, `security`, `paths`, `components/parameters` sections are for the Lance REST Namespace implementation, which defines a complete REST server that can work with Lance datasets. See https://lance.org/format/namespace/rest for more details. + * + * The version of the OpenAPI document: 1.0.0 + * + * Generated by: https://openapi-generator.tech + */ + +use crate::models; +use serde::{Deserialize, Serialize}; + +#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] +#[serde(untagged)] +pub enum CreateTable400Response { + InvalidRequestError(Box), + InvalidTableSchemaError(Box), +} + +impl Default for CreateTable400Response { + fn default() -> Self { + Self::InvalidRequestError(Default::default()) + } +} +/// HTTP status code +#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)] +pub enum Code { + #[serde(rename = "400")] + Variant400, +} + +impl Default for Code { + fn default() -> Code { + Self::Variant400 + } +} +/// Error type identifier +#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)] +pub enum Type { + #[serde(rename = "lance-namespace:601")] + LanceNamespaceColon601, + #[serde(rename = "lance-namespace:205")] + LanceNamespaceColon205, +} + +impl Default for Type { + fn default() -> Type { + Self::LanceNamespaceColon601 + } +} + diff --git a/rust/lance-namespace-reqwest-client/src/models/create_table_index_400_response.rs b/rust/lance-namespace-reqwest-client/src/models/create_table_index_400_response.rs new file mode 100644 index 00000000..39866f10 --- /dev/null +++ b/rust/lance-namespace-reqwest-client/src/models/create_table_index_400_response.rs @@ -0,0 +1,55 @@ +/* + * Lance Namespace Specification + * + * This OpenAPI specification is a part of the Lance namespace specification. It contains 2 parts: The `components/schemas`, `components/responses`, `components/examples`, `tags` sections define the request and response shape for each operation in a Lance Namespace across all implementations. See https://lance.org/format/namespace/operations for more details. The `servers`, `security`, `paths`, `components/parameters` sections are for the Lance REST Namespace implementation, which defines a complete REST server that can work with Lance datasets. See https://lance.org/format/namespace/rest for more details. + * + * The version of the OpenAPI document: 1.0.0 + * + * Generated by: https://openapi-generator.tech + */ + +use crate::models; +use serde::{Deserialize, Serialize}; + +#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] +#[serde(untagged)] +pub enum CreateTableIndex400Response { + InvalidRequestError(Box), + TableColumnNotFoundError(Box), + InvalidTableIndexConfigurationError(Box), +} + +impl Default for CreateTableIndex400Response { + fn default() -> Self { + Self::InvalidRequestError(Default::default()) + } +} +/// HTTP status code +#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)] +pub enum Code { + #[serde(rename = "400")] + Variant400, +} + +impl Default for Code { + fn default() -> Code { + Self::Variant400 + } +} +/// Error type identifier +#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)] +pub enum Type { + #[serde(rename = "lance-namespace:601")] + LanceNamespaceColon601, + #[serde(rename = "lance-namespace:204")] + LanceNamespaceColon204, + #[serde(rename = "lance-namespace:303")] + LanceNamespaceColon303, +} + +impl Default for Type { + fn default() -> Type { + Self::LanceNamespaceColon601 + } +} + diff --git a/rust/lance-namespace-reqwest-client/src/models/delete_from_table_400_response.rs b/rust/lance-namespace-reqwest-client/src/models/delete_from_table_400_response.rs new file mode 100644 index 00000000..0df0299b --- /dev/null +++ b/rust/lance-namespace-reqwest-client/src/models/delete_from_table_400_response.rs @@ -0,0 +1,52 @@ +/* + * Lance Namespace Specification + * + * This OpenAPI specification is a part of the Lance namespace specification. It contains 2 parts: The `components/schemas`, `components/responses`, `components/examples`, `tags` sections define the request and response shape for each operation in a Lance Namespace across all implementations. See https://lance.org/format/namespace/operations for more details. The `servers`, `security`, `paths`, `components/parameters` sections are for the Lance REST Namespace implementation, which defines a complete REST server that can work with Lance datasets. See https://lance.org/format/namespace/rest for more details. + * + * The version of the OpenAPI document: 1.0.0 + * + * Generated by: https://openapi-generator.tech + */ + +use crate::models; +use serde::{Deserialize, Serialize}; + +#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] +#[serde(untagged)] +pub enum DeleteFromTable400Response { + InvalidRequestError(Box), + InvalidSqlExpressionError(Box), +} + +impl Default for DeleteFromTable400Response { + fn default() -> Self { + Self::InvalidRequestError(Default::default()) + } +} +/// HTTP status code +#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)] +pub enum Code { + #[serde(rename = "400")] + Variant400, +} + +impl Default for Code { + fn default() -> Code { + Self::Variant400 + } +} +/// Error type identifier +#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)] +pub enum Type { + #[serde(rename = "lance-namespace:601")] + LanceNamespaceColon601, + #[serde(rename = "lance-namespace:602")] + LanceNamespaceColon602, +} + +impl Default for Type { + fn default() -> Type { + Self::LanceNamespaceColon601 + } +} + diff --git a/rust/lance-namespace-reqwest-client/src/models/describe_table_index_stats_404_response.rs b/rust/lance-namespace-reqwest-client/src/models/describe_table_index_stats_404_response.rs new file mode 100644 index 00000000..0dc97a61 --- /dev/null +++ b/rust/lance-namespace-reqwest-client/src/models/describe_table_index_stats_404_response.rs @@ -0,0 +1,52 @@ +/* + * Lance Namespace Specification + * + * This OpenAPI specification is a part of the Lance namespace specification. It contains 2 parts: The `components/schemas`, `components/responses`, `components/examples`, `tags` sections define the request and response shape for each operation in a Lance Namespace across all implementations. See https://lance.org/format/namespace/operations for more details. The `servers`, `security`, `paths`, `components/parameters` sections are for the Lance REST Namespace implementation, which defines a complete REST server that can work with Lance datasets. See https://lance.org/format/namespace/rest for more details. + * + * The version of the OpenAPI document: 1.0.0 + * + * Generated by: https://openapi-generator.tech + */ + +use crate::models; +use serde::{Deserialize, Serialize}; + +#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] +#[serde(untagged)] +pub enum DescribeTableIndexStats404Response { + TableNotFoundError(Box), + TableIndexNotFoundError(Box), +} + +impl Default for DescribeTableIndexStats404Response { + fn default() -> Self { + Self::TableNotFoundError(Default::default()) + } +} +/// HTTP status code +#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)] +pub enum Code { + #[serde(rename = "404")] + Variant404, +} + +impl Default for Code { + fn default() -> Code { + Self::Variant404 + } +} +/// Error type identifier +#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)] +pub enum Type { + #[serde(rename = "lance-namespace:201")] + LanceNamespaceColon201, + #[serde(rename = "lance-namespace:301")] + LanceNamespaceColon301, +} + +impl Default for Type { + fn default() -> Type { + Self::LanceNamespaceColon201 + } +} + diff --git a/rust/lance-namespace-reqwest-client/src/models/get_table_tag_version_404_response.rs b/rust/lance-namespace-reqwest-client/src/models/get_table_tag_version_404_response.rs new file mode 100644 index 00000000..09d2b3e8 --- /dev/null +++ b/rust/lance-namespace-reqwest-client/src/models/get_table_tag_version_404_response.rs @@ -0,0 +1,52 @@ +/* + * Lance Namespace Specification + * + * This OpenAPI specification is a part of the Lance namespace specification. It contains 2 parts: The `components/schemas`, `components/responses`, `components/examples`, `tags` sections define the request and response shape for each operation in a Lance Namespace across all implementations. See https://lance.org/format/namespace/operations for more details. The `servers`, `security`, `paths`, `components/parameters` sections are for the Lance REST Namespace implementation, which defines a complete REST server that can work with Lance datasets. See https://lance.org/format/namespace/rest for more details. + * + * The version of the OpenAPI document: 1.0.0 + * + * Generated by: https://openapi-generator.tech + */ + +use crate::models; +use serde::{Deserialize, Serialize}; + +#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] +#[serde(untagged)] +pub enum GetTableTagVersion404Response { + TableNotFoundError(Box), + TableTagNotFoundError(Box), +} + +impl Default for GetTableTagVersion404Response { + fn default() -> Self { + Self::TableNotFoundError(Default::default()) + } +} +/// HTTP status code +#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)] +pub enum Code { + #[serde(rename = "404")] + Variant404, +} + +impl Default for Code { + fn default() -> Code { + Self::Variant404 + } +} +/// Error type identifier +#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)] +pub enum Type { + #[serde(rename = "lance-namespace:201")] + LanceNamespaceColon201, + #[serde(rename = "lance-namespace:401")] + LanceNamespaceColon401, +} + +impl Default for Type { + fn default() -> Type { + Self::LanceNamespaceColon201 + } +} + diff --git a/rust/lance-namespace-reqwest-client/src/models/insert_into_table_400_response.rs b/rust/lance-namespace-reqwest-client/src/models/insert_into_table_400_response.rs new file mode 100644 index 00000000..8646257c --- /dev/null +++ b/rust/lance-namespace-reqwest-client/src/models/insert_into_table_400_response.rs @@ -0,0 +1,52 @@ +/* + * Lance Namespace Specification + * + * This OpenAPI specification is a part of the Lance namespace specification. It contains 2 parts: The `components/schemas`, `components/responses`, `components/examples`, `tags` sections define the request and response shape for each operation in a Lance Namespace across all implementations. See https://lance.org/format/namespace/operations for more details. The `servers`, `security`, `paths`, `components/parameters` sections are for the Lance REST Namespace implementation, which defines a complete REST server that can work with Lance datasets. See https://lance.org/format/namespace/rest for more details. + * + * The version of the OpenAPI document: 1.0.0 + * + * Generated by: https://openapi-generator.tech + */ + +use crate::models; +use serde::{Deserialize, Serialize}; + +#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] +#[serde(untagged)] +pub enum InsertIntoTable400Response { + InvalidRequestError(Box), + TableSchemaMismatchError(Box), +} + +impl Default for InsertIntoTable400Response { + fn default() -> Self { + Self::InvalidRequestError(Default::default()) + } +} +/// HTTP status code +#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)] +pub enum Code { + #[serde(rename = "400")] + Variant400, +} + +impl Default for Code { + fn default() -> Code { + Self::Variant400 + } +} +/// Error type identifier +#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)] +pub enum Type { + #[serde(rename = "lance-namespace:601")] + LanceNamespaceColon601, + #[serde(rename = "lance-namespace:206")] + LanceNamespaceColon206, +} + +impl Default for Type { + fn default() -> Type { + Self::LanceNamespaceColon601 + } +} + diff --git a/rust/lance-namespace-reqwest-client/src/models/invalid_identifier_error.rs b/rust/lance-namespace-reqwest-client/src/models/invalid_identifier_error.rs new file mode 100644 index 00000000..a94c2da8 --- /dev/null +++ b/rust/lance-namespace-reqwest-client/src/models/invalid_identifier_error.rs @@ -0,0 +1,70 @@ +/* + * Lance Namespace Specification + * + * This OpenAPI specification is a part of the Lance namespace specification. It contains 2 parts: The `components/schemas`, `components/responses`, `components/examples`, `tags` sections define the request and response shape for each operation in a Lance Namespace across all implementations. See https://lance.org/format/namespace/operations for more details. The `servers`, `security`, `paths`, `components/parameters` sections are for the Lance REST Namespace implementation, which defines a complete REST server that can work with Lance datasets. See https://lance.org/format/namespace/rest for more details. + * + * The version of the OpenAPI document: 1.0.0 + * + * Generated by: https://openapi-generator.tech + */ + +use crate::models; +use serde::{Deserialize, Serialize}; + +/// InvalidIdentifierError : Invalid identifier format +#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] +pub struct InvalidIdentifierError { + /// Brief error message + #[serde(rename = "error")] + pub error: String, + /// HTTP status code + #[serde(rename = "code")] + pub code: Code, + /// Error type identifier + #[serde(rename = "type")] + pub r#type: Type, + /// Detailed error explanation + #[serde(rename = "detail", skip_serializing_if = "Option::is_none")] + pub detail: Option, + /// Specific occurrence identifier + #[serde(rename = "instance", skip_serializing_if = "Option::is_none")] + pub instance: Option, +} + +impl InvalidIdentifierError { + /// Invalid identifier format + pub fn new(error: String, code: Code, r#type: Type) -> InvalidIdentifierError { + InvalidIdentifierError { + error, + code, + r#type, + detail: None, + instance: None, + } + } +} +/// HTTP status code +#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)] +pub enum Code { + #[serde(rename = "400")] + Variant400, +} + +impl Default for Code { + fn default() -> Code { + Self::Variant400 + } +} +/// Error type identifier +#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)] +pub enum Type { + #[serde(rename = "lance-namespace:603")] + LanceNamespaceColon603, +} + +impl Default for Type { + fn default() -> Type { + Self::LanceNamespaceColon603 + } +} + diff --git a/rust/lance-namespace-reqwest-client/src/models/invalid_request_error.rs b/rust/lance-namespace-reqwest-client/src/models/invalid_request_error.rs new file mode 100644 index 00000000..ff9de08b --- /dev/null +++ b/rust/lance-namespace-reqwest-client/src/models/invalid_request_error.rs @@ -0,0 +1,70 @@ +/* + * Lance Namespace Specification + * + * This OpenAPI specification is a part of the Lance namespace specification. It contains 2 parts: The `components/schemas`, `components/responses`, `components/examples`, `tags` sections define the request and response shape for each operation in a Lance Namespace across all implementations. See https://lance.org/format/namespace/operations for more details. The `servers`, `security`, `paths`, `components/parameters` sections are for the Lance REST Namespace implementation, which defines a complete REST server that can work with Lance datasets. See https://lance.org/format/namespace/rest for more details. + * + * The version of the OpenAPI document: 1.0.0 + * + * Generated by: https://openapi-generator.tech + */ + +use crate::models; +use serde::{Deserialize, Serialize}; + +/// InvalidRequestError : Malformed request or validation failure +#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] +pub struct InvalidRequestError { + /// Brief error message + #[serde(rename = "error")] + pub error: String, + /// HTTP status code + #[serde(rename = "code")] + pub code: Code, + /// Error type identifier + #[serde(rename = "type")] + pub r#type: Type, + /// Detailed error explanation + #[serde(rename = "detail", skip_serializing_if = "Option::is_none")] + pub detail: Option, + /// Specific occurrence identifier + #[serde(rename = "instance", skip_serializing_if = "Option::is_none")] + pub instance: Option, +} + +impl InvalidRequestError { + /// Malformed request or validation failure + pub fn new(error: String, code: Code, r#type: Type) -> InvalidRequestError { + InvalidRequestError { + error, + code, + r#type, + detail: None, + instance: None, + } + } +} +/// HTTP status code +#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)] +pub enum Code { + #[serde(rename = "400")] + Variant400, +} + +impl Default for Code { + fn default() -> Code { + Self::Variant400 + } +} +/// Error type identifier +#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)] +pub enum Type { + #[serde(rename = "lance-namespace:601")] + LanceNamespaceColon601, +} + +impl Default for Type { + fn default() -> Type { + Self::LanceNamespaceColon601 + } +} + diff --git a/rust/lance-namespace-reqwest-client/src/models/invalid_sql_expression_error.rs b/rust/lance-namespace-reqwest-client/src/models/invalid_sql_expression_error.rs new file mode 100644 index 00000000..b74678f2 --- /dev/null +++ b/rust/lance-namespace-reqwest-client/src/models/invalid_sql_expression_error.rs @@ -0,0 +1,70 @@ +/* + * Lance Namespace Specification + * + * This OpenAPI specification is a part of the Lance namespace specification. It contains 2 parts: The `components/schemas`, `components/responses`, `components/examples`, `tags` sections define the request and response shape for each operation in a Lance Namespace across all implementations. See https://lance.org/format/namespace/operations for more details. The `servers`, `security`, `paths`, `components/parameters` sections are for the Lance REST Namespace implementation, which defines a complete REST server that can work with Lance datasets. See https://lance.org/format/namespace/rest for more details. + * + * The version of the OpenAPI document: 1.0.0 + * + * Generated by: https://openapi-generator.tech + */ + +use crate::models; +use serde::{Deserialize, Serialize}; + +/// InvalidSqlExpressionError : Invalid SQL expression provided +#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] +pub struct InvalidSqlExpressionError { + /// Brief error message + #[serde(rename = "error")] + pub error: String, + /// HTTP status code + #[serde(rename = "code")] + pub code: Code, + /// Error type identifier + #[serde(rename = "type")] + pub r#type: Type, + /// Detailed error explanation + #[serde(rename = "detail", skip_serializing_if = "Option::is_none")] + pub detail: Option, + /// Specific occurrence identifier + #[serde(rename = "instance", skip_serializing_if = "Option::is_none")] + pub instance: Option, +} + +impl InvalidSqlExpressionError { + /// Invalid SQL expression provided + pub fn new(error: String, code: Code, r#type: Type) -> InvalidSqlExpressionError { + InvalidSqlExpressionError { + error, + code, + r#type, + detail: None, + instance: None, + } + } +} +/// HTTP status code +#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)] +pub enum Code { + #[serde(rename = "400")] + Variant400, +} + +impl Default for Code { + fn default() -> Code { + Self::Variant400 + } +} +/// Error type identifier +#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)] +pub enum Type { + #[serde(rename = "lance-namespace:602")] + LanceNamespaceColon602, +} + +impl Default for Type { + fn default() -> Type { + Self::LanceNamespaceColon602 + } +} + diff --git a/rust/lance-namespace-reqwest-client/src/models/invalid_table_index_configuration_error.rs b/rust/lance-namespace-reqwest-client/src/models/invalid_table_index_configuration_error.rs new file mode 100644 index 00000000..e2c5d07e --- /dev/null +++ b/rust/lance-namespace-reqwest-client/src/models/invalid_table_index_configuration_error.rs @@ -0,0 +1,70 @@ +/* + * Lance Namespace Specification + * + * This OpenAPI specification is a part of the Lance namespace specification. It contains 2 parts: The `components/schemas`, `components/responses`, `components/examples`, `tags` sections define the request and response shape for each operation in a Lance Namespace across all implementations. See https://lance.org/format/namespace/operations for more details. The `servers`, `security`, `paths`, `components/parameters` sections are for the Lance REST Namespace implementation, which defines a complete REST server that can work with Lance datasets. See https://lance.org/format/namespace/rest for more details. + * + * The version of the OpenAPI document: 1.0.0 + * + * Generated by: https://openapi-generator.tech + */ + +use crate::models; +use serde::{Deserialize, Serialize}; + +/// InvalidTableIndexConfigurationError : The provided index configuration is invalid +#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] +pub struct InvalidTableIndexConfigurationError { + /// Brief error message + #[serde(rename = "error")] + pub error: String, + /// HTTP status code + #[serde(rename = "code")] + pub code: Code, + /// Error type identifier + #[serde(rename = "type")] + pub r#type: Type, + /// Detailed error explanation + #[serde(rename = "detail", skip_serializing_if = "Option::is_none")] + pub detail: Option, + /// Specific occurrence identifier + #[serde(rename = "instance", skip_serializing_if = "Option::is_none")] + pub instance: Option, +} + +impl InvalidTableIndexConfigurationError { + /// The provided index configuration is invalid + pub fn new(error: String, code: Code, r#type: Type) -> InvalidTableIndexConfigurationError { + InvalidTableIndexConfigurationError { + error, + code, + r#type, + detail: None, + instance: None, + } + } +} +/// HTTP status code +#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)] +pub enum Code { + #[serde(rename = "400")] + Variant400, +} + +impl Default for Code { + fn default() -> Code { + Self::Variant400 + } +} +/// Error type identifier +#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)] +pub enum Type { + #[serde(rename = "lance-namespace:303")] + LanceNamespaceColon303, +} + +impl Default for Type { + fn default() -> Type { + Self::LanceNamespaceColon303 + } +} + diff --git a/rust/lance-namespace-reqwest-client/src/models/invalid_table_schema_error.rs b/rust/lance-namespace-reqwest-client/src/models/invalid_table_schema_error.rs new file mode 100644 index 00000000..385b4ab5 --- /dev/null +++ b/rust/lance-namespace-reqwest-client/src/models/invalid_table_schema_error.rs @@ -0,0 +1,70 @@ +/* + * Lance Namespace Specification + * + * This OpenAPI specification is a part of the Lance namespace specification. It contains 2 parts: The `components/schemas`, `components/responses`, `components/examples`, `tags` sections define the request and response shape for each operation in a Lance Namespace across all implementations. See https://lance.org/format/namespace/operations for more details. The `servers`, `security`, `paths`, `components/parameters` sections are for the Lance REST Namespace implementation, which defines a complete REST server that can work with Lance datasets. See https://lance.org/format/namespace/rest for more details. + * + * The version of the OpenAPI document: 1.0.0 + * + * Generated by: https://openapi-generator.tech + */ + +use crate::models; +use serde::{Deserialize, Serialize}; + +/// InvalidTableSchemaError : The provided schema is invalid +#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] +pub struct InvalidTableSchemaError { + /// Brief error message + #[serde(rename = "error")] + pub error: String, + /// HTTP status code + #[serde(rename = "code")] + pub code: Code, + /// Error type identifier + #[serde(rename = "type")] + pub r#type: Type, + /// Detailed error explanation + #[serde(rename = "detail", skip_serializing_if = "Option::is_none")] + pub detail: Option, + /// Specific occurrence identifier + #[serde(rename = "instance", skip_serializing_if = "Option::is_none")] + pub instance: Option, +} + +impl InvalidTableSchemaError { + /// The provided schema is invalid + pub fn new(error: String, code: Code, r#type: Type) -> InvalidTableSchemaError { + InvalidTableSchemaError { + error, + code, + r#type, + detail: None, + instance: None, + } + } +} +/// HTTP status code +#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)] +pub enum Code { + #[serde(rename = "400")] + Variant400, +} + +impl Default for Code { + fn default() -> Code { + Self::Variant400 + } +} +/// Error type identifier +#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)] +pub enum Type { + #[serde(rename = "lance-namespace:205")] + LanceNamespaceColon205, +} + +impl Default for Type { + fn default() -> Type { + Self::LanceNamespaceColon205 + } +} + diff --git a/rust/lance-namespace-reqwest-client/src/models/merge_insert_into_table_400_response.rs b/rust/lance-namespace-reqwest-client/src/models/merge_insert_into_table_400_response.rs new file mode 100644 index 00000000..f00b9fba --- /dev/null +++ b/rust/lance-namespace-reqwest-client/src/models/merge_insert_into_table_400_response.rs @@ -0,0 +1,55 @@ +/* + * Lance Namespace Specification + * + * This OpenAPI specification is a part of the Lance namespace specification. It contains 2 parts: The `components/schemas`, `components/responses`, `components/examples`, `tags` sections define the request and response shape for each operation in a Lance Namespace across all implementations. See https://lance.org/format/namespace/operations for more details. The `servers`, `security`, `paths`, `components/parameters` sections are for the Lance REST Namespace implementation, which defines a complete REST server that can work with Lance datasets. See https://lance.org/format/namespace/rest for more details. + * + * The version of the OpenAPI document: 1.0.0 + * + * Generated by: https://openapi-generator.tech + */ + +use crate::models; +use serde::{Deserialize, Serialize}; + +#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] +#[serde(untagged)] +pub enum MergeInsertIntoTable400Response { + InvalidRequestError(Box), + TableColumnNotFoundError(Box), + TableSchemaMismatchError(Box), +} + +impl Default for MergeInsertIntoTable400Response { + fn default() -> Self { + Self::InvalidRequestError(Default::default()) + } +} +/// HTTP status code +#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)] +pub enum Code { + #[serde(rename = "400")] + Variant400, +} + +impl Default for Code { + fn default() -> Code { + Self::Variant400 + } +} +/// Error type identifier +#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)] +pub enum Type { + #[serde(rename = "lance-namespace:601")] + LanceNamespaceColon601, + #[serde(rename = "lance-namespace:204")] + LanceNamespaceColon204, + #[serde(rename = "lance-namespace:206")] + LanceNamespaceColon206, +} + +impl Default for Type { + fn default() -> Type { + Self::LanceNamespaceColon601 + } +} + diff --git a/rust/lance-namespace-reqwest-client/src/models/mod.rs b/rust/lance-namespace-reqwest-client/src/models/mod.rs index 77fa1fa7..fb55d633 100644 --- a/rust/lance-namespace-reqwest-client/src/models/mod.rs +++ b/rust/lance-namespace-reqwest-client/src/models/mod.rs @@ -1,7 +1,11 @@ +pub mod alter_table_add_columns_400_response; +pub use self::alter_table_add_columns_400_response::AlterTableAddColumns400Response; pub mod alter_table_add_columns_request; pub use self::alter_table_add_columns_request::AlterTableAddColumnsRequest; pub mod alter_table_add_columns_response; pub use self::alter_table_add_columns_response::AlterTableAddColumnsResponse; +pub mod alter_table_alter_columns_400_response; +pub use self::alter_table_alter_columns_400_response::AlterTableAlterColumns400Response; pub mod alter_table_alter_columns_request; pub use self::alter_table_alter_columns_request::AlterTableAlterColumnsRequest; pub mod alter_table_alter_columns_response; @@ -38,10 +42,16 @@ pub mod create_empty_table_request; pub use self::create_empty_table_request::CreateEmptyTableRequest; pub mod create_empty_table_response; pub use self::create_empty_table_response::CreateEmptyTableResponse; +pub mod create_namespace_400_response; +pub use self::create_namespace_400_response::CreateNamespace400Response; pub mod create_namespace_request; pub use self::create_namespace_request::CreateNamespaceRequest; pub mod create_namespace_response; pub use self::create_namespace_response::CreateNamespaceResponse; +pub mod create_table_400_response; +pub use self::create_table_400_response::CreateTable400Response; +pub mod create_table_index_400_response; +pub use self::create_table_index_400_response::CreateTableIndex400Response; pub mod create_table_index_request; pub use self::create_table_index_request::CreateTableIndexRequest; pub mod create_table_index_response; @@ -52,6 +62,8 @@ pub mod create_table_response; pub use self::create_table_response::CreateTableResponse; pub mod create_table_tag_request; pub use self::create_table_tag_request::CreateTableTagRequest; +pub mod delete_from_table_400_response; +pub use self::delete_from_table_400_response::DeleteFromTable400Response; pub mod delete_from_table_request; pub use self::delete_from_table_request::DeleteFromTableRequest; pub mod delete_from_table_response; @@ -66,6 +78,8 @@ pub mod describe_namespace_request; pub use self::describe_namespace_request::DescribeNamespaceRequest; pub mod describe_namespace_response; pub use self::describe_namespace_response::DescribeNamespaceResponse; +pub mod describe_table_index_stats_404_response; +pub use self::describe_table_index_stats_404_response::DescribeTableIndexStats404Response; pub mod describe_table_index_stats_request; pub use self::describe_table_index_stats_request::DescribeTableIndexStatsRequest; pub mod describe_table_index_stats_response; @@ -102,16 +116,30 @@ pub mod get_table_stats_request; pub use self::get_table_stats_request::GetTableStatsRequest; pub mod get_table_stats_response; pub use self::get_table_stats_response::GetTableStatsResponse; +pub mod get_table_tag_version_404_response; +pub use self::get_table_tag_version_404_response::GetTableTagVersion404Response; pub mod get_table_tag_version_request; pub use self::get_table_tag_version_request::GetTableTagVersionRequest; pub mod get_table_tag_version_response; pub use self::get_table_tag_version_response::GetTableTagVersionResponse; pub mod index_content; pub use self::index_content::IndexContent; +pub mod insert_into_table_400_response; +pub use self::insert_into_table_400_response::InsertIntoTable400Response; pub mod insert_into_table_request; pub use self::insert_into_table_request::InsertIntoTableRequest; pub mod insert_into_table_response; pub use self::insert_into_table_response::InsertIntoTableResponse; +pub mod invalid_identifier_error; +pub use self::invalid_identifier_error::InvalidIdentifierError; +pub mod invalid_request_error; +pub use self::invalid_request_error::InvalidRequestError; +pub mod invalid_sql_expression_error; +pub use self::invalid_sql_expression_error::InvalidSqlExpressionError; +pub mod invalid_table_index_configuration_error; +pub use self::invalid_table_index_configuration_error::InvalidTableIndexConfigurationError; +pub mod invalid_table_schema_error; +pub use self::invalid_table_schema_error::InvalidTableSchemaError; pub mod json_arrow_data_type; pub use self::json_arrow_data_type::JsonArrowDataType; pub mod json_arrow_field; @@ -138,18 +166,28 @@ pub mod list_tables_response; pub use self::list_tables_response::ListTablesResponse; pub mod match_query; pub use self::match_query::MatchQuery; +pub mod merge_insert_into_table_400_response; +pub use self::merge_insert_into_table_400_response::MergeInsertIntoTable400Response; pub mod merge_insert_into_table_request; pub use self::merge_insert_into_table_request::MergeInsertIntoTableRequest; pub mod merge_insert_into_table_response; pub use self::merge_insert_into_table_response::MergeInsertIntoTableResponse; pub mod multi_match_query; pub use self::multi_match_query::MultiMatchQuery; +pub mod namespace_already_exists_error; +pub use self::namespace_already_exists_error::NamespaceAlreadyExistsError; pub mod namespace_exists_request; pub use self::namespace_exists_request::NamespaceExistsRequest; +pub mod namespace_not_empty_error; +pub use self::namespace_not_empty_error::NamespaceNotEmptyError; +pub mod namespace_not_found_error; +pub use self::namespace_not_found_error::NamespaceNotFoundError; pub mod new_column_transform; pub use self::new_column_transform::NewColumnTransform; pub mod operator; pub use self::operator::Operator; +pub mod parent_namespace_not_found_error; +pub use self::parent_namespace_not_found_error::ParentNamespaceNotFoundError; pub mod phrase_query; pub use self::phrase_query::PhraseQuery; pub mod query_table_request; @@ -162,6 +200,8 @@ pub mod register_table_request; pub use self::register_table_request::RegisterTableRequest; pub mod register_table_response; pub use self::register_table_response::RegisterTableResponse; +pub mod restore_table_404_response; +pub use self::restore_table_404_response::RestoreTable404Response; pub mod restore_table_request; pub use self::restore_table_request::RestoreTableRequest; pub mod restore_table_response; @@ -172,19 +212,47 @@ pub mod string_fts_query; pub use self::string_fts_query::StringFtsQuery; pub mod structured_fts_query; pub use self::structured_fts_query::StructuredFtsQuery; +pub mod table_already_exists_error; +pub use self::table_already_exists_error::TableAlreadyExistsError; +pub mod table_column_not_found_error; +pub use self::table_column_not_found_error::TableColumnNotFoundError; pub mod table_exists_request; pub use self::table_exists_request::TableExistsRequest; +pub mod table_index_already_exists_error; +pub use self::table_index_already_exists_error::TableIndexAlreadyExistsError; +pub mod table_index_not_found_error; +pub use self::table_index_not_found_error::TableIndexNotFoundError; +pub mod table_not_found_error; +pub use self::table_not_found_error::TableNotFoundError; +pub mod table_schema_mismatch_error; +pub use self::table_schema_mismatch_error::TableSchemaMismatchError; +pub mod table_tag_already_exists_error; +pub use self::table_tag_already_exists_error::TableTagAlreadyExistsError; +pub mod table_tag_not_found_error; +pub use self::table_tag_not_found_error::TableTagNotFoundError; pub mod table_version; pub use self::table_version::TableVersion; +pub mod table_version_not_found_error; +pub use self::table_version_not_found_error::TableVersionNotFoundError; pub mod tag_contents; pub use self::tag_contents::TagContents; +pub mod transaction_conflict_error; +pub use self::transaction_conflict_error::TransactionConflictError; +pub mod transaction_not_found_error; +pub use self::transaction_not_found_error::TransactionNotFoundError; pub mod transaction_status; pub use self::transaction_status::TransactionStatus; +pub mod unknown_error; +pub use self::unknown_error::UnknownError; pub mod unset_property_mode; pub use self::unset_property_mode::UnsetPropertyMode; +pub mod update_table_400_response; +pub use self::update_table_400_response::UpdateTable400Response; pub mod update_table_request; pub use self::update_table_request::UpdateTableRequest; pub mod update_table_response; pub use self::update_table_response::UpdateTableResponse; +pub mod update_table_tag_404_response; +pub use self::update_table_tag_404_response::UpdateTableTag404Response; pub mod update_table_tag_request; pub use self::update_table_tag_request::UpdateTableTagRequest; diff --git a/rust/lance-namespace-reqwest-client/src/models/namespace_already_exists_error.rs b/rust/lance-namespace-reqwest-client/src/models/namespace_already_exists_error.rs new file mode 100644 index 00000000..7c72e6aa --- /dev/null +++ b/rust/lance-namespace-reqwest-client/src/models/namespace_already_exists_error.rs @@ -0,0 +1,70 @@ +/* + * Lance Namespace Specification + * + * This OpenAPI specification is a part of the Lance namespace specification. It contains 2 parts: The `components/schemas`, `components/responses`, `components/examples`, `tags` sections define the request and response shape for each operation in a Lance Namespace across all implementations. See https://lance.org/format/namespace/operations for more details. The `servers`, `security`, `paths`, `components/parameters` sections are for the Lance REST Namespace implementation, which defines a complete REST server that can work with Lance datasets. See https://lance.org/format/namespace/rest for more details. + * + * The version of the OpenAPI document: 1.0.0 + * + * Generated by: https://openapi-generator.tech + */ + +use crate::models; +use serde::{Deserialize, Serialize}; + +/// NamespaceAlreadyExistsError : A namespace with the same name already exists +#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] +pub struct NamespaceAlreadyExistsError { + /// Brief error message + #[serde(rename = "error")] + pub error: String, + /// HTTP status code + #[serde(rename = "code")] + pub code: Code, + /// Error type identifier + #[serde(rename = "type")] + pub r#type: Type, + /// Detailed error explanation + #[serde(rename = "detail", skip_serializing_if = "Option::is_none")] + pub detail: Option, + /// Specific occurrence identifier + #[serde(rename = "instance", skip_serializing_if = "Option::is_none")] + pub instance: Option, +} + +impl NamespaceAlreadyExistsError { + /// A namespace with the same name already exists + pub fn new(error: String, code: Code, r#type: Type) -> NamespaceAlreadyExistsError { + NamespaceAlreadyExistsError { + error, + code, + r#type, + detail: None, + instance: None, + } + } +} +/// HTTP status code +#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)] +pub enum Code { + #[serde(rename = "409")] + Variant409, +} + +impl Default for Code { + fn default() -> Code { + Self::Variant409 + } +} +/// Error type identifier +#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)] +pub enum Type { + #[serde(rename = "lance-namespace:102")] + LanceNamespaceColon102, +} + +impl Default for Type { + fn default() -> Type { + Self::LanceNamespaceColon102 + } +} + diff --git a/rust/lance-namespace-reqwest-client/src/models/namespace_not_empty_error.rs b/rust/lance-namespace-reqwest-client/src/models/namespace_not_empty_error.rs new file mode 100644 index 00000000..de7ec80d --- /dev/null +++ b/rust/lance-namespace-reqwest-client/src/models/namespace_not_empty_error.rs @@ -0,0 +1,70 @@ +/* + * Lance Namespace Specification + * + * This OpenAPI specification is a part of the Lance namespace specification. It contains 2 parts: The `components/schemas`, `components/responses`, `components/examples`, `tags` sections define the request and response shape for each operation in a Lance Namespace across all implementations. See https://lance.org/format/namespace/operations for more details. The `servers`, `security`, `paths`, `components/parameters` sections are for the Lance REST Namespace implementation, which defines a complete REST server that can work with Lance datasets. See https://lance.org/format/namespace/rest for more details. + * + * The version of the OpenAPI document: 1.0.0 + * + * Generated by: https://openapi-generator.tech + */ + +use crate::models; +use serde::{Deserialize, Serialize}; + +/// NamespaceNotEmptyError : Cannot drop namespace because it contains tables or child namespaces +#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] +pub struct NamespaceNotEmptyError { + /// Brief error message + #[serde(rename = "error")] + pub error: String, + /// HTTP status code + #[serde(rename = "code")] + pub code: Code, + /// Error type identifier + #[serde(rename = "type")] + pub r#type: Type, + /// Detailed error explanation + #[serde(rename = "detail", skip_serializing_if = "Option::is_none")] + pub detail: Option, + /// Specific occurrence identifier + #[serde(rename = "instance", skip_serializing_if = "Option::is_none")] + pub instance: Option, +} + +impl NamespaceNotEmptyError { + /// Cannot drop namespace because it contains tables or child namespaces + pub fn new(error: String, code: Code, r#type: Type) -> NamespaceNotEmptyError { + NamespaceNotEmptyError { + error, + code, + r#type, + detail: None, + instance: None, + } + } +} +/// HTTP status code +#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)] +pub enum Code { + #[serde(rename = "409")] + Variant409, +} + +impl Default for Code { + fn default() -> Code { + Self::Variant409 + } +} +/// Error type identifier +#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)] +pub enum Type { + #[serde(rename = "lance-namespace:104")] + LanceNamespaceColon104, +} + +impl Default for Type { + fn default() -> Type { + Self::LanceNamespaceColon104 + } +} + diff --git a/rust/lance-namespace-reqwest-client/src/models/namespace_not_found_error.rs b/rust/lance-namespace-reqwest-client/src/models/namespace_not_found_error.rs new file mode 100644 index 00000000..1066bebf --- /dev/null +++ b/rust/lance-namespace-reqwest-client/src/models/namespace_not_found_error.rs @@ -0,0 +1,70 @@ +/* + * Lance Namespace Specification + * + * This OpenAPI specification is a part of the Lance namespace specification. It contains 2 parts: The `components/schemas`, `components/responses`, `components/examples`, `tags` sections define the request and response shape for each operation in a Lance Namespace across all implementations. See https://lance.org/format/namespace/operations for more details. The `servers`, `security`, `paths`, `components/parameters` sections are for the Lance REST Namespace implementation, which defines a complete REST server that can work with Lance datasets. See https://lance.org/format/namespace/rest for more details. + * + * The version of the OpenAPI document: 1.0.0 + * + * Generated by: https://openapi-generator.tech + */ + +use crate::models; +use serde::{Deserialize, Serialize}; + +/// NamespaceNotFoundError : The requested namespace does not exist +#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] +pub struct NamespaceNotFoundError { + /// Brief error message + #[serde(rename = "error")] + pub error: String, + /// HTTP status code + #[serde(rename = "code")] + pub code: Code, + /// Error type identifier + #[serde(rename = "type")] + pub r#type: Type, + /// Detailed error explanation + #[serde(rename = "detail", skip_serializing_if = "Option::is_none")] + pub detail: Option, + /// Specific occurrence identifier + #[serde(rename = "instance", skip_serializing_if = "Option::is_none")] + pub instance: Option, +} + +impl NamespaceNotFoundError { + /// The requested namespace does not exist + pub fn new(error: String, code: Code, r#type: Type) -> NamespaceNotFoundError { + NamespaceNotFoundError { + error, + code, + r#type, + detail: None, + instance: None, + } + } +} +/// HTTP status code +#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)] +pub enum Code { + #[serde(rename = "404")] + Variant404, +} + +impl Default for Code { + fn default() -> Code { + Self::Variant404 + } +} +/// Error type identifier +#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)] +pub enum Type { + #[serde(rename = "lance-namespace:101")] + LanceNamespaceColon101, +} + +impl Default for Type { + fn default() -> Type { + Self::LanceNamespaceColon101 + } +} + diff --git a/rust/lance-namespace-reqwest-client/src/models/parent_namespace_not_found_error.rs b/rust/lance-namespace-reqwest-client/src/models/parent_namespace_not_found_error.rs new file mode 100644 index 00000000..2a50cbb7 --- /dev/null +++ b/rust/lance-namespace-reqwest-client/src/models/parent_namespace_not_found_error.rs @@ -0,0 +1,70 @@ +/* + * Lance Namespace Specification + * + * This OpenAPI specification is a part of the Lance namespace specification. It contains 2 parts: The `components/schemas`, `components/responses`, `components/examples`, `tags` sections define the request and response shape for each operation in a Lance Namespace across all implementations. See https://lance.org/format/namespace/operations for more details. The `servers`, `security`, `paths`, `components/parameters` sections are for the Lance REST Namespace implementation, which defines a complete REST server that can work with Lance datasets. See https://lance.org/format/namespace/rest for more details. + * + * The version of the OpenAPI document: 1.0.0 + * + * Generated by: https://openapi-generator.tech + */ + +use crate::models; +use serde::{Deserialize, Serialize}; + +/// ParentNamespaceNotFoundError : The parent namespace does not exist +#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] +pub struct ParentNamespaceNotFoundError { + /// Brief error message + #[serde(rename = "error")] + pub error: String, + /// HTTP status code + #[serde(rename = "code")] + pub code: Code, + /// Error type identifier + #[serde(rename = "type")] + pub r#type: Type, + /// Detailed error explanation + #[serde(rename = "detail", skip_serializing_if = "Option::is_none")] + pub detail: Option, + /// Specific occurrence identifier + #[serde(rename = "instance", skip_serializing_if = "Option::is_none")] + pub instance: Option, +} + +impl ParentNamespaceNotFoundError { + /// The parent namespace does not exist + pub fn new(error: String, code: Code, r#type: Type) -> ParentNamespaceNotFoundError { + ParentNamespaceNotFoundError { + error, + code, + r#type, + detail: None, + instance: None, + } + } +} +/// HTTP status code +#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)] +pub enum Code { + #[serde(rename = "404")] + Variant404, +} + +impl Default for Code { + fn default() -> Code { + Self::Variant404 + } +} +/// Error type identifier +#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)] +pub enum Type { + #[serde(rename = "lance-namespace:103")] + LanceNamespaceColon103, +} + +impl Default for Type { + fn default() -> Type { + Self::LanceNamespaceColon103 + } +} + diff --git a/rust/lance-namespace-reqwest-client/src/models/restore_table_404_response.rs b/rust/lance-namespace-reqwest-client/src/models/restore_table_404_response.rs new file mode 100644 index 00000000..7e3884de --- /dev/null +++ b/rust/lance-namespace-reqwest-client/src/models/restore_table_404_response.rs @@ -0,0 +1,52 @@ +/* + * Lance Namespace Specification + * + * This OpenAPI specification is a part of the Lance namespace specification. It contains 2 parts: The `components/schemas`, `components/responses`, `components/examples`, `tags` sections define the request and response shape for each operation in a Lance Namespace across all implementations. See https://lance.org/format/namespace/operations for more details. The `servers`, `security`, `paths`, `components/parameters` sections are for the Lance REST Namespace implementation, which defines a complete REST server that can work with Lance datasets. See https://lance.org/format/namespace/rest for more details. + * + * The version of the OpenAPI document: 1.0.0 + * + * Generated by: https://openapi-generator.tech + */ + +use crate::models; +use serde::{Deserialize, Serialize}; + +#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] +#[serde(untagged)] +pub enum RestoreTable404Response { + TableNotFoundError(Box), + TableVersionNotFoundError(Box), +} + +impl Default for RestoreTable404Response { + fn default() -> Self { + Self::TableNotFoundError(Default::default()) + } +} +/// HTTP status code +#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)] +pub enum Code { + #[serde(rename = "404")] + Variant404, +} + +impl Default for Code { + fn default() -> Code { + Self::Variant404 + } +} +/// Error type identifier +#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)] +pub enum Type { + #[serde(rename = "lance-namespace:201")] + LanceNamespaceColon201, + #[serde(rename = "lance-namespace:203")] + LanceNamespaceColon203, +} + +impl Default for Type { + fn default() -> Type { + Self::LanceNamespaceColon201 + } +} + diff --git a/rust/lance-namespace-reqwest-client/src/models/table_already_exists_error.rs b/rust/lance-namespace-reqwest-client/src/models/table_already_exists_error.rs new file mode 100644 index 00000000..600659e2 --- /dev/null +++ b/rust/lance-namespace-reqwest-client/src/models/table_already_exists_error.rs @@ -0,0 +1,70 @@ +/* + * Lance Namespace Specification + * + * This OpenAPI specification is a part of the Lance namespace specification. It contains 2 parts: The `components/schemas`, `components/responses`, `components/examples`, `tags` sections define the request and response shape for each operation in a Lance Namespace across all implementations. See https://lance.org/format/namespace/operations for more details. The `servers`, `security`, `paths`, `components/parameters` sections are for the Lance REST Namespace implementation, which defines a complete REST server that can work with Lance datasets. See https://lance.org/format/namespace/rest for more details. + * + * The version of the OpenAPI document: 1.0.0 + * + * Generated by: https://openapi-generator.tech + */ + +use crate::models; +use serde::{Deserialize, Serialize}; + +/// TableAlreadyExistsError : A table with the same name already exists +#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] +pub struct TableAlreadyExistsError { + /// Brief error message + #[serde(rename = "error")] + pub error: String, + /// HTTP status code + #[serde(rename = "code")] + pub code: Code, + /// Error type identifier + #[serde(rename = "type")] + pub r#type: Type, + /// Detailed error explanation + #[serde(rename = "detail", skip_serializing_if = "Option::is_none")] + pub detail: Option, + /// Specific occurrence identifier + #[serde(rename = "instance", skip_serializing_if = "Option::is_none")] + pub instance: Option, +} + +impl TableAlreadyExistsError { + /// A table with the same name already exists + pub fn new(error: String, code: Code, r#type: Type) -> TableAlreadyExistsError { + TableAlreadyExistsError { + error, + code, + r#type, + detail: None, + instance: None, + } + } +} +/// HTTP status code +#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)] +pub enum Code { + #[serde(rename = "409")] + Variant409, +} + +impl Default for Code { + fn default() -> Code { + Self::Variant409 + } +} +/// Error type identifier +#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)] +pub enum Type { + #[serde(rename = "lance-namespace:202")] + LanceNamespaceColon202, +} + +impl Default for Type { + fn default() -> Type { + Self::LanceNamespaceColon202 + } +} + diff --git a/rust/lance-namespace-reqwest-client/src/models/table_column_not_found_error.rs b/rust/lance-namespace-reqwest-client/src/models/table_column_not_found_error.rs new file mode 100644 index 00000000..52dfa986 --- /dev/null +++ b/rust/lance-namespace-reqwest-client/src/models/table_column_not_found_error.rs @@ -0,0 +1,70 @@ +/* + * Lance Namespace Specification + * + * This OpenAPI specification is a part of the Lance namespace specification. It contains 2 parts: The `components/schemas`, `components/responses`, `components/examples`, `tags` sections define the request and response shape for each operation in a Lance Namespace across all implementations. See https://lance.org/format/namespace/operations for more details. The `servers`, `security`, `paths`, `components/parameters` sections are for the Lance REST Namespace implementation, which defines a complete REST server that can work with Lance datasets. See https://lance.org/format/namespace/rest for more details. + * + * The version of the OpenAPI document: 1.0.0 + * + * Generated by: https://openapi-generator.tech + */ + +use crate::models; +use serde::{Deserialize, Serialize}; + +/// TableColumnNotFoundError : The specified column does not exist in the table +#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] +pub struct TableColumnNotFoundError { + /// Brief error message + #[serde(rename = "error")] + pub error: String, + /// HTTP status code + #[serde(rename = "code")] + pub code: Code, + /// Error type identifier + #[serde(rename = "type")] + pub r#type: Type, + /// Detailed error explanation + #[serde(rename = "detail", skip_serializing_if = "Option::is_none")] + pub detail: Option, + /// Specific occurrence identifier + #[serde(rename = "instance", skip_serializing_if = "Option::is_none")] + pub instance: Option, +} + +impl TableColumnNotFoundError { + /// The specified column does not exist in the table + pub fn new(error: String, code: Code, r#type: Type) -> TableColumnNotFoundError { + TableColumnNotFoundError { + error, + code, + r#type, + detail: None, + instance: None, + } + } +} +/// HTTP status code +#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)] +pub enum Code { + #[serde(rename = "400")] + Variant400, +} + +impl Default for Code { + fn default() -> Code { + Self::Variant400 + } +} +/// Error type identifier +#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)] +pub enum Type { + #[serde(rename = "lance-namespace:204")] + LanceNamespaceColon204, +} + +impl Default for Type { + fn default() -> Type { + Self::LanceNamespaceColon204 + } +} + diff --git a/rust/lance-namespace-reqwest-client/src/models/table_index_already_exists_error.rs b/rust/lance-namespace-reqwest-client/src/models/table_index_already_exists_error.rs new file mode 100644 index 00000000..a1ca569d --- /dev/null +++ b/rust/lance-namespace-reqwest-client/src/models/table_index_already_exists_error.rs @@ -0,0 +1,70 @@ +/* + * Lance Namespace Specification + * + * This OpenAPI specification is a part of the Lance namespace specification. It contains 2 parts: The `components/schemas`, `components/responses`, `components/examples`, `tags` sections define the request and response shape for each operation in a Lance Namespace across all implementations. See https://lance.org/format/namespace/operations for more details. The `servers`, `security`, `paths`, `components/parameters` sections are for the Lance REST Namespace implementation, which defines a complete REST server that can work with Lance datasets. See https://lance.org/format/namespace/rest for more details. + * + * The version of the OpenAPI document: 1.0.0 + * + * Generated by: https://openapi-generator.tech + */ + +use crate::models; +use serde::{Deserialize, Serialize}; + +/// TableIndexAlreadyExistsError : An index with the same name already exists +#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] +pub struct TableIndexAlreadyExistsError { + /// Brief error message + #[serde(rename = "error")] + pub error: String, + /// HTTP status code + #[serde(rename = "code")] + pub code: Code, + /// Error type identifier + #[serde(rename = "type")] + pub r#type: Type, + /// Detailed error explanation + #[serde(rename = "detail", skip_serializing_if = "Option::is_none")] + pub detail: Option, + /// Specific occurrence identifier + #[serde(rename = "instance", skip_serializing_if = "Option::is_none")] + pub instance: Option, +} + +impl TableIndexAlreadyExistsError { + /// An index with the same name already exists + pub fn new(error: String, code: Code, r#type: Type) -> TableIndexAlreadyExistsError { + TableIndexAlreadyExistsError { + error, + code, + r#type, + detail: None, + instance: None, + } + } +} +/// HTTP status code +#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)] +pub enum Code { + #[serde(rename = "409")] + Variant409, +} + +impl Default for Code { + fn default() -> Code { + Self::Variant409 + } +} +/// Error type identifier +#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)] +pub enum Type { + #[serde(rename = "lance-namespace:302")] + LanceNamespaceColon302, +} + +impl Default for Type { + fn default() -> Type { + Self::LanceNamespaceColon302 + } +} + diff --git a/rust/lance-namespace-reqwest-client/src/models/table_index_not_found_error.rs b/rust/lance-namespace-reqwest-client/src/models/table_index_not_found_error.rs new file mode 100644 index 00000000..f857c6bc --- /dev/null +++ b/rust/lance-namespace-reqwest-client/src/models/table_index_not_found_error.rs @@ -0,0 +1,70 @@ +/* + * Lance Namespace Specification + * + * This OpenAPI specification is a part of the Lance namespace specification. It contains 2 parts: The `components/schemas`, `components/responses`, `components/examples`, `tags` sections define the request and response shape for each operation in a Lance Namespace across all implementations. See https://lance.org/format/namespace/operations for more details. The `servers`, `security`, `paths`, `components/parameters` sections are for the Lance REST Namespace implementation, which defines a complete REST server that can work with Lance datasets. See https://lance.org/format/namespace/rest for more details. + * + * The version of the OpenAPI document: 1.0.0 + * + * Generated by: https://openapi-generator.tech + */ + +use crate::models; +use serde::{Deserialize, Serialize}; + +/// TableIndexNotFoundError : The requested index does not exist +#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] +pub struct TableIndexNotFoundError { + /// Brief error message + #[serde(rename = "error")] + pub error: String, + /// HTTP status code + #[serde(rename = "code")] + pub code: Code, + /// Error type identifier + #[serde(rename = "type")] + pub r#type: Type, + /// Detailed error explanation + #[serde(rename = "detail", skip_serializing_if = "Option::is_none")] + pub detail: Option, + /// Specific occurrence identifier + #[serde(rename = "instance", skip_serializing_if = "Option::is_none")] + pub instance: Option, +} + +impl TableIndexNotFoundError { + /// The requested index does not exist + pub fn new(error: String, code: Code, r#type: Type) -> TableIndexNotFoundError { + TableIndexNotFoundError { + error, + code, + r#type, + detail: None, + instance: None, + } + } +} +/// HTTP status code +#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)] +pub enum Code { + #[serde(rename = "404")] + Variant404, +} + +impl Default for Code { + fn default() -> Code { + Self::Variant404 + } +} +/// Error type identifier +#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)] +pub enum Type { + #[serde(rename = "lance-namespace:301")] + LanceNamespaceColon301, +} + +impl Default for Type { + fn default() -> Type { + Self::LanceNamespaceColon301 + } +} + diff --git a/rust/lance-namespace-reqwest-client/src/models/table_not_found_error.rs b/rust/lance-namespace-reqwest-client/src/models/table_not_found_error.rs new file mode 100644 index 00000000..603ba19d --- /dev/null +++ b/rust/lance-namespace-reqwest-client/src/models/table_not_found_error.rs @@ -0,0 +1,70 @@ +/* + * Lance Namespace Specification + * + * This OpenAPI specification is a part of the Lance namespace specification. It contains 2 parts: The `components/schemas`, `components/responses`, `components/examples`, `tags` sections define the request and response shape for each operation in a Lance Namespace across all implementations. See https://lance.org/format/namespace/operations for more details. The `servers`, `security`, `paths`, `components/parameters` sections are for the Lance REST Namespace implementation, which defines a complete REST server that can work with Lance datasets. See https://lance.org/format/namespace/rest for more details. + * + * The version of the OpenAPI document: 1.0.0 + * + * Generated by: https://openapi-generator.tech + */ + +use crate::models; +use serde::{Deserialize, Serialize}; + +/// TableNotFoundError : The requested table does not exist +#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] +pub struct TableNotFoundError { + /// Brief error message + #[serde(rename = "error")] + pub error: String, + /// HTTP status code + #[serde(rename = "code")] + pub code: Code, + /// Error type identifier + #[serde(rename = "type")] + pub r#type: Type, + /// Detailed error explanation + #[serde(rename = "detail", skip_serializing_if = "Option::is_none")] + pub detail: Option, + /// Specific occurrence identifier + #[serde(rename = "instance", skip_serializing_if = "Option::is_none")] + pub instance: Option, +} + +impl TableNotFoundError { + /// The requested table does not exist + pub fn new(error: String, code: Code, r#type: Type) -> TableNotFoundError { + TableNotFoundError { + error, + code, + r#type, + detail: None, + instance: None, + } + } +} +/// HTTP status code +#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)] +pub enum Code { + #[serde(rename = "404")] + Variant404, +} + +impl Default for Code { + fn default() -> Code { + Self::Variant404 + } +} +/// Error type identifier +#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)] +pub enum Type { + #[serde(rename = "lance-namespace:201")] + LanceNamespaceColon201, +} + +impl Default for Type { + fn default() -> Type { + Self::LanceNamespaceColon201 + } +} + diff --git a/rust/lance-namespace-reqwest-client/src/models/table_schema_mismatch_error.rs b/rust/lance-namespace-reqwest-client/src/models/table_schema_mismatch_error.rs new file mode 100644 index 00000000..3686e8fd --- /dev/null +++ b/rust/lance-namespace-reqwest-client/src/models/table_schema_mismatch_error.rs @@ -0,0 +1,70 @@ +/* + * Lance Namespace Specification + * + * This OpenAPI specification is a part of the Lance namespace specification. It contains 2 parts: The `components/schemas`, `components/responses`, `components/examples`, `tags` sections define the request and response shape for each operation in a Lance Namespace across all implementations. See https://lance.org/format/namespace/operations for more details. The `servers`, `security`, `paths`, `components/parameters` sections are for the Lance REST Namespace implementation, which defines a complete REST server that can work with Lance datasets. See https://lance.org/format/namespace/rest for more details. + * + * The version of the OpenAPI document: 1.0.0 + * + * Generated by: https://openapi-generator.tech + */ + +use crate::models; +use serde::{Deserialize, Serialize}; + +/// TableSchemaMismatchError : The data schema does not match the table schema +#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] +pub struct TableSchemaMismatchError { + /// Brief error message + #[serde(rename = "error")] + pub error: String, + /// HTTP status code + #[serde(rename = "code")] + pub code: Code, + /// Error type identifier + #[serde(rename = "type")] + pub r#type: Type, + /// Detailed error explanation + #[serde(rename = "detail", skip_serializing_if = "Option::is_none")] + pub detail: Option, + /// Specific occurrence identifier + #[serde(rename = "instance", skip_serializing_if = "Option::is_none")] + pub instance: Option, +} + +impl TableSchemaMismatchError { + /// The data schema does not match the table schema + pub fn new(error: String, code: Code, r#type: Type) -> TableSchemaMismatchError { + TableSchemaMismatchError { + error, + code, + r#type, + detail: None, + instance: None, + } + } +} +/// HTTP status code +#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)] +pub enum Code { + #[serde(rename = "400")] + Variant400, +} + +impl Default for Code { + fn default() -> Code { + Self::Variant400 + } +} +/// Error type identifier +#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)] +pub enum Type { + #[serde(rename = "lance-namespace:206")] + LanceNamespaceColon206, +} + +impl Default for Type { + fn default() -> Type { + Self::LanceNamespaceColon206 + } +} + diff --git a/rust/lance-namespace-reqwest-client/src/models/table_tag_already_exists_error.rs b/rust/lance-namespace-reqwest-client/src/models/table_tag_already_exists_error.rs new file mode 100644 index 00000000..4b570d25 --- /dev/null +++ b/rust/lance-namespace-reqwest-client/src/models/table_tag_already_exists_error.rs @@ -0,0 +1,70 @@ +/* + * Lance Namespace Specification + * + * This OpenAPI specification is a part of the Lance namespace specification. It contains 2 parts: The `components/schemas`, `components/responses`, `components/examples`, `tags` sections define the request and response shape for each operation in a Lance Namespace across all implementations. See https://lance.org/format/namespace/operations for more details. The `servers`, `security`, `paths`, `components/parameters` sections are for the Lance REST Namespace implementation, which defines a complete REST server that can work with Lance datasets. See https://lance.org/format/namespace/rest for more details. + * + * The version of the OpenAPI document: 1.0.0 + * + * Generated by: https://openapi-generator.tech + */ + +use crate::models; +use serde::{Deserialize, Serialize}; + +/// TableTagAlreadyExistsError : A tag with the same name already exists +#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] +pub struct TableTagAlreadyExistsError { + /// Brief error message + #[serde(rename = "error")] + pub error: String, + /// HTTP status code + #[serde(rename = "code")] + pub code: Code, + /// Error type identifier + #[serde(rename = "type")] + pub r#type: Type, + /// Detailed error explanation + #[serde(rename = "detail", skip_serializing_if = "Option::is_none")] + pub detail: Option, + /// Specific occurrence identifier + #[serde(rename = "instance", skip_serializing_if = "Option::is_none")] + pub instance: Option, +} + +impl TableTagAlreadyExistsError { + /// A tag with the same name already exists + pub fn new(error: String, code: Code, r#type: Type) -> TableTagAlreadyExistsError { + TableTagAlreadyExistsError { + error, + code, + r#type, + detail: None, + instance: None, + } + } +} +/// HTTP status code +#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)] +pub enum Code { + #[serde(rename = "409")] + Variant409, +} + +impl Default for Code { + fn default() -> Code { + Self::Variant409 + } +} +/// Error type identifier +#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)] +pub enum Type { + #[serde(rename = "lance-namespace:402")] + LanceNamespaceColon402, +} + +impl Default for Type { + fn default() -> Type { + Self::LanceNamespaceColon402 + } +} + diff --git a/rust/lance-namespace-reqwest-client/src/models/table_tag_not_found_error.rs b/rust/lance-namespace-reqwest-client/src/models/table_tag_not_found_error.rs new file mode 100644 index 00000000..309e03ba --- /dev/null +++ b/rust/lance-namespace-reqwest-client/src/models/table_tag_not_found_error.rs @@ -0,0 +1,70 @@ +/* + * Lance Namespace Specification + * + * This OpenAPI specification is a part of the Lance namespace specification. It contains 2 parts: The `components/schemas`, `components/responses`, `components/examples`, `tags` sections define the request and response shape for each operation in a Lance Namespace across all implementations. See https://lance.org/format/namespace/operations for more details. The `servers`, `security`, `paths`, `components/parameters` sections are for the Lance REST Namespace implementation, which defines a complete REST server that can work with Lance datasets. See https://lance.org/format/namespace/rest for more details. + * + * The version of the OpenAPI document: 1.0.0 + * + * Generated by: https://openapi-generator.tech + */ + +use crate::models; +use serde::{Deserialize, Serialize}; + +/// TableTagNotFoundError : The requested tag does not exist +#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] +pub struct TableTagNotFoundError { + /// Brief error message + #[serde(rename = "error")] + pub error: String, + /// HTTP status code + #[serde(rename = "code")] + pub code: Code, + /// Error type identifier + #[serde(rename = "type")] + pub r#type: Type, + /// Detailed error explanation + #[serde(rename = "detail", skip_serializing_if = "Option::is_none")] + pub detail: Option, + /// Specific occurrence identifier + #[serde(rename = "instance", skip_serializing_if = "Option::is_none")] + pub instance: Option, +} + +impl TableTagNotFoundError { + /// The requested tag does not exist + pub fn new(error: String, code: Code, r#type: Type) -> TableTagNotFoundError { + TableTagNotFoundError { + error, + code, + r#type, + detail: None, + instance: None, + } + } +} +/// HTTP status code +#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)] +pub enum Code { + #[serde(rename = "404")] + Variant404, +} + +impl Default for Code { + fn default() -> Code { + Self::Variant404 + } +} +/// Error type identifier +#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)] +pub enum Type { + #[serde(rename = "lance-namespace:401")] + LanceNamespaceColon401, +} + +impl Default for Type { + fn default() -> Type { + Self::LanceNamespaceColon401 + } +} + diff --git a/rust/lance-namespace-reqwest-client/src/models/table_version_not_found_error.rs b/rust/lance-namespace-reqwest-client/src/models/table_version_not_found_error.rs new file mode 100644 index 00000000..3f642b3e --- /dev/null +++ b/rust/lance-namespace-reqwest-client/src/models/table_version_not_found_error.rs @@ -0,0 +1,70 @@ +/* + * Lance Namespace Specification + * + * This OpenAPI specification is a part of the Lance namespace specification. It contains 2 parts: The `components/schemas`, `components/responses`, `components/examples`, `tags` sections define the request and response shape for each operation in a Lance Namespace across all implementations. See https://lance.org/format/namespace/operations for more details. The `servers`, `security`, `paths`, `components/parameters` sections are for the Lance REST Namespace implementation, which defines a complete REST server that can work with Lance datasets. See https://lance.org/format/namespace/rest for more details. + * + * The version of the OpenAPI document: 1.0.0 + * + * Generated by: https://openapi-generator.tech + */ + +use crate::models; +use serde::{Deserialize, Serialize}; + +/// TableVersionNotFoundError : The requested table version does not exist +#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] +pub struct TableVersionNotFoundError { + /// Brief error message + #[serde(rename = "error")] + pub error: String, + /// HTTP status code + #[serde(rename = "code")] + pub code: Code, + /// Error type identifier + #[serde(rename = "type")] + pub r#type: Type, + /// Detailed error explanation + #[serde(rename = "detail", skip_serializing_if = "Option::is_none")] + pub detail: Option, + /// Specific occurrence identifier + #[serde(rename = "instance", skip_serializing_if = "Option::is_none")] + pub instance: Option, +} + +impl TableVersionNotFoundError { + /// The requested table version does not exist + pub fn new(error: String, code: Code, r#type: Type) -> TableVersionNotFoundError { + TableVersionNotFoundError { + error, + code, + r#type, + detail: None, + instance: None, + } + } +} +/// HTTP status code +#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)] +pub enum Code { + #[serde(rename = "404")] + Variant404, +} + +impl Default for Code { + fn default() -> Code { + Self::Variant404 + } +} +/// Error type identifier +#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)] +pub enum Type { + #[serde(rename = "lance-namespace:203")] + LanceNamespaceColon203, +} + +impl Default for Type { + fn default() -> Type { + Self::LanceNamespaceColon203 + } +} + diff --git a/rust/lance-namespace-reqwest-client/src/models/transaction_conflict_error.rs b/rust/lance-namespace-reqwest-client/src/models/transaction_conflict_error.rs new file mode 100644 index 00000000..9d39b80f --- /dev/null +++ b/rust/lance-namespace-reqwest-client/src/models/transaction_conflict_error.rs @@ -0,0 +1,70 @@ +/* + * Lance Namespace Specification + * + * This OpenAPI specification is a part of the Lance namespace specification. It contains 2 parts: The `components/schemas`, `components/responses`, `components/examples`, `tags` sections define the request and response shape for each operation in a Lance Namespace across all implementations. See https://lance.org/format/namespace/operations for more details. The `servers`, `security`, `paths`, `components/parameters` sections are for the Lance REST Namespace implementation, which defines a complete REST server that can work with Lance datasets. See https://lance.org/format/namespace/rest for more details. + * + * The version of the OpenAPI document: 1.0.0 + * + * Generated by: https://openapi-generator.tech + */ + +use crate::models; +use serde::{Deserialize, Serialize}; + +/// TransactionConflictError : Transaction failed due to concurrent modification +#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] +pub struct TransactionConflictError { + /// Brief error message + #[serde(rename = "error")] + pub error: String, + /// HTTP status code + #[serde(rename = "code")] + pub code: Code, + /// Error type identifier + #[serde(rename = "type")] + pub r#type: Type, + /// Detailed error explanation + #[serde(rename = "detail", skip_serializing_if = "Option::is_none")] + pub detail: Option, + /// Specific occurrence identifier + #[serde(rename = "instance", skip_serializing_if = "Option::is_none")] + pub instance: Option, +} + +impl TransactionConflictError { + /// Transaction failed due to concurrent modification + pub fn new(error: String, code: Code, r#type: Type) -> TransactionConflictError { + TransactionConflictError { + error, + code, + r#type, + detail: None, + instance: None, + } + } +} +/// HTTP status code +#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)] +pub enum Code { + #[serde(rename = "409")] + Variant409, +} + +impl Default for Code { + fn default() -> Code { + Self::Variant409 + } +} +/// Error type identifier +#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)] +pub enum Type { + #[serde(rename = "lance-namespace:502")] + LanceNamespaceColon502, +} + +impl Default for Type { + fn default() -> Type { + Self::LanceNamespaceColon502 + } +} + diff --git a/rust/lance-namespace-reqwest-client/src/models/transaction_not_found_error.rs b/rust/lance-namespace-reqwest-client/src/models/transaction_not_found_error.rs new file mode 100644 index 00000000..b0eee3f0 --- /dev/null +++ b/rust/lance-namespace-reqwest-client/src/models/transaction_not_found_error.rs @@ -0,0 +1,70 @@ +/* + * Lance Namespace Specification + * + * This OpenAPI specification is a part of the Lance namespace specification. It contains 2 parts: The `components/schemas`, `components/responses`, `components/examples`, `tags` sections define the request and response shape for each operation in a Lance Namespace across all implementations. See https://lance.org/format/namespace/operations for more details. The `servers`, `security`, `paths`, `components/parameters` sections are for the Lance REST Namespace implementation, which defines a complete REST server that can work with Lance datasets. See https://lance.org/format/namespace/rest for more details. + * + * The version of the OpenAPI document: 1.0.0 + * + * Generated by: https://openapi-generator.tech + */ + +use crate::models; +use serde::{Deserialize, Serialize}; + +/// TransactionNotFoundError : The requested transaction does not exist +#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] +pub struct TransactionNotFoundError { + /// Brief error message + #[serde(rename = "error")] + pub error: String, + /// HTTP status code + #[serde(rename = "code")] + pub code: Code, + /// Error type identifier + #[serde(rename = "type")] + pub r#type: Type, + /// Detailed error explanation + #[serde(rename = "detail", skip_serializing_if = "Option::is_none")] + pub detail: Option, + /// Specific occurrence identifier + #[serde(rename = "instance", skip_serializing_if = "Option::is_none")] + pub instance: Option, +} + +impl TransactionNotFoundError { + /// The requested transaction does not exist + pub fn new(error: String, code: Code, r#type: Type) -> TransactionNotFoundError { + TransactionNotFoundError { + error, + code, + r#type, + detail: None, + instance: None, + } + } +} +/// HTTP status code +#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)] +pub enum Code { + #[serde(rename = "404")] + Variant404, +} + +impl Default for Code { + fn default() -> Code { + Self::Variant404 + } +} +/// Error type identifier +#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)] +pub enum Type { + #[serde(rename = "lance-namespace:501")] + LanceNamespaceColon501, +} + +impl Default for Type { + fn default() -> Type { + Self::LanceNamespaceColon501 + } +} + diff --git a/rust/lance-namespace-reqwest-client/src/models/unknown_error.rs b/rust/lance-namespace-reqwest-client/src/models/unknown_error.rs new file mode 100644 index 00000000..2fee1d0b --- /dev/null +++ b/rust/lance-namespace-reqwest-client/src/models/unknown_error.rs @@ -0,0 +1,70 @@ +/* + * Lance Namespace Specification + * + * This OpenAPI specification is a part of the Lance namespace specification. It contains 2 parts: The `components/schemas`, `components/responses`, `components/examples`, `tags` sections define the request and response shape for each operation in a Lance Namespace across all implementations. See https://lance.org/format/namespace/operations for more details. The `servers`, `security`, `paths`, `components/parameters` sections are for the Lance REST Namespace implementation, which defines a complete REST server that can work with Lance datasets. See https://lance.org/format/namespace/rest for more details. + * + * The version of the OpenAPI document: 1.0.0 + * + * Generated by: https://openapi-generator.tech + */ + +use crate::models; +use serde::{Deserialize, Serialize}; + +/// UnknownError : Unknown or unclassified error +#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] +pub struct UnknownError { + /// Brief error message + #[serde(rename = "error")] + pub error: String, + /// HTTP status code + #[serde(rename = "code")] + pub code: Code, + /// Error type identifier + #[serde(rename = "type")] + pub r#type: Type, + /// Detailed error explanation + #[serde(rename = "detail", skip_serializing_if = "Option::is_none")] + pub detail: Option, + /// Specific occurrence identifier + #[serde(rename = "instance", skip_serializing_if = "Option::is_none")] + pub instance: Option, +} + +impl UnknownError { + /// Unknown or unclassified error + pub fn new(error: String, code: Code, r#type: Type) -> UnknownError { + UnknownError { + error, + code, + r#type, + detail: None, + instance: None, + } + } +} +/// HTTP status code +#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)] +pub enum Code { + #[serde(rename = "500")] + Variant500, +} + +impl Default for Code { + fn default() -> Code { + Self::Variant500 + } +} +/// Error type identifier +#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)] +pub enum Type { + #[serde(rename = "lance-namespace:0")] + LanceNamespaceColon0, +} + +impl Default for Type { + fn default() -> Type { + Self::LanceNamespaceColon0 + } +} + diff --git a/rust/lance-namespace-reqwest-client/src/models/update_table_400_response.rs b/rust/lance-namespace-reqwest-client/src/models/update_table_400_response.rs new file mode 100644 index 00000000..7009f076 --- /dev/null +++ b/rust/lance-namespace-reqwest-client/src/models/update_table_400_response.rs @@ -0,0 +1,55 @@ +/* + * Lance Namespace Specification + * + * This OpenAPI specification is a part of the Lance namespace specification. It contains 2 parts: The `components/schemas`, `components/responses`, `components/examples`, `tags` sections define the request and response shape for each operation in a Lance Namespace across all implementations. See https://lance.org/format/namespace/operations for more details. The `servers`, `security`, `paths`, `components/parameters` sections are for the Lance REST Namespace implementation, which defines a complete REST server that can work with Lance datasets. See https://lance.org/format/namespace/rest for more details. + * + * The version of the OpenAPI document: 1.0.0 + * + * Generated by: https://openapi-generator.tech + */ + +use crate::models; +use serde::{Deserialize, Serialize}; + +#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] +#[serde(untagged)] +pub enum UpdateTable400Response { + InvalidRequestError(Box), + TableColumnNotFoundError(Box), + InvalidSqlExpressionError(Box), +} + +impl Default for UpdateTable400Response { + fn default() -> Self { + Self::InvalidRequestError(Default::default()) + } +} +/// HTTP status code +#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)] +pub enum Code { + #[serde(rename = "400")] + Variant400, +} + +impl Default for Code { + fn default() -> Code { + Self::Variant400 + } +} +/// Error type identifier +#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)] +pub enum Type { + #[serde(rename = "lance-namespace:601")] + LanceNamespaceColon601, + #[serde(rename = "lance-namespace:204")] + LanceNamespaceColon204, + #[serde(rename = "lance-namespace:602")] + LanceNamespaceColon602, +} + +impl Default for Type { + fn default() -> Type { + Self::LanceNamespaceColon601 + } +} + diff --git a/rust/lance-namespace-reqwest-client/src/models/update_table_tag_404_response.rs b/rust/lance-namespace-reqwest-client/src/models/update_table_tag_404_response.rs new file mode 100644 index 00000000..df135c37 --- /dev/null +++ b/rust/lance-namespace-reqwest-client/src/models/update_table_tag_404_response.rs @@ -0,0 +1,55 @@ +/* + * Lance Namespace Specification + * + * This OpenAPI specification is a part of the Lance namespace specification. It contains 2 parts: The `components/schemas`, `components/responses`, `components/examples`, `tags` sections define the request and response shape for each operation in a Lance Namespace across all implementations. See https://lance.org/format/namespace/operations for more details. The `servers`, `security`, `paths`, `components/parameters` sections are for the Lance REST Namespace implementation, which defines a complete REST server that can work with Lance datasets. See https://lance.org/format/namespace/rest for more details. + * + * The version of the OpenAPI document: 1.0.0 + * + * Generated by: https://openapi-generator.tech + */ + +use crate::models; +use serde::{Deserialize, Serialize}; + +#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] +#[serde(untagged)] +pub enum UpdateTableTag404Response { + TableNotFoundError(Box), + TableTagNotFoundError(Box), + TableVersionNotFoundError(Box), +} + +impl Default for UpdateTableTag404Response { + fn default() -> Self { + Self::TableNotFoundError(Default::default()) + } +} +/// HTTP status code +#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)] +pub enum Code { + #[serde(rename = "404")] + Variant404, +} + +impl Default for Code { + fn default() -> Code { + Self::Variant404 + } +} +/// Error type identifier +#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)] +pub enum Type { + #[serde(rename = "lance-namespace:201")] + LanceNamespaceColon201, + #[serde(rename = "lance-namespace:401")] + LanceNamespaceColon401, + #[serde(rename = "lance-namespace:203")] + LanceNamespaceColon203, +} + +impl Default for Type { + fn default() -> Type { + Self::LanceNamespaceColon201 + } +} +