From dce2f7e678746c3718520a19f23a90ae0725ea9d Mon Sep 17 00:00:00 2001 From: Robrecht Cannoodt Date: Sat, 10 May 2025 19:55:00 +0200 Subject: [PATCH 1/2] update to latest version --- .openapi-generator/FILES | 10 + README.md | 26 +- api/openapi.yaml | 423 +++++- config.yaml | 2 +- docs/AddTeamMemberRequestBody.md | 11 +- docs/DbUrlRequest.md | 13 + docs/DefaultApi.md | 513 ++++++- docs/RegisterDbServerBody.md | 15 + docs/RegisterFormRequest.md | 15 + docs/Role.md | 12 + docs/Role1.md | 12 + docs/UpdateTeamMemberRequestBody.md | 11 +- .../ai/lamin/lamin_api_client/ApiClient.java | 2 +- .../lamin/lamin_api_client/ApiException.java | 2 +- .../lamin/lamin_api_client/Configuration.java | 4 +- .../java/ai/lamin/lamin_api_client/JSON.java | 5 + .../java/ai/lamin/lamin_api_client/Pair.java | 2 +- .../lamin_api_client/ServerConfiguration.java | 2 +- .../lamin_api_client/ServerVariable.java | 2 +- .../ai/lamin/lamin_api_client/StringUtil.java | 2 +- .../lamin_api_client/api/DefaultApi.java | 1234 +++++++++++++++-- .../lamin_api_client/auth/ApiKeyAuth.java | 2 +- .../lamin_api_client/auth/HttpBearerAuth.java | 2 +- .../model/AbstractOpenApiSchema.java | 2 +- .../model/AddCollaboratorRequestBody.java | 2 +- .../AddSpaceCollaboratorRequestBody.java | 2 +- .../model/AddTeamMemberRequestBody.java | 68 +- .../model/AttachSpaceToRecordRequestBody.java | 2 +- .../model/CreateSpaceRequestBody.java | 2 +- .../model/CreateTeamRequestBody.java | 2 +- .../lamin_api_client/model/DbUrlRequest.java | 214 +++ .../lamin_api_client/model/Dimension.java | 2 +- .../model/GetRecordRequestBody.java | 2 +- .../model/GetRecordsRequestBody.java | 2 +- .../model/GetValuesRequestBody.java | 2 +- .../model/GroupByRequestBody.java | 2 +- .../model/HTTPValidationError.java | 2 +- .../lamin/lamin_api_client/model/Measure.java | 2 +- .../lamin_api_client/model/OrderByColumn.java | 2 +- .../model/RegisterDbServerBody.java | 276 ++++ .../model/RegisterFormRequest.java | 283 ++++ .../ai/lamin/lamin_api_client/model/Role.java | 217 +++ .../lamin/lamin_api_client/model/Role1.java | 217 +++ .../model/S3PermissionsRequest.java | 2 +- .../model/UpdateCollaboratorRequestBody.java | 2 +- .../UpdateSpaceCollaboratorRequestBody.java | 2 +- .../model/UpdateSpaceRequestBody.java | 2 +- .../model/UpdateTeamMemberRequestBody.java | 68 +- .../model/UpdateTeamRequestBody.java | 2 +- .../model/ValidationError.java | 2 +- .../model/ValidationErrorLocInner.java | 2 +- .../lamin_api_client/api/DefaultApiTest.java | 132 +- .../model/AddTeamMemberRequestBodyTest.java | 1 + .../model/DbUrlRequestTest.java | 48 + .../model/RegisterDbServerBodyTest.java | 64 + .../model/RegisterFormRequestTest.java | 66 + .../lamin_api_client/model/Role1Test.java | 33 + .../lamin_api_client/model/RoleTest.java | 33 + .../UpdateTeamMemberRequestBodyTest.java | 1 + 59 files changed, 3704 insertions(+), 381 deletions(-) create mode 100644 docs/DbUrlRequest.md create mode 100644 docs/RegisterDbServerBody.md create mode 100644 docs/RegisterFormRequest.md create mode 100644 docs/Role.md create mode 100644 docs/Role1.md create mode 100644 src/main/java/ai/lamin/lamin_api_client/model/DbUrlRequest.java create mode 100644 src/main/java/ai/lamin/lamin_api_client/model/RegisterDbServerBody.java create mode 100644 src/main/java/ai/lamin/lamin_api_client/model/RegisterFormRequest.java create mode 100644 src/main/java/ai/lamin/lamin_api_client/model/Role.java create mode 100644 src/main/java/ai/lamin/lamin_api_client/model/Role1.java create mode 100644 src/test/src/test/java/ai/lamin/lamin_api_client/model/DbUrlRequestTest.java create mode 100644 src/test/src/test/java/ai/lamin/lamin_api_client/model/RegisterDbServerBodyTest.java create mode 100644 src/test/src/test/java/ai/lamin/lamin_api_client/model/RegisterFormRequestTest.java create mode 100644 src/test/src/test/java/ai/lamin/lamin_api_client/model/Role1Test.java create mode 100644 src/test/src/test/java/ai/lamin/lamin_api_client/model/RoleTest.java diff --git a/.openapi-generator/FILES b/.openapi-generator/FILES index 3fe298d..c129714 100644 --- a/.openapi-generator/FILES +++ b/.openapi-generator/FILES @@ -7,6 +7,7 @@ docs/AddTeamMemberRequestBody.md docs/AttachSpaceToRecordRequestBody.md docs/CreateSpaceRequestBody.md docs/CreateTeamRequestBody.md +docs/DbUrlRequest.md docs/DefaultApi.md docs/Dimension.md docs/GetRecordRequestBody.md @@ -16,6 +17,10 @@ docs/GroupByRequestBody.md docs/HTTPValidationError.md docs/Measure.md docs/OrderByColumn.md +docs/RegisterDbServerBody.md +docs/RegisterFormRequest.md +docs/Role.md +docs/Role1.md docs/S3PermissionsRequest.md docs/UpdateCollaboratorRequestBody.md docs/UpdateSpaceCollaboratorRequestBody.md @@ -53,6 +58,7 @@ src/main/java/ai/lamin/lamin_api_client/model/AddTeamMemberRequestBody.java src/main/java/ai/lamin/lamin_api_client/model/AttachSpaceToRecordRequestBody.java src/main/java/ai/lamin/lamin_api_client/model/CreateSpaceRequestBody.java src/main/java/ai/lamin/lamin_api_client/model/CreateTeamRequestBody.java +src/main/java/ai/lamin/lamin_api_client/model/DbUrlRequest.java src/main/java/ai/lamin/lamin_api_client/model/Dimension.java src/main/java/ai/lamin/lamin_api_client/model/GetRecordRequestBody.java src/main/java/ai/lamin/lamin_api_client/model/GetRecordsRequestBody.java @@ -61,6 +67,10 @@ src/main/java/ai/lamin/lamin_api_client/model/GroupByRequestBody.java src/main/java/ai/lamin/lamin_api_client/model/HTTPValidationError.java src/main/java/ai/lamin/lamin_api_client/model/Measure.java src/main/java/ai/lamin/lamin_api_client/model/OrderByColumn.java +src/main/java/ai/lamin/lamin_api_client/model/RegisterDbServerBody.java +src/main/java/ai/lamin/lamin_api_client/model/RegisterFormRequest.java +src/main/java/ai/lamin/lamin_api_client/model/Role.java +src/main/java/ai/lamin/lamin_api_client/model/Role1.java src/main/java/ai/lamin/lamin_api_client/model/S3PermissionsRequest.java src/main/java/ai/lamin/lamin_api_client/model/UpdateCollaboratorRequestBody.java src/main/java/ai/lamin/lamin_api_client/model/UpdateSpaceCollaboratorRequestBody.java diff --git a/README.md b/README.md index b3b677b..8fd7c48 100644 --- a/README.md +++ b/README.md @@ -1,8 +1,8 @@ -# lamin-api-client-java +# lamin-api-client -Lamin API +FastAPI - API version: 0.1.0 - - Build date: 2025-04-03T14:57:42.729190705+02:00[Europe/Brussels] + - Build date: 2025-05-10T19:58:41.182141089+02:00[Europe/Brussels] - Generator version: 7.12.0 No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) @@ -28,7 +28,7 @@ mvn clean install To deploy it to a remote Maven repository instead, configure the settings of the repository and execute: ```shell -mvn clean deploy -P deployment +mvn clean deploy ``` Refer to the [OSSRH Guide](http://central.sonatype.org/pages/ossrh-guide.html) for more information. @@ -41,7 +41,7 @@ Add this dependency to your project's POM: ai.lamin lamin-api-client - 0.0.1 + 0.0.2 compile ``` @@ -57,7 +57,7 @@ Add this dependency to your project's build file: } dependencies { - implementation "ai.lamin:lamin-api-client:0.0.1" + implementation "ai.lamin:lamin-api-client:0.0.2" } ``` @@ -71,7 +71,7 @@ mvn clean package Then manually install the following JARs: -* `target/lamin-api-client-0.0.1.jar` +* `target/lamin-api-client-0.0.2.jar` * `target/lib/*.jar` ## Getting Started @@ -123,6 +123,8 @@ Class | Method | HTTP request | Description *DefaultApi* | [**addTeamMemberAccessV2TeamsTeamIdMembersAccountIdPut**](docs/DefaultApi.md#addTeamMemberAccessV2TeamsTeamIdMembersAccountIdPut) | **PUT** /access_v2/teams/{team_id}/members/{account_id} | Add Team Member *DefaultApi* | [**attachLabelInstancesInstanceIdModulesModuleNameModelNameIdLabelFieldLabelIdPut**](docs/DefaultApi.md#attachLabelInstancesInstanceIdModulesModuleNameModelNameIdLabelFieldLabelIdPut) | **PUT** /instances/{instance_id}/modules/{module_name}/{model_name}/{id}/{label_field}/{label_id} | Attach Label *DefaultApi* | [**attachSpaceToInstanceAccessV2SpacesSpaceIdInstancesInstanceIdPut**](docs/DefaultApi.md#attachSpaceToInstanceAccessV2SpacesSpaceIdInstancesInstanceIdPut) | **PUT** /access_v2/spaces/{space_id}/instances/{instance_id} | Attach Space To Instance +*DefaultApi* | [**checkDbAccessDebugDbAccessPost**](docs/DefaultApi.md#checkDbAccessDebugDbAccessPost) | **POST** /_debug/db-access | Check Db Access +*DefaultApi* | [**checkDbServerAccessDbServerCheckAccessPost**](docs/DefaultApi.md#checkDbServerAccessDbServerCheckAccessPost) | **POST** /db/server/check-access | Check Db Server Access *DefaultApi* | [**createInstanceInstancesPut**](docs/DefaultApi.md#createInstanceInstancesPut) | **PUT** /instances | Create Instance *DefaultApi* | [**createRecordInstancesInstanceIdModulesModuleNameModelNamePut**](docs/DefaultApi.md#createRecordInstancesInstanceIdModulesModuleNameModelNamePut) | **PUT** /instances/{instance_id}/modules/{module_name}/{model_name} | Create Record *DefaultApi* | [**createSpaceAccessV2SpacesPut**](docs/DefaultApi.md#createSpaceAccessV2SpacesPut) | **PUT** /access_v2/spaces | Create Space @@ -136,6 +138,7 @@ Class | Method | HTTP request | Description *DefaultApi* | [**detachSpaceFromInstanceAccessV2SpacesSpaceIdInstancesInstanceIdDelete**](docs/DefaultApi.md#detachSpaceFromInstanceAccessV2SpacesSpaceIdInstancesInstanceIdDelete) | **DELETE** /access_v2/spaces/{space_id}/instances/{instance_id} | Detach Space From Instance *DefaultApi* | [**getDbTokenAccessV2InstancesInstanceIdDbTokenGet**](docs/DefaultApi.md#getDbTokenAccessV2InstancesInstanceIdDbTokenGet) | **GET** /access_v2/instances/{instance_id}/db_token | Get Db Token *DefaultApi* | [**getInstanceStatisticsInstancesInstanceIdStatisticsGet**](docs/DefaultApi.md#getInstanceStatisticsInstancesInstanceIdStatisticsGet) | **GET** /instances/{instance_id}/statistics | Get Instance Statistics +*DefaultApi* | [**getIpDebugIpGet**](docs/DefaultApi.md#getIpDebugIpGet) | **GET** /_debug/ip | Get Ip *DefaultApi* | [**getNonEmptyTablesInstancesInstanceIdNonEmptyTablesGet**](docs/DefaultApi.md#getNonEmptyTablesInstancesInstanceIdNonEmptyTablesGet) | **GET** /instances/{instance_id}/non_empty_tables | Get Non Empty Tables *DefaultApi* | [**getRecordInstancesInstanceIdModulesModuleNameModelNameIdOrUidPost**](docs/DefaultApi.md#getRecordInstancesInstanceIdModulesModuleNameModelNameIdOrUidPost) | **POST** /instances/{instance_id}/modules/{module_name}/{model_name}/{id_or_uid} | Get Record *DefaultApi* | [**getRecordsInstancesInstanceIdModulesModuleNameModelNamePost**](docs/DefaultApi.md#getRecordsInstancesInstanceIdModulesModuleNameModelNamePost) | **POST** /instances/{instance_id}/modules/{module_name}/{model_name} | Get Records @@ -144,10 +147,12 @@ Class | Method | HTTP request | Description *DefaultApi* | [**getSchemaInstancesInstanceIdSchemaGet**](docs/DefaultApi.md#getSchemaInstancesInstanceIdSchemaGet) | **GET** /instances/{instance_id}/schema | Get Schema *DefaultApi* | [**getSpaceAccessV2SpacesSpaceIdGet**](docs/DefaultApi.md#getSpaceAccessV2SpacesSpaceIdGet) | **GET** /access_v2/spaces/{space_id} | Get Space *DefaultApi* | [**getTeamAccessV2TeamsTeamIdGet**](docs/DefaultApi.md#getTeamAccessV2TeamsTeamIdGet) | **GET** /access_v2/teams/{team_id} | Get Team +*DefaultApi* | [**getTreeInstancesInstanceIdTreeGet**](docs/DefaultApi.md#getTreeInstancesInstanceIdTreeGet) | **GET** /instances/{instance_id}/tree | Get Tree *DefaultApi* | [**getValuesInstancesInstanceIdModulesModuleNameModelNameFieldsFieldPathPost**](docs/DefaultApi.md#getValuesInstancesInstanceIdModulesModuleNameModelNameFieldsFieldPathPost) | **POST** /instances/{instance_id}/modules/{module_name}/{model_name}/fields/{field_path} | Get Values *DefaultApi* | [**grantS3PermissionsStoragesS3BucketNamePermissionsPut**](docs/DefaultApi.md#grantS3PermissionsStoragesS3BucketNamePermissionsPut) | **PUT** /storages/s3/{bucket_name}/permissions | Grant S3 Permissions *DefaultApi* | [**groupByInstancesInstanceIdModulesModuleNameModelNameGroupByPost**](docs/DefaultApi.md#groupByInstancesInstanceIdModulesModuleNameModelNameGroupByPost) | **POST** /instances/{instance_id}/modules/{module_name}/{model_name}/group-by | Group By *DefaultApi* | [**listCollaboratorsAccessV2InstancesInstanceIdCollaboratorsGet**](docs/DefaultApi.md#listCollaboratorsAccessV2InstancesInstanceIdCollaboratorsGet) | **GET** /access_v2/instances/{instance_id}/collaborators | List Collaborators +*DefaultApi* | [**listDirectoryInstancesInstanceIdEntityTypeGet**](docs/DefaultApi.md#listDirectoryInstancesInstanceIdEntityTypeGet) | **GET** /instances/{instance_id}/{entity_type} | List Directory *DefaultApi* | [**listInstanceSpacesAccessV2SpacesInstancesInstanceIdGet**](docs/DefaultApi.md#listInstanceSpacesAccessV2SpacesInstancesInstanceIdGet) | **GET** /access_v2/spaces/instances/{instance_id} | List Instance Spaces *DefaultApi* | [**listInstancesUsingSpaceAccessV2SpacesSpaceIdInstancesGet**](docs/DefaultApi.md#listInstancesUsingSpaceAccessV2SpacesSpaceIdInstancesGet) | **GET** /access_v2/spaces/{space_id}/instances | List Instances Using Space *DefaultApi* | [**listOrganizationSpacesAccessV2SpacesOrganizationsOrganizationIdGet**](docs/DefaultApi.md#listOrganizationSpacesAccessV2SpacesOrganizationsOrganizationIdGet) | **GET** /access_v2/spaces/organizations/{organization_id} | List Organization Spaces @@ -160,6 +165,8 @@ Class | Method | HTTP request | Description *DefaultApi* | [**proxyS3S3PathGet_1**](docs/DefaultApi.md#proxyS3S3PathGet_1) | **PUT** /s3/{path} | Proxy S3 *DefaultApi* | [**proxyS3S3PathGet_2**](docs/DefaultApi.md#proxyS3S3PathGet_2) | **POST** /s3/{path} | Proxy S3 *DefaultApi* | [**proxyS3S3PathGet_3**](docs/DefaultApi.md#proxyS3S3PathGet_3) | **DELETE** /s3/{path} | Proxy S3 +*DefaultApi* | [**registerDbServerDbServerRegisterPost**](docs/DefaultApi.md#registerDbServerDbServerRegisterPost) | **POST** /db/server/register | Register Db Server +*DefaultApi* | [**registerFormInstancesInstanceIdFormsPost**](docs/DefaultApi.md#registerFormInstancesInstanceIdFormsPost) | **POST** /instances/{instance_id}/forms | Register Form *DefaultApi* | [**removeCollaboratorAccessV2InstancesInstanceIdCollaboratorsDelete**](docs/DefaultApi.md#removeCollaboratorAccessV2InstancesInstanceIdCollaboratorsDelete) | **DELETE** /access_v2/instances/{instance_id}/collaborators | Remove Collaborator *DefaultApi* | [**removeSpaceCollaboratorAccessV2SpacesSpaceIdCollaboratorsDelete**](docs/DefaultApi.md#removeSpaceCollaboratorAccessV2SpacesSpaceIdCollaboratorsDelete) | **DELETE** /access_v2/spaces/{space_id}/collaborators | Remove Space Collaborator *DefaultApi* | [**removeTeamMemberAccessV2TeamsTeamIdMembersAccountIdDelete**](docs/DefaultApi.md#removeTeamMemberAccessV2TeamsTeamIdMembersAccountIdDelete) | **DELETE** /access_v2/teams/{team_id}/members/{account_id} | Remove Team Member @@ -181,6 +188,7 @@ Class | Method | HTTP request | Description - [AttachSpaceToRecordRequestBody](docs/AttachSpaceToRecordRequestBody.md) - [CreateSpaceRequestBody](docs/CreateSpaceRequestBody.md) - [CreateTeamRequestBody](docs/CreateTeamRequestBody.md) + - [DbUrlRequest](docs/DbUrlRequest.md) - [Dimension](docs/Dimension.md) - [GetRecordRequestBody](docs/GetRecordRequestBody.md) - [GetRecordsRequestBody](docs/GetRecordsRequestBody.md) @@ -189,6 +197,10 @@ Class | Method | HTTP request | Description - [HTTPValidationError](docs/HTTPValidationError.md) - [Measure](docs/Measure.md) - [OrderByColumn](docs/OrderByColumn.md) + - [RegisterDbServerBody](docs/RegisterDbServerBody.md) + - [RegisterFormRequest](docs/RegisterFormRequest.md) + - [Role](docs/Role.md) + - [Role1](docs/Role1.md) - [S3PermissionsRequest](docs/S3PermissionsRequest.md) - [UpdateCollaboratorRequestBody](docs/UpdateCollaboratorRequestBody.md) - [UpdateSpaceCollaboratorRequestBody](docs/UpdateSpaceCollaboratorRequestBody.md) diff --git a/api/openapi.yaml b/api/openapi.yaml index e97ca1e..0cba3df 100644 --- a/api/openapi.yaml +++ b/api/openapi.yaml @@ -42,14 +42,6 @@ paths: nullable: true type: string style: form - - explode: true - in: query - name: db_server_url - required: false - schema: - nullable: true - type: string - style: form - explode: false in: header name: Authorization @@ -1543,7 +1535,6 @@ paths: Returns: - **200**: Collaborator removed successfully - **400**: Invalid input (e.g., both account_id and team_id provided) - - **404**: Collaborator not found Requires admin access to the instance operationId: remove_collaborator_access_v2_instances__instance_id__collaborators_delete @@ -1607,7 +1598,6 @@ paths: Returns: - **200**: List of instance collaborators retrieved successfully - - **404**: Instance not found Requires read access to the instance operationId: list_collaborators_access_v2_instances__instance_id__collaborators_get @@ -1658,7 +1648,6 @@ paths: Returns: - **200**: Collaborator updated successfully - **400**: Invalid input (e.g., both account_id and team_id provided) - - **404**: Collaborator not found Requires admin access to the instance operationId: update_collaborator_access_v2_instances__instance_id__collaborators_patch @@ -1823,8 +1812,9 @@ paths: name: space_id required: true schema: + format: uuid title: Space Id - type: integer + type: string style: simple - explode: false in: header @@ -1866,8 +1856,9 @@ paths: name: space_id required: true schema: + format: uuid title: Space Id - type: integer + type: string style: simple - explode: false in: header @@ -1911,8 +1902,9 @@ paths: name: space_id required: true schema: + format: uuid title: Space Id - type: integer + type: string style: simple - explode: false in: header @@ -1964,14 +1956,14 @@ paths: Requires admin access to the instance operationId: move_record_to_space_access_v2_spaces__space_id__record_attachments_put parameters: - - explode: false - in: path - name: space_id + - explode: true + in: query + name: instance_db_space_id required: true schema: - title: Space Id + title: Instance Db Space Id type: integer - style: simple + style: form - explode: true in: query name: instance_id @@ -2040,8 +2032,9 @@ paths: name: space_id required: true schema: + format: uuid title: Space Id - type: integer + type: string style: simple - explode: false in: path @@ -2094,8 +2087,9 @@ paths: name: space_id required: true schema: + format: uuid title: Space Id - type: integer + type: string style: simple - explode: false in: path @@ -2146,8 +2140,9 @@ paths: name: space_id required: true schema: + format: uuid title: Space Id - type: integer + type: string style: simple - explode: false in: header @@ -2236,8 +2231,9 @@ paths: name: space_id required: true schema: + format: uuid title: Space Id - type: integer + type: string style: simple - explode: true in: query @@ -2296,8 +2292,9 @@ paths: name: space_id required: true schema: + format: uuid title: Space Id - type: integer + type: string style: simple - explode: false in: header @@ -2344,8 +2341,9 @@ paths: name: space_id required: true schema: + format: uuid title: Space Id - type: integer + type: string style: simple - explode: false in: header @@ -2398,8 +2396,9 @@ paths: name: space_id required: true schema: + format: uuid title: Space Id - type: integer + type: string style: simple - explode: false in: header @@ -2977,6 +2976,287 @@ paths: summary: Get Db Token x-accepts: - application/json + /instances/{instance_id}/{entity_type}: + get: + operationId: list_directory_instances__instance_id___entity_type__get + parameters: + - explode: false + in: path + name: entity_type + required: true + schema: + enum: + - artifact + - transform + title: Entity Type + type: string + style: simple + - explode: false + in: path + name: instance_id + required: true + schema: + format: uuid + nullable: true + type: string + style: simple + - explode: true + in: query + name: path + required: false + schema: + default: "" + title: Path + type: string + style: form + - explode: true + in: query + name: schema_id + required: false + schema: + format: uuid + nullable: true + type: string + style: form + - explode: false + in: header + name: Authorization + required: false + schema: + nullable: true + type: string + style: simple + responses: + "200": + content: + application/json: + schema: {} + description: Successful Response + "422": + content: + application/json: + schema: + $ref: '#/components/schemas/HTTPValidationError' + description: Validation Error + summary: List Directory + x-accepts: + - application/json + /instances/{instance_id}/tree: + get: + operationId: get_tree_instances__instance_id__tree_get + parameters: + - explode: false + in: path + name: instance_id + required: true + schema: + format: uuid + nullable: true + type: string + style: simple + - explode: true + in: query + name: entity_type + required: true + schema: + enum: + - artifact + - transform + title: Entity Type + type: string + style: form + - explode: true + in: query + name: schema_id + required: false + schema: + format: uuid + nullable: true + type: string + style: form + - explode: false + in: header + name: Authorization + required: false + schema: + nullable: true + type: string + style: simple + responses: + "200": + content: + application/json: + schema: {} + description: Successful Response + "422": + content: + application/json: + schema: + $ref: '#/components/schemas/HTTPValidationError' + description: Validation Error + summary: Get Tree + x-accepts: + - application/json + /instances/{instance_id}/forms: + post: + description: |- + Register a form for a specific instance. + + Parameters: + - **body**: Request body containing form details + - **key**: Key of the form + - **data**: Form data + - **schema_uid**: UID of the schema + + Returns: + - **201**: Form registered successfully + operationId: register_form_instances__instance_id__forms_post + parameters: + - explode: false + in: path + name: instance_id + required: true + schema: + format: uuid + nullable: true + type: string + style: simple + - explode: false + in: header + name: Authorization + required: false + schema: + nullable: true + type: string + style: simple + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/RegisterFormRequest' + required: true + responses: + "200": + content: + application/json: + schema: {} + description: Successful Response + "422": + content: + application/json: + schema: + $ref: '#/components/schemas/HTTPValidationError' + description: Validation Error + summary: Register Form + x-content-type: application/json + x-accepts: + - application/json + /_debug/ip: + get: + operationId: get_ip__debug_ip_get + responses: + "200": + content: + application/json: + schema: {} + description: Successful Response + summary: Get Ip + x-accepts: + - application/json + /_debug/db-access: + post: + operationId: check_db_access__debug_db_access_post + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/DbUrlRequest' + required: true + responses: + "200": + content: + application/json: + schema: {} + description: Successful Response + "422": + content: + application/json: + schema: + $ref: '#/components/schemas/HTTPValidationError' + description: Validation Error + summary: Check Db Access + x-content-type: application/json + x-accepts: + - application/json + /db/server/register: + post: + operationId: register_db_server_db_server_register_post + parameters: + - explode: false + in: header + name: Authorization + required: false + schema: + nullable: true + type: string + style: simple + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/RegisterDbServerBody' + required: true + responses: + "200": + content: + application/json: + schema: {} + description: Successful Response + "422": + content: + application/json: + schema: + $ref: '#/components/schemas/HTTPValidationError' + description: Validation Error + summary: Register Db Server + x-content-type: application/json + x-accepts: + - application/json + /db/server/check-access: + post: + operationId: check_db_server_access_db_server_check_access_post + parameters: + - explode: true + in: query + name: name + required: true + schema: + title: Name + type: string + style: form + - explode: false + in: header + name: Authorization + required: false + schema: + nullable: true + type: string + style: simple + responses: + "200": + content: + application/json: + schema: {} + description: Successful Response + "422": + content: + application/json: + schema: + $ref: '#/components/schemas/HTTPValidationError' + description: Validation Error + summary: Check Db Server Access + x-accepts: + - application/json components: schemas: AddCollaboratorRequestBody: @@ -3027,15 +3307,10 @@ components: title: AddSpaceCollaboratorRequestBody AddTeamMemberRequestBody: example: - role: member + role: admin properties: role: - default: member - enum: - - admin - - member - title: Role - type: string + $ref: '#/components/schemas/Role' title: AddTeamMemberRequestBody AttachSpaceToRecordRequestBody: example: @@ -3097,6 +3372,16 @@ components: - name - organization_id title: CreateTeamRequestBody + DbUrlRequest: + example: + db_url: db_url + properties: + db_url: + title: Db Url + type: string + required: + - db_url + title: DbUrlRequest Dimension: example: func: count @@ -3276,6 +3561,47 @@ components: required: - field title: OrderByColumn + RegisterDbServerBody: + example: + name: name + api_server_name: api_server_name + url: url + properties: + name: + title: Name + type: string + url: + title: Url + type: string + api_server_name: + title: Api Server Name + type: string + required: + - api_server_name + - name + - url + title: RegisterDbServerBody + RegisterFormRequest: + example: + data: + key: "" + schema_uid: schema_uid + key: key + properties: + key: + title: Key + type: string + data: + additionalProperties: {} + title: Data + schema_uid: + title: Schema Uid + type: string + required: + - data + - key + - schema_uid + title: RegisterFormRequest S3PermissionsRequest: example: aws_access_key_id: aws_access_key_id @@ -3359,11 +3685,7 @@ components: role: admin properties: role: - enum: - - admin - - member - title: Role - type: string + $ref: '#/components/schemas/Role_1' required: - role title: UpdateTeamMemberRequestBody @@ -3402,6 +3724,31 @@ components: - msg - type title: ValidationError + Role: + anyOf: + - enum: + - admin + - member + type: string + - enum: + - admin + - member + - manager + type: string + default: member + title: Role + Role_1: + anyOf: + - enum: + - admin + - member + type: string + - enum: + - admin + - member + - manager + type: string + title: Role ValidationError_loc_inner: anyOf: - type: string diff --git a/config.yaml b/config.yaml index 954c896..d6bb668 100644 --- a/config.yaml +++ b/config.yaml @@ -53,7 +53,7 @@ groupId: ai.lamin # Default: org.openapitools artifactId: lamin-api-client # Description: artifact version in generated pom.xml. This also becomes part of the generated library's filename. If not provided, uses the version from the OpenAPI specification file. If that's also not present, uses the default value of the artifactVersion option. -artifactVersion: 0.0.1 +artifactVersion: 0.0.2 # Description: artifact URL in generated pom.xml artifactUrl: https://github.com/laminlabs/lamin-api-client-java diff --git a/docs/AddTeamMemberRequestBody.md b/docs/AddTeamMemberRequestBody.md index 442cd14..b84df1e 100644 --- a/docs/AddTeamMemberRequestBody.md +++ b/docs/AddTeamMemberRequestBody.md @@ -7,16 +7,7 @@ | Name | Type | Description | Notes | |------------ | ------------- | ------------- | -------------| -|**role** | [**RoleEnum**](#RoleEnum) | | [optional] | - - - -## Enum: RoleEnum - -| Name | Value | -|---- | -----| -| ADMIN | "admin" | -| MEMBER | "member" | +|**role** | [**Role**](Role.md) | | [optional] | diff --git a/docs/DbUrlRequest.md b/docs/DbUrlRequest.md new file mode 100644 index 0000000..cecd140 --- /dev/null +++ b/docs/DbUrlRequest.md @@ -0,0 +1,13 @@ + + +# DbUrlRequest + + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**dbUrl** | **String** | | | + + + diff --git a/docs/DefaultApi.md b/docs/DefaultApi.md index 76e276a..74b6003 100644 --- a/docs/DefaultApi.md +++ b/docs/DefaultApi.md @@ -10,6 +10,8 @@ All URIs are relative to *https://aws.us-east-1.lamin.ai/api* | [**addTeamMemberAccessV2TeamsTeamIdMembersAccountIdPut**](DefaultApi.md#addTeamMemberAccessV2TeamsTeamIdMembersAccountIdPut) | **PUT** /access_v2/teams/{team_id}/members/{account_id} | Add Team Member | | [**attachLabelInstancesInstanceIdModulesModuleNameModelNameIdLabelFieldLabelIdPut**](DefaultApi.md#attachLabelInstancesInstanceIdModulesModuleNameModelNameIdLabelFieldLabelIdPut) | **PUT** /instances/{instance_id}/modules/{module_name}/{model_name}/{id}/{label_field}/{label_id} | Attach Label | | [**attachSpaceToInstanceAccessV2SpacesSpaceIdInstancesInstanceIdPut**](DefaultApi.md#attachSpaceToInstanceAccessV2SpacesSpaceIdInstancesInstanceIdPut) | **PUT** /access_v2/spaces/{space_id}/instances/{instance_id} | Attach Space To Instance | +| [**checkDbAccessDebugDbAccessPost**](DefaultApi.md#checkDbAccessDebugDbAccessPost) | **POST** /_debug/db-access | Check Db Access | +| [**checkDbServerAccessDbServerCheckAccessPost**](DefaultApi.md#checkDbServerAccessDbServerCheckAccessPost) | **POST** /db/server/check-access | Check Db Server Access | | [**createInstanceInstancesPut**](DefaultApi.md#createInstanceInstancesPut) | **PUT** /instances | Create Instance | | [**createRecordInstancesInstanceIdModulesModuleNameModelNamePut**](DefaultApi.md#createRecordInstancesInstanceIdModulesModuleNameModelNamePut) | **PUT** /instances/{instance_id}/modules/{module_name}/{model_name} | Create Record | | [**createSpaceAccessV2SpacesPut**](DefaultApi.md#createSpaceAccessV2SpacesPut) | **PUT** /access_v2/spaces | Create Space | @@ -23,6 +25,7 @@ All URIs are relative to *https://aws.us-east-1.lamin.ai/api* | [**detachSpaceFromInstanceAccessV2SpacesSpaceIdInstancesInstanceIdDelete**](DefaultApi.md#detachSpaceFromInstanceAccessV2SpacesSpaceIdInstancesInstanceIdDelete) | **DELETE** /access_v2/spaces/{space_id}/instances/{instance_id} | Detach Space From Instance | | [**getDbTokenAccessV2InstancesInstanceIdDbTokenGet**](DefaultApi.md#getDbTokenAccessV2InstancesInstanceIdDbTokenGet) | **GET** /access_v2/instances/{instance_id}/db_token | Get Db Token | | [**getInstanceStatisticsInstancesInstanceIdStatisticsGet**](DefaultApi.md#getInstanceStatisticsInstancesInstanceIdStatisticsGet) | **GET** /instances/{instance_id}/statistics | Get Instance Statistics | +| [**getIpDebugIpGet**](DefaultApi.md#getIpDebugIpGet) | **GET** /_debug/ip | Get Ip | | [**getNonEmptyTablesInstancesInstanceIdNonEmptyTablesGet**](DefaultApi.md#getNonEmptyTablesInstancesInstanceIdNonEmptyTablesGet) | **GET** /instances/{instance_id}/non_empty_tables | Get Non Empty Tables | | [**getRecordInstancesInstanceIdModulesModuleNameModelNameIdOrUidPost**](DefaultApi.md#getRecordInstancesInstanceIdModulesModuleNameModelNameIdOrUidPost) | **POST** /instances/{instance_id}/modules/{module_name}/{model_name}/{id_or_uid} | Get Record | | [**getRecordsInstancesInstanceIdModulesModuleNameModelNamePost**](DefaultApi.md#getRecordsInstancesInstanceIdModulesModuleNameModelNamePost) | **POST** /instances/{instance_id}/modules/{module_name}/{model_name} | Get Records | @@ -31,10 +34,12 @@ All URIs are relative to *https://aws.us-east-1.lamin.ai/api* | [**getSchemaInstancesInstanceIdSchemaGet**](DefaultApi.md#getSchemaInstancesInstanceIdSchemaGet) | **GET** /instances/{instance_id}/schema | Get Schema | | [**getSpaceAccessV2SpacesSpaceIdGet**](DefaultApi.md#getSpaceAccessV2SpacesSpaceIdGet) | **GET** /access_v2/spaces/{space_id} | Get Space | | [**getTeamAccessV2TeamsTeamIdGet**](DefaultApi.md#getTeamAccessV2TeamsTeamIdGet) | **GET** /access_v2/teams/{team_id} | Get Team | +| [**getTreeInstancesInstanceIdTreeGet**](DefaultApi.md#getTreeInstancesInstanceIdTreeGet) | **GET** /instances/{instance_id}/tree | Get Tree | | [**getValuesInstancesInstanceIdModulesModuleNameModelNameFieldsFieldPathPost**](DefaultApi.md#getValuesInstancesInstanceIdModulesModuleNameModelNameFieldsFieldPathPost) | **POST** /instances/{instance_id}/modules/{module_name}/{model_name}/fields/{field_path} | Get Values | | [**grantS3PermissionsStoragesS3BucketNamePermissionsPut**](DefaultApi.md#grantS3PermissionsStoragesS3BucketNamePermissionsPut) | **PUT** /storages/s3/{bucket_name}/permissions | Grant S3 Permissions | | [**groupByInstancesInstanceIdModulesModuleNameModelNameGroupByPost**](DefaultApi.md#groupByInstancesInstanceIdModulesModuleNameModelNameGroupByPost) | **POST** /instances/{instance_id}/modules/{module_name}/{model_name}/group-by | Group By | | [**listCollaboratorsAccessV2InstancesInstanceIdCollaboratorsGet**](DefaultApi.md#listCollaboratorsAccessV2InstancesInstanceIdCollaboratorsGet) | **GET** /access_v2/instances/{instance_id}/collaborators | List Collaborators | +| [**listDirectoryInstancesInstanceIdEntityTypeGet**](DefaultApi.md#listDirectoryInstancesInstanceIdEntityTypeGet) | **GET** /instances/{instance_id}/{entity_type} | List Directory | | [**listInstanceSpacesAccessV2SpacesInstancesInstanceIdGet**](DefaultApi.md#listInstanceSpacesAccessV2SpacesInstancesInstanceIdGet) | **GET** /access_v2/spaces/instances/{instance_id} | List Instance Spaces | | [**listInstancesUsingSpaceAccessV2SpacesSpaceIdInstancesGet**](DefaultApi.md#listInstancesUsingSpaceAccessV2SpacesSpaceIdInstancesGet) | **GET** /access_v2/spaces/{space_id}/instances | List Instances Using Space | | [**listOrganizationSpacesAccessV2SpacesOrganizationsOrganizationIdGet**](DefaultApi.md#listOrganizationSpacesAccessV2SpacesOrganizationsOrganizationIdGet) | **GET** /access_v2/spaces/organizations/{organization_id} | List Organization Spaces | @@ -47,6 +52,8 @@ All URIs are relative to *https://aws.us-east-1.lamin.ai/api* | [**proxyS3S3PathGet_1**](DefaultApi.md#proxyS3S3PathGet_1) | **PUT** /s3/{path} | Proxy S3 | | [**proxyS3S3PathGet_2**](DefaultApi.md#proxyS3S3PathGet_2) | **POST** /s3/{path} | Proxy S3 | | [**proxyS3S3PathGet_3**](DefaultApi.md#proxyS3S3PathGet_3) | **DELETE** /s3/{path} | Proxy S3 | +| [**registerDbServerDbServerRegisterPost**](DefaultApi.md#registerDbServerDbServerRegisterPost) | **POST** /db/server/register | Register Db Server | +| [**registerFormInstancesInstanceIdFormsPost**](DefaultApi.md#registerFormInstancesInstanceIdFormsPost) | **POST** /instances/{instance_id}/forms | Register Form | | [**removeCollaboratorAccessV2InstancesInstanceIdCollaboratorsDelete**](DefaultApi.md#removeCollaboratorAccessV2InstancesInstanceIdCollaboratorsDelete) | **DELETE** /access_v2/instances/{instance_id}/collaborators | Remove Collaborator | | [**removeSpaceCollaboratorAccessV2SpacesSpaceIdCollaboratorsDelete**](DefaultApi.md#removeSpaceCollaboratorAccessV2SpacesSpaceIdCollaboratorsDelete) | **DELETE** /access_v2/spaces/{space_id}/collaborators | Remove Space Collaborator | | [**removeTeamMemberAccessV2TeamsTeamIdMembersAccountIdDelete**](DefaultApi.md#removeTeamMemberAccessV2TeamsTeamIdMembersAccountIdDelete) | **DELETE** /access_v2/teams/{team_id}/members/{account_id} | Remove Team Member | @@ -219,7 +226,7 @@ public class Example { defaultClient.setBasePath("https://aws.us-east-1.lamin.ai/api"); DefaultApi apiInstance = new DefaultApi(defaultClient); - Integer spaceId = 56; // Integer | + UUID spaceId = UUID.randomUUID(); // UUID | AddSpaceCollaboratorRequestBody addSpaceCollaboratorRequestBody = new AddSpaceCollaboratorRequestBody(); // AddSpaceCollaboratorRequestBody | String authorization = "authorization_example"; // String | try { @@ -240,7 +247,7 @@ public class Example { | Name | Type | Description | Notes | |------------- | ------------- | ------------- | -------------| -| **spaceId** | **Integer**| | | +| **spaceId** | **UUID**| | | | **addSpaceCollaboratorRequestBody** | [**AddSpaceCollaboratorRequestBody**](AddSpaceCollaboratorRequestBody.md)| | | | **authorization** | **String**| | [optional] | @@ -430,7 +437,7 @@ public class Example { defaultClient.setBasePath("https://aws.us-east-1.lamin.ai/api"); DefaultApi apiInstance = new DefaultApi(defaultClient); - Integer spaceId = 56; // Integer | + UUID spaceId = UUID.randomUUID(); // UUID | UUID instanceId = UUID.randomUUID(); // UUID | String authorization = "authorization_example"; // String | try { @@ -451,7 +458,7 @@ public class Example { | Name | Type | Description | Notes | |------------- | ------------- | ------------- | -------------| -| **spaceId** | **Integer**| | | +| **spaceId** | **UUID**| | | | **instanceId** | **UUID**| | | | **authorization** | **String**| | [optional] | @@ -474,9 +481,133 @@ No authorization required | **200** | Successful Response | - | | **422** | Validation Error | - | + +# **checkDbAccessDebugDbAccessPost** +> Object checkDbAccessDebugDbAccessPost(dbUrlRequest) + +Check Db Access + +### Example +```java +// Import classes: +import ai.lamin.lamin_api_client.ApiClient; +import ai.lamin.lamin_api_client.ApiException; +import ai.lamin.lamin_api_client.Configuration; +import ai.lamin.lamin_api_client.models.*; +import ai.lamin.lamin_api_client.api.DefaultApi; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("https://aws.us-east-1.lamin.ai/api"); + + DefaultApi apiInstance = new DefaultApi(defaultClient); + DbUrlRequest dbUrlRequest = new DbUrlRequest(); // DbUrlRequest | + try { + Object result = apiInstance.checkDbAccessDebugDbAccessPost(dbUrlRequest); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling DefaultApi#checkDbAccessDebugDbAccessPost"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **dbUrlRequest** | [**DbUrlRequest**](DbUrlRequest.md)| | | + +### Return type + +**Object** + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | Successful Response | - | +| **422** | Validation Error | - | + + +# **checkDbServerAccessDbServerCheckAccessPost** +> Object checkDbServerAccessDbServerCheckAccessPost(name, authorization) + +Check Db Server Access + +### Example +```java +// Import classes: +import ai.lamin.lamin_api_client.ApiClient; +import ai.lamin.lamin_api_client.ApiException; +import ai.lamin.lamin_api_client.Configuration; +import ai.lamin.lamin_api_client.models.*; +import ai.lamin.lamin_api_client.api.DefaultApi; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("https://aws.us-east-1.lamin.ai/api"); + + DefaultApi apiInstance = new DefaultApi(defaultClient); + String name = "name_example"; // String | + String authorization = "authorization_example"; // String | + try { + Object result = apiInstance.checkDbServerAccessDbServerCheckAccessPost(name, authorization); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling DefaultApi#checkDbServerAccessDbServerCheckAccessPost"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **name** | **String**| | | +| **authorization** | **String**| | [optional] | + +### Return type + +**Object** + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | Successful Response | - | +| **422** | Validation Error | - | + # **createInstanceInstancesPut** -> Object createInstanceInstancesPut(name, storage, schemaStr, dbServerKey, dbServerUrl, authorization) +> Object createInstanceInstancesPut(name, storage, schemaStr, dbServerKey, authorization) Create Instance @@ -499,10 +630,9 @@ public class Example { String storage = "create-s3"; // String | String schemaStr = "schemaStr_example"; // String | String dbServerKey = "dbServerKey_example"; // String | - String dbServerUrl = "dbServerUrl_example"; // String | String authorization = "authorization_example"; // String | try { - Object result = apiInstance.createInstanceInstancesPut(name, storage, schemaStr, dbServerKey, dbServerUrl, authorization); + Object result = apiInstance.createInstanceInstancesPut(name, storage, schemaStr, dbServerKey, authorization); System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling DefaultApi#createInstanceInstancesPut"); @@ -523,7 +653,6 @@ public class Example { | **storage** | **String**| | [optional] [default to create-s3] | | **schemaStr** | **String**| | [optional] | | **dbServerKey** | **String**| | [optional] | -| **dbServerUrl** | **String**| | [optional] | | **authorization** | **String**| | [optional] | ### Return type @@ -970,7 +1099,7 @@ public class Example { defaultClient.setBasePath("https://aws.us-east-1.lamin.ai/api"); DefaultApi apiInstance = new DefaultApi(defaultClient); - Integer spaceId = 56; // Integer | + UUID spaceId = UUID.randomUUID(); // UUID | String authorization = "authorization_example"; // String | try { Object result = apiInstance.deleteSpaceAccessV2SpacesSpaceIdDelete(spaceId, authorization); @@ -990,7 +1119,7 @@ public class Example { | Name | Type | Description | Notes | |------------- | ------------- | ------------- | -------------| -| **spaceId** | **Integer**| | | +| **spaceId** | **UUID**| | | | **authorization** | **String**| | [optional] | ### Return type @@ -1175,7 +1304,7 @@ public class Example { defaultClient.setBasePath("https://aws.us-east-1.lamin.ai/api"); DefaultApi apiInstance = new DefaultApi(defaultClient); - Integer spaceId = 56; // Integer | + UUID spaceId = UUID.randomUUID(); // UUID | UUID instanceId = UUID.randomUUID(); // UUID | String authorization = "authorization_example"; // String | try { @@ -1196,7 +1325,7 @@ public class Example { | Name | Type | Description | Notes | |------------- | ------------- | ------------- | -------------| -| **spaceId** | **Integer**| | | +| **spaceId** | **UUID**| | | | **instanceId** | **UUID**| | | | **authorization** | **String**| | [optional] | @@ -1351,6 +1480,62 @@ No authorization required | **200** | Successful Response | - | | **422** | Validation Error | - | + +# **getIpDebugIpGet** +> Object getIpDebugIpGet() + +Get Ip + +### Example +```java +// Import classes: +import ai.lamin.lamin_api_client.ApiClient; +import ai.lamin.lamin_api_client.ApiException; +import ai.lamin.lamin_api_client.Configuration; +import ai.lamin.lamin_api_client.models.*; +import ai.lamin.lamin_api_client.api.DefaultApi; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("https://aws.us-east-1.lamin.ai/api"); + + DefaultApi apiInstance = new DefaultApi(defaultClient); + try { + Object result = apiInstance.getIpDebugIpGet(); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling DefaultApi#getIpDebugIpGet"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters +This endpoint does not need any parameter. + +### Return type + +**Object** + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | Successful Response | - | + # **getNonEmptyTablesInstancesInstanceIdNonEmptyTablesGet** > Object getNonEmptyTablesInstancesInstanceIdNonEmptyTablesGet(instanceId, schemaId, authorization) @@ -1796,7 +1981,7 @@ public class Example { defaultClient.setBasePath("https://aws.us-east-1.lamin.ai/api"); DefaultApi apiInstance = new DefaultApi(defaultClient); - Integer spaceId = 56; // Integer | + UUID spaceId = UUID.randomUUID(); // UUID | String authorization = "authorization_example"; // String | try { Object result = apiInstance.getSpaceAccessV2SpacesSpaceIdGet(spaceId, authorization); @@ -1816,7 +2001,7 @@ public class Example { | Name | Type | Description | Notes | |------------- | ------------- | ------------- | -------------| -| **spaceId** | **Integer**| | | +| **spaceId** | **UUID**| | | | **authorization** | **String**| | [optional] | ### Return type @@ -1903,6 +2088,73 @@ No authorization required | **200** | Successful Response | - | | **422** | Validation Error | - | + +# **getTreeInstancesInstanceIdTreeGet** +> Object getTreeInstancesInstanceIdTreeGet(instanceId, entityType, schemaId, authorization) + +Get Tree + +### Example +```java +// Import classes: +import ai.lamin.lamin_api_client.ApiClient; +import ai.lamin.lamin_api_client.ApiException; +import ai.lamin.lamin_api_client.Configuration; +import ai.lamin.lamin_api_client.models.*; +import ai.lamin.lamin_api_client.api.DefaultApi; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("https://aws.us-east-1.lamin.ai/api"); + + DefaultApi apiInstance = new DefaultApi(defaultClient); + UUID instanceId = UUID.randomUUID(); // UUID | + String entityType = "artifact"; // String | + UUID schemaId = UUID.randomUUID(); // UUID | + String authorization = "authorization_example"; // String | + try { + Object result = apiInstance.getTreeInstancesInstanceIdTreeGet(instanceId, entityType, schemaId, authorization); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling DefaultApi#getTreeInstancesInstanceIdTreeGet"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **instanceId** | **UUID**| | | +| **entityType** | **String**| | [enum: artifact, transform] | +| **schemaId** | **UUID**| | [optional] | +| **authorization** | **String**| | [optional] | + +### Return type + +**Object** + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | Successful Response | - | +| **422** | Validation Error | - | + # **getValuesInstancesInstanceIdModulesModuleNameModelNameFieldsFieldPathPost** > Object getValuesInstancesInstanceIdModulesModuleNameModelNameFieldsFieldPathPost(moduleName, modelName, fieldPath, instanceId, limit, offset, schemaId, authorization, getValuesRequestBody) @@ -2126,7 +2378,7 @@ No authorization required List Collaborators -List all collaborators of an instance. Parameters: - **instance_id**: UUID of the instance to list collaborators for (from URL path) Returns: - **200**: List of instance collaborators retrieved successfully - **404**: Instance not found Requires read access to the instance +List all collaborators of an instance. Parameters: - **instance_id**: UUID of the instance to list collaborators for (from URL path) Returns: - **200**: List of instance collaborators retrieved successfully Requires read access to the instance ### Example ```java @@ -2185,6 +2437,75 @@ No authorization required | **200** | Successful Response | - | | **422** | Validation Error | - | + +# **listDirectoryInstancesInstanceIdEntityTypeGet** +> Object listDirectoryInstancesInstanceIdEntityTypeGet(entityType, instanceId, path, schemaId, authorization) + +List Directory + +### Example +```java +// Import classes: +import ai.lamin.lamin_api_client.ApiClient; +import ai.lamin.lamin_api_client.ApiException; +import ai.lamin.lamin_api_client.Configuration; +import ai.lamin.lamin_api_client.models.*; +import ai.lamin.lamin_api_client.api.DefaultApi; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("https://aws.us-east-1.lamin.ai/api"); + + DefaultApi apiInstance = new DefaultApi(defaultClient); + String entityType = "artifact"; // String | + UUID instanceId = UUID.randomUUID(); // UUID | + String path = ""; // String | + UUID schemaId = UUID.randomUUID(); // UUID | + String authorization = "authorization_example"; // String | + try { + Object result = apiInstance.listDirectoryInstancesInstanceIdEntityTypeGet(entityType, instanceId, path, schemaId, authorization); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling DefaultApi#listDirectoryInstancesInstanceIdEntityTypeGet"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **entityType** | **String**| | [enum: artifact, transform] | +| **instanceId** | **UUID**| | | +| **path** | **String**| | [optional] [default to ] | +| **schemaId** | **UUID**| | [optional] | +| **authorization** | **String**| | [optional] | + +### Return type + +**Object** + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | Successful Response | - | +| **422** | Validation Error | - | + # **listInstanceSpacesAccessV2SpacesInstancesInstanceIdGet** > Object listInstanceSpacesAccessV2SpacesInstancesInstanceIdGet(instanceId, authorization) @@ -2273,7 +2594,7 @@ public class Example { defaultClient.setBasePath("https://aws.us-east-1.lamin.ai/api"); DefaultApi apiInstance = new DefaultApi(defaultClient); - Integer spaceId = 56; // Integer | + UUID spaceId = UUID.randomUUID(); // UUID | String authorization = "authorization_example"; // String | try { Object result = apiInstance.listInstancesUsingSpaceAccessV2SpacesSpaceIdInstancesGet(spaceId, authorization); @@ -2293,7 +2614,7 @@ public class Example { | Name | Type | Description | Notes | |------------- | ------------- | ------------- | -------------| -| **spaceId** | **Integer**| | | +| **spaceId** | **UUID**| | | | **authorization** | **String**| | [optional] | ### Return type @@ -2468,7 +2789,7 @@ public class Example { defaultClient.setBasePath("https://aws.us-east-1.lamin.ai/api"); DefaultApi apiInstance = new DefaultApi(defaultClient); - Integer spaceId = 56; // Integer | + UUID spaceId = UUID.randomUUID(); // UUID | String authorization = "authorization_example"; // String | try { Object result = apiInstance.listSpaceCollaboratorsAccessV2SpacesSpaceIdCollaboratorsGet(spaceId, authorization); @@ -2488,7 +2809,7 @@ public class Example { | Name | Type | Description | Notes | |------------- | ------------- | ------------- | -------------| -| **spaceId** | **Integer**| | | +| **spaceId** | **UUID**| | | | **authorization** | **String**| | [optional] | ### Return type @@ -2577,7 +2898,7 @@ No authorization required # **moveRecordToSpaceAccessV2SpacesSpaceIdRecordAttachmentsPut** -> Object moveRecordToSpaceAccessV2SpacesSpaceIdRecordAttachmentsPut(spaceId, attachSpaceToRecordRequestBody, instanceId, schemaId, authorization) +> Object moveRecordToSpaceAccessV2SpacesSpaceIdRecordAttachmentsPut(instanceDbSpaceId, attachSpaceToRecordRequestBody, instanceId, schemaId, authorization) Move Record To Space @@ -2598,13 +2919,13 @@ public class Example { defaultClient.setBasePath("https://aws.us-east-1.lamin.ai/api"); DefaultApi apiInstance = new DefaultApi(defaultClient); - Integer spaceId = 56; // Integer | + Integer instanceDbSpaceId = 56; // Integer | AttachSpaceToRecordRequestBody attachSpaceToRecordRequestBody = new AttachSpaceToRecordRequestBody(); // AttachSpaceToRecordRequestBody | UUID instanceId = UUID.randomUUID(); // UUID | UUID schemaId = UUID.randomUUID(); // UUID | String authorization = "authorization_example"; // String | try { - Object result = apiInstance.moveRecordToSpaceAccessV2SpacesSpaceIdRecordAttachmentsPut(spaceId, attachSpaceToRecordRequestBody, instanceId, schemaId, authorization); + Object result = apiInstance.moveRecordToSpaceAccessV2SpacesSpaceIdRecordAttachmentsPut(instanceDbSpaceId, attachSpaceToRecordRequestBody, instanceId, schemaId, authorization); System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling DefaultApi#moveRecordToSpaceAccessV2SpacesSpaceIdRecordAttachmentsPut"); @@ -2621,7 +2942,7 @@ public class Example { | Name | Type | Description | Notes | |------------- | ------------- | ------------- | -------------| -| **spaceId** | **Integer**| | | +| **instanceDbSpaceId** | **Integer**| | | | **attachSpaceToRecordRequestBody** | [**AttachSpaceToRecordRequestBody**](AttachSpaceToRecordRequestBody.md)| | | | **instanceId** | **UUID**| | [optional] | | **schemaId** | **UUID**| | [optional] | @@ -2951,13 +3272,143 @@ No authorization required | **200** | Successful Response | - | | **422** | Validation Error | - | + +# **registerDbServerDbServerRegisterPost** +> Object registerDbServerDbServerRegisterPost(registerDbServerBody, authorization) + +Register Db Server + +### Example +```java +// Import classes: +import ai.lamin.lamin_api_client.ApiClient; +import ai.lamin.lamin_api_client.ApiException; +import ai.lamin.lamin_api_client.Configuration; +import ai.lamin.lamin_api_client.models.*; +import ai.lamin.lamin_api_client.api.DefaultApi; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("https://aws.us-east-1.lamin.ai/api"); + + DefaultApi apiInstance = new DefaultApi(defaultClient); + RegisterDbServerBody registerDbServerBody = new RegisterDbServerBody(); // RegisterDbServerBody | + String authorization = "authorization_example"; // String | + try { + Object result = apiInstance.registerDbServerDbServerRegisterPost(registerDbServerBody, authorization); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling DefaultApi#registerDbServerDbServerRegisterPost"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **registerDbServerBody** | [**RegisterDbServerBody**](RegisterDbServerBody.md)| | | +| **authorization** | **String**| | [optional] | + +### Return type + +**Object** + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | Successful Response | - | +| **422** | Validation Error | - | + + +# **registerFormInstancesInstanceIdFormsPost** +> Object registerFormInstancesInstanceIdFormsPost(instanceId, registerFormRequest, authorization) + +Register Form + +Register a form for a specific instance. Parameters: - **body**: Request body containing form details - **key**: Key of the form - **data**: Form data - **schema_uid**: UID of the schema Returns: - **201**: Form registered successfully + +### Example +```java +// Import classes: +import ai.lamin.lamin_api_client.ApiClient; +import ai.lamin.lamin_api_client.ApiException; +import ai.lamin.lamin_api_client.Configuration; +import ai.lamin.lamin_api_client.models.*; +import ai.lamin.lamin_api_client.api.DefaultApi; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("https://aws.us-east-1.lamin.ai/api"); + + DefaultApi apiInstance = new DefaultApi(defaultClient); + UUID instanceId = UUID.randomUUID(); // UUID | + RegisterFormRequest registerFormRequest = new RegisterFormRequest(); // RegisterFormRequest | + String authorization = "authorization_example"; // String | + try { + Object result = apiInstance.registerFormInstancesInstanceIdFormsPost(instanceId, registerFormRequest, authorization); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling DefaultApi#registerFormInstancesInstanceIdFormsPost"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **instanceId** | **UUID**| | | +| **registerFormRequest** | [**RegisterFormRequest**](RegisterFormRequest.md)| | | +| **authorization** | **String**| | [optional] | + +### Return type + +**Object** + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | Successful Response | - | +| **422** | Validation Error | - | + # **removeCollaboratorAccessV2InstancesInstanceIdCollaboratorsDelete** > Object removeCollaboratorAccessV2InstancesInstanceIdCollaboratorsDelete(instanceId, accountId, teamId, authorization) Remove Collaborator -Remove a collaborator from an instance. Parameters: - **instance_id**: UUID of the instance (from URL path) - **account_id**: UUID of the account to remove (mutually exclusive with team_id) - **team_id**: UUID of the team to remove (mutually exclusive with account_id) Returns: - **200**: Collaborator removed successfully - **400**: Invalid input (e.g., both account_id and team_id provided) - **404**: Collaborator not found Requires admin access to the instance +Remove a collaborator from an instance. Parameters: - **instance_id**: UUID of the instance (from URL path) - **account_id**: UUID of the account to remove (mutually exclusive with team_id) - **team_id**: UUID of the team to remove (mutually exclusive with account_id) Returns: - **200**: Collaborator removed successfully - **400**: Invalid input (e.g., both account_id and team_id provided) Requires admin access to the instance ### Example ```java @@ -3043,7 +3494,7 @@ public class Example { defaultClient.setBasePath("https://aws.us-east-1.lamin.ai/api"); DefaultApi apiInstance = new DefaultApi(defaultClient); - Integer spaceId = 56; // Integer | + UUID spaceId = UUID.randomUUID(); // UUID | UUID accountId = UUID.randomUUID(); // UUID | UUID teamId = UUID.randomUUID(); // UUID | String authorization = "authorization_example"; // String | @@ -3065,7 +3516,7 @@ public class Example { | Name | Type | Description | Notes | |------------- | ------------- | ------------- | -------------| -| **spaceId** | **Integer**| | | +| **spaceId** | **UUID**| | | | **accountId** | **UUID**| | [optional] | | **teamId** | **UUID**| | [optional] | | **authorization** | **String**| | [optional] | @@ -3229,7 +3680,7 @@ No authorization required Update Collaborator -Update a collaborator's permissions on an instance. Parameters: - **instance_id**: UUID of the instance (from URL path) - **body**: Request body containing collaborator details - **account_id**: UUID of the account to update (mutually exclusive with team_id) - **team_id**: UUID of the team to update (mutually exclusive with account_id) - **role**: Role of the collaborator Returns: - **200**: Collaborator updated successfully - **400**: Invalid input (e.g., both account_id and team_id provided) - **404**: Collaborator not found Requires admin access to the instance +Update a collaborator's permissions on an instance. Parameters: - **instance_id**: UUID of the instance (from URL path) - **body**: Request body containing collaborator details - **account_id**: UUID of the account to update (mutually exclusive with team_id) - **team_id**: UUID of the team to update (mutually exclusive with account_id) - **role**: Role of the collaborator Returns: - **200**: Collaborator updated successfully - **400**: Invalid input (e.g., both account_id and team_id provided) Requires admin access to the instance ### Example ```java @@ -3453,7 +3904,7 @@ public class Example { defaultClient.setBasePath("https://aws.us-east-1.lamin.ai/api"); DefaultApi apiInstance = new DefaultApi(defaultClient); - Integer spaceId = 56; // Integer | + UUID spaceId = UUID.randomUUID(); // UUID | UpdateSpaceRequestBody updateSpaceRequestBody = new UpdateSpaceRequestBody(); // UpdateSpaceRequestBody | String authorization = "authorization_example"; // String | try { @@ -3474,7 +3925,7 @@ public class Example { | Name | Type | Description | Notes | |------------- | ------------- | ------------- | -------------| -| **spaceId** | **Integer**| | | +| **spaceId** | **UUID**| | | | **updateSpaceRequestBody** | [**UpdateSpaceRequestBody**](UpdateSpaceRequestBody.md)| | | | **authorization** | **String**| | [optional] | @@ -3520,7 +3971,7 @@ public class Example { defaultClient.setBasePath("https://aws.us-east-1.lamin.ai/api"); DefaultApi apiInstance = new DefaultApi(defaultClient); - Integer spaceId = 56; // Integer | + UUID spaceId = UUID.randomUUID(); // UUID | UpdateSpaceCollaboratorRequestBody updateSpaceCollaboratorRequestBody = new UpdateSpaceCollaboratorRequestBody(); // UpdateSpaceCollaboratorRequestBody | String authorization = "authorization_example"; // String | try { @@ -3541,7 +3992,7 @@ public class Example { | Name | Type | Description | Notes | |------------- | ------------- | ------------- | -------------| -| **spaceId** | **Integer**| | | +| **spaceId** | **UUID**| | | | **updateSpaceCollaboratorRequestBody** | [**UpdateSpaceCollaboratorRequestBody**](UpdateSpaceCollaboratorRequestBody.md)| | | | **authorization** | **String**| | [optional] | diff --git a/docs/RegisterDbServerBody.md b/docs/RegisterDbServerBody.md new file mode 100644 index 0000000..4a7c021 --- /dev/null +++ b/docs/RegisterDbServerBody.md @@ -0,0 +1,15 @@ + + +# RegisterDbServerBody + + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**name** | **String** | | | +|**url** | **String** | | | +|**apiServerName** | **String** | | | + + + diff --git a/docs/RegisterFormRequest.md b/docs/RegisterFormRequest.md new file mode 100644 index 0000000..cae9e79 --- /dev/null +++ b/docs/RegisterFormRequest.md @@ -0,0 +1,15 @@ + + +# RegisterFormRequest + + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**key** | **String** | | | +|**data** | **Map<String, Object>** | | | +|**schemaUid** | **String** | | | + + + diff --git a/docs/Role.md b/docs/Role.md new file mode 100644 index 0000000..16f0055 --- /dev/null +++ b/docs/Role.md @@ -0,0 +1,12 @@ + + +# Role + + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| + + + diff --git a/docs/Role1.md b/docs/Role1.md new file mode 100644 index 0000000..e2b3b77 --- /dev/null +++ b/docs/Role1.md @@ -0,0 +1,12 @@ + + +# Role1 + + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| + + + diff --git a/docs/UpdateTeamMemberRequestBody.md b/docs/UpdateTeamMemberRequestBody.md index 1f29f2f..f90116d 100644 --- a/docs/UpdateTeamMemberRequestBody.md +++ b/docs/UpdateTeamMemberRequestBody.md @@ -7,16 +7,7 @@ | Name | Type | Description | Notes | |------------ | ------------- | ------------- | -------------| -|**role** | [**RoleEnum**](#RoleEnum) | | | - - - -## Enum: RoleEnum - -| Name | Value | -|---- | -----| -| ADMIN | "admin" | -| MEMBER | "member" | +|**role** | [**Role1**](Role1.md) | | | diff --git a/src/main/java/ai/lamin/lamin_api_client/ApiClient.java b/src/main/java/ai/lamin/lamin_api_client/ApiClient.java index 3a3577c..89701e5 100644 --- a/src/main/java/ai/lamin/lamin_api_client/ApiClient.java +++ b/src/main/java/ai/lamin/lamin_api_client/ApiClient.java @@ -139,7 +139,7 @@ private void init() { json = new JSON(); // Set default User-Agent. - setUserAgent("OpenAPI-Generator/0.0.1/java"); + setUserAgent("OpenAPI-Generator/0.0.2/java"); authentications = new HashMap(); } diff --git a/src/main/java/ai/lamin/lamin_api_client/ApiException.java b/src/main/java/ai/lamin/lamin_api_client/ApiException.java index 121918d..bccb56b 100644 --- a/src/main/java/ai/lamin/lamin_api_client/ApiException.java +++ b/src/main/java/ai/lamin/lamin_api_client/ApiException.java @@ -21,7 +21,7 @@ *

ApiException class.

*/ @SuppressWarnings("serial") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-04-03T14:57:42.729190705+02:00[Europe/Brussels]", comments = "Generator version: 7.12.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-10T19:58:41.182141089+02:00[Europe/Brussels]", comments = "Generator version: 7.12.0") public class ApiException extends Exception { private static final long serialVersionUID = 1L; diff --git a/src/main/java/ai/lamin/lamin_api_client/Configuration.java b/src/main/java/ai/lamin/lamin_api_client/Configuration.java index 72c03a8..3a9bcd9 100644 --- a/src/main/java/ai/lamin/lamin_api_client/Configuration.java +++ b/src/main/java/ai/lamin/lamin_api_client/Configuration.java @@ -13,9 +13,9 @@ package ai.lamin.lamin_api_client; -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-04-03T14:57:42.729190705+02:00[Europe/Brussels]", comments = "Generator version: 7.12.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-10T19:58:41.182141089+02:00[Europe/Brussels]", comments = "Generator version: 7.12.0") public class Configuration { - public static final String VERSION = "0.0.1"; + public static final String VERSION = "0.0.2"; private static volatile ApiClient defaultApiClient = new ApiClient(); diff --git a/src/main/java/ai/lamin/lamin_api_client/JSON.java b/src/main/java/ai/lamin/lamin_api_client/JSON.java index fdcdf4c..037ef00 100644 --- a/src/main/java/ai/lamin/lamin_api_client/JSON.java +++ b/src/main/java/ai/lamin/lamin_api_client/JSON.java @@ -99,6 +99,7 @@ private static Class getClassByDiscriminator(Map classByDiscriminatorValue, Stri gsonBuilder.registerTypeAdapterFactory(new ai.lamin.lamin_api_client.model.AttachSpaceToRecordRequestBody.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new ai.lamin.lamin_api_client.model.CreateSpaceRequestBody.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new ai.lamin.lamin_api_client.model.CreateTeamRequestBody.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new ai.lamin.lamin_api_client.model.DbUrlRequest.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new ai.lamin.lamin_api_client.model.Dimension.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new ai.lamin.lamin_api_client.model.GetRecordRequestBody.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new ai.lamin.lamin_api_client.model.GetRecordsRequestBody.CustomTypeAdapterFactory()); @@ -107,6 +108,10 @@ private static Class getClassByDiscriminator(Map classByDiscriminatorValue, Stri gsonBuilder.registerTypeAdapterFactory(new ai.lamin.lamin_api_client.model.HTTPValidationError.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new ai.lamin.lamin_api_client.model.Measure.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new ai.lamin.lamin_api_client.model.OrderByColumn.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new ai.lamin.lamin_api_client.model.RegisterDbServerBody.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new ai.lamin.lamin_api_client.model.RegisterFormRequest.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new ai.lamin.lamin_api_client.model.Role.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new ai.lamin.lamin_api_client.model.Role1.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new ai.lamin.lamin_api_client.model.S3PermissionsRequest.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new ai.lamin.lamin_api_client.model.UpdateCollaboratorRequestBody.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new ai.lamin.lamin_api_client.model.UpdateSpaceCollaboratorRequestBody.CustomTypeAdapterFactory()); diff --git a/src/main/java/ai/lamin/lamin_api_client/Pair.java b/src/main/java/ai/lamin/lamin_api_client/Pair.java index 3e9abb3..eceb20f 100644 --- a/src/main/java/ai/lamin/lamin_api_client/Pair.java +++ b/src/main/java/ai/lamin/lamin_api_client/Pair.java @@ -13,7 +13,7 @@ package ai.lamin.lamin_api_client; -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-04-03T14:57:42.729190705+02:00[Europe/Brussels]", comments = "Generator version: 7.12.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-10T19:58:41.182141089+02:00[Europe/Brussels]", comments = "Generator version: 7.12.0") public class Pair { private String name = ""; private String value = ""; diff --git a/src/main/java/ai/lamin/lamin_api_client/ServerConfiguration.java b/src/main/java/ai/lamin/lamin_api_client/ServerConfiguration.java index 193eac5..97cf0ac 100644 --- a/src/main/java/ai/lamin/lamin_api_client/ServerConfiguration.java +++ b/src/main/java/ai/lamin/lamin_api_client/ServerConfiguration.java @@ -18,7 +18,7 @@ /** * Representing a Server configuration. */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-04-03T14:57:42.729190705+02:00[Europe/Brussels]", comments = "Generator version: 7.12.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-10T19:58:41.182141089+02:00[Europe/Brussels]", comments = "Generator version: 7.12.0") public class ServerConfiguration { public String URL; public String description; diff --git a/src/main/java/ai/lamin/lamin_api_client/ServerVariable.java b/src/main/java/ai/lamin/lamin_api_client/ServerVariable.java index 21b2295..52a189d 100644 --- a/src/main/java/ai/lamin/lamin_api_client/ServerVariable.java +++ b/src/main/java/ai/lamin/lamin_api_client/ServerVariable.java @@ -18,7 +18,7 @@ /** * Representing a Server Variable for server URL template substitution. */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-04-03T14:57:42.729190705+02:00[Europe/Brussels]", comments = "Generator version: 7.12.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-10T19:58:41.182141089+02:00[Europe/Brussels]", comments = "Generator version: 7.12.0") public class ServerVariable { public String description; public String defaultValue; diff --git a/src/main/java/ai/lamin/lamin_api_client/StringUtil.java b/src/main/java/ai/lamin/lamin_api_client/StringUtil.java index 864f50f..fb49389 100644 --- a/src/main/java/ai/lamin/lamin_api_client/StringUtil.java +++ b/src/main/java/ai/lamin/lamin_api_client/StringUtil.java @@ -16,7 +16,7 @@ import java.util.Collection; import java.util.Iterator; -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-04-03T14:57:42.729190705+02:00[Europe/Brussels]", comments = "Generator version: 7.12.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-10T19:58:41.182141089+02:00[Europe/Brussels]", comments = "Generator version: 7.12.0") public class StringUtil { /** * Check if the given array contains the given value (with case-insensitive comparison). diff --git a/src/main/java/ai/lamin/lamin_api_client/api/DefaultApi.java b/src/main/java/ai/lamin/lamin_api_client/api/DefaultApi.java index e617943..e6cc953 100644 --- a/src/main/java/ai/lamin/lamin_api_client/api/DefaultApi.java +++ b/src/main/java/ai/lamin/lamin_api_client/api/DefaultApi.java @@ -33,11 +33,14 @@ import ai.lamin.lamin_api_client.model.AttachSpaceToRecordRequestBody; import ai.lamin.lamin_api_client.model.CreateSpaceRequestBody; import ai.lamin.lamin_api_client.model.CreateTeamRequestBody; +import ai.lamin.lamin_api_client.model.DbUrlRequest; import ai.lamin.lamin_api_client.model.GetRecordRequestBody; import ai.lamin.lamin_api_client.model.GetRecordsRequestBody; import ai.lamin.lamin_api_client.model.GetValuesRequestBody; import ai.lamin.lamin_api_client.model.GroupByRequestBody; import ai.lamin.lamin_api_client.model.HTTPValidationError; +import ai.lamin.lamin_api_client.model.RegisterDbServerBody; +import ai.lamin.lamin_api_client.model.RegisterFormRequest; import ai.lamin.lamin_api_client.model.S3PermissionsRequest; import java.util.UUID; import ai.lamin.lamin_api_client.model.UpdateCollaboratorRequestBody; @@ -426,7 +429,7 @@ public okhttp3.Call addCollaboratorInstancesInstanceIdCollaboratorsAccountIdPutA 422 Validation Error - */ - public okhttp3.Call addSpaceCollaboratorAccessV2SpacesSpaceIdCollaboratorsPutCall(Integer spaceId, AddSpaceCollaboratorRequestBody addSpaceCollaboratorRequestBody, String authorization, final ApiCallback _callback) throws ApiException { + public okhttp3.Call addSpaceCollaboratorAccessV2SpacesSpaceIdCollaboratorsPutCall(UUID spaceId, AddSpaceCollaboratorRequestBody addSpaceCollaboratorRequestBody, String authorization, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -478,7 +481,7 @@ public okhttp3.Call addSpaceCollaboratorAccessV2SpacesSpaceIdCollaboratorsPutCal } @SuppressWarnings("rawtypes") - private okhttp3.Call addSpaceCollaboratorAccessV2SpacesSpaceIdCollaboratorsPutValidateBeforeCall(Integer spaceId, AddSpaceCollaboratorRequestBody addSpaceCollaboratorRequestBody, String authorization, final ApiCallback _callback) throws ApiException { + private okhttp3.Call addSpaceCollaboratorAccessV2SpacesSpaceIdCollaboratorsPutValidateBeforeCall(UUID spaceId, AddSpaceCollaboratorRequestBody addSpaceCollaboratorRequestBody, String authorization, final ApiCallback _callback) throws ApiException { // verify the required parameter 'spaceId' is set if (spaceId == null) { throw new ApiException("Missing the required parameter 'spaceId' when calling addSpaceCollaboratorAccessV2SpacesSpaceIdCollaboratorsPut(Async)"); @@ -509,7 +512,7 @@ private okhttp3.Call addSpaceCollaboratorAccessV2SpacesSpaceIdCollaboratorsPutVa 422 Validation Error - */ - public Object addSpaceCollaboratorAccessV2SpacesSpaceIdCollaboratorsPut(Integer spaceId, AddSpaceCollaboratorRequestBody addSpaceCollaboratorRequestBody, String authorization) throws ApiException { + public Object addSpaceCollaboratorAccessV2SpacesSpaceIdCollaboratorsPut(UUID spaceId, AddSpaceCollaboratorRequestBody addSpaceCollaboratorRequestBody, String authorization) throws ApiException { ApiResponse localVarResp = addSpaceCollaboratorAccessV2SpacesSpaceIdCollaboratorsPutWithHttpInfo(spaceId, addSpaceCollaboratorRequestBody, authorization); return localVarResp.getData(); } @@ -530,7 +533,7 @@ public Object addSpaceCollaboratorAccessV2SpacesSpaceIdCollaboratorsPut(Integer 422 Validation Error - */ - public ApiResponse addSpaceCollaboratorAccessV2SpacesSpaceIdCollaboratorsPutWithHttpInfo(Integer spaceId, AddSpaceCollaboratorRequestBody addSpaceCollaboratorRequestBody, String authorization) throws ApiException { + public ApiResponse addSpaceCollaboratorAccessV2SpacesSpaceIdCollaboratorsPutWithHttpInfo(UUID spaceId, AddSpaceCollaboratorRequestBody addSpaceCollaboratorRequestBody, String authorization) throws ApiException { okhttp3.Call localVarCall = addSpaceCollaboratorAccessV2SpacesSpaceIdCollaboratorsPutValidateBeforeCall(spaceId, addSpaceCollaboratorRequestBody, authorization, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); @@ -553,7 +556,7 @@ public ApiResponse addSpaceCollaboratorAccessV2SpacesSpaceIdCollaborator 422 Validation Error - */ - public okhttp3.Call addSpaceCollaboratorAccessV2SpacesSpaceIdCollaboratorsPutAsync(Integer spaceId, AddSpaceCollaboratorRequestBody addSpaceCollaboratorRequestBody, String authorization, final ApiCallback _callback) throws ApiException { + public okhttp3.Call addSpaceCollaboratorAccessV2SpacesSpaceIdCollaboratorsPutAsync(UUID spaceId, AddSpaceCollaboratorRequestBody addSpaceCollaboratorRequestBody, String authorization, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = addSpaceCollaboratorAccessV2SpacesSpaceIdCollaboratorsPutValidateBeforeCall(spaceId, addSpaceCollaboratorRequestBody, authorization, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -934,7 +937,7 @@ public okhttp3.Call attachLabelInstancesInstanceIdModulesModuleNameModelNameIdLa 422 Validation Error - */ - public okhttp3.Call attachSpaceToInstanceAccessV2SpacesSpaceIdInstancesInstanceIdPutCall(Integer spaceId, UUID instanceId, String authorization, final ApiCallback _callback) throws ApiException { + public okhttp3.Call attachSpaceToInstanceAccessV2SpacesSpaceIdInstancesInstanceIdPutCall(UUID spaceId, UUID instanceId, String authorization, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -986,7 +989,7 @@ public okhttp3.Call attachSpaceToInstanceAccessV2SpacesSpaceIdInstancesInstanceI } @SuppressWarnings("rawtypes") - private okhttp3.Call attachSpaceToInstanceAccessV2SpacesSpaceIdInstancesInstanceIdPutValidateBeforeCall(Integer spaceId, UUID instanceId, String authorization, final ApiCallback _callback) throws ApiException { + private okhttp3.Call attachSpaceToInstanceAccessV2SpacesSpaceIdInstancesInstanceIdPutValidateBeforeCall(UUID spaceId, UUID instanceId, String authorization, final ApiCallback _callback) throws ApiException { // verify the required parameter 'spaceId' is set if (spaceId == null) { throw new ApiException("Missing the required parameter 'spaceId' when calling attachSpaceToInstanceAccessV2SpacesSpaceIdInstancesInstanceIdPut(Async)"); @@ -1017,7 +1020,7 @@ private okhttp3.Call attachSpaceToInstanceAccessV2SpacesSpaceIdInstancesInstance 422 Validation Error - */ - public Object attachSpaceToInstanceAccessV2SpacesSpaceIdInstancesInstanceIdPut(Integer spaceId, UUID instanceId, String authorization) throws ApiException { + public Object attachSpaceToInstanceAccessV2SpacesSpaceIdInstancesInstanceIdPut(UUID spaceId, UUID instanceId, String authorization) throws ApiException { ApiResponse localVarResp = attachSpaceToInstanceAccessV2SpacesSpaceIdInstancesInstanceIdPutWithHttpInfo(spaceId, instanceId, authorization); return localVarResp.getData(); } @@ -1038,7 +1041,7 @@ public Object attachSpaceToInstanceAccessV2SpacesSpaceIdInstancesInstanceIdPut(I 422 Validation Error - */ - public ApiResponse attachSpaceToInstanceAccessV2SpacesSpaceIdInstancesInstanceIdPutWithHttpInfo(Integer spaceId, UUID instanceId, String authorization) throws ApiException { + public ApiResponse attachSpaceToInstanceAccessV2SpacesSpaceIdInstancesInstanceIdPutWithHttpInfo(UUID spaceId, UUID instanceId, String authorization) throws ApiException { okhttp3.Call localVarCall = attachSpaceToInstanceAccessV2SpacesSpaceIdInstancesInstanceIdPutValidateBeforeCall(spaceId, instanceId, authorization, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); @@ -1061,20 +1064,293 @@ public ApiResponse attachSpaceToInstanceAccessV2SpacesSpaceIdInstancesIn 422 Validation Error - */ - public okhttp3.Call attachSpaceToInstanceAccessV2SpacesSpaceIdInstancesInstanceIdPutAsync(Integer spaceId, UUID instanceId, String authorization, final ApiCallback _callback) throws ApiException { + public okhttp3.Call attachSpaceToInstanceAccessV2SpacesSpaceIdInstancesInstanceIdPutAsync(UUID spaceId, UUID instanceId, String authorization, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = attachSpaceToInstanceAccessV2SpacesSpaceIdInstancesInstanceIdPutValidateBeforeCall(spaceId, instanceId, authorization, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } + /** + * Build call for checkDbAccessDebugDbAccessPost + * @param dbUrlRequest (required) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + + +
Response Details
Status Code Description Response Headers
200 Successful Response -
422 Validation Error -
+ */ + public okhttp3.Call checkDbAccessDebugDbAccessPostCall(DbUrlRequest dbUrlRequest, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = dbUrlRequest; + + // create path and map variables + String localVarPath = "/_debug/db-access"; + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = { + "application/json" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + "application/json" + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] { }; + return localVarApiClient.buildCall(basePath, localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call checkDbAccessDebugDbAccessPostValidateBeforeCall(DbUrlRequest dbUrlRequest, final ApiCallback _callback) throws ApiException { + // verify the required parameter 'dbUrlRequest' is set + if (dbUrlRequest == null) { + throw new ApiException("Missing the required parameter 'dbUrlRequest' when calling checkDbAccessDebugDbAccessPost(Async)"); + } + + return checkDbAccessDebugDbAccessPostCall(dbUrlRequest, _callback); + + } + + /** + * Check Db Access + * + * @param dbUrlRequest (required) + * @return Object + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + +
Response Details
Status Code Description Response Headers
200 Successful Response -
422 Validation Error -
+ */ + public Object checkDbAccessDebugDbAccessPost(DbUrlRequest dbUrlRequest) throws ApiException { + ApiResponse localVarResp = checkDbAccessDebugDbAccessPostWithHttpInfo(dbUrlRequest); + return localVarResp.getData(); + } + + /** + * Check Db Access + * + * @param dbUrlRequest (required) + * @return ApiResponse<Object> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + +
Response Details
Status Code Description Response Headers
200 Successful Response -
422 Validation Error -
+ */ + public ApiResponse checkDbAccessDebugDbAccessPostWithHttpInfo(DbUrlRequest dbUrlRequest) throws ApiException { + okhttp3.Call localVarCall = checkDbAccessDebugDbAccessPostValidateBeforeCall(dbUrlRequest, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * Check Db Access (asynchronously) + * + * @param dbUrlRequest (required) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + + +
Response Details
Status Code Description Response Headers
200 Successful Response -
422 Validation Error -
+ */ + public okhttp3.Call checkDbAccessDebugDbAccessPostAsync(DbUrlRequest dbUrlRequest, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = checkDbAccessDebugDbAccessPostValidateBeforeCall(dbUrlRequest, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + /** + * Build call for checkDbServerAccessDbServerCheckAccessPost + * @param name (required) + * @param authorization (optional) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + + +
Response Details
Status Code Description Response Headers
200 Successful Response -
422 Validation Error -
+ */ + public okhttp3.Call checkDbServerAccessDbServerCheckAccessPostCall(String name, String authorization, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/db/server/check-access"; + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + if (name != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("name", name)); + } + + final String[] localVarAccepts = { + "application/json" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + if (authorization != null) { + localVarHeaderParams.put("Authorization", localVarApiClient.parameterToString(authorization)); + } + + + String[] localVarAuthNames = new String[] { }; + return localVarApiClient.buildCall(basePath, localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call checkDbServerAccessDbServerCheckAccessPostValidateBeforeCall(String name, String authorization, final ApiCallback _callback) throws ApiException { + // verify the required parameter 'name' is set + if (name == null) { + throw new ApiException("Missing the required parameter 'name' when calling checkDbServerAccessDbServerCheckAccessPost(Async)"); + } + + return checkDbServerAccessDbServerCheckAccessPostCall(name, authorization, _callback); + + } + + /** + * Check Db Server Access + * + * @param name (required) + * @param authorization (optional) + * @return Object + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + +
Response Details
Status Code Description Response Headers
200 Successful Response -
422 Validation Error -
+ */ + public Object checkDbServerAccessDbServerCheckAccessPost(String name, String authorization) throws ApiException { + ApiResponse localVarResp = checkDbServerAccessDbServerCheckAccessPostWithHttpInfo(name, authorization); + return localVarResp.getData(); + } + + /** + * Check Db Server Access + * + * @param name (required) + * @param authorization (optional) + * @return ApiResponse<Object> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + +
Response Details
Status Code Description Response Headers
200 Successful Response -
422 Validation Error -
+ */ + public ApiResponse checkDbServerAccessDbServerCheckAccessPostWithHttpInfo(String name, String authorization) throws ApiException { + okhttp3.Call localVarCall = checkDbServerAccessDbServerCheckAccessPostValidateBeforeCall(name, authorization, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * Check Db Server Access (asynchronously) + * + * @param name (required) + * @param authorization (optional) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + + +
Response Details
Status Code Description Response Headers
200 Successful Response -
422 Validation Error -
+ */ + public okhttp3.Call checkDbServerAccessDbServerCheckAccessPostAsync(String name, String authorization, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = checkDbServerAccessDbServerCheckAccessPostValidateBeforeCall(name, authorization, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } /** * Build call for createInstanceInstancesPut * @param name (required) * @param storage (optional, default to create-s3) * @param schemaStr (optional) * @param dbServerKey (optional) - * @param dbServerUrl (optional) * @param authorization (optional) * @param _callback Callback for upload/download progress * @return Call to execute @@ -1087,7 +1363,7 @@ public okhttp3.Call attachSpaceToInstanceAccessV2SpacesSpaceIdInstancesInstanceI 422 Validation Error - */ - public okhttp3.Call createInstanceInstancesPutCall(String name, String storage, String schemaStr, String dbServerKey, String dbServerUrl, String authorization, final ApiCallback _callback) throws ApiException { + public okhttp3.Call createInstanceInstancesPutCall(String name, String storage, String schemaStr, String dbServerKey, String authorization, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -1128,10 +1404,6 @@ public okhttp3.Call createInstanceInstancesPutCall(String name, String storage, localVarQueryParams.addAll(localVarApiClient.parameterToPair("db_server_key", dbServerKey)); } - if (dbServerUrl != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("db_server_url", dbServerUrl)); - } - final String[] localVarAccepts = { "application/json" }; @@ -1157,13 +1429,13 @@ public okhttp3.Call createInstanceInstancesPutCall(String name, String storage, } @SuppressWarnings("rawtypes") - private okhttp3.Call createInstanceInstancesPutValidateBeforeCall(String name, String storage, String schemaStr, String dbServerKey, String dbServerUrl, String authorization, final ApiCallback _callback) throws ApiException { + private okhttp3.Call createInstanceInstancesPutValidateBeforeCall(String name, String storage, String schemaStr, String dbServerKey, String authorization, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { throw new ApiException("Missing the required parameter 'name' when calling createInstanceInstancesPut(Async)"); } - return createInstanceInstancesPutCall(name, storage, schemaStr, dbServerKey, dbServerUrl, authorization, _callback); + return createInstanceInstancesPutCall(name, storage, schemaStr, dbServerKey, authorization, _callback); } @@ -1174,7 +1446,6 @@ private okhttp3.Call createInstanceInstancesPutValidateBeforeCall(String name, S * @param storage (optional, default to create-s3) * @param schemaStr (optional) * @param dbServerKey (optional) - * @param dbServerUrl (optional) * @param authorization (optional) * @return Object * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body @@ -1186,8 +1457,8 @@ private okhttp3.Call createInstanceInstancesPutValidateBeforeCall(String name, S 422 Validation Error - */ - public Object createInstanceInstancesPut(String name, String storage, String schemaStr, String dbServerKey, String dbServerUrl, String authorization) throws ApiException { - ApiResponse localVarResp = createInstanceInstancesPutWithHttpInfo(name, storage, schemaStr, dbServerKey, dbServerUrl, authorization); + public Object createInstanceInstancesPut(String name, String storage, String schemaStr, String dbServerKey, String authorization) throws ApiException { + ApiResponse localVarResp = createInstanceInstancesPutWithHttpInfo(name, storage, schemaStr, dbServerKey, authorization); return localVarResp.getData(); } @@ -1198,7 +1469,6 @@ public Object createInstanceInstancesPut(String name, String storage, String sch * @param storage (optional, default to create-s3) * @param schemaStr (optional) * @param dbServerKey (optional) - * @param dbServerUrl (optional) * @param authorization (optional) * @return ApiResponse<Object> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body @@ -1210,8 +1480,8 @@ public Object createInstanceInstancesPut(String name, String storage, String sch 422 Validation Error - */ - public ApiResponse createInstanceInstancesPutWithHttpInfo(String name, String storage, String schemaStr, String dbServerKey, String dbServerUrl, String authorization) throws ApiException { - okhttp3.Call localVarCall = createInstanceInstancesPutValidateBeforeCall(name, storage, schemaStr, dbServerKey, dbServerUrl, authorization, null); + public ApiResponse createInstanceInstancesPutWithHttpInfo(String name, String storage, String schemaStr, String dbServerKey, String authorization) throws ApiException { + okhttp3.Call localVarCall = createInstanceInstancesPutValidateBeforeCall(name, storage, schemaStr, dbServerKey, authorization, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } @@ -1223,7 +1493,6 @@ public ApiResponse createInstanceInstancesPutWithHttpInfo(String name, S * @param storage (optional, default to create-s3) * @param schemaStr (optional) * @param dbServerKey (optional) - * @param dbServerUrl (optional) * @param authorization (optional) * @param _callback The callback to be executed when the API call finishes * @return The request call @@ -1236,9 +1505,9 @@ public ApiResponse createInstanceInstancesPutWithHttpInfo(String name, S 422 Validation Error - */ - public okhttp3.Call createInstanceInstancesPutAsync(String name, String storage, String schemaStr, String dbServerKey, String dbServerUrl, String authorization, final ApiCallback _callback) throws ApiException { + public okhttp3.Call createInstanceInstancesPutAsync(String name, String storage, String schemaStr, String dbServerKey, String authorization, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = createInstanceInstancesPutValidateBeforeCall(name, storage, schemaStr, dbServerKey, dbServerUrl, authorization, _callback); + okhttp3.Call localVarCall = createInstanceInstancesPutValidateBeforeCall(name, storage, schemaStr, dbServerKey, authorization, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; @@ -2197,7 +2466,7 @@ public okhttp3.Call deleteRecordInstancesInstanceIdModulesModuleNameModelNameUid 422 Validation Error - */ - public okhttp3.Call deleteSpaceAccessV2SpacesSpaceIdDeleteCall(Integer spaceId, String authorization, final ApiCallback _callback) throws ApiException { + public okhttp3.Call deleteSpaceAccessV2SpacesSpaceIdDeleteCall(UUID spaceId, String authorization, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -2248,7 +2517,7 @@ public okhttp3.Call deleteSpaceAccessV2SpacesSpaceIdDeleteCall(Integer spaceId, } @SuppressWarnings("rawtypes") - private okhttp3.Call deleteSpaceAccessV2SpacesSpaceIdDeleteValidateBeforeCall(Integer spaceId, String authorization, final ApiCallback _callback) throws ApiException { + private okhttp3.Call deleteSpaceAccessV2SpacesSpaceIdDeleteValidateBeforeCall(UUID spaceId, String authorization, final ApiCallback _callback) throws ApiException { // verify the required parameter 'spaceId' is set if (spaceId == null) { throw new ApiException("Missing the required parameter 'spaceId' when calling deleteSpaceAccessV2SpacesSpaceIdDelete(Async)"); @@ -2273,7 +2542,7 @@ private okhttp3.Call deleteSpaceAccessV2SpacesSpaceIdDeleteValidateBeforeCall(In 422 Validation Error - */ - public Object deleteSpaceAccessV2SpacesSpaceIdDelete(Integer spaceId, String authorization) throws ApiException { + public Object deleteSpaceAccessV2SpacesSpaceIdDelete(UUID spaceId, String authorization) throws ApiException { ApiResponse localVarResp = deleteSpaceAccessV2SpacesSpaceIdDeleteWithHttpInfo(spaceId, authorization); return localVarResp.getData(); } @@ -2293,7 +2562,7 @@ public Object deleteSpaceAccessV2SpacesSpaceIdDelete(Integer spaceId, String aut 422 Validation Error - */ - public ApiResponse deleteSpaceAccessV2SpacesSpaceIdDeleteWithHttpInfo(Integer spaceId, String authorization) throws ApiException { + public ApiResponse deleteSpaceAccessV2SpacesSpaceIdDeleteWithHttpInfo(UUID spaceId, String authorization) throws ApiException { okhttp3.Call localVarCall = deleteSpaceAccessV2SpacesSpaceIdDeleteValidateBeforeCall(spaceId, authorization, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); @@ -2315,7 +2584,7 @@ public ApiResponse deleteSpaceAccessV2SpacesSpaceIdDeleteWithHttpInfo(In 422 Validation Error - */ - public okhttp3.Call deleteSpaceAccessV2SpacesSpaceIdDeleteAsync(Integer spaceId, String authorization, final ApiCallback _callback) throws ApiException { + public okhttp3.Call deleteSpaceAccessV2SpacesSpaceIdDeleteAsync(UUID spaceId, String authorization, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = deleteSpaceAccessV2SpacesSpaceIdDeleteValidateBeforeCall(spaceId, authorization, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -2676,7 +2945,7 @@ public okhttp3.Call detachLabelInstancesInstanceIdModulesModuleNameModelNameIdLa 422 Validation Error - */ - public okhttp3.Call detachSpaceFromInstanceAccessV2SpacesSpaceIdInstancesInstanceIdDeleteCall(Integer spaceId, UUID instanceId, String authorization, final ApiCallback _callback) throws ApiException { + public okhttp3.Call detachSpaceFromInstanceAccessV2SpacesSpaceIdInstancesInstanceIdDeleteCall(UUID spaceId, UUID instanceId, String authorization, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -2728,7 +2997,7 @@ public okhttp3.Call detachSpaceFromInstanceAccessV2SpacesSpaceIdInstancesInstanc } @SuppressWarnings("rawtypes") - private okhttp3.Call detachSpaceFromInstanceAccessV2SpacesSpaceIdInstancesInstanceIdDeleteValidateBeforeCall(Integer spaceId, UUID instanceId, String authorization, final ApiCallback _callback) throws ApiException { + private okhttp3.Call detachSpaceFromInstanceAccessV2SpacesSpaceIdInstancesInstanceIdDeleteValidateBeforeCall(UUID spaceId, UUID instanceId, String authorization, final ApiCallback _callback) throws ApiException { // verify the required parameter 'spaceId' is set if (spaceId == null) { throw new ApiException("Missing the required parameter 'spaceId' when calling detachSpaceFromInstanceAccessV2SpacesSpaceIdInstancesInstanceIdDelete(Async)"); @@ -2759,7 +3028,7 @@ private okhttp3.Call detachSpaceFromInstanceAccessV2SpacesSpaceIdInstancesInstan 422 Validation Error - */ - public Object detachSpaceFromInstanceAccessV2SpacesSpaceIdInstancesInstanceIdDelete(Integer spaceId, UUID instanceId, String authorization) throws ApiException { + public Object detachSpaceFromInstanceAccessV2SpacesSpaceIdInstancesInstanceIdDelete(UUID spaceId, UUID instanceId, String authorization) throws ApiException { ApiResponse localVarResp = detachSpaceFromInstanceAccessV2SpacesSpaceIdInstancesInstanceIdDeleteWithHttpInfo(spaceId, instanceId, authorization); return localVarResp.getData(); } @@ -2780,7 +3049,7 @@ public Object detachSpaceFromInstanceAccessV2SpacesSpaceIdInstancesInstanceIdDel 422 Validation Error - */ - public ApiResponse detachSpaceFromInstanceAccessV2SpacesSpaceIdInstancesInstanceIdDeleteWithHttpInfo(Integer spaceId, UUID instanceId, String authorization) throws ApiException { + public ApiResponse detachSpaceFromInstanceAccessV2SpacesSpaceIdInstancesInstanceIdDeleteWithHttpInfo(UUID spaceId, UUID instanceId, String authorization) throws ApiException { okhttp3.Call localVarCall = detachSpaceFromInstanceAccessV2SpacesSpaceIdInstancesInstanceIdDeleteValidateBeforeCall(spaceId, instanceId, authorization, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); @@ -2803,7 +3072,7 @@ public ApiResponse detachSpaceFromInstanceAccessV2SpacesSpaceIdInstances 422 Validation Error - */ - public okhttp3.Call detachSpaceFromInstanceAccessV2SpacesSpaceIdInstancesInstanceIdDeleteAsync(Integer spaceId, UUID instanceId, String authorization, final ApiCallback _callback) throws ApiException { + public okhttp3.Call detachSpaceFromInstanceAccessV2SpacesSpaceIdInstancesInstanceIdDeleteAsync(UUID spaceId, UUID instanceId, String authorization, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = detachSpaceFromInstanceAccessV2SpacesSpaceIdInstancesInstanceIdDeleteValidateBeforeCall(spaceId, instanceId, authorization, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -3107,10 +3376,7 @@ public okhttp3.Call getInstanceStatisticsInstancesInstanceIdStatisticsGetAsync(U return localVarCall; } /** - * Build call for getNonEmptyTablesInstancesInstanceIdNonEmptyTablesGet - * @param instanceId (required) - * @param schemaId (optional) - * @param authorization (optional) + * Build call for getIpDebugIpGet * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object @@ -3119,10 +3385,9 @@ public okhttp3.Call getInstanceStatisticsInstancesInstanceIdStatisticsGetAsync(U Response Details Status Code Description Response Headers 200 Successful Response - - 422 Validation Error - */ - public okhttp3.Call getNonEmptyTablesInstancesInstanceIdNonEmptyTablesGetCall(UUID instanceId, UUID schemaId, String authorization, final ApiCallback _callback) throws ApiException { + public okhttp3.Call getIpDebugIpGetCall(final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -3139,8 +3404,7 @@ public okhttp3.Call getNonEmptyTablesInstancesInstanceIdNonEmptyTablesGetCall(UU Object localVarPostBody = null; // create path and map variables - String localVarPath = "/instances/{instance_id}/non_empty_tables" - .replace("{" + "instance_id" + "}", localVarApiClient.escapeString(instanceId.toString())); + String localVarPath = "/_debug/ip"; List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); @@ -3148,10 +3412,6 @@ public okhttp3.Call getNonEmptyTablesInstancesInstanceIdNonEmptyTablesGetCall(UU Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); - if (schemaId != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("schema_id", schemaId)); - } - final String[] localVarAccepts = { "application/json" }; @@ -3167,11 +3427,137 @@ public okhttp3.Call getNonEmptyTablesInstancesInstanceIdNonEmptyTablesGetCall(UU localVarHeaderParams.put("Content-Type", localVarContentType); } - if (authorization != null) { - localVarHeaderParams.put("Authorization", localVarApiClient.parameterToString(authorization)); - } - - + String[] localVarAuthNames = new String[] { }; + return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call getIpDebugIpGetValidateBeforeCall(final ApiCallback _callback) throws ApiException { + return getIpDebugIpGetCall(_callback); + + } + + /** + * Get Ip + * + * @return Object + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Response Details
Status Code Description Response Headers
200 Successful Response -
+ */ + public Object getIpDebugIpGet() throws ApiException { + ApiResponse localVarResp = getIpDebugIpGetWithHttpInfo(); + return localVarResp.getData(); + } + + /** + * Get Ip + * + * @return ApiResponse<Object> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Response Details
Status Code Description Response Headers
200 Successful Response -
+ */ + public ApiResponse getIpDebugIpGetWithHttpInfo() throws ApiException { + okhttp3.Call localVarCall = getIpDebugIpGetValidateBeforeCall(null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * Get Ip (asynchronously) + * + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + +
Response Details
Status Code Description Response Headers
200 Successful Response -
+ */ + public okhttp3.Call getIpDebugIpGetAsync(final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = getIpDebugIpGetValidateBeforeCall(_callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + /** + * Build call for getNonEmptyTablesInstancesInstanceIdNonEmptyTablesGet + * @param instanceId (required) + * @param schemaId (optional) + * @param authorization (optional) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + + +
Response Details
Status Code Description Response Headers
200 Successful Response -
422 Validation Error -
+ */ + public okhttp3.Call getNonEmptyTablesInstancesInstanceIdNonEmptyTablesGetCall(UUID instanceId, UUID schemaId, String authorization, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/instances/{instance_id}/non_empty_tables" + .replace("{" + "instance_id" + "}", localVarApiClient.escapeString(instanceId.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + if (schemaId != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("schema_id", schemaId)); + } + + final String[] localVarAccepts = { + "application/json" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + if (authorization != null) { + localVarHeaderParams.put("Authorization", localVarApiClient.parameterToString(authorization)); + } + + String[] localVarAuthNames = new String[] { }; return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @@ -4151,7 +4537,7 @@ public okhttp3.Call getSchemaInstancesInstanceIdSchemaGetAsync(UUID instanceId, 422 Validation Error - */ - public okhttp3.Call getSpaceAccessV2SpacesSpaceIdGetCall(Integer spaceId, String authorization, final ApiCallback _callback) throws ApiException { + public okhttp3.Call getSpaceAccessV2SpacesSpaceIdGetCall(UUID spaceId, String authorization, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -4202,7 +4588,7 @@ public okhttp3.Call getSpaceAccessV2SpacesSpaceIdGetCall(Integer spaceId, String } @SuppressWarnings("rawtypes") - private okhttp3.Call getSpaceAccessV2SpacesSpaceIdGetValidateBeforeCall(Integer spaceId, String authorization, final ApiCallback _callback) throws ApiException { + private okhttp3.Call getSpaceAccessV2SpacesSpaceIdGetValidateBeforeCall(UUID spaceId, String authorization, final ApiCallback _callback) throws ApiException { // verify the required parameter 'spaceId' is set if (spaceId == null) { throw new ApiException("Missing the required parameter 'spaceId' when calling getSpaceAccessV2SpacesSpaceIdGet(Async)"); @@ -4227,7 +4613,7 @@ private okhttp3.Call getSpaceAccessV2SpacesSpaceIdGetValidateBeforeCall(Integer 422 Validation Error - */ - public Object getSpaceAccessV2SpacesSpaceIdGet(Integer spaceId, String authorization) throws ApiException { + public Object getSpaceAccessV2SpacesSpaceIdGet(UUID spaceId, String authorization) throws ApiException { ApiResponse localVarResp = getSpaceAccessV2SpacesSpaceIdGetWithHttpInfo(spaceId, authorization); return localVarResp.getData(); } @@ -4247,7 +4633,7 @@ public Object getSpaceAccessV2SpacesSpaceIdGet(Integer spaceId, String authoriza 422 Validation Error - */ - public ApiResponse getSpaceAccessV2SpacesSpaceIdGetWithHttpInfo(Integer spaceId, String authorization) throws ApiException { + public ApiResponse getSpaceAccessV2SpacesSpaceIdGetWithHttpInfo(UUID spaceId, String authorization) throws ApiException { okhttp3.Call localVarCall = getSpaceAccessV2SpacesSpaceIdGetValidateBeforeCall(spaceId, authorization, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); @@ -4269,7 +4655,7 @@ public ApiResponse getSpaceAccessV2SpacesSpaceIdGetWithHttpInfo(Integer 422 Validation Error - */ - public okhttp3.Call getSpaceAccessV2SpacesSpaceIdGetAsync(Integer spaceId, String authorization, final ApiCallback _callback) throws ApiException { + public okhttp3.Call getSpaceAccessV2SpacesSpaceIdGetAsync(UUID spaceId, String authorization, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = getSpaceAccessV2SpacesSpaceIdGetValidateBeforeCall(spaceId, authorization, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -4416,6 +4802,167 @@ public okhttp3.Call getTeamAccessV2TeamsTeamIdGetAsync(UUID teamId, String autho localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } + /** + * Build call for getTreeInstancesInstanceIdTreeGet + * @param instanceId (required) + * @param entityType (required) + * @param schemaId (optional) + * @param authorization (optional) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + + +
Response Details
Status Code Description Response Headers
200 Successful Response -
422 Validation Error -
+ */ + public okhttp3.Call getTreeInstancesInstanceIdTreeGetCall(UUID instanceId, String entityType, UUID schemaId, String authorization, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/instances/{instance_id}/tree" + .replace("{" + "instance_id" + "}", localVarApiClient.escapeString(instanceId.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + if (entityType != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("entity_type", entityType)); + } + + if (schemaId != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("schema_id", schemaId)); + } + + final String[] localVarAccepts = { + "application/json" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + if (authorization != null) { + localVarHeaderParams.put("Authorization", localVarApiClient.parameterToString(authorization)); + } + + + String[] localVarAuthNames = new String[] { }; + return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call getTreeInstancesInstanceIdTreeGetValidateBeforeCall(UUID instanceId, String entityType, UUID schemaId, String authorization, final ApiCallback _callback) throws ApiException { + // verify the required parameter 'instanceId' is set + if (instanceId == null) { + throw new ApiException("Missing the required parameter 'instanceId' when calling getTreeInstancesInstanceIdTreeGet(Async)"); + } + + // verify the required parameter 'entityType' is set + if (entityType == null) { + throw new ApiException("Missing the required parameter 'entityType' when calling getTreeInstancesInstanceIdTreeGet(Async)"); + } + + return getTreeInstancesInstanceIdTreeGetCall(instanceId, entityType, schemaId, authorization, _callback); + + } + + /** + * Get Tree + * + * @param instanceId (required) + * @param entityType (required) + * @param schemaId (optional) + * @param authorization (optional) + * @return Object + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + +
Response Details
Status Code Description Response Headers
200 Successful Response -
422 Validation Error -
+ */ + public Object getTreeInstancesInstanceIdTreeGet(UUID instanceId, String entityType, UUID schemaId, String authorization) throws ApiException { + ApiResponse localVarResp = getTreeInstancesInstanceIdTreeGetWithHttpInfo(instanceId, entityType, schemaId, authorization); + return localVarResp.getData(); + } + + /** + * Get Tree + * + * @param instanceId (required) + * @param entityType (required) + * @param schemaId (optional) + * @param authorization (optional) + * @return ApiResponse<Object> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + +
Response Details
Status Code Description Response Headers
200 Successful Response -
422 Validation Error -
+ */ + public ApiResponse getTreeInstancesInstanceIdTreeGetWithHttpInfo(UUID instanceId, String entityType, UUID schemaId, String authorization) throws ApiException { + okhttp3.Call localVarCall = getTreeInstancesInstanceIdTreeGetValidateBeforeCall(instanceId, entityType, schemaId, authorization, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * Get Tree (asynchronously) + * + * @param instanceId (required) + * @param entityType (required) + * @param schemaId (optional) + * @param authorization (optional) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + + +
Response Details
Status Code Description Response Headers
200 Successful Response -
422 Validation Error -
+ */ + public okhttp3.Call getTreeInstancesInstanceIdTreeGetAsync(UUID instanceId, String entityType, UUID schemaId, String authorization, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = getTreeInstancesInstanceIdTreeGetValidateBeforeCall(instanceId, entityType, schemaId, authorization, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } /** * Build call for getValuesInstancesInstanceIdModulesModuleNameModelNameFieldsFieldPathPost * @param moduleName (required) @@ -5037,7 +5584,7 @@ private okhttp3.Call listCollaboratorsAccessV2InstancesInstanceIdCollaboratorsGe /** * List Collaborators - * List all collaborators of an instance. Parameters: - **instance_id**: UUID of the instance to list collaborators for (from URL path) Returns: - **200**: List of instance collaborators retrieved successfully - **404**: Instance not found Requires read access to the instance + * List all collaborators of an instance. Parameters: - **instance_id**: UUID of the instance to list collaborators for (from URL path) Returns: - **200**: List of instance collaborators retrieved successfully Requires read access to the instance * @param instanceId (required) * @param authorization (optional) * @return Object @@ -5057,7 +5604,7 @@ public Object listCollaboratorsAccessV2InstancesInstanceIdCollaboratorsGet(UUID /** * List Collaborators - * List all collaborators of an instance. Parameters: - **instance_id**: UUID of the instance to list collaborators for (from URL path) Returns: - **200**: List of instance collaborators retrieved successfully - **404**: Instance not found Requires read access to the instance + * List all collaborators of an instance. Parameters: - **instance_id**: UUID of the instance to list collaborators for (from URL path) Returns: - **200**: List of instance collaborators retrieved successfully Requires read access to the instance * @param instanceId (required) * @param authorization (optional) * @return ApiResponse<Object> @@ -5077,9 +5624,175 @@ public ApiResponse listCollaboratorsAccessV2InstancesInstanceIdCollabora } /** - * List Collaborators (asynchronously) - * List all collaborators of an instance. Parameters: - **instance_id**: UUID of the instance to list collaborators for (from URL path) Returns: - **200**: List of instance collaborators retrieved successfully - **404**: Instance not found Requires read access to the instance + * List Collaborators (asynchronously) + * List all collaborators of an instance. Parameters: - **instance_id**: UUID of the instance to list collaborators for (from URL path) Returns: - **200**: List of instance collaborators retrieved successfully Requires read access to the instance + * @param instanceId (required) + * @param authorization (optional) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + + +
Response Details
Status Code Description Response Headers
200 Successful Response -
422 Validation Error -
+ */ + public okhttp3.Call listCollaboratorsAccessV2InstancesInstanceIdCollaboratorsGetAsync(UUID instanceId, String authorization, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = listCollaboratorsAccessV2InstancesInstanceIdCollaboratorsGetValidateBeforeCall(instanceId, authorization, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + /** + * Build call for listDirectoryInstancesInstanceIdEntityTypeGet + * @param entityType (required) + * @param instanceId (required) + * @param path (optional, default to ) + * @param schemaId (optional) + * @param authorization (optional) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + + +
Response Details
Status Code Description Response Headers
200 Successful Response -
422 Validation Error -
+ */ + public okhttp3.Call listDirectoryInstancesInstanceIdEntityTypeGetCall(String entityType, UUID instanceId, String path, UUID schemaId, String authorization, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/instances/{instance_id}/{entity_type}" + .replace("{" + "entity_type" + "}", localVarApiClient.escapeString(entityType.toString())) + .replace("{" + "instance_id" + "}", localVarApiClient.escapeString(instanceId.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + if (path != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("path", path)); + } + + if (schemaId != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("schema_id", schemaId)); + } + + final String[] localVarAccepts = { + "application/json" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + if (authorization != null) { + localVarHeaderParams.put("Authorization", localVarApiClient.parameterToString(authorization)); + } + + + String[] localVarAuthNames = new String[] { }; + return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call listDirectoryInstancesInstanceIdEntityTypeGetValidateBeforeCall(String entityType, UUID instanceId, String path, UUID schemaId, String authorization, final ApiCallback _callback) throws ApiException { + // verify the required parameter 'entityType' is set + if (entityType == null) { + throw new ApiException("Missing the required parameter 'entityType' when calling listDirectoryInstancesInstanceIdEntityTypeGet(Async)"); + } + + // verify the required parameter 'instanceId' is set + if (instanceId == null) { + throw new ApiException("Missing the required parameter 'instanceId' when calling listDirectoryInstancesInstanceIdEntityTypeGet(Async)"); + } + + return listDirectoryInstancesInstanceIdEntityTypeGetCall(entityType, instanceId, path, schemaId, authorization, _callback); + + } + + /** + * List Directory + * + * @param entityType (required) + * @param instanceId (required) + * @param path (optional, default to ) + * @param schemaId (optional) + * @param authorization (optional) + * @return Object + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + +
Response Details
Status Code Description Response Headers
200 Successful Response -
422 Validation Error -
+ */ + public Object listDirectoryInstancesInstanceIdEntityTypeGet(String entityType, UUID instanceId, String path, UUID schemaId, String authorization) throws ApiException { + ApiResponse localVarResp = listDirectoryInstancesInstanceIdEntityTypeGetWithHttpInfo(entityType, instanceId, path, schemaId, authorization); + return localVarResp.getData(); + } + + /** + * List Directory + * + * @param entityType (required) + * @param instanceId (required) + * @param path (optional, default to ) + * @param schemaId (optional) + * @param authorization (optional) + * @return ApiResponse<Object> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + +
Response Details
Status Code Description Response Headers
200 Successful Response -
422 Validation Error -
+ */ + public ApiResponse listDirectoryInstancesInstanceIdEntityTypeGetWithHttpInfo(String entityType, UUID instanceId, String path, UUID schemaId, String authorization) throws ApiException { + okhttp3.Call localVarCall = listDirectoryInstancesInstanceIdEntityTypeGetValidateBeforeCall(entityType, instanceId, path, schemaId, authorization, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * List Directory (asynchronously) + * + * @param entityType (required) * @param instanceId (required) + * @param path (optional, default to ) + * @param schemaId (optional) * @param authorization (optional) * @param _callback The callback to be executed when the API call finishes * @return The request call @@ -5092,9 +5805,9 @@ public ApiResponse listCollaboratorsAccessV2InstancesInstanceIdCollabora 422 Validation Error - */ - public okhttp3.Call listCollaboratorsAccessV2InstancesInstanceIdCollaboratorsGetAsync(UUID instanceId, String authorization, final ApiCallback _callback) throws ApiException { + public okhttp3.Call listDirectoryInstancesInstanceIdEntityTypeGetAsync(String entityType, UUID instanceId, String path, UUID schemaId, String authorization, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = listCollaboratorsAccessV2InstancesInstanceIdCollaboratorsGetValidateBeforeCall(instanceId, authorization, _callback); + okhttp3.Call localVarCall = listDirectoryInstancesInstanceIdEntityTypeGetValidateBeforeCall(entityType, instanceId, path, schemaId, authorization, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; @@ -5254,7 +5967,7 @@ public okhttp3.Call listInstanceSpacesAccessV2SpacesInstancesInstanceIdGetAsync( 422 Validation Error - */ - public okhttp3.Call listInstancesUsingSpaceAccessV2SpacesSpaceIdInstancesGetCall(Integer spaceId, String authorization, final ApiCallback _callback) throws ApiException { + public okhttp3.Call listInstancesUsingSpaceAccessV2SpacesSpaceIdInstancesGetCall(UUID spaceId, String authorization, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -5305,7 +6018,7 @@ public okhttp3.Call listInstancesUsingSpaceAccessV2SpacesSpaceIdInstancesGetCall } @SuppressWarnings("rawtypes") - private okhttp3.Call listInstancesUsingSpaceAccessV2SpacesSpaceIdInstancesGetValidateBeforeCall(Integer spaceId, String authorization, final ApiCallback _callback) throws ApiException { + private okhttp3.Call listInstancesUsingSpaceAccessV2SpacesSpaceIdInstancesGetValidateBeforeCall(UUID spaceId, String authorization, final ApiCallback _callback) throws ApiException { // verify the required parameter 'spaceId' is set if (spaceId == null) { throw new ApiException("Missing the required parameter 'spaceId' when calling listInstancesUsingSpaceAccessV2SpacesSpaceIdInstancesGet(Async)"); @@ -5330,7 +6043,7 @@ private okhttp3.Call listInstancesUsingSpaceAccessV2SpacesSpaceIdInstancesGetVal 422 Validation Error - */ - public Object listInstancesUsingSpaceAccessV2SpacesSpaceIdInstancesGet(Integer spaceId, String authorization) throws ApiException { + public Object listInstancesUsingSpaceAccessV2SpacesSpaceIdInstancesGet(UUID spaceId, String authorization) throws ApiException { ApiResponse localVarResp = listInstancesUsingSpaceAccessV2SpacesSpaceIdInstancesGetWithHttpInfo(spaceId, authorization); return localVarResp.getData(); } @@ -5350,7 +6063,7 @@ public Object listInstancesUsingSpaceAccessV2SpacesSpaceIdInstancesGet(Integer s 422 Validation Error - */ - public ApiResponse listInstancesUsingSpaceAccessV2SpacesSpaceIdInstancesGetWithHttpInfo(Integer spaceId, String authorization) throws ApiException { + public ApiResponse listInstancesUsingSpaceAccessV2SpacesSpaceIdInstancesGetWithHttpInfo(UUID spaceId, String authorization) throws ApiException { okhttp3.Call localVarCall = listInstancesUsingSpaceAccessV2SpacesSpaceIdInstancesGetValidateBeforeCall(spaceId, authorization, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); @@ -5372,7 +6085,7 @@ public ApiResponse listInstancesUsingSpaceAccessV2SpacesSpaceIdInstances 422 Validation Error - */ - public okhttp3.Call listInstancesUsingSpaceAccessV2SpacesSpaceIdInstancesGetAsync(Integer spaceId, String authorization, final ApiCallback _callback) throws ApiException { + public okhttp3.Call listInstancesUsingSpaceAccessV2SpacesSpaceIdInstancesGetAsync(UUID spaceId, String authorization, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = listInstancesUsingSpaceAccessV2SpacesSpaceIdInstancesGetValidateBeforeCall(spaceId, authorization, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -5674,7 +6387,7 @@ public okhttp3.Call listOrganizationTeamsAccessV2TeamsOrganizationsOrganizationI 422 Validation Error - */ - public okhttp3.Call listSpaceCollaboratorsAccessV2SpacesSpaceIdCollaboratorsGetCall(Integer spaceId, String authorization, final ApiCallback _callback) throws ApiException { + public okhttp3.Call listSpaceCollaboratorsAccessV2SpacesSpaceIdCollaboratorsGetCall(UUID spaceId, String authorization, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -5725,7 +6438,7 @@ public okhttp3.Call listSpaceCollaboratorsAccessV2SpacesSpaceIdCollaboratorsGetC } @SuppressWarnings("rawtypes") - private okhttp3.Call listSpaceCollaboratorsAccessV2SpacesSpaceIdCollaboratorsGetValidateBeforeCall(Integer spaceId, String authorization, final ApiCallback _callback) throws ApiException { + private okhttp3.Call listSpaceCollaboratorsAccessV2SpacesSpaceIdCollaboratorsGetValidateBeforeCall(UUID spaceId, String authorization, final ApiCallback _callback) throws ApiException { // verify the required parameter 'spaceId' is set if (spaceId == null) { throw new ApiException("Missing the required parameter 'spaceId' when calling listSpaceCollaboratorsAccessV2SpacesSpaceIdCollaboratorsGet(Async)"); @@ -5750,7 +6463,7 @@ private okhttp3.Call listSpaceCollaboratorsAccessV2SpacesSpaceIdCollaboratorsGet 422 Validation Error - */ - public Object listSpaceCollaboratorsAccessV2SpacesSpaceIdCollaboratorsGet(Integer spaceId, String authorization) throws ApiException { + public Object listSpaceCollaboratorsAccessV2SpacesSpaceIdCollaboratorsGet(UUID spaceId, String authorization) throws ApiException { ApiResponse localVarResp = listSpaceCollaboratorsAccessV2SpacesSpaceIdCollaboratorsGetWithHttpInfo(spaceId, authorization); return localVarResp.getData(); } @@ -5770,7 +6483,7 @@ public Object listSpaceCollaboratorsAccessV2SpacesSpaceIdCollaboratorsGet(Intege 422 Validation Error - */ - public ApiResponse listSpaceCollaboratorsAccessV2SpacesSpaceIdCollaboratorsGetWithHttpInfo(Integer spaceId, String authorization) throws ApiException { + public ApiResponse listSpaceCollaboratorsAccessV2SpacesSpaceIdCollaboratorsGetWithHttpInfo(UUID spaceId, String authorization) throws ApiException { okhttp3.Call localVarCall = listSpaceCollaboratorsAccessV2SpacesSpaceIdCollaboratorsGetValidateBeforeCall(spaceId, authorization, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); @@ -5792,7 +6505,7 @@ public ApiResponse listSpaceCollaboratorsAccessV2SpacesSpaceIdCollaborat 422 Validation Error - */ - public okhttp3.Call listSpaceCollaboratorsAccessV2SpacesSpaceIdCollaboratorsGetAsync(Integer spaceId, String authorization, final ApiCallback _callback) throws ApiException { + public okhttp3.Call listSpaceCollaboratorsAccessV2SpacesSpaceIdCollaboratorsGetAsync(UUID spaceId, String authorization, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = listSpaceCollaboratorsAccessV2SpacesSpaceIdCollaboratorsGetValidateBeforeCall(spaceId, authorization, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -5941,7 +6654,7 @@ public okhttp3.Call listTeamMembersAccessV2TeamsTeamIdMembersGetAsync(UUID teamI } /** * Build call for moveRecordToSpaceAccessV2SpacesSpaceIdRecordAttachmentsPut - * @param spaceId (required) + * @param instanceDbSpaceId (required) * @param attachSpaceToRecordRequestBody (required) * @param instanceId (optional) * @param schemaId (optional) @@ -5957,7 +6670,7 @@ public okhttp3.Call listTeamMembersAccessV2TeamsTeamIdMembersGetAsync(UUID teamI 422 Validation Error - */ - public okhttp3.Call moveRecordToSpaceAccessV2SpacesSpaceIdRecordAttachmentsPutCall(Integer spaceId, AttachSpaceToRecordRequestBody attachSpaceToRecordRequestBody, UUID instanceId, UUID schemaId, String authorization, final ApiCallback _callback) throws ApiException { + public okhttp3.Call moveRecordToSpaceAccessV2SpacesSpaceIdRecordAttachmentsPutCall(Integer instanceDbSpaceId, AttachSpaceToRecordRequestBody attachSpaceToRecordRequestBody, UUID instanceId, UUID schemaId, String authorization, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -5974,8 +6687,7 @@ public okhttp3.Call moveRecordToSpaceAccessV2SpacesSpaceIdRecordAttachmentsPutCa Object localVarPostBody = attachSpaceToRecordRequestBody; // create path and map variables - String localVarPath = "/access_v2/spaces/{space_id}/record-attachments" - .replace("{" + "space_id" + "}", localVarApiClient.escapeString(spaceId.toString())); + String localVarPath = "/access_v2/spaces/{space_id}/record-attachments"; List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); @@ -5983,6 +6695,10 @@ public okhttp3.Call moveRecordToSpaceAccessV2SpacesSpaceIdRecordAttachmentsPutCa Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); + if (instanceDbSpaceId != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("instance_db_space_id", instanceDbSpaceId)); + } + if (instanceId != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("instance_id", instanceId)); } @@ -6017,10 +6733,10 @@ public okhttp3.Call moveRecordToSpaceAccessV2SpacesSpaceIdRecordAttachmentsPutCa } @SuppressWarnings("rawtypes") - private okhttp3.Call moveRecordToSpaceAccessV2SpacesSpaceIdRecordAttachmentsPutValidateBeforeCall(Integer spaceId, AttachSpaceToRecordRequestBody attachSpaceToRecordRequestBody, UUID instanceId, UUID schemaId, String authorization, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'spaceId' is set - if (spaceId == null) { - throw new ApiException("Missing the required parameter 'spaceId' when calling moveRecordToSpaceAccessV2SpacesSpaceIdRecordAttachmentsPut(Async)"); + private okhttp3.Call moveRecordToSpaceAccessV2SpacesSpaceIdRecordAttachmentsPutValidateBeforeCall(Integer instanceDbSpaceId, AttachSpaceToRecordRequestBody attachSpaceToRecordRequestBody, UUID instanceId, UUID schemaId, String authorization, final ApiCallback _callback) throws ApiException { + // verify the required parameter 'instanceDbSpaceId' is set + if (instanceDbSpaceId == null) { + throw new ApiException("Missing the required parameter 'instanceDbSpaceId' when calling moveRecordToSpaceAccessV2SpacesSpaceIdRecordAttachmentsPut(Async)"); } // verify the required parameter 'attachSpaceToRecordRequestBody' is set @@ -6028,14 +6744,14 @@ private okhttp3.Call moveRecordToSpaceAccessV2SpacesSpaceIdRecordAttachmentsPutV throw new ApiException("Missing the required parameter 'attachSpaceToRecordRequestBody' when calling moveRecordToSpaceAccessV2SpacesSpaceIdRecordAttachmentsPut(Async)"); } - return moveRecordToSpaceAccessV2SpacesSpaceIdRecordAttachmentsPutCall(spaceId, attachSpaceToRecordRequestBody, instanceId, schemaId, authorization, _callback); + return moveRecordToSpaceAccessV2SpacesSpaceIdRecordAttachmentsPutCall(instanceDbSpaceId, attachSpaceToRecordRequestBody, instanceId, schemaId, authorization, _callback); } /** * Move Record To Space * Move a record to a specific space. Parameters: - **space_id**: ID of the space to move the record to - **body**: Request body containing record details - **module_name**: Module name of the record - **model_name**: Model name of the record - **record_id**: ID of the record to move in the space - **instance_id**: UUID of the instance (from URL path) - **schema_id**: UUID of the schema (from URL path) Returns: - **200**: Record moved to the space successfully Requires admin access to the instance - * @param spaceId (required) + * @param instanceDbSpaceId (required) * @param attachSpaceToRecordRequestBody (required) * @param instanceId (optional) * @param schemaId (optional) @@ -6050,15 +6766,15 @@ private okhttp3.Call moveRecordToSpaceAccessV2SpacesSpaceIdRecordAttachmentsPutV 422 Validation Error - */ - public Object moveRecordToSpaceAccessV2SpacesSpaceIdRecordAttachmentsPut(Integer spaceId, AttachSpaceToRecordRequestBody attachSpaceToRecordRequestBody, UUID instanceId, UUID schemaId, String authorization) throws ApiException { - ApiResponse localVarResp = moveRecordToSpaceAccessV2SpacesSpaceIdRecordAttachmentsPutWithHttpInfo(spaceId, attachSpaceToRecordRequestBody, instanceId, schemaId, authorization); + public Object moveRecordToSpaceAccessV2SpacesSpaceIdRecordAttachmentsPut(Integer instanceDbSpaceId, AttachSpaceToRecordRequestBody attachSpaceToRecordRequestBody, UUID instanceId, UUID schemaId, String authorization) throws ApiException { + ApiResponse localVarResp = moveRecordToSpaceAccessV2SpacesSpaceIdRecordAttachmentsPutWithHttpInfo(instanceDbSpaceId, attachSpaceToRecordRequestBody, instanceId, schemaId, authorization); return localVarResp.getData(); } /** * Move Record To Space * Move a record to a specific space. Parameters: - **space_id**: ID of the space to move the record to - **body**: Request body containing record details - **module_name**: Module name of the record - **model_name**: Model name of the record - **record_id**: ID of the record to move in the space - **instance_id**: UUID of the instance (from URL path) - **schema_id**: UUID of the schema (from URL path) Returns: - **200**: Record moved to the space successfully Requires admin access to the instance - * @param spaceId (required) + * @param instanceDbSpaceId (required) * @param attachSpaceToRecordRequestBody (required) * @param instanceId (optional) * @param schemaId (optional) @@ -6073,8 +6789,8 @@ public Object moveRecordToSpaceAccessV2SpacesSpaceIdRecordAttachmentsPut(Integer 422 Validation Error - */ - public ApiResponse moveRecordToSpaceAccessV2SpacesSpaceIdRecordAttachmentsPutWithHttpInfo(Integer spaceId, AttachSpaceToRecordRequestBody attachSpaceToRecordRequestBody, UUID instanceId, UUID schemaId, String authorization) throws ApiException { - okhttp3.Call localVarCall = moveRecordToSpaceAccessV2SpacesSpaceIdRecordAttachmentsPutValidateBeforeCall(spaceId, attachSpaceToRecordRequestBody, instanceId, schemaId, authorization, null); + public ApiResponse moveRecordToSpaceAccessV2SpacesSpaceIdRecordAttachmentsPutWithHttpInfo(Integer instanceDbSpaceId, AttachSpaceToRecordRequestBody attachSpaceToRecordRequestBody, UUID instanceId, UUID schemaId, String authorization) throws ApiException { + okhttp3.Call localVarCall = moveRecordToSpaceAccessV2SpacesSpaceIdRecordAttachmentsPutValidateBeforeCall(instanceDbSpaceId, attachSpaceToRecordRequestBody, instanceId, schemaId, authorization, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } @@ -6082,7 +6798,7 @@ public ApiResponse moveRecordToSpaceAccessV2SpacesSpaceIdRecordAttachmen /** * Move Record To Space (asynchronously) * Move a record to a specific space. Parameters: - **space_id**: ID of the space to move the record to - **body**: Request body containing record details - **module_name**: Module name of the record - **model_name**: Model name of the record - **record_id**: ID of the record to move in the space - **instance_id**: UUID of the instance (from URL path) - **schema_id**: UUID of the schema (from URL path) Returns: - **200**: Record moved to the space successfully Requires admin access to the instance - * @param spaceId (required) + * @param instanceDbSpaceId (required) * @param attachSpaceToRecordRequestBody (required) * @param instanceId (optional) * @param schemaId (optional) @@ -6098,9 +6814,9 @@ public ApiResponse moveRecordToSpaceAccessV2SpacesSpaceIdRecordAttachmen 422 Validation Error - */ - public okhttp3.Call moveRecordToSpaceAccessV2SpacesSpaceIdRecordAttachmentsPutAsync(Integer spaceId, AttachSpaceToRecordRequestBody attachSpaceToRecordRequestBody, UUID instanceId, UUID schemaId, String authorization, final ApiCallback _callback) throws ApiException { + public okhttp3.Call moveRecordToSpaceAccessV2SpacesSpaceIdRecordAttachmentsPutAsync(Integer instanceDbSpaceId, AttachSpaceToRecordRequestBody attachSpaceToRecordRequestBody, UUID instanceId, UUID schemaId, String authorization, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = moveRecordToSpaceAccessV2SpacesSpaceIdRecordAttachmentsPutValidateBeforeCall(spaceId, attachSpaceToRecordRequestBody, instanceId, schemaId, authorization, _callback); + okhttp3.Call localVarCall = moveRecordToSpaceAccessV2SpacesSpaceIdRecordAttachmentsPutValidateBeforeCall(instanceDbSpaceId, attachSpaceToRecordRequestBody, instanceId, schemaId, authorization, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; @@ -6760,6 +7476,296 @@ public okhttp3.Call proxyS3S3PathGet_3Async(String path, final ApiCallback + Response Details + Status Code Description Response Headers + 200 Successful Response - + 422 Validation Error - + + */ + public okhttp3.Call registerDbServerDbServerRegisterPostCall(RegisterDbServerBody registerDbServerBody, String authorization, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = registerDbServerBody; + + // create path and map variables + String localVarPath = "/db/server/register"; + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = { + "application/json" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + "application/json" + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + if (authorization != null) { + localVarHeaderParams.put("Authorization", localVarApiClient.parameterToString(authorization)); + } + + + String[] localVarAuthNames = new String[] { }; + return localVarApiClient.buildCall(basePath, localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call registerDbServerDbServerRegisterPostValidateBeforeCall(RegisterDbServerBody registerDbServerBody, String authorization, final ApiCallback _callback) throws ApiException { + // verify the required parameter 'registerDbServerBody' is set + if (registerDbServerBody == null) { + throw new ApiException("Missing the required parameter 'registerDbServerBody' when calling registerDbServerDbServerRegisterPost(Async)"); + } + + return registerDbServerDbServerRegisterPostCall(registerDbServerBody, authorization, _callback); + + } + + /** + * Register Db Server + * + * @param registerDbServerBody (required) + * @param authorization (optional) + * @return Object + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + +
Response Details
Status Code Description Response Headers
200 Successful Response -
422 Validation Error -
+ */ + public Object registerDbServerDbServerRegisterPost(RegisterDbServerBody registerDbServerBody, String authorization) throws ApiException { + ApiResponse localVarResp = registerDbServerDbServerRegisterPostWithHttpInfo(registerDbServerBody, authorization); + return localVarResp.getData(); + } + + /** + * Register Db Server + * + * @param registerDbServerBody (required) + * @param authorization (optional) + * @return ApiResponse<Object> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + +
Response Details
Status Code Description Response Headers
200 Successful Response -
422 Validation Error -
+ */ + public ApiResponse registerDbServerDbServerRegisterPostWithHttpInfo(RegisterDbServerBody registerDbServerBody, String authorization) throws ApiException { + okhttp3.Call localVarCall = registerDbServerDbServerRegisterPostValidateBeforeCall(registerDbServerBody, authorization, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * Register Db Server (asynchronously) + * + * @param registerDbServerBody (required) + * @param authorization (optional) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + + +
Response Details
Status Code Description Response Headers
200 Successful Response -
422 Validation Error -
+ */ + public okhttp3.Call registerDbServerDbServerRegisterPostAsync(RegisterDbServerBody registerDbServerBody, String authorization, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = registerDbServerDbServerRegisterPostValidateBeforeCall(registerDbServerBody, authorization, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + /** + * Build call for registerFormInstancesInstanceIdFormsPost + * @param instanceId (required) + * @param registerFormRequest (required) + * @param authorization (optional) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + + +
Response Details
Status Code Description Response Headers
200 Successful Response -
422 Validation Error -
+ */ + public okhttp3.Call registerFormInstancesInstanceIdFormsPostCall(UUID instanceId, RegisterFormRequest registerFormRequest, String authorization, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = registerFormRequest; + + // create path and map variables + String localVarPath = "/instances/{instance_id}/forms" + .replace("{" + "instance_id" + "}", localVarApiClient.escapeString(instanceId.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = { + "application/json" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + "application/json" + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + if (authorization != null) { + localVarHeaderParams.put("Authorization", localVarApiClient.parameterToString(authorization)); + } + + + String[] localVarAuthNames = new String[] { }; + return localVarApiClient.buildCall(basePath, localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call registerFormInstancesInstanceIdFormsPostValidateBeforeCall(UUID instanceId, RegisterFormRequest registerFormRequest, String authorization, final ApiCallback _callback) throws ApiException { + // verify the required parameter 'instanceId' is set + if (instanceId == null) { + throw new ApiException("Missing the required parameter 'instanceId' when calling registerFormInstancesInstanceIdFormsPost(Async)"); + } + + // verify the required parameter 'registerFormRequest' is set + if (registerFormRequest == null) { + throw new ApiException("Missing the required parameter 'registerFormRequest' when calling registerFormInstancesInstanceIdFormsPost(Async)"); + } + + return registerFormInstancesInstanceIdFormsPostCall(instanceId, registerFormRequest, authorization, _callback); + + } + + /** + * Register Form + * Register a form for a specific instance. Parameters: - **body**: Request body containing form details - **key**: Key of the form - **data**: Form data - **schema_uid**: UID of the schema Returns: - **201**: Form registered successfully + * @param instanceId (required) + * @param registerFormRequest (required) + * @param authorization (optional) + * @return Object + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + +
Response Details
Status Code Description Response Headers
200 Successful Response -
422 Validation Error -
+ */ + public Object registerFormInstancesInstanceIdFormsPost(UUID instanceId, RegisterFormRequest registerFormRequest, String authorization) throws ApiException { + ApiResponse localVarResp = registerFormInstancesInstanceIdFormsPostWithHttpInfo(instanceId, registerFormRequest, authorization); + return localVarResp.getData(); + } + + /** + * Register Form + * Register a form for a specific instance. Parameters: - **body**: Request body containing form details - **key**: Key of the form - **data**: Form data - **schema_uid**: UID of the schema Returns: - **201**: Form registered successfully + * @param instanceId (required) + * @param registerFormRequest (required) + * @param authorization (optional) + * @return ApiResponse<Object> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + +
Response Details
Status Code Description Response Headers
200 Successful Response -
422 Validation Error -
+ */ + public ApiResponse registerFormInstancesInstanceIdFormsPostWithHttpInfo(UUID instanceId, RegisterFormRequest registerFormRequest, String authorization) throws ApiException { + okhttp3.Call localVarCall = registerFormInstancesInstanceIdFormsPostValidateBeforeCall(instanceId, registerFormRequest, authorization, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * Register Form (asynchronously) + * Register a form for a specific instance. Parameters: - **body**: Request body containing form details - **key**: Key of the form - **data**: Form data - **schema_uid**: UID of the schema Returns: - **201**: Form registered successfully + * @param instanceId (required) + * @param registerFormRequest (required) + * @param authorization (optional) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + + +
Response Details
Status Code Description Response Headers
200 Successful Response -
422 Validation Error -
+ */ + public okhttp3.Call registerFormInstancesInstanceIdFormsPostAsync(UUID instanceId, RegisterFormRequest registerFormRequest, String authorization, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = registerFormInstancesInstanceIdFormsPostValidateBeforeCall(instanceId, registerFormRequest, authorization, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } /** * Build call for removeCollaboratorAccessV2InstancesInstanceIdCollaboratorsDelete * @param instanceId (required) @@ -6848,7 +7854,7 @@ private okhttp3.Call removeCollaboratorAccessV2InstancesInstanceIdCollaboratorsD /** * Remove Collaborator - * Remove a collaborator from an instance. Parameters: - **instance_id**: UUID of the instance (from URL path) - **account_id**: UUID of the account to remove (mutually exclusive with team_id) - **team_id**: UUID of the team to remove (mutually exclusive with account_id) Returns: - **200**: Collaborator removed successfully - **400**: Invalid input (e.g., both account_id and team_id provided) - **404**: Collaborator not found Requires admin access to the instance + * Remove a collaborator from an instance. Parameters: - **instance_id**: UUID of the instance (from URL path) - **account_id**: UUID of the account to remove (mutually exclusive with team_id) - **team_id**: UUID of the team to remove (mutually exclusive with account_id) Returns: - **200**: Collaborator removed successfully - **400**: Invalid input (e.g., both account_id and team_id provided) Requires admin access to the instance * @param instanceId (required) * @param accountId (optional) * @param teamId (optional) @@ -6870,7 +7876,7 @@ public Object removeCollaboratorAccessV2InstancesInstanceIdCollaboratorsDelete(U /** * Remove Collaborator - * Remove a collaborator from an instance. Parameters: - **instance_id**: UUID of the instance (from URL path) - **account_id**: UUID of the account to remove (mutually exclusive with team_id) - **team_id**: UUID of the team to remove (mutually exclusive with account_id) Returns: - **200**: Collaborator removed successfully - **400**: Invalid input (e.g., both account_id and team_id provided) - **404**: Collaborator not found Requires admin access to the instance + * Remove a collaborator from an instance. Parameters: - **instance_id**: UUID of the instance (from URL path) - **account_id**: UUID of the account to remove (mutually exclusive with team_id) - **team_id**: UUID of the team to remove (mutually exclusive with account_id) Returns: - **200**: Collaborator removed successfully - **400**: Invalid input (e.g., both account_id and team_id provided) Requires admin access to the instance * @param instanceId (required) * @param accountId (optional) * @param teamId (optional) @@ -6893,7 +7899,7 @@ public ApiResponse removeCollaboratorAccessV2InstancesInstanceIdCollabor /** * Remove Collaborator (asynchronously) - * Remove a collaborator from an instance. Parameters: - **instance_id**: UUID of the instance (from URL path) - **account_id**: UUID of the account to remove (mutually exclusive with team_id) - **team_id**: UUID of the team to remove (mutually exclusive with account_id) Returns: - **200**: Collaborator removed successfully - **400**: Invalid input (e.g., both account_id and team_id provided) - **404**: Collaborator not found Requires admin access to the instance + * Remove a collaborator from an instance. Parameters: - **instance_id**: UUID of the instance (from URL path) - **account_id**: UUID of the account to remove (mutually exclusive with team_id) - **team_id**: UUID of the team to remove (mutually exclusive with account_id) Returns: - **200**: Collaborator removed successfully - **400**: Invalid input (e.g., both account_id and team_id provided) Requires admin access to the instance * @param instanceId (required) * @param accountId (optional) * @param teamId (optional) @@ -6933,7 +7939,7 @@ public okhttp3.Call removeCollaboratorAccessV2InstancesInstanceIdCollaboratorsDe 422 Validation Error - */ - public okhttp3.Call removeSpaceCollaboratorAccessV2SpacesSpaceIdCollaboratorsDeleteCall(Integer spaceId, UUID accountId, UUID teamId, String authorization, final ApiCallback _callback) throws ApiException { + public okhttp3.Call removeSpaceCollaboratorAccessV2SpacesSpaceIdCollaboratorsDeleteCall(UUID spaceId, UUID accountId, UUID teamId, String authorization, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -6992,7 +7998,7 @@ public okhttp3.Call removeSpaceCollaboratorAccessV2SpacesSpaceIdCollaboratorsDel } @SuppressWarnings("rawtypes") - private okhttp3.Call removeSpaceCollaboratorAccessV2SpacesSpaceIdCollaboratorsDeleteValidateBeforeCall(Integer spaceId, UUID accountId, UUID teamId, String authorization, final ApiCallback _callback) throws ApiException { + private okhttp3.Call removeSpaceCollaboratorAccessV2SpacesSpaceIdCollaboratorsDeleteValidateBeforeCall(UUID spaceId, UUID accountId, UUID teamId, String authorization, final ApiCallback _callback) throws ApiException { // verify the required parameter 'spaceId' is set if (spaceId == null) { throw new ApiException("Missing the required parameter 'spaceId' when calling removeSpaceCollaboratorAccessV2SpacesSpaceIdCollaboratorsDelete(Async)"); @@ -7019,7 +8025,7 @@ private okhttp3.Call removeSpaceCollaboratorAccessV2SpacesSpaceIdCollaboratorsDe 422 Validation Error - */ - public Object removeSpaceCollaboratorAccessV2SpacesSpaceIdCollaboratorsDelete(Integer spaceId, UUID accountId, UUID teamId, String authorization) throws ApiException { + public Object removeSpaceCollaboratorAccessV2SpacesSpaceIdCollaboratorsDelete(UUID spaceId, UUID accountId, UUID teamId, String authorization) throws ApiException { ApiResponse localVarResp = removeSpaceCollaboratorAccessV2SpacesSpaceIdCollaboratorsDeleteWithHttpInfo(spaceId, accountId, teamId, authorization); return localVarResp.getData(); } @@ -7041,7 +8047,7 @@ public Object removeSpaceCollaboratorAccessV2SpacesSpaceIdCollaboratorsDelete(In 422 Validation Error - */ - public ApiResponse removeSpaceCollaboratorAccessV2SpacesSpaceIdCollaboratorsDeleteWithHttpInfo(Integer spaceId, UUID accountId, UUID teamId, String authorization) throws ApiException { + public ApiResponse removeSpaceCollaboratorAccessV2SpacesSpaceIdCollaboratorsDeleteWithHttpInfo(UUID spaceId, UUID accountId, UUID teamId, String authorization) throws ApiException { okhttp3.Call localVarCall = removeSpaceCollaboratorAccessV2SpacesSpaceIdCollaboratorsDeleteValidateBeforeCall(spaceId, accountId, teamId, authorization, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); @@ -7065,7 +8071,7 @@ public ApiResponse removeSpaceCollaboratorAccessV2SpacesSpaceIdCollabora 422 Validation Error - */ - public okhttp3.Call removeSpaceCollaboratorAccessV2SpacesSpaceIdCollaboratorsDeleteAsync(Integer spaceId, UUID accountId, UUID teamId, String authorization, final ApiCallback _callback) throws ApiException { + public okhttp3.Call removeSpaceCollaboratorAccessV2SpacesSpaceIdCollaboratorsDeleteAsync(UUID spaceId, UUID accountId, UUID teamId, String authorization, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = removeSpaceCollaboratorAccessV2SpacesSpaceIdCollaboratorsDeleteValidateBeforeCall(spaceId, accountId, teamId, authorization, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -7465,7 +8471,7 @@ private okhttp3.Call updateCollaboratorAccessV2InstancesInstanceIdCollaboratorsP /** * Update Collaborator - * Update a collaborator's permissions on an instance. Parameters: - **instance_id**: UUID of the instance (from URL path) - **body**: Request body containing collaborator details - **account_id**: UUID of the account to update (mutually exclusive with team_id) - **team_id**: UUID of the team to update (mutually exclusive with account_id) - **role**: Role of the collaborator Returns: - **200**: Collaborator updated successfully - **400**: Invalid input (e.g., both account_id and team_id provided) - **404**: Collaborator not found Requires admin access to the instance + * Update a collaborator's permissions on an instance. Parameters: - **instance_id**: UUID of the instance (from URL path) - **body**: Request body containing collaborator details - **account_id**: UUID of the account to update (mutually exclusive with team_id) - **team_id**: UUID of the team to update (mutually exclusive with account_id) - **role**: Role of the collaborator Returns: - **200**: Collaborator updated successfully - **400**: Invalid input (e.g., both account_id and team_id provided) Requires admin access to the instance * @param instanceId (required) * @param updateCollaboratorRequestBody (required) * @param authorization (optional) @@ -7486,7 +8492,7 @@ public Object updateCollaboratorAccessV2InstancesInstanceIdCollaboratorsPatch(UU /** * Update Collaborator - * Update a collaborator's permissions on an instance. Parameters: - **instance_id**: UUID of the instance (from URL path) - **body**: Request body containing collaborator details - **account_id**: UUID of the account to update (mutually exclusive with team_id) - **team_id**: UUID of the team to update (mutually exclusive with account_id) - **role**: Role of the collaborator Returns: - **200**: Collaborator updated successfully - **400**: Invalid input (e.g., both account_id and team_id provided) - **404**: Collaborator not found Requires admin access to the instance + * Update a collaborator's permissions on an instance. Parameters: - **instance_id**: UUID of the instance (from URL path) - **body**: Request body containing collaborator details - **account_id**: UUID of the account to update (mutually exclusive with team_id) - **team_id**: UUID of the team to update (mutually exclusive with account_id) - **role**: Role of the collaborator Returns: - **200**: Collaborator updated successfully - **400**: Invalid input (e.g., both account_id and team_id provided) Requires admin access to the instance * @param instanceId (required) * @param updateCollaboratorRequestBody (required) * @param authorization (optional) @@ -7508,7 +8514,7 @@ public ApiResponse updateCollaboratorAccessV2InstancesInstanceIdCollabor /** * Update Collaborator (asynchronously) - * Update a collaborator's permissions on an instance. Parameters: - **instance_id**: UUID of the instance (from URL path) - **body**: Request body containing collaborator details - **account_id**: UUID of the account to update (mutually exclusive with team_id) - **team_id**: UUID of the team to update (mutually exclusive with account_id) - **role**: Role of the collaborator Returns: - **200**: Collaborator updated successfully - **400**: Invalid input (e.g., both account_id and team_id provided) - **404**: Collaborator not found Requires admin access to the instance + * Update a collaborator's permissions on an instance. Parameters: - **instance_id**: UUID of the instance (from URL path) - **body**: Request body containing collaborator details - **account_id**: UUID of the account to update (mutually exclusive with team_id) - **team_id**: UUID of the team to update (mutually exclusive with account_id) - **role**: Role of the collaborator Returns: - **200**: Collaborator updated successfully - **400**: Invalid input (e.g., both account_id and team_id provided) Requires admin access to the instance * @param instanceId (required) * @param updateCollaboratorRequestBody (required) * @param authorization (optional) @@ -7897,7 +8903,7 @@ public okhttp3.Call updateRecordInstancesInstanceIdModulesModuleNameModelNameUid 422 Validation Error - */ - public okhttp3.Call updateSpaceAccessV2SpacesSpaceIdPatchCall(Integer spaceId, UpdateSpaceRequestBody updateSpaceRequestBody, String authorization, final ApiCallback _callback) throws ApiException { + public okhttp3.Call updateSpaceAccessV2SpacesSpaceIdPatchCall(UUID spaceId, UpdateSpaceRequestBody updateSpaceRequestBody, String authorization, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -7949,7 +8955,7 @@ public okhttp3.Call updateSpaceAccessV2SpacesSpaceIdPatchCall(Integer spaceId, U } @SuppressWarnings("rawtypes") - private okhttp3.Call updateSpaceAccessV2SpacesSpaceIdPatchValidateBeforeCall(Integer spaceId, UpdateSpaceRequestBody updateSpaceRequestBody, String authorization, final ApiCallback _callback) throws ApiException { + private okhttp3.Call updateSpaceAccessV2SpacesSpaceIdPatchValidateBeforeCall(UUID spaceId, UpdateSpaceRequestBody updateSpaceRequestBody, String authorization, final ApiCallback _callback) throws ApiException { // verify the required parameter 'spaceId' is set if (spaceId == null) { throw new ApiException("Missing the required parameter 'spaceId' when calling updateSpaceAccessV2SpacesSpaceIdPatch(Async)"); @@ -7980,7 +8986,7 @@ private okhttp3.Call updateSpaceAccessV2SpacesSpaceIdPatchValidateBeforeCall(Int 422 Validation Error - */ - public Object updateSpaceAccessV2SpacesSpaceIdPatch(Integer spaceId, UpdateSpaceRequestBody updateSpaceRequestBody, String authorization) throws ApiException { + public Object updateSpaceAccessV2SpacesSpaceIdPatch(UUID spaceId, UpdateSpaceRequestBody updateSpaceRequestBody, String authorization) throws ApiException { ApiResponse localVarResp = updateSpaceAccessV2SpacesSpaceIdPatchWithHttpInfo(spaceId, updateSpaceRequestBody, authorization); return localVarResp.getData(); } @@ -8001,7 +9007,7 @@ public Object updateSpaceAccessV2SpacesSpaceIdPatch(Integer spaceId, UpdateSpace 422 Validation Error - */ - public ApiResponse updateSpaceAccessV2SpacesSpaceIdPatchWithHttpInfo(Integer spaceId, UpdateSpaceRequestBody updateSpaceRequestBody, String authorization) throws ApiException { + public ApiResponse updateSpaceAccessV2SpacesSpaceIdPatchWithHttpInfo(UUID spaceId, UpdateSpaceRequestBody updateSpaceRequestBody, String authorization) throws ApiException { okhttp3.Call localVarCall = updateSpaceAccessV2SpacesSpaceIdPatchValidateBeforeCall(spaceId, updateSpaceRequestBody, authorization, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); @@ -8024,7 +9030,7 @@ public ApiResponse updateSpaceAccessV2SpacesSpaceIdPatchWithHttpInfo(Int 422 Validation Error - */ - public okhttp3.Call updateSpaceAccessV2SpacesSpaceIdPatchAsync(Integer spaceId, UpdateSpaceRequestBody updateSpaceRequestBody, String authorization, final ApiCallback _callback) throws ApiException { + public okhttp3.Call updateSpaceAccessV2SpacesSpaceIdPatchAsync(UUID spaceId, UpdateSpaceRequestBody updateSpaceRequestBody, String authorization, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = updateSpaceAccessV2SpacesSpaceIdPatchValidateBeforeCall(spaceId, updateSpaceRequestBody, authorization, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -8047,7 +9053,7 @@ public okhttp3.Call updateSpaceAccessV2SpacesSpaceIdPatchAsync(Integer spaceId, 422 Validation Error - */ - public okhttp3.Call updateSpaceCollaboratorAccessV2SpacesSpaceIdCollaboratorsPatchCall(Integer spaceId, UpdateSpaceCollaboratorRequestBody updateSpaceCollaboratorRequestBody, String authorization, final ApiCallback _callback) throws ApiException { + public okhttp3.Call updateSpaceCollaboratorAccessV2SpacesSpaceIdCollaboratorsPatchCall(UUID spaceId, UpdateSpaceCollaboratorRequestBody updateSpaceCollaboratorRequestBody, String authorization, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -8099,7 +9105,7 @@ public okhttp3.Call updateSpaceCollaboratorAccessV2SpacesSpaceIdCollaboratorsPat } @SuppressWarnings("rawtypes") - private okhttp3.Call updateSpaceCollaboratorAccessV2SpacesSpaceIdCollaboratorsPatchValidateBeforeCall(Integer spaceId, UpdateSpaceCollaboratorRequestBody updateSpaceCollaboratorRequestBody, String authorization, final ApiCallback _callback) throws ApiException { + private okhttp3.Call updateSpaceCollaboratorAccessV2SpacesSpaceIdCollaboratorsPatchValidateBeforeCall(UUID spaceId, UpdateSpaceCollaboratorRequestBody updateSpaceCollaboratorRequestBody, String authorization, final ApiCallback _callback) throws ApiException { // verify the required parameter 'spaceId' is set if (spaceId == null) { throw new ApiException("Missing the required parameter 'spaceId' when calling updateSpaceCollaboratorAccessV2SpacesSpaceIdCollaboratorsPatch(Async)"); @@ -8130,7 +9136,7 @@ private okhttp3.Call updateSpaceCollaboratorAccessV2SpacesSpaceIdCollaboratorsPa 422 Validation Error - */ - public Object updateSpaceCollaboratorAccessV2SpacesSpaceIdCollaboratorsPatch(Integer spaceId, UpdateSpaceCollaboratorRequestBody updateSpaceCollaboratorRequestBody, String authorization) throws ApiException { + public Object updateSpaceCollaboratorAccessV2SpacesSpaceIdCollaboratorsPatch(UUID spaceId, UpdateSpaceCollaboratorRequestBody updateSpaceCollaboratorRequestBody, String authorization) throws ApiException { ApiResponse localVarResp = updateSpaceCollaboratorAccessV2SpacesSpaceIdCollaboratorsPatchWithHttpInfo(spaceId, updateSpaceCollaboratorRequestBody, authorization); return localVarResp.getData(); } @@ -8151,7 +9157,7 @@ public Object updateSpaceCollaboratorAccessV2SpacesSpaceIdCollaboratorsPatch(Int 422 Validation Error - */ - public ApiResponse updateSpaceCollaboratorAccessV2SpacesSpaceIdCollaboratorsPatchWithHttpInfo(Integer spaceId, UpdateSpaceCollaboratorRequestBody updateSpaceCollaboratorRequestBody, String authorization) throws ApiException { + public ApiResponse updateSpaceCollaboratorAccessV2SpacesSpaceIdCollaboratorsPatchWithHttpInfo(UUID spaceId, UpdateSpaceCollaboratorRequestBody updateSpaceCollaboratorRequestBody, String authorization) throws ApiException { okhttp3.Call localVarCall = updateSpaceCollaboratorAccessV2SpacesSpaceIdCollaboratorsPatchValidateBeforeCall(spaceId, updateSpaceCollaboratorRequestBody, authorization, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); @@ -8174,7 +9180,7 @@ public ApiResponse updateSpaceCollaboratorAccessV2SpacesSpaceIdCollabora 422 Validation Error - */ - public okhttp3.Call updateSpaceCollaboratorAccessV2SpacesSpaceIdCollaboratorsPatchAsync(Integer spaceId, UpdateSpaceCollaboratorRequestBody updateSpaceCollaboratorRequestBody, String authorization, final ApiCallback _callback) throws ApiException { + public okhttp3.Call updateSpaceCollaboratorAccessV2SpacesSpaceIdCollaboratorsPatchAsync(UUID spaceId, UpdateSpaceCollaboratorRequestBody updateSpaceCollaboratorRequestBody, String authorization, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = updateSpaceCollaboratorAccessV2SpacesSpaceIdCollaboratorsPatchValidateBeforeCall(spaceId, updateSpaceCollaboratorRequestBody, authorization, _callback); Type localVarReturnType = new TypeToken(){}.getType(); diff --git a/src/main/java/ai/lamin/lamin_api_client/auth/ApiKeyAuth.java b/src/main/java/ai/lamin/lamin_api_client/auth/ApiKeyAuth.java index 20b2616..41072ff 100644 --- a/src/main/java/ai/lamin/lamin_api_client/auth/ApiKeyAuth.java +++ b/src/main/java/ai/lamin/lamin_api_client/auth/ApiKeyAuth.java @@ -20,7 +20,7 @@ import java.util.Map; import java.util.List; -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-04-03T14:57:42.729190705+02:00[Europe/Brussels]", comments = "Generator version: 7.12.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-10T19:58:41.182141089+02:00[Europe/Brussels]", comments = "Generator version: 7.12.0") public class ApiKeyAuth implements Authentication { private final String location; private final String paramName; diff --git a/src/main/java/ai/lamin/lamin_api_client/auth/HttpBearerAuth.java b/src/main/java/ai/lamin/lamin_api_client/auth/HttpBearerAuth.java index 7747c6e..047106e 100644 --- a/src/main/java/ai/lamin/lamin_api_client/auth/HttpBearerAuth.java +++ b/src/main/java/ai/lamin/lamin_api_client/auth/HttpBearerAuth.java @@ -22,7 +22,7 @@ import java.util.Optional; import java.util.function.Supplier; -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-04-03T14:57:42.729190705+02:00[Europe/Brussels]", comments = "Generator version: 7.12.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-10T19:58:41.182141089+02:00[Europe/Brussels]", comments = "Generator version: 7.12.0") public class HttpBearerAuth implements Authentication { private final String scheme; private Supplier tokenSupplier; diff --git a/src/main/java/ai/lamin/lamin_api_client/model/AbstractOpenApiSchema.java b/src/main/java/ai/lamin/lamin_api_client/model/AbstractOpenApiSchema.java index 67179ac..c774b41 100644 --- a/src/main/java/ai/lamin/lamin_api_client/model/AbstractOpenApiSchema.java +++ b/src/main/java/ai/lamin/lamin_api_client/model/AbstractOpenApiSchema.java @@ -21,7 +21,7 @@ /** * Abstract class for oneOf,anyOf schemas defined in OpenAPI spec */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-04-03T14:57:42.729190705+02:00[Europe/Brussels]", comments = "Generator version: 7.12.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-10T19:58:41.182141089+02:00[Europe/Brussels]", comments = "Generator version: 7.12.0") public abstract class AbstractOpenApiSchema { // store the actual instance of the schema/object diff --git a/src/main/java/ai/lamin/lamin_api_client/model/AddCollaboratorRequestBody.java b/src/main/java/ai/lamin/lamin_api_client/model/AddCollaboratorRequestBody.java index 7971370..f695d6c 100644 --- a/src/main/java/ai/lamin/lamin_api_client/model/AddCollaboratorRequestBody.java +++ b/src/main/java/ai/lamin/lamin_api_client/model/AddCollaboratorRequestBody.java @@ -50,7 +50,7 @@ /** * AddCollaboratorRequestBody */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-04-03T14:57:42.729190705+02:00[Europe/Brussels]", comments = "Generator version: 7.12.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-10T19:58:41.182141089+02:00[Europe/Brussels]", comments = "Generator version: 7.12.0") public class AddCollaboratorRequestBody { public static final String SERIALIZED_NAME_ACCOUNT_ID = "account_id"; @SerializedName(SERIALIZED_NAME_ACCOUNT_ID) diff --git a/src/main/java/ai/lamin/lamin_api_client/model/AddSpaceCollaboratorRequestBody.java b/src/main/java/ai/lamin/lamin_api_client/model/AddSpaceCollaboratorRequestBody.java index 10ad46a..e967168 100644 --- a/src/main/java/ai/lamin/lamin_api_client/model/AddSpaceCollaboratorRequestBody.java +++ b/src/main/java/ai/lamin/lamin_api_client/model/AddSpaceCollaboratorRequestBody.java @@ -50,7 +50,7 @@ /** * AddSpaceCollaboratorRequestBody */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-04-03T14:57:42.729190705+02:00[Europe/Brussels]", comments = "Generator version: 7.12.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-10T19:58:41.182141089+02:00[Europe/Brussels]", comments = "Generator version: 7.12.0") public class AddSpaceCollaboratorRequestBody { public static final String SERIALIZED_NAME_ACCOUNT_ID = "account_id"; @SerializedName(SERIALIZED_NAME_ACCOUNT_ID) diff --git a/src/main/java/ai/lamin/lamin_api_client/model/AddTeamMemberRequestBody.java b/src/main/java/ai/lamin/lamin_api_client/model/AddTeamMemberRequestBody.java index 45d2878..98d0e94 100644 --- a/src/main/java/ai/lamin/lamin_api_client/model/AddTeamMemberRequestBody.java +++ b/src/main/java/ai/lamin/lamin_api_client/model/AddTeamMemberRequestBody.java @@ -14,6 +14,7 @@ package ai.lamin.lamin_api_client.model; import java.util.Objects; +import ai.lamin.lamin_api_client.model.Role; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -48,69 +49,17 @@ /** * AddTeamMemberRequestBody */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-04-03T14:57:42.729190705+02:00[Europe/Brussels]", comments = "Generator version: 7.12.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-10T19:58:41.182141089+02:00[Europe/Brussels]", comments = "Generator version: 7.12.0") public class AddTeamMemberRequestBody { - /** - * Gets or Sets role - */ - @JsonAdapter(RoleEnum.Adapter.class) - public enum RoleEnum { - ADMIN("admin"), - - MEMBER("member"); - - private String value; - - RoleEnum(String value) { - this.value = value; - } - - public String getValue() { - return value; - } - - @Override - public String toString() { - return String.valueOf(value); - } - - public static RoleEnum fromValue(String value) { - for (RoleEnum b : RoleEnum.values()) { - if (b.value.equals(value)) { - return b; - } - } - throw new IllegalArgumentException("Unexpected value '" + value + "'"); - } - - public static class Adapter extends TypeAdapter { - @Override - public void write(final JsonWriter jsonWriter, final RoleEnum enumeration) throws IOException { - jsonWriter.value(enumeration.getValue()); - } - - @Override - public RoleEnum read(final JsonReader jsonReader) throws IOException { - String value = jsonReader.nextString(); - return RoleEnum.fromValue(value); - } - } - - public static void validateJsonElement(JsonElement jsonElement) throws IOException { - String value = jsonElement.getAsString(); - RoleEnum.fromValue(value); - } - } - public static final String SERIALIZED_NAME_ROLE = "role"; @SerializedName(SERIALIZED_NAME_ROLE) @javax.annotation.Nullable - private RoleEnum role = RoleEnum.MEMBER; + private Role role; public AddTeamMemberRequestBody() { } - public AddTeamMemberRequestBody role(@javax.annotation.Nullable RoleEnum role) { + public AddTeamMemberRequestBody role(@javax.annotation.Nullable Role role) { this.role = role; return this; } @@ -120,11 +69,11 @@ public AddTeamMemberRequestBody role(@javax.annotation.Nullable RoleEnum role) { * @return role */ @javax.annotation.Nullable - public RoleEnum getRole() { + public Role getRole() { return role; } - public void setRole(@javax.annotation.Nullable RoleEnum role) { + public void setRole(@javax.annotation.Nullable Role role) { this.role = role; } @@ -201,12 +150,9 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti } } JsonObject jsonObj = jsonElement.getAsJsonObject(); - if ((jsonObj.get("role") != null && !jsonObj.get("role").isJsonNull()) && !jsonObj.get("role").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `role` to be a primitive type in the JSON string but got `%s`", jsonObj.get("role").toString())); - } // validate the optional field `role` if (jsonObj.get("role") != null && !jsonObj.get("role").isJsonNull()) { - RoleEnum.validateJsonElement(jsonObj.get("role")); + Role.validateJsonElement(jsonObj.get("role")); } } diff --git a/src/main/java/ai/lamin/lamin_api_client/model/AttachSpaceToRecordRequestBody.java b/src/main/java/ai/lamin/lamin_api_client/model/AttachSpaceToRecordRequestBody.java index 42d9e8a..9edcc66 100644 --- a/src/main/java/ai/lamin/lamin_api_client/model/AttachSpaceToRecordRequestBody.java +++ b/src/main/java/ai/lamin/lamin_api_client/model/AttachSpaceToRecordRequestBody.java @@ -48,7 +48,7 @@ /** * AttachSpaceToRecordRequestBody */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-04-03T14:57:42.729190705+02:00[Europe/Brussels]", comments = "Generator version: 7.12.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-10T19:58:41.182141089+02:00[Europe/Brussels]", comments = "Generator version: 7.12.0") public class AttachSpaceToRecordRequestBody { public static final String SERIALIZED_NAME_MODULE_NAME = "module_name"; @SerializedName(SERIALIZED_NAME_MODULE_NAME) diff --git a/src/main/java/ai/lamin/lamin_api_client/model/CreateSpaceRequestBody.java b/src/main/java/ai/lamin/lamin_api_client/model/CreateSpaceRequestBody.java index bce202f..b452889 100644 --- a/src/main/java/ai/lamin/lamin_api_client/model/CreateSpaceRequestBody.java +++ b/src/main/java/ai/lamin/lamin_api_client/model/CreateSpaceRequestBody.java @@ -50,7 +50,7 @@ /** * CreateSpaceRequestBody */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-04-03T14:57:42.729190705+02:00[Europe/Brussels]", comments = "Generator version: 7.12.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-10T19:58:41.182141089+02:00[Europe/Brussels]", comments = "Generator version: 7.12.0") public class CreateSpaceRequestBody { public static final String SERIALIZED_NAME_NAME = "name"; @SerializedName(SERIALIZED_NAME_NAME) diff --git a/src/main/java/ai/lamin/lamin_api_client/model/CreateTeamRequestBody.java b/src/main/java/ai/lamin/lamin_api_client/model/CreateTeamRequestBody.java index f736e5a..5bfc629 100644 --- a/src/main/java/ai/lamin/lamin_api_client/model/CreateTeamRequestBody.java +++ b/src/main/java/ai/lamin/lamin_api_client/model/CreateTeamRequestBody.java @@ -50,7 +50,7 @@ /** * CreateTeamRequestBody */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-04-03T14:57:42.729190705+02:00[Europe/Brussels]", comments = "Generator version: 7.12.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-10T19:58:41.182141089+02:00[Europe/Brussels]", comments = "Generator version: 7.12.0") public class CreateTeamRequestBody { public static final String SERIALIZED_NAME_NAME = "name"; @SerializedName(SERIALIZED_NAME_NAME) diff --git a/src/main/java/ai/lamin/lamin_api_client/model/DbUrlRequest.java b/src/main/java/ai/lamin/lamin_api_client/model/DbUrlRequest.java new file mode 100644 index 0000000..8b6f68d --- /dev/null +++ b/src/main/java/ai/lamin/lamin_api_client/model/DbUrlRequest.java @@ -0,0 +1,214 @@ +/* + * FastAPI + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package ai.lamin.lamin_api_client.model; + +import java.util.Objects; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; +import java.util.Arrays; + +import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; +import com.google.gson.TypeAdapterFactory; +import com.google.gson.reflect.TypeToken; +import com.google.gson.TypeAdapter; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; + +import java.util.HashMap; +import java.util.HashSet; +import java.util.List; +import java.util.Map; +import java.util.Set; + +import ai.lamin.lamin_api_client.JSON; + +/** + * DbUrlRequest + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-10T19:58:41.182141089+02:00[Europe/Brussels]", comments = "Generator version: 7.12.0") +public class DbUrlRequest { + public static final String SERIALIZED_NAME_DB_URL = "db_url"; + @SerializedName(SERIALIZED_NAME_DB_URL) + @javax.annotation.Nonnull + private String dbUrl; + + public DbUrlRequest() { + } + + public DbUrlRequest dbUrl(@javax.annotation.Nonnull String dbUrl) { + this.dbUrl = dbUrl; + return this; + } + + /** + * Get dbUrl + * @return dbUrl + */ + @javax.annotation.Nonnull + public String getDbUrl() { + return dbUrl; + } + + public void setDbUrl(@javax.annotation.Nonnull String dbUrl) { + this.dbUrl = dbUrl; + } + + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + DbUrlRequest dbUrlRequest = (DbUrlRequest) o; + return Objects.equals(this.dbUrl, dbUrlRequest.dbUrl); + } + + @Override + public int hashCode() { + return Objects.hash(dbUrl); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class DbUrlRequest {\n"); + sb.append(" dbUrl: ").append(toIndentedString(dbUrl)).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 "); + } + + + public static HashSet openapiFields; + public static HashSet openapiRequiredFields; + + static { + // a set of all properties/fields (JSON key names) + openapiFields = new HashSet(); + openapiFields.add("db_url"); + + // a set of required properties/fields (JSON key names) + openapiRequiredFields = new HashSet(); + openapiRequiredFields.add("db_url"); + } + + /** + * Validates the JSON Element and throws an exception if issues found + * + * @param jsonElement JSON Element + * @throws IOException if the JSON Element is invalid with respect to DbUrlRequest + */ + public static void validateJsonElement(JsonElement jsonElement) throws IOException { + if (jsonElement == null) { + if (!DbUrlRequest.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null + throw new IllegalArgumentException(String.format("The required field(s) %s in DbUrlRequest is not found in the empty JSON string", DbUrlRequest.openapiRequiredFields.toString())); + } + } + + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!DbUrlRequest.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `DbUrlRequest` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + } + } + + // check to make sure all required properties/fields are present in the JSON string + for (String requiredField : DbUrlRequest.openapiRequiredFields) { + if (jsonElement.getAsJsonObject().get(requiredField) == null) { + throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); + } + } + JsonObject jsonObj = jsonElement.getAsJsonObject(); + if (!jsonObj.get("db_url").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `db_url` to be a primitive type in the JSON string but got `%s`", jsonObj.get("db_url").toString())); + } + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!DbUrlRequest.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'DbUrlRequest' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(DbUrlRequest.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, DbUrlRequest value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public DbUrlRequest read(JsonReader in) throws IOException { + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + return thisAdapter.fromJsonTree(jsonElement); + } + + }.nullSafe(); + } + } + + /** + * Create an instance of DbUrlRequest given an JSON string + * + * @param jsonString JSON string + * @return An instance of DbUrlRequest + * @throws IOException if the JSON string is invalid with respect to DbUrlRequest + */ + public static DbUrlRequest fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, DbUrlRequest.class); + } + + /** + * Convert an instance of DbUrlRequest to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } +} + diff --git a/src/main/java/ai/lamin/lamin_api_client/model/Dimension.java b/src/main/java/ai/lamin/lamin_api_client/model/Dimension.java index d35c50d..1abfa2c 100644 --- a/src/main/java/ai/lamin/lamin_api_client/model/Dimension.java +++ b/src/main/java/ai/lamin/lamin_api_client/model/Dimension.java @@ -49,7 +49,7 @@ /** * Dimension */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-04-03T14:57:42.729190705+02:00[Europe/Brussels]", comments = "Generator version: 7.12.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-10T19:58:41.182141089+02:00[Europe/Brussels]", comments = "Generator version: 7.12.0") public class Dimension { public static final String SERIALIZED_NAME_FIELD_NAME = "field_name"; @SerializedName(SERIALIZED_NAME_FIELD_NAME) diff --git a/src/main/java/ai/lamin/lamin_api_client/model/GetRecordRequestBody.java b/src/main/java/ai/lamin/lamin_api_client/model/GetRecordRequestBody.java index 4ab970a..eb5220f 100644 --- a/src/main/java/ai/lamin/lamin_api_client/model/GetRecordRequestBody.java +++ b/src/main/java/ai/lamin/lamin_api_client/model/GetRecordRequestBody.java @@ -51,7 +51,7 @@ /** * GetRecordRequestBody */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-04-03T14:57:42.729190705+02:00[Europe/Brussels]", comments = "Generator version: 7.12.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-10T19:58:41.182141089+02:00[Europe/Brussels]", comments = "Generator version: 7.12.0") public class GetRecordRequestBody { public static final String SERIALIZED_NAME_SELECT = "select"; @SerializedName(SERIALIZED_NAME_SELECT) diff --git a/src/main/java/ai/lamin/lamin_api_client/model/GetRecordsRequestBody.java b/src/main/java/ai/lamin/lamin_api_client/model/GetRecordsRequestBody.java index e2933a7..7dd2c6b 100644 --- a/src/main/java/ai/lamin/lamin_api_client/model/GetRecordsRequestBody.java +++ b/src/main/java/ai/lamin/lamin_api_client/model/GetRecordsRequestBody.java @@ -54,7 +54,7 @@ /** * GetRecordsRequestBody */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-04-03T14:57:42.729190705+02:00[Europe/Brussels]", comments = "Generator version: 7.12.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-10T19:58:41.182141089+02:00[Europe/Brussels]", comments = "Generator version: 7.12.0") public class GetRecordsRequestBody { public static final String SERIALIZED_NAME_SELECT = "select"; @SerializedName(SERIALIZED_NAME_SELECT) diff --git a/src/main/java/ai/lamin/lamin_api_client/model/GetValuesRequestBody.java b/src/main/java/ai/lamin/lamin_api_client/model/GetValuesRequestBody.java index aafb637..679b547 100644 --- a/src/main/java/ai/lamin/lamin_api_client/model/GetValuesRequestBody.java +++ b/src/main/java/ai/lamin/lamin_api_client/model/GetValuesRequestBody.java @@ -54,7 +54,7 @@ /** * GetValuesRequestBody */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-04-03T14:57:42.729190705+02:00[Europe/Brussels]", comments = "Generator version: 7.12.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-10T19:58:41.182141089+02:00[Europe/Brussels]", comments = "Generator version: 7.12.0") public class GetValuesRequestBody { public static final String SERIALIZED_NAME_FILTER = "filter"; @SerializedName(SERIALIZED_NAME_FILTER) diff --git a/src/main/java/ai/lamin/lamin_api_client/model/GroupByRequestBody.java b/src/main/java/ai/lamin/lamin_api_client/model/GroupByRequestBody.java index 776dfc7..cae62de 100644 --- a/src/main/java/ai/lamin/lamin_api_client/model/GroupByRequestBody.java +++ b/src/main/java/ai/lamin/lamin_api_client/model/GroupByRequestBody.java @@ -55,7 +55,7 @@ /** * GroupByRequestBody */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-04-03T14:57:42.729190705+02:00[Europe/Brussels]", comments = "Generator version: 7.12.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-10T19:58:41.182141089+02:00[Europe/Brussels]", comments = "Generator version: 7.12.0") public class GroupByRequestBody { public static final String SERIALIZED_NAME_DIMENSIONS = "dimensions"; @SerializedName(SERIALIZED_NAME_DIMENSIONS) diff --git a/src/main/java/ai/lamin/lamin_api_client/model/HTTPValidationError.java b/src/main/java/ai/lamin/lamin_api_client/model/HTTPValidationError.java index f035cd5..555a054 100644 --- a/src/main/java/ai/lamin/lamin_api_client/model/HTTPValidationError.java +++ b/src/main/java/ai/lamin/lamin_api_client/model/HTTPValidationError.java @@ -51,7 +51,7 @@ /** * HTTPValidationError */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-04-03T14:57:42.729190705+02:00[Europe/Brussels]", comments = "Generator version: 7.12.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-10T19:58:41.182141089+02:00[Europe/Brussels]", comments = "Generator version: 7.12.0") public class HTTPValidationError { public static final String SERIALIZED_NAME_DETAIL = "detail"; @SerializedName(SERIALIZED_NAME_DETAIL) diff --git a/src/main/java/ai/lamin/lamin_api_client/model/Measure.java b/src/main/java/ai/lamin/lamin_api_client/model/Measure.java index 189f412..8fd574f 100644 --- a/src/main/java/ai/lamin/lamin_api_client/model/Measure.java +++ b/src/main/java/ai/lamin/lamin_api_client/model/Measure.java @@ -49,7 +49,7 @@ /** * Measure */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-04-03T14:57:42.729190705+02:00[Europe/Brussels]", comments = "Generator version: 7.12.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-10T19:58:41.182141089+02:00[Europe/Brussels]", comments = "Generator version: 7.12.0") public class Measure { public static final String SERIALIZED_NAME_FIELD_NAME = "field_name"; @SerializedName(SERIALIZED_NAME_FIELD_NAME) diff --git a/src/main/java/ai/lamin/lamin_api_client/model/OrderByColumn.java b/src/main/java/ai/lamin/lamin_api_client/model/OrderByColumn.java index c32a5f8..2ba0094 100644 --- a/src/main/java/ai/lamin/lamin_api_client/model/OrderByColumn.java +++ b/src/main/java/ai/lamin/lamin_api_client/model/OrderByColumn.java @@ -48,7 +48,7 @@ /** * OrderByColumn */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-04-03T14:57:42.729190705+02:00[Europe/Brussels]", comments = "Generator version: 7.12.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-10T19:58:41.182141089+02:00[Europe/Brussels]", comments = "Generator version: 7.12.0") public class OrderByColumn { public static final String SERIALIZED_NAME_FIELD = "field"; @SerializedName(SERIALIZED_NAME_FIELD) diff --git a/src/main/java/ai/lamin/lamin_api_client/model/RegisterDbServerBody.java b/src/main/java/ai/lamin/lamin_api_client/model/RegisterDbServerBody.java new file mode 100644 index 0000000..39fbddd --- /dev/null +++ b/src/main/java/ai/lamin/lamin_api_client/model/RegisterDbServerBody.java @@ -0,0 +1,276 @@ +/* + * FastAPI + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package ai.lamin.lamin_api_client.model; + +import java.util.Objects; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; +import java.util.Arrays; + +import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; +import com.google.gson.TypeAdapterFactory; +import com.google.gson.reflect.TypeToken; +import com.google.gson.TypeAdapter; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; + +import java.util.HashMap; +import java.util.HashSet; +import java.util.List; +import java.util.Map; +import java.util.Set; + +import ai.lamin.lamin_api_client.JSON; + +/** + * RegisterDbServerBody + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-10T19:58:41.182141089+02:00[Europe/Brussels]", comments = "Generator version: 7.12.0") +public class RegisterDbServerBody { + public static final String SERIALIZED_NAME_NAME = "name"; + @SerializedName(SERIALIZED_NAME_NAME) + @javax.annotation.Nonnull + private String name; + + public static final String SERIALIZED_NAME_URL = "url"; + @SerializedName(SERIALIZED_NAME_URL) + @javax.annotation.Nonnull + private String url; + + public static final String SERIALIZED_NAME_API_SERVER_NAME = "api_server_name"; + @SerializedName(SERIALIZED_NAME_API_SERVER_NAME) + @javax.annotation.Nonnull + private String apiServerName; + + public RegisterDbServerBody() { + } + + public RegisterDbServerBody name(@javax.annotation.Nonnull String name) { + this.name = name; + return this; + } + + /** + * Get name + * @return name + */ + @javax.annotation.Nonnull + public String getName() { + return name; + } + + public void setName(@javax.annotation.Nonnull String name) { + this.name = name; + } + + + public RegisterDbServerBody url(@javax.annotation.Nonnull String url) { + this.url = url; + return this; + } + + /** + * Get url + * @return url + */ + @javax.annotation.Nonnull + public String getUrl() { + return url; + } + + public void setUrl(@javax.annotation.Nonnull String url) { + this.url = url; + } + + + public RegisterDbServerBody apiServerName(@javax.annotation.Nonnull String apiServerName) { + this.apiServerName = apiServerName; + return this; + } + + /** + * Get apiServerName + * @return apiServerName + */ + @javax.annotation.Nonnull + public String getApiServerName() { + return apiServerName; + } + + public void setApiServerName(@javax.annotation.Nonnull String apiServerName) { + this.apiServerName = apiServerName; + } + + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + RegisterDbServerBody registerDbServerBody = (RegisterDbServerBody) o; + return Objects.equals(this.name, registerDbServerBody.name) && + Objects.equals(this.url, registerDbServerBody.url) && + Objects.equals(this.apiServerName, registerDbServerBody.apiServerName); + } + + @Override + public int hashCode() { + return Objects.hash(name, url, apiServerName); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class RegisterDbServerBody {\n"); + sb.append(" name: ").append(toIndentedString(name)).append("\n"); + sb.append(" url: ").append(toIndentedString(url)).append("\n"); + sb.append(" apiServerName: ").append(toIndentedString(apiServerName)).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 "); + } + + + public static HashSet openapiFields; + public static HashSet openapiRequiredFields; + + static { + // a set of all properties/fields (JSON key names) + openapiFields = new HashSet(); + openapiFields.add("name"); + openapiFields.add("url"); + openapiFields.add("api_server_name"); + + // a set of required properties/fields (JSON key names) + openapiRequiredFields = new HashSet(); + openapiRequiredFields.add("name"); + openapiRequiredFields.add("url"); + openapiRequiredFields.add("api_server_name"); + } + + /** + * Validates the JSON Element and throws an exception if issues found + * + * @param jsonElement JSON Element + * @throws IOException if the JSON Element is invalid with respect to RegisterDbServerBody + */ + public static void validateJsonElement(JsonElement jsonElement) throws IOException { + if (jsonElement == null) { + if (!RegisterDbServerBody.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null + throw new IllegalArgumentException(String.format("The required field(s) %s in RegisterDbServerBody is not found in the empty JSON string", RegisterDbServerBody.openapiRequiredFields.toString())); + } + } + + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!RegisterDbServerBody.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `RegisterDbServerBody` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + } + } + + // check to make sure all required properties/fields are present in the JSON string + for (String requiredField : RegisterDbServerBody.openapiRequiredFields) { + if (jsonElement.getAsJsonObject().get(requiredField) == null) { + throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); + } + } + JsonObject jsonObj = jsonElement.getAsJsonObject(); + if (!jsonObj.get("name").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `name` to be a primitive type in the JSON string but got `%s`", jsonObj.get("name").toString())); + } + if (!jsonObj.get("url").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `url` to be a primitive type in the JSON string but got `%s`", jsonObj.get("url").toString())); + } + if (!jsonObj.get("api_server_name").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `api_server_name` to be a primitive type in the JSON string but got `%s`", jsonObj.get("api_server_name").toString())); + } + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!RegisterDbServerBody.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'RegisterDbServerBody' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(RegisterDbServerBody.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, RegisterDbServerBody value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public RegisterDbServerBody read(JsonReader in) throws IOException { + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + return thisAdapter.fromJsonTree(jsonElement); + } + + }.nullSafe(); + } + } + + /** + * Create an instance of RegisterDbServerBody given an JSON string + * + * @param jsonString JSON string + * @return An instance of RegisterDbServerBody + * @throws IOException if the JSON string is invalid with respect to RegisterDbServerBody + */ + public static RegisterDbServerBody fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, RegisterDbServerBody.class); + } + + /** + * Convert an instance of RegisterDbServerBody to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } +} + diff --git a/src/main/java/ai/lamin/lamin_api_client/model/RegisterFormRequest.java b/src/main/java/ai/lamin/lamin_api_client/model/RegisterFormRequest.java new file mode 100644 index 0000000..a6e3686 --- /dev/null +++ b/src/main/java/ai/lamin/lamin_api_client/model/RegisterFormRequest.java @@ -0,0 +1,283 @@ +/* + * FastAPI + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package ai.lamin.lamin_api_client.model; + +import java.util.Objects; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; +import java.util.Arrays; +import java.util.HashMap; +import java.util.Map; + +import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; +import com.google.gson.TypeAdapterFactory; +import com.google.gson.reflect.TypeToken; +import com.google.gson.TypeAdapter; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; + +import java.util.HashMap; +import java.util.HashSet; +import java.util.List; +import java.util.Map; +import java.util.Set; + +import ai.lamin.lamin_api_client.JSON; + +/** + * RegisterFormRequest + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-10T19:58:41.182141089+02:00[Europe/Brussels]", comments = "Generator version: 7.12.0") +public class RegisterFormRequest { + public static final String SERIALIZED_NAME_KEY = "key"; + @SerializedName(SERIALIZED_NAME_KEY) + @javax.annotation.Nonnull + private String key; + + public static final String SERIALIZED_NAME_DATA = "data"; + @SerializedName(SERIALIZED_NAME_DATA) + @javax.annotation.Nonnull + private Map data = new HashMap<>(); + + public static final String SERIALIZED_NAME_SCHEMA_UID = "schema_uid"; + @SerializedName(SERIALIZED_NAME_SCHEMA_UID) + @javax.annotation.Nonnull + private String schemaUid; + + public RegisterFormRequest() { + } + + public RegisterFormRequest key(@javax.annotation.Nonnull String key) { + this.key = key; + return this; + } + + /** + * Get key + * @return key + */ + @javax.annotation.Nonnull + public String getKey() { + return key; + } + + public void setKey(@javax.annotation.Nonnull String key) { + this.key = key; + } + + + public RegisterFormRequest data(@javax.annotation.Nonnull Map data) { + this.data = data; + return this; + } + + public RegisterFormRequest putDataItem(String key, Object dataItem) { + if (this.data == null) { + this.data = new HashMap<>(); + } + this.data.put(key, dataItem); + return this; + } + + /** + * Get data + * @return data + */ + @javax.annotation.Nonnull + public Map getData() { + return data; + } + + public void setData(@javax.annotation.Nonnull Map data) { + this.data = data; + } + + + public RegisterFormRequest schemaUid(@javax.annotation.Nonnull String schemaUid) { + this.schemaUid = schemaUid; + return this; + } + + /** + * Get schemaUid + * @return schemaUid + */ + @javax.annotation.Nonnull + public String getSchemaUid() { + return schemaUid; + } + + public void setSchemaUid(@javax.annotation.Nonnull String schemaUid) { + this.schemaUid = schemaUid; + } + + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + RegisterFormRequest registerFormRequest = (RegisterFormRequest) o; + return Objects.equals(this.key, registerFormRequest.key) && + Objects.equals(this.data, registerFormRequest.data) && + Objects.equals(this.schemaUid, registerFormRequest.schemaUid); + } + + @Override + public int hashCode() { + return Objects.hash(key, data, schemaUid); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class RegisterFormRequest {\n"); + sb.append(" key: ").append(toIndentedString(key)).append("\n"); + sb.append(" data: ").append(toIndentedString(data)).append("\n"); + sb.append(" schemaUid: ").append(toIndentedString(schemaUid)).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 "); + } + + + public static HashSet openapiFields; + public static HashSet openapiRequiredFields; + + static { + // a set of all properties/fields (JSON key names) + openapiFields = new HashSet(); + openapiFields.add("key"); + openapiFields.add("data"); + openapiFields.add("schema_uid"); + + // a set of required properties/fields (JSON key names) + openapiRequiredFields = new HashSet(); + openapiRequiredFields.add("key"); + openapiRequiredFields.add("data"); + openapiRequiredFields.add("schema_uid"); + } + + /** + * Validates the JSON Element and throws an exception if issues found + * + * @param jsonElement JSON Element + * @throws IOException if the JSON Element is invalid with respect to RegisterFormRequest + */ + public static void validateJsonElement(JsonElement jsonElement) throws IOException { + if (jsonElement == null) { + if (!RegisterFormRequest.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null + throw new IllegalArgumentException(String.format("The required field(s) %s in RegisterFormRequest is not found in the empty JSON string", RegisterFormRequest.openapiRequiredFields.toString())); + } + } + + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!RegisterFormRequest.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `RegisterFormRequest` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + } + } + + // check to make sure all required properties/fields are present in the JSON string + for (String requiredField : RegisterFormRequest.openapiRequiredFields) { + if (jsonElement.getAsJsonObject().get(requiredField) == null) { + throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); + } + } + JsonObject jsonObj = jsonElement.getAsJsonObject(); + if (!jsonObj.get("key").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `key` to be a primitive type in the JSON string but got `%s`", jsonObj.get("key").toString())); + } + if (!jsonObj.get("schema_uid").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `schema_uid` to be a primitive type in the JSON string but got `%s`", jsonObj.get("schema_uid").toString())); + } + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!RegisterFormRequest.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'RegisterFormRequest' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(RegisterFormRequest.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, RegisterFormRequest value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public RegisterFormRequest read(JsonReader in) throws IOException { + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + return thisAdapter.fromJsonTree(jsonElement); + } + + }.nullSafe(); + } + } + + /** + * Create an instance of RegisterFormRequest given an JSON string + * + * @param jsonString JSON string + * @return An instance of RegisterFormRequest + * @throws IOException if the JSON string is invalid with respect to RegisterFormRequest + */ + public static RegisterFormRequest fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, RegisterFormRequest.class); + } + + /** + * Convert an instance of RegisterFormRequest to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } +} + diff --git a/src/main/java/ai/lamin/lamin_api_client/model/Role.java b/src/main/java/ai/lamin/lamin_api_client/model/Role.java new file mode 100644 index 0000000..d55dec1 --- /dev/null +++ b/src/main/java/ai/lamin/lamin_api_client/model/Role.java @@ -0,0 +1,217 @@ +/* + * FastAPI + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package ai.lamin.lamin_api_client.model; + +import java.util.Objects; + + + +import java.io.IOException; +import java.lang.reflect.Type; +import java.util.logging.Level; +import java.util.logging.Logger; +import java.util.ArrayList; +import java.util.Collections; +import java.util.HashSet; +import java.util.HashMap; +import java.util.List; +import java.util.Map; + +import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.JsonParseException; +import com.google.gson.TypeAdapter; +import com.google.gson.TypeAdapterFactory; +import com.google.gson.reflect.TypeToken; +import com.google.gson.JsonPrimitive; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; +import com.google.gson.JsonSerializationContext; +import com.google.gson.JsonSerializer; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; +import com.google.gson.JsonArray; +import com.google.gson.JsonParseException; + +import ai.lamin.lamin_api_client.JSON; + +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-10T19:58:41.182141089+02:00[Europe/Brussels]", comments = "Generator version: 7.12.0") +public class Role extends AbstractOpenApiSchema { + private static final Logger log = Logger.getLogger(Role.class.getName()); + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!Role.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'Role' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter adapterString = gson.getDelegateAdapter(this, TypeToken.get(String.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, Role value) throws IOException { + if (value == null || value.getActualInstance() == null) { + elementAdapter.write(out, null); + return; + } + + // check if the actual instance is of the type `String` + if (value.getActualInstance() instanceof String) { + JsonPrimitive primitive = adapterString.toJsonTree((String)value.getActualInstance()).getAsJsonPrimitive(); + elementAdapter.write(out, primitive); + return; + } + throw new IOException("Failed to serialize as the type doesn't match anyOf schemas: String"); + } + + @Override + public Role read(JsonReader in) throws IOException { + Object deserialized = null; + JsonElement jsonElement = elementAdapter.read(in); + + ArrayList errorMessages = new ArrayList<>(); + TypeAdapter actualAdapter = elementAdapter; + + // deserialize String + try { + // validate the JSON object to see if any exception is thrown + if (!jsonElement.getAsJsonPrimitive().isString()) { + throw new IllegalArgumentException(String.format("Expected json element to be of type String in the JSON string but got `%s`", jsonElement.toString())); + } + actualAdapter = adapterString; + Role ret = new Role(); + ret.setActualInstance(actualAdapter.fromJsonTree(jsonElement)); + return ret; + } catch (Exception e) { + // deserialization failed, continue + errorMessages.add(String.format("Deserialization for String failed with `%s`.", e.getMessage())); + log.log(Level.FINER, "Input data does not match schema 'String'", e); + } + + throw new IOException(String.format("Failed deserialization for Role: no class matches result, expected at least 1. Detailed failure message for anyOf schemas: %s. JSON: %s", errorMessages, jsonElement.toString())); + } + }.nullSafe(); + } + } + + // store a list of schema names defined in anyOf + public static final Map> schemas = new HashMap>(); + + public Role() { + super("anyOf", Boolean.FALSE); + } + + public Role(Object o) { + super("anyOf", Boolean.FALSE); + setActualInstance(o); + } + + static { + schemas.put("String", String.class); + } + + @Override + public Map> getSchemas() { + return Role.schemas; + } + + /** + * Set the instance that matches the anyOf child schema, check + * the instance parameter is valid against the anyOf child schemas: + * String + * + * It could be an instance of the 'anyOf' schemas. + */ + @Override + public void setActualInstance(Object instance) { + if (instance instanceof String) { + super.setActualInstance(instance); + return; + } + + throw new RuntimeException("Invalid instance type. Must be String"); + } + + /** + * Get the actual instance, which can be the following: + * String + * + * @return The actual instance (String) + */ + @SuppressWarnings("unchecked") + @Override + public Object getActualInstance() { + return super.getActualInstance(); + } + + /** + * Get the actual instance of `String`. If the actual instance is not `String`, + * the ClassCastException will be thrown. + * + * @return The actual instance of `String` + * @throws ClassCastException if the instance is not `String` + */ + public String getString() throws ClassCastException { + return (String)super.getActualInstance(); + } + + /** + * Validates the JSON Element and throws an exception if issues found + * + * @param jsonElement JSON Element + * @throws IOException if the JSON Element is invalid with respect to Role + */ + public static void validateJsonElement(JsonElement jsonElement) throws IOException { + // validate anyOf schemas one by one + ArrayList errorMessages = new ArrayList<>(); + // validate the json string with String + try { + if (!jsonElement.getAsJsonPrimitive().isString()) { + throw new IllegalArgumentException(String.format("Expected json element to be of type String in the JSON string but got `%s`", jsonElement.toString())); + } + return; + } catch (Exception e) { + errorMessages.add(String.format("Deserialization for String failed with `%s`.", e.getMessage())); + // continue to the next one + } + throw new IOException(String.format("The JSON string is invalid for Role with anyOf schemas: String. no class match the result, expected at least 1. Detailed failure message for anyOf schemas: %s. JSON: %s", errorMessages, jsonElement.toString())); + } + + /** + * Create an instance of Role given an JSON string + * + * @param jsonString JSON string + * @return An instance of Role + * @throws IOException if the JSON string is invalid with respect to Role + */ + public static Role fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, Role.class); + } + + /** + * Convert an instance of Role to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } +} + diff --git a/src/main/java/ai/lamin/lamin_api_client/model/Role1.java b/src/main/java/ai/lamin/lamin_api_client/model/Role1.java new file mode 100644 index 0000000..3a45416 --- /dev/null +++ b/src/main/java/ai/lamin/lamin_api_client/model/Role1.java @@ -0,0 +1,217 @@ +/* + * FastAPI + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package ai.lamin.lamin_api_client.model; + +import java.util.Objects; + + + +import java.io.IOException; +import java.lang.reflect.Type; +import java.util.logging.Level; +import java.util.logging.Logger; +import java.util.ArrayList; +import java.util.Collections; +import java.util.HashSet; +import java.util.HashMap; +import java.util.List; +import java.util.Map; + +import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.JsonParseException; +import com.google.gson.TypeAdapter; +import com.google.gson.TypeAdapterFactory; +import com.google.gson.reflect.TypeToken; +import com.google.gson.JsonPrimitive; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; +import com.google.gson.JsonSerializationContext; +import com.google.gson.JsonSerializer; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; +import com.google.gson.JsonArray; +import com.google.gson.JsonParseException; + +import ai.lamin.lamin_api_client.JSON; + +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-10T19:58:41.182141089+02:00[Europe/Brussels]", comments = "Generator version: 7.12.0") +public class Role1 extends AbstractOpenApiSchema { + private static final Logger log = Logger.getLogger(Role1.class.getName()); + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!Role1.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'Role1' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter adapterString = gson.getDelegateAdapter(this, TypeToken.get(String.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, Role1 value) throws IOException { + if (value == null || value.getActualInstance() == null) { + elementAdapter.write(out, null); + return; + } + + // check if the actual instance is of the type `String` + if (value.getActualInstance() instanceof String) { + JsonPrimitive primitive = adapterString.toJsonTree((String)value.getActualInstance()).getAsJsonPrimitive(); + elementAdapter.write(out, primitive); + return; + } + throw new IOException("Failed to serialize as the type doesn't match anyOf schemas: String"); + } + + @Override + public Role1 read(JsonReader in) throws IOException { + Object deserialized = null; + JsonElement jsonElement = elementAdapter.read(in); + + ArrayList errorMessages = new ArrayList<>(); + TypeAdapter actualAdapter = elementAdapter; + + // deserialize String + try { + // validate the JSON object to see if any exception is thrown + if (!jsonElement.getAsJsonPrimitive().isString()) { + throw new IllegalArgumentException(String.format("Expected json element to be of type String in the JSON string but got `%s`", jsonElement.toString())); + } + actualAdapter = adapterString; + Role1 ret = new Role1(); + ret.setActualInstance(actualAdapter.fromJsonTree(jsonElement)); + return ret; + } catch (Exception e) { + // deserialization failed, continue + errorMessages.add(String.format("Deserialization for String failed with `%s`.", e.getMessage())); + log.log(Level.FINER, "Input data does not match schema 'String'", e); + } + + throw new IOException(String.format("Failed deserialization for Role1: no class matches result, expected at least 1. Detailed failure message for anyOf schemas: %s. JSON: %s", errorMessages, jsonElement.toString())); + } + }.nullSafe(); + } + } + + // store a list of schema names defined in anyOf + public static final Map> schemas = new HashMap>(); + + public Role1() { + super("anyOf", Boolean.FALSE); + } + + public Role1(Object o) { + super("anyOf", Boolean.FALSE); + setActualInstance(o); + } + + static { + schemas.put("String", String.class); + } + + @Override + public Map> getSchemas() { + return Role1.schemas; + } + + /** + * Set the instance that matches the anyOf child schema, check + * the instance parameter is valid against the anyOf child schemas: + * String + * + * It could be an instance of the 'anyOf' schemas. + */ + @Override + public void setActualInstance(Object instance) { + if (instance instanceof String) { + super.setActualInstance(instance); + return; + } + + throw new RuntimeException("Invalid instance type. Must be String"); + } + + /** + * Get the actual instance, which can be the following: + * String + * + * @return The actual instance (String) + */ + @SuppressWarnings("unchecked") + @Override + public Object getActualInstance() { + return super.getActualInstance(); + } + + /** + * Get the actual instance of `String`. If the actual instance is not `String`, + * the ClassCastException will be thrown. + * + * @return The actual instance of `String` + * @throws ClassCastException if the instance is not `String` + */ + public String getString() throws ClassCastException { + return (String)super.getActualInstance(); + } + + /** + * Validates the JSON Element and throws an exception if issues found + * + * @param jsonElement JSON Element + * @throws IOException if the JSON Element is invalid with respect to Role1 + */ + public static void validateJsonElement(JsonElement jsonElement) throws IOException { + // validate anyOf schemas one by one + ArrayList errorMessages = new ArrayList<>(); + // validate the json string with String + try { + if (!jsonElement.getAsJsonPrimitive().isString()) { + throw new IllegalArgumentException(String.format("Expected json element to be of type String in the JSON string but got `%s`", jsonElement.toString())); + } + return; + } catch (Exception e) { + errorMessages.add(String.format("Deserialization for String failed with `%s`.", e.getMessage())); + // continue to the next one + } + throw new IOException(String.format("The JSON string is invalid for Role1 with anyOf schemas: String. no class match the result, expected at least 1. Detailed failure message for anyOf schemas: %s. JSON: %s", errorMessages, jsonElement.toString())); + } + + /** + * Create an instance of Role1 given an JSON string + * + * @param jsonString JSON string + * @return An instance of Role1 + * @throws IOException if the JSON string is invalid with respect to Role1 + */ + public static Role1 fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, Role1.class); + } + + /** + * Convert an instance of Role1 to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } +} + diff --git a/src/main/java/ai/lamin/lamin_api_client/model/S3PermissionsRequest.java b/src/main/java/ai/lamin/lamin_api_client/model/S3PermissionsRequest.java index 5e6fee1..07cbf86 100644 --- a/src/main/java/ai/lamin/lamin_api_client/model/S3PermissionsRequest.java +++ b/src/main/java/ai/lamin/lamin_api_client/model/S3PermissionsRequest.java @@ -48,7 +48,7 @@ /** * S3PermissionsRequest */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-04-03T14:57:42.729190705+02:00[Europe/Brussels]", comments = "Generator version: 7.12.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-10T19:58:41.182141089+02:00[Europe/Brussels]", comments = "Generator version: 7.12.0") public class S3PermissionsRequest { public static final String SERIALIZED_NAME_AWS_ACCESS_KEY_ID = "aws_access_key_id"; @SerializedName(SERIALIZED_NAME_AWS_ACCESS_KEY_ID) diff --git a/src/main/java/ai/lamin/lamin_api_client/model/UpdateCollaboratorRequestBody.java b/src/main/java/ai/lamin/lamin_api_client/model/UpdateCollaboratorRequestBody.java index 609e933..6cc41fd 100644 --- a/src/main/java/ai/lamin/lamin_api_client/model/UpdateCollaboratorRequestBody.java +++ b/src/main/java/ai/lamin/lamin_api_client/model/UpdateCollaboratorRequestBody.java @@ -50,7 +50,7 @@ /** * UpdateCollaboratorRequestBody */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-04-03T14:57:42.729190705+02:00[Europe/Brussels]", comments = "Generator version: 7.12.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-10T19:58:41.182141089+02:00[Europe/Brussels]", comments = "Generator version: 7.12.0") public class UpdateCollaboratorRequestBody { /** * Gets or Sets role diff --git a/src/main/java/ai/lamin/lamin_api_client/model/UpdateSpaceCollaboratorRequestBody.java b/src/main/java/ai/lamin/lamin_api_client/model/UpdateSpaceCollaboratorRequestBody.java index 96ae142..e03cf32 100644 --- a/src/main/java/ai/lamin/lamin_api_client/model/UpdateSpaceCollaboratorRequestBody.java +++ b/src/main/java/ai/lamin/lamin_api_client/model/UpdateSpaceCollaboratorRequestBody.java @@ -50,7 +50,7 @@ /** * UpdateSpaceCollaboratorRequestBody */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-04-03T14:57:42.729190705+02:00[Europe/Brussels]", comments = "Generator version: 7.12.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-10T19:58:41.182141089+02:00[Europe/Brussels]", comments = "Generator version: 7.12.0") public class UpdateSpaceCollaboratorRequestBody { public static final String SERIALIZED_NAME_ACCOUNT_ID = "account_id"; @SerializedName(SERIALIZED_NAME_ACCOUNT_ID) diff --git a/src/main/java/ai/lamin/lamin_api_client/model/UpdateSpaceRequestBody.java b/src/main/java/ai/lamin/lamin_api_client/model/UpdateSpaceRequestBody.java index aea59f3..42978c2 100644 --- a/src/main/java/ai/lamin/lamin_api_client/model/UpdateSpaceRequestBody.java +++ b/src/main/java/ai/lamin/lamin_api_client/model/UpdateSpaceRequestBody.java @@ -49,7 +49,7 @@ /** * UpdateSpaceRequestBody */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-04-03T14:57:42.729190705+02:00[Europe/Brussels]", comments = "Generator version: 7.12.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-10T19:58:41.182141089+02:00[Europe/Brussels]", comments = "Generator version: 7.12.0") public class UpdateSpaceRequestBody { public static final String SERIALIZED_NAME_NAME = "name"; @SerializedName(SERIALIZED_NAME_NAME) diff --git a/src/main/java/ai/lamin/lamin_api_client/model/UpdateTeamMemberRequestBody.java b/src/main/java/ai/lamin/lamin_api_client/model/UpdateTeamMemberRequestBody.java index c935ebd..c5b36c6 100644 --- a/src/main/java/ai/lamin/lamin_api_client/model/UpdateTeamMemberRequestBody.java +++ b/src/main/java/ai/lamin/lamin_api_client/model/UpdateTeamMemberRequestBody.java @@ -14,6 +14,7 @@ package ai.lamin.lamin_api_client.model; import java.util.Objects; +import ai.lamin.lamin_api_client.model.Role1; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -48,69 +49,17 @@ /** * UpdateTeamMemberRequestBody */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-04-03T14:57:42.729190705+02:00[Europe/Brussels]", comments = "Generator version: 7.12.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-10T19:58:41.182141089+02:00[Europe/Brussels]", comments = "Generator version: 7.12.0") public class UpdateTeamMemberRequestBody { - /** - * Gets or Sets role - */ - @JsonAdapter(RoleEnum.Adapter.class) - public enum RoleEnum { - ADMIN("admin"), - - MEMBER("member"); - - private String value; - - RoleEnum(String value) { - this.value = value; - } - - public String getValue() { - return value; - } - - @Override - public String toString() { - return String.valueOf(value); - } - - public static RoleEnum fromValue(String value) { - for (RoleEnum b : RoleEnum.values()) { - if (b.value.equals(value)) { - return b; - } - } - throw new IllegalArgumentException("Unexpected value '" + value + "'"); - } - - public static class Adapter extends TypeAdapter { - @Override - public void write(final JsonWriter jsonWriter, final RoleEnum enumeration) throws IOException { - jsonWriter.value(enumeration.getValue()); - } - - @Override - public RoleEnum read(final JsonReader jsonReader) throws IOException { - String value = jsonReader.nextString(); - return RoleEnum.fromValue(value); - } - } - - public static void validateJsonElement(JsonElement jsonElement) throws IOException { - String value = jsonElement.getAsString(); - RoleEnum.fromValue(value); - } - } - public static final String SERIALIZED_NAME_ROLE = "role"; @SerializedName(SERIALIZED_NAME_ROLE) @javax.annotation.Nonnull - private RoleEnum role; + private Role1 role; public UpdateTeamMemberRequestBody() { } - public UpdateTeamMemberRequestBody role(@javax.annotation.Nonnull RoleEnum role) { + public UpdateTeamMemberRequestBody role(@javax.annotation.Nonnull Role1 role) { this.role = role; return this; } @@ -120,11 +69,11 @@ public UpdateTeamMemberRequestBody role(@javax.annotation.Nonnull RoleEnum role) * @return role */ @javax.annotation.Nonnull - public RoleEnum getRole() { + public Role1 getRole() { return role; } - public void setRole(@javax.annotation.Nonnull RoleEnum role) { + public void setRole(@javax.annotation.Nonnull Role1 role) { this.role = role; } @@ -209,11 +158,8 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti } } JsonObject jsonObj = jsonElement.getAsJsonObject(); - if (!jsonObj.get("role").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `role` to be a primitive type in the JSON string but got `%s`", jsonObj.get("role").toString())); - } // validate the required field `role` - RoleEnum.validateJsonElement(jsonObj.get("role")); + Role1.validateJsonElement(jsonObj.get("role")); } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { diff --git a/src/main/java/ai/lamin/lamin_api_client/model/UpdateTeamRequestBody.java b/src/main/java/ai/lamin/lamin_api_client/model/UpdateTeamRequestBody.java index fe80b8b..4bb9994 100644 --- a/src/main/java/ai/lamin/lamin_api_client/model/UpdateTeamRequestBody.java +++ b/src/main/java/ai/lamin/lamin_api_client/model/UpdateTeamRequestBody.java @@ -49,7 +49,7 @@ /** * UpdateTeamRequestBody */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-04-03T14:57:42.729190705+02:00[Europe/Brussels]", comments = "Generator version: 7.12.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-10T19:58:41.182141089+02:00[Europe/Brussels]", comments = "Generator version: 7.12.0") public class UpdateTeamRequestBody { public static final String SERIALIZED_NAME_NAME = "name"; @SerializedName(SERIALIZED_NAME_NAME) diff --git a/src/main/java/ai/lamin/lamin_api_client/model/ValidationError.java b/src/main/java/ai/lamin/lamin_api_client/model/ValidationError.java index 7dc1fcc..8c5f6ed 100644 --- a/src/main/java/ai/lamin/lamin_api_client/model/ValidationError.java +++ b/src/main/java/ai/lamin/lamin_api_client/model/ValidationError.java @@ -51,7 +51,7 @@ /** * ValidationError */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-04-03T14:57:42.729190705+02:00[Europe/Brussels]", comments = "Generator version: 7.12.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-10T19:58:41.182141089+02:00[Europe/Brussels]", comments = "Generator version: 7.12.0") public class ValidationError { public static final String SERIALIZED_NAME_LOC = "loc"; @SerializedName(SERIALIZED_NAME_LOC) diff --git a/src/main/java/ai/lamin/lamin_api_client/model/ValidationErrorLocInner.java b/src/main/java/ai/lamin/lamin_api_client/model/ValidationErrorLocInner.java index 839f6b1..4ed9d56 100644 --- a/src/main/java/ai/lamin/lamin_api_client/model/ValidationErrorLocInner.java +++ b/src/main/java/ai/lamin/lamin_api_client/model/ValidationErrorLocInner.java @@ -50,7 +50,7 @@ import ai.lamin.lamin_api_client.JSON; -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-04-03T14:57:42.729190705+02:00[Europe/Brussels]", comments = "Generator version: 7.12.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-10T19:58:41.182141089+02:00[Europe/Brussels]", comments = "Generator version: 7.12.0") public class ValidationErrorLocInner extends AbstractOpenApiSchema { private static final Logger log = Logger.getLogger(ValidationErrorLocInner.class.getName()); diff --git a/src/test/src/test/java/ai/lamin/lamin_api_client/api/DefaultApiTest.java b/src/test/src/test/java/ai/lamin/lamin_api_client/api/DefaultApiTest.java index 5cb1791..917f0ab 100644 --- a/src/test/src/test/java/ai/lamin/lamin_api_client/api/DefaultApiTest.java +++ b/src/test/src/test/java/ai/lamin/lamin_api_client/api/DefaultApiTest.java @@ -20,11 +20,14 @@ import ai.lamin.lamin_api_client.model.AttachSpaceToRecordRequestBody; import ai.lamin.lamin_api_client.model.CreateSpaceRequestBody; import ai.lamin.lamin_api_client.model.CreateTeamRequestBody; +import ai.lamin.lamin_api_client.model.DbUrlRequest; import ai.lamin.lamin_api_client.model.GetRecordRequestBody; import ai.lamin.lamin_api_client.model.GetRecordsRequestBody; import ai.lamin.lamin_api_client.model.GetValuesRequestBody; import ai.lamin.lamin_api_client.model.GroupByRequestBody; import ai.lamin.lamin_api_client.model.HTTPValidationError; +import ai.lamin.lamin_api_client.model.RegisterDbServerBody; +import ai.lamin.lamin_api_client.model.RegisterFormRequest; import ai.lamin.lamin_api_client.model.S3PermissionsRequest; import java.util.UUID; import ai.lamin.lamin_api_client.model.UpdateCollaboratorRequestBody; @@ -89,7 +92,7 @@ public void addCollaboratorInstancesInstanceIdCollaboratorsAccountIdPutTest() th */ @Test public void addSpaceCollaboratorAccessV2SpacesSpaceIdCollaboratorsPutTest() throws ApiException { - Integer spaceId = null; + UUID spaceId = null; AddSpaceCollaboratorRequestBody addSpaceCollaboratorRequestBody = null; String authorization = null; Object response = api.addSpaceCollaboratorAccessV2SpacesSpaceIdCollaboratorsPut(spaceId, addSpaceCollaboratorRequestBody, authorization); @@ -141,13 +144,38 @@ public void attachLabelInstancesInstanceIdModulesModuleNameModelNameIdLabelField */ @Test public void attachSpaceToInstanceAccessV2SpacesSpaceIdInstancesInstanceIdPutTest() throws ApiException { - Integer spaceId = null; + UUID spaceId = null; UUID instanceId = null; String authorization = null; Object response = api.attachSpaceToInstanceAccessV2SpacesSpaceIdInstancesInstanceIdPut(spaceId, instanceId, authorization); // TODO: test validations } + /** + * Check Db Access + * + * @throws ApiException if the Api call fails + */ + @Test + public void checkDbAccessDebugDbAccessPostTest() throws ApiException { + DbUrlRequest dbUrlRequest = null; + Object response = api.checkDbAccessDebugDbAccessPost(dbUrlRequest); + // TODO: test validations + } + + /** + * Check Db Server Access + * + * @throws ApiException if the Api call fails + */ + @Test + public void checkDbServerAccessDbServerCheckAccessPostTest() throws ApiException { + String name = null; + String authorization = null; + Object response = api.checkDbServerAccessDbServerCheckAccessPost(name, authorization); + // TODO: test validations + } + /** * Create Instance * @@ -159,9 +187,8 @@ public void createInstanceInstancesPutTest() throws ApiException { String storage = null; String schemaStr = null; String dbServerKey = null; - String dbServerUrl = null; String authorization = null; - Object response = api.createInstanceInstancesPut(name, storage, schemaStr, dbServerKey, dbServerUrl, authorization); + Object response = api.createInstanceInstancesPut(name, storage, schemaStr, dbServerKey, authorization); // TODO: test validations } @@ -266,7 +293,7 @@ public void deleteRecordInstancesInstanceIdModulesModuleNameModelNameUidDeleteTe */ @Test public void deleteSpaceAccessV2SpacesSpaceIdDeleteTest() throws ApiException { - Integer spaceId = null; + UUID spaceId = null; String authorization = null; Object response = api.deleteSpaceAccessV2SpacesSpaceIdDelete(spaceId, authorization); // TODO: test validations @@ -315,7 +342,7 @@ public void detachLabelInstancesInstanceIdModulesModuleNameModelNameIdLabelField */ @Test public void detachSpaceFromInstanceAccessV2SpacesSpaceIdInstancesInstanceIdDeleteTest() throws ApiException { - Integer spaceId = null; + UUID spaceId = null; UUID instanceId = null; String authorization = null; Object response = api.detachSpaceFromInstanceAccessV2SpacesSpaceIdInstancesInstanceIdDelete(spaceId, instanceId, authorization); @@ -352,6 +379,17 @@ public void getInstanceStatisticsInstancesInstanceIdStatisticsGetTest() throws A // TODO: test validations } + /** + * Get Ip + * + * @throws ApiException if the Api call fails + */ + @Test + public void getIpDebugIpGetTest() throws ApiException { + Object response = api.getIpDebugIpGet(); + // TODO: test validations + } + /** * Get Non Empty Tables * @@ -461,7 +499,7 @@ public void getSchemaInstancesInstanceIdSchemaGetTest() throws ApiException { */ @Test public void getSpaceAccessV2SpacesSpaceIdGetTest() throws ApiException { - Integer spaceId = null; + UUID spaceId = null; String authorization = null; Object response = api.getSpaceAccessV2SpacesSpaceIdGet(spaceId, authorization); // TODO: test validations @@ -482,6 +520,21 @@ public void getTeamAccessV2TeamsTeamIdGetTest() throws ApiException { // TODO: test validations } + /** + * Get Tree + * + * @throws ApiException if the Api call fails + */ + @Test + public void getTreeInstancesInstanceIdTreeGetTest() throws ApiException { + UUID instanceId = null; + String entityType = null; + UUID schemaId = null; + String authorization = null; + Object response = api.getTreeInstancesInstanceIdTreeGet(instanceId, entityType, schemaId, authorization); + // TODO: test validations + } + /** * Get Values * @@ -538,7 +591,7 @@ public void groupByInstancesInstanceIdModulesModuleNameModelNameGroupByPostTest( /** * List Collaborators * - * List all collaborators of an instance. Parameters: - **instance_id**: UUID of the instance to list collaborators for (from URL path) Returns: - **200**: List of instance collaborators retrieved successfully - **404**: Instance not found Requires read access to the instance + * List all collaborators of an instance. Parameters: - **instance_id**: UUID of the instance to list collaborators for (from URL path) Returns: - **200**: List of instance collaborators retrieved successfully Requires read access to the instance * * @throws ApiException if the Api call fails */ @@ -550,6 +603,22 @@ public void listCollaboratorsAccessV2InstancesInstanceIdCollaboratorsGetTest() t // TODO: test validations } + /** + * List Directory + * + * @throws ApiException if the Api call fails + */ + @Test + public void listDirectoryInstancesInstanceIdEntityTypeGetTest() throws ApiException { + String entityType = null; + UUID instanceId = null; + String path = null; + UUID schemaId = null; + String authorization = null; + Object response = api.listDirectoryInstancesInstanceIdEntityTypeGet(entityType, instanceId, path, schemaId, authorization); + // TODO: test validations + } + /** * List Instance Spaces * @@ -574,7 +643,7 @@ public void listInstanceSpacesAccessV2SpacesInstancesInstanceIdGetTest() throws */ @Test public void listInstancesUsingSpaceAccessV2SpacesSpaceIdInstancesGetTest() throws ApiException { - Integer spaceId = null; + UUID spaceId = null; String authorization = null; Object response = api.listInstancesUsingSpaceAccessV2SpacesSpaceIdInstancesGet(spaceId, authorization); // TODO: test validations @@ -619,7 +688,7 @@ public void listOrganizationTeamsAccessV2TeamsOrganizationsOrganizationIdGetTest */ @Test public void listSpaceCollaboratorsAccessV2SpacesSpaceIdCollaboratorsGetTest() throws ApiException { - Integer spaceId = null; + UUID spaceId = null; String authorization = null; Object response = api.listSpaceCollaboratorsAccessV2SpacesSpaceIdCollaboratorsGet(spaceId, authorization); // TODO: test validations @@ -649,12 +718,12 @@ public void listTeamMembersAccessV2TeamsTeamIdMembersGetTest() throws ApiExcepti */ @Test public void moveRecordToSpaceAccessV2SpacesSpaceIdRecordAttachmentsPutTest() throws ApiException { - Integer spaceId = null; + Integer instanceDbSpaceId = null; AttachSpaceToRecordRequestBody attachSpaceToRecordRequestBody = null; UUID instanceId = null; UUID schemaId = null; String authorization = null; - Object response = api.moveRecordToSpaceAccessV2SpacesSpaceIdRecordAttachmentsPut(spaceId, attachSpaceToRecordRequestBody, instanceId, schemaId, authorization); + Object response = api.moveRecordToSpaceAccessV2SpacesSpaceIdRecordAttachmentsPut(instanceDbSpaceId, attachSpaceToRecordRequestBody, instanceId, schemaId, authorization); // TODO: test validations } @@ -718,10 +787,39 @@ public void proxyS3S3PathGet_3Test() throws ApiException { // TODO: test validations } + /** + * Register Db Server + * + * @throws ApiException if the Api call fails + */ + @Test + public void registerDbServerDbServerRegisterPostTest() throws ApiException { + RegisterDbServerBody registerDbServerBody = null; + String authorization = null; + Object response = api.registerDbServerDbServerRegisterPost(registerDbServerBody, authorization); + // TODO: test validations + } + + /** + * Register Form + * + * Register a form for a specific instance. Parameters: - **body**: Request body containing form details - **key**: Key of the form - **data**: Form data - **schema_uid**: UID of the schema Returns: - **201**: Form registered successfully + * + * @throws ApiException if the Api call fails + */ + @Test + public void registerFormInstancesInstanceIdFormsPostTest() throws ApiException { + UUID instanceId = null; + RegisterFormRequest registerFormRequest = null; + String authorization = null; + Object response = api.registerFormInstancesInstanceIdFormsPost(instanceId, registerFormRequest, authorization); + // TODO: test validations + } + /** * Remove Collaborator * - * Remove a collaborator from an instance. Parameters: - **instance_id**: UUID of the instance (from URL path) - **account_id**: UUID of the account to remove (mutually exclusive with team_id) - **team_id**: UUID of the team to remove (mutually exclusive with account_id) Returns: - **200**: Collaborator removed successfully - **400**: Invalid input (e.g., both account_id and team_id provided) - **404**: Collaborator not found Requires admin access to the instance + * Remove a collaborator from an instance. Parameters: - **instance_id**: UUID of the instance (from URL path) - **account_id**: UUID of the account to remove (mutually exclusive with team_id) - **team_id**: UUID of the team to remove (mutually exclusive with account_id) Returns: - **200**: Collaborator removed successfully - **400**: Invalid input (e.g., both account_id and team_id provided) Requires admin access to the instance * * @throws ApiException if the Api call fails */ @@ -744,7 +842,7 @@ public void removeCollaboratorAccessV2InstancesInstanceIdCollaboratorsDeleteTest */ @Test public void removeSpaceCollaboratorAccessV2SpacesSpaceIdCollaboratorsDeleteTest() throws ApiException { - Integer spaceId = null; + UUID spaceId = null; UUID accountId = null; UUID teamId = null; String authorization = null; @@ -786,7 +884,7 @@ public void transferOwnershipInstancesInstanceIdOwnerHandlePatchTest() throws Ap /** * Update Collaborator * - * Update a collaborator's permissions on an instance. Parameters: - **instance_id**: UUID of the instance (from URL path) - **body**: Request body containing collaborator details - **account_id**: UUID of the account to update (mutually exclusive with team_id) - **team_id**: UUID of the team to update (mutually exclusive with account_id) - **role**: Role of the collaborator Returns: - **200**: Collaborator updated successfully - **400**: Invalid input (e.g., both account_id and team_id provided) - **404**: Collaborator not found Requires admin access to the instance + * Update a collaborator's permissions on an instance. Parameters: - **instance_id**: UUID of the instance (from URL path) - **body**: Request body containing collaborator details - **account_id**: UUID of the account to update (mutually exclusive with team_id) - **team_id**: UUID of the team to update (mutually exclusive with account_id) - **role**: Role of the collaborator Returns: - **200**: Collaborator updated successfully - **400**: Invalid input (e.g., both account_id and team_id provided) Requires admin access to the instance * * @throws ApiException if the Api call fails */ @@ -841,7 +939,7 @@ public void updateRecordInstancesInstanceIdModulesModuleNameModelNameUidPatchTes */ @Test public void updateSpaceAccessV2SpacesSpaceIdPatchTest() throws ApiException { - Integer spaceId = null; + UUID spaceId = null; UpdateSpaceRequestBody updateSpaceRequestBody = null; String authorization = null; Object response = api.updateSpaceAccessV2SpacesSpaceIdPatch(spaceId, updateSpaceRequestBody, authorization); @@ -857,7 +955,7 @@ public void updateSpaceAccessV2SpacesSpaceIdPatchTest() throws ApiException { */ @Test public void updateSpaceCollaboratorAccessV2SpacesSpaceIdCollaboratorsPatchTest() throws ApiException { - Integer spaceId = null; + UUID spaceId = null; UpdateSpaceCollaboratorRequestBody updateSpaceCollaboratorRequestBody = null; String authorization = null; Object response = api.updateSpaceCollaboratorAccessV2SpacesSpaceIdCollaboratorsPatch(spaceId, updateSpaceCollaboratorRequestBody, authorization); diff --git a/src/test/src/test/java/ai/lamin/lamin_api_client/model/AddTeamMemberRequestBodyTest.java b/src/test/src/test/java/ai/lamin/lamin_api_client/model/AddTeamMemberRequestBodyTest.java index 8a9b884..224348e 100644 --- a/src/test/src/test/java/ai/lamin/lamin_api_client/model/AddTeamMemberRequestBodyTest.java +++ b/src/test/src/test/java/ai/lamin/lamin_api_client/model/AddTeamMemberRequestBodyTest.java @@ -13,6 +13,7 @@ package ai.lamin.lamin_api_client.model; +import ai.lamin.lamin_api_client.model.Role; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; diff --git a/src/test/src/test/java/ai/lamin/lamin_api_client/model/DbUrlRequestTest.java b/src/test/src/test/java/ai/lamin/lamin_api_client/model/DbUrlRequestTest.java new file mode 100644 index 0000000..1498570 --- /dev/null +++ b/src/test/src/test/java/ai/lamin/lamin_api_client/model/DbUrlRequestTest.java @@ -0,0 +1,48 @@ +/* + * FastAPI + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package ai.lamin.lamin_api_client.model; + +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; +import java.util.Arrays; +import org.junit.jupiter.api.Disabled; +import org.junit.jupiter.api.Test; + +/** + * Model tests for DbUrlRequest + */ +public class DbUrlRequestTest { + private final DbUrlRequest model = new DbUrlRequest(); + + /** + * Model tests for DbUrlRequest + */ + @Test + public void testDbUrlRequest() { + // TODO: test DbUrlRequest + } + + /** + * Test the property 'dbUrl' + */ + @Test + public void dbUrlTest() { + // TODO: test dbUrl + } + +} diff --git a/src/test/src/test/java/ai/lamin/lamin_api_client/model/RegisterDbServerBodyTest.java b/src/test/src/test/java/ai/lamin/lamin_api_client/model/RegisterDbServerBodyTest.java new file mode 100644 index 0000000..a9288bb --- /dev/null +++ b/src/test/src/test/java/ai/lamin/lamin_api_client/model/RegisterDbServerBodyTest.java @@ -0,0 +1,64 @@ +/* + * FastAPI + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package ai.lamin.lamin_api_client.model; + +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; +import java.util.Arrays; +import org.junit.jupiter.api.Disabled; +import org.junit.jupiter.api.Test; + +/** + * Model tests for RegisterDbServerBody + */ +public class RegisterDbServerBodyTest { + private final RegisterDbServerBody model = new RegisterDbServerBody(); + + /** + * Model tests for RegisterDbServerBody + */ + @Test + public void testRegisterDbServerBody() { + // TODO: test RegisterDbServerBody + } + + /** + * Test the property 'name' + */ + @Test + public void nameTest() { + // TODO: test name + } + + /** + * Test the property 'url' + */ + @Test + public void urlTest() { + // TODO: test url + } + + /** + * Test the property 'apiServerName' + */ + @Test + public void apiServerNameTest() { + // TODO: test apiServerName + } + +} diff --git a/src/test/src/test/java/ai/lamin/lamin_api_client/model/RegisterFormRequestTest.java b/src/test/src/test/java/ai/lamin/lamin_api_client/model/RegisterFormRequestTest.java new file mode 100644 index 0000000..171226b --- /dev/null +++ b/src/test/src/test/java/ai/lamin/lamin_api_client/model/RegisterFormRequestTest.java @@ -0,0 +1,66 @@ +/* + * FastAPI + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package ai.lamin.lamin_api_client.model; + +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; +import java.util.Arrays; +import java.util.HashMap; +import java.util.Map; +import org.junit.jupiter.api.Disabled; +import org.junit.jupiter.api.Test; + +/** + * Model tests for RegisterFormRequest + */ +public class RegisterFormRequestTest { + private final RegisterFormRequest model = new RegisterFormRequest(); + + /** + * Model tests for RegisterFormRequest + */ + @Test + public void testRegisterFormRequest() { + // TODO: test RegisterFormRequest + } + + /** + * Test the property 'key' + */ + @Test + public void keyTest() { + // TODO: test key + } + + /** + * Test the property 'data' + */ + @Test + public void dataTest() { + // TODO: test data + } + + /** + * Test the property 'schemaUid' + */ + @Test + public void schemaUidTest() { + // TODO: test schemaUid + } + +} diff --git a/src/test/src/test/java/ai/lamin/lamin_api_client/model/Role1Test.java b/src/test/src/test/java/ai/lamin/lamin_api_client/model/Role1Test.java new file mode 100644 index 0000000..308a571 --- /dev/null +++ b/src/test/src/test/java/ai/lamin/lamin_api_client/model/Role1Test.java @@ -0,0 +1,33 @@ +/* + * FastAPI + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package ai.lamin.lamin_api_client.model; + +import org.junit.jupiter.api.Disabled; +import org.junit.jupiter.api.Test; + +/** + * Model tests for Role1 + */ +public class Role1Test { + private final Role1 model = new Role1(); + + /** + * Model tests for Role1 + */ + @Test + public void testRole1() { + // TODO: test Role1 + } + +} diff --git a/src/test/src/test/java/ai/lamin/lamin_api_client/model/RoleTest.java b/src/test/src/test/java/ai/lamin/lamin_api_client/model/RoleTest.java new file mode 100644 index 0000000..15f6cd4 --- /dev/null +++ b/src/test/src/test/java/ai/lamin/lamin_api_client/model/RoleTest.java @@ -0,0 +1,33 @@ +/* + * FastAPI + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package ai.lamin.lamin_api_client.model; + +import org.junit.jupiter.api.Disabled; +import org.junit.jupiter.api.Test; + +/** + * Model tests for Role + */ +public class RoleTest { + private final Role model = new Role(); + + /** + * Model tests for Role + */ + @Test + public void testRole() { + // TODO: test Role + } + +} diff --git a/src/test/src/test/java/ai/lamin/lamin_api_client/model/UpdateTeamMemberRequestBodyTest.java b/src/test/src/test/java/ai/lamin/lamin_api_client/model/UpdateTeamMemberRequestBodyTest.java index 990846a..29bfb62 100644 --- a/src/test/src/test/java/ai/lamin/lamin_api_client/model/UpdateTeamMemberRequestBodyTest.java +++ b/src/test/src/test/java/ai/lamin/lamin_api_client/model/UpdateTeamMemberRequestBodyTest.java @@ -13,6 +13,7 @@ package ai.lamin.lamin_api_client.model; +import ai.lamin.lamin_api_client.model.Role1; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; From 8e3af9cea06a6135a11dcc71071ee8509fcdb7f1 Mon Sep 17 00:00:00 2001 From: Robrecht Cannoodt Date: Sat, 10 May 2025 21:01:30 +0200 Subject: [PATCH 2/2] Bump version --- pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pom.xml b/pom.xml index 06899c2..08c3d2b 100644 --- a/pom.xml +++ b/pom.xml @@ -6,7 +6,7 @@ lamin-api-client jar lamin-api-client - 0.0.1 + 0.0.2 https://github.com/laminlabs/lamin-api-client-java Java client for the Lamin API