From b9e141293b15993f284ded6ae77046b01dc5983f Mon Sep 17 00:00:00 2001 From: Robrecht Cannoodt Date: Thu, 8 Jan 2026 15:18:30 +0100 Subject: [PATCH 1/5] update api --- .openapi-generator/FILES | 145 +- README.md | 184 +- api/openapi.yaml | 3964 ++++-- config.yaml | 2 +- docs/AccountsApi.md | 72 + docs/AddOrganizationMemberRequestBody.md | 3 +- docs/BackwardCompatibleEndpointsApi.md | 72 + docs/BatchDeleteBody.md | 13 + docs/BatchDeleteResponse.md | 13 + docs/BatchSyncLinksBody.md | 15 + docs/BatchSyncResponse.md | 17 + docs/BatchUpdateBody.md | 14 + docs/Body.md | 13 + docs/CacheApi.md | 136 + docs/CreateTransformRequestBody.md | 2 +- docs/DbServerApi.md | 140 + docs/DefaultApi.md | 4945 ------- docs/{DbUrlRequest.md => ErrorDetail.md} | 4 +- docs/ExecuteFunctionRequestBody.md | 15 + docs/ExportRecordsRequestBody.md | 13 + docs/GetRecordsRequestBody.md | 1 + docs/GetValuesRequestBody.md | 1 + docs/HealthChecksApi.md | 65 + docs/InstanceArtifactsApi.md | 142 + docs/InstanceDbTokenApi.md | 74 + docs/InstanceFeaturesApi.md | 84 + docs/InstanceFileExplorerApi.md | 142 + docs/InstanceFormsApi.md | 76 + docs/InstanceFunctionsApi.md | 74 + docs/InstanceLabelsApi.md | 156 + docs/InstanceRecordsApi.md | 882 ++ docs/InstanceSchemaApi.md | 140 + docs/InstanceSearchApi.md | 74 + docs/InstanceStatisticsApi.md | 288 + docs/InstanceTransformsApi.md | 74 + docs/InstancesApi.md | 554 + docs/NonEmptyTablesResponse.md | 13 + docs/OrganizationsApi.md | 358 + docs/RegisterDbServerBody.md | 1 + docs/Request.md | 18 + docs/S3PermissionsRequest.md | 2 + docs/SpacesApi.md | 970 ++ docs/StatisticsResponse.md | 15 + docs/StoragesApi.md | 80 + docs/SyncInstruction.md | 15 + docs/TeamsApi.md | 632 + docs/TraversalParams.md | 26 + docs/TraversalParamsValuesInner.md | 12 + docs/UpdateOrganizationMemberRequestBody.md | 3 +- generate.sh | 4 +- pom.xml | 2 +- .../ai/lamin/lamin_api_client/ApiClient.java | 8 +- .../lamin/lamin_api_client/ApiException.java | 2 +- .../lamin/lamin_api_client/Configuration.java | 4 +- .../java/ai/lamin/lamin_api_client/JSON.java | 16 +- .../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/AccountsApi.java | 214 + .../api/BackwardCompatibleEndpointsApi.java | 216 + .../lamin/lamin_api_client/api/CacheApi.java | 356 + .../lamin_api_client/api/DbServerApi.java | 376 + .../lamin_api_client/api/DefaultApi.java | 11275 ---------------- .../lamin_api_client/api/HealthChecksApi.java | 191 + .../api/InstanceArtifactsApi.java | 390 + .../api/InstanceDbTokenApi.java | 216 + .../api/InstanceFeaturesApi.java | 258 + .../api/InstanceFileExplorerApi.java | 387 + .../api/InstanceFormsApi.java | 227 + .../api/InstanceFunctionsApi.java | 227 + .../api/InstanceLabelsApi.java | 456 + .../api/InstanceRecordsApi.java | 2228 +++ .../api/InstanceSchemaApi.java | 376 + .../api/InstanceSearchApi.java | 229 + .../api/InstanceStatisticsApi.java | 732 + .../api/InstanceTransformsApi.java | 227 + .../lamin_api_client/api/InstancesApi.java | 1313 ++ .../api/OrganizationsApi.java | 868 ++ .../lamin/lamin_api_client/api/SpacesApi.java | 2208 +++ .../lamin_api_client/api/StoragesApi.java | 251 + .../lamin/lamin_api_client/api/TeamsApi.java | 1472 ++ .../lamin_api_client/auth/ApiKeyAuth.java | 2 +- .../lamin_api_client/auth/HttpBearerAuth.java | 2 +- .../model/AbstractOpenApiSchema.java | 2 +- .../model/AddCollaboratorRequestBody.java | 2 +- .../AddOrganizationMemberRequestBody.java | 6 +- .../AddSpaceCollaboratorRequestBody.java | 2 +- .../model/AddTeamMemberRequestBody.java | 2 +- .../model/AttachSpaceToRecordRequestBody.java | 2 +- .../model/BatchDeleteBody.java | 228 + .../model/BatchDeleteResponse.java | 211 + .../model/BatchSyncLinksBody.java | 263 + .../model/BatchSyncResponse.java | 329 + .../model/BatchUpdateBody.java | 270 + .../ai/lamin/lamin_api_client/model/Body.java | 291 + .../model/CreateArtifactRequestBody.java | 2 +- .../model/CreateSpaceRequestBody.java | 2 +- .../model/CreateTeamRequestBody.java | 2 +- .../model/CreateTransformRequestBody.java | 38 +- .../lamin_api_client/model/Dimension.java | 2 +- .../{DbUrlRequest.java => ErrorDetail.java} | 86 +- .../model/ExecuteFunctionRequestBody.java | 283 + .../model/ExportRecordsRequestBody.java | 213 + .../model/GetRecordRequestBody.java | 2 +- .../model/GetRecordsRequestBody.java | 45 +- .../model/GetValuesRequestBody.java | 45 +- .../model/GroupByRequestBody.java | 2 +- .../model/HTTPValidationError.java | 2 +- .../lamin/lamin_api_client/model/Measure.java | 2 +- .../model/NonEmptyTablesResponse.java | 222 + .../lamin_api_client/model/OrderByColumn.java | 2 +- .../model/RegisterDbServerBody.java | 38 +- .../model/RegisterFormRequest.java | 2 +- .../lamin/lamin_api_client/model/Request.java | 423 + .../ai/lamin/lamin_api_client/model/Role.java | 2 +- .../lamin/lamin_api_client/model/Role1.java | 2 +- .../model/S3PermissionsRequest.java | 85 +- .../model/StatisticsResponse.java | 249 + .../model/SyncInstruction.java | 265 + .../model/TraversalParams.java | 386 + .../model/TraversalParamsValuesInner.java | 315 + .../model/UpdateCollaboratorRequestBody.java | 2 +- .../UpdateOrganizationMemberRequestBody.java | 6 +- .../UpdateSpaceCollaboratorRequestBody.java | 2 +- .../model/UpdateSpaceRequestBody.java | 2 +- .../model/UpdateTeamMemberRequestBody.java | 2 +- .../model/UpdateTeamRequestBody.java | 2 +- .../model/ValidationError.java | 2 +- .../model/ValidationErrorLocInner.java | 2 +- .../lamin_api_client/api/AccountsApiTest.java | 48 + .../BackwardCompatibleEndpointsApiTest.java | 48 + .../lamin_api_client/api/CacheApiTest.java | 61 + .../lamin_api_client/api/DbServerApiTest.java | 64 + .../lamin_api_client/api/DefaultApiTest.java | 998 -- .../api/HealthChecksApiTest.java | 44 + .../api/InstanceArtifactsApiTest.java | 66 + .../api/InstanceDbTokenApiTest.java | 50 + .../api/InstanceFeaturesApiTest.java | 56 + .../api/InstanceFileExplorerApiTest.java | 64 + .../api/InstanceFormsApiTest.java | 52 + .../api/InstanceFunctionsApiTest.java | 50 + .../api/InstanceLabelsApiTest.java | 71 + .../api/InstanceRecordsApiTest.java | 257 + .../api/InstanceSchemaApiTest.java | 63 + .../api/InstanceSearchApiTest.java | 49 + .../api/InstanceStatisticsApiTest.java | 102 + .../api/InstanceTransformsApiTest.java | 50 + .../api/InstancesApiTest.java | 162 + .../api/OrganizationsApiTest.java | 122 + .../lamin_api_client/api/SpacesApiTest.java | 269 + .../lamin_api_client/api/StoragesApiTest.java | 53 + .../lamin_api_client/api/TeamsApiTest.java | 189 + .../model/BatchDeleteBodyTest.java | 51 + .../model/BatchDeleteResponseTest.java | 48 + .../model/BatchSyncLinksBodyTest.java | 59 + .../model/BatchSyncResponseTest.java | 75 + .../model/BatchUpdateBodyTest.java | 59 + .../lamin_api_client/model/BodyTest.java | 35 + .../model/CreateTransformRequestBodyTest.java | 17 +- ...lRequestTest.java => ErrorDetailTest.java} | 18 +- .../model/ExecuteFunctionRequestBodyTest.java | 66 + .../model/ExportRecordsRequestBodyTest.java | 50 + .../model/GetRecordsRequestBodyTest.java | 8 + .../model/GetValuesRequestBodyTest.java | 8 + .../model/NonEmptyTablesResponseTest.java | 51 + .../model/RegisterDbServerBodyTest.java | 9 + .../lamin_api_client/model/RequestTest.java | 95 + .../model/S3PermissionsRequestTest.java | 19 + .../model/StatisticsResponseTest.java | 58 + .../model/SyncInstructionTest.java | 60 + .../model/TraversalParamsTest.java | 76 + .../model/TraversalParamsValuesInnerTest.java | 33 + 173 files changed, 28798 insertions(+), 18925 deletions(-) create mode 100644 docs/AccountsApi.md create mode 100644 docs/BackwardCompatibleEndpointsApi.md create mode 100644 docs/BatchDeleteBody.md create mode 100644 docs/BatchDeleteResponse.md create mode 100644 docs/BatchSyncLinksBody.md create mode 100644 docs/BatchSyncResponse.md create mode 100644 docs/BatchUpdateBody.md create mode 100644 docs/Body.md create mode 100644 docs/CacheApi.md create mode 100644 docs/DbServerApi.md delete mode 100644 docs/DefaultApi.md rename docs/{DbUrlRequest.md => ErrorDetail.md} (72%) create mode 100644 docs/ExecuteFunctionRequestBody.md create mode 100644 docs/ExportRecordsRequestBody.md create mode 100644 docs/HealthChecksApi.md create mode 100644 docs/InstanceArtifactsApi.md create mode 100644 docs/InstanceDbTokenApi.md create mode 100644 docs/InstanceFeaturesApi.md create mode 100644 docs/InstanceFileExplorerApi.md create mode 100644 docs/InstanceFormsApi.md create mode 100644 docs/InstanceFunctionsApi.md create mode 100644 docs/InstanceLabelsApi.md create mode 100644 docs/InstanceRecordsApi.md create mode 100644 docs/InstanceSchemaApi.md create mode 100644 docs/InstanceSearchApi.md create mode 100644 docs/InstanceStatisticsApi.md create mode 100644 docs/InstanceTransformsApi.md create mode 100644 docs/InstancesApi.md create mode 100644 docs/NonEmptyTablesResponse.md create mode 100644 docs/OrganizationsApi.md create mode 100644 docs/Request.md create mode 100644 docs/SpacesApi.md create mode 100644 docs/StatisticsResponse.md create mode 100644 docs/StoragesApi.md create mode 100644 docs/SyncInstruction.md create mode 100644 docs/TeamsApi.md create mode 100644 docs/TraversalParams.md create mode 100644 docs/TraversalParamsValuesInner.md create mode 100644 src/main/java/ai/lamin/lamin_api_client/api/AccountsApi.java create mode 100644 src/main/java/ai/lamin/lamin_api_client/api/BackwardCompatibleEndpointsApi.java create mode 100644 src/main/java/ai/lamin/lamin_api_client/api/CacheApi.java create mode 100644 src/main/java/ai/lamin/lamin_api_client/api/DbServerApi.java delete mode 100644 src/main/java/ai/lamin/lamin_api_client/api/DefaultApi.java create mode 100644 src/main/java/ai/lamin/lamin_api_client/api/HealthChecksApi.java create mode 100644 src/main/java/ai/lamin/lamin_api_client/api/InstanceArtifactsApi.java create mode 100644 src/main/java/ai/lamin/lamin_api_client/api/InstanceDbTokenApi.java create mode 100644 src/main/java/ai/lamin/lamin_api_client/api/InstanceFeaturesApi.java create mode 100644 src/main/java/ai/lamin/lamin_api_client/api/InstanceFileExplorerApi.java create mode 100644 src/main/java/ai/lamin/lamin_api_client/api/InstanceFormsApi.java create mode 100644 src/main/java/ai/lamin/lamin_api_client/api/InstanceFunctionsApi.java create mode 100644 src/main/java/ai/lamin/lamin_api_client/api/InstanceLabelsApi.java create mode 100644 src/main/java/ai/lamin/lamin_api_client/api/InstanceRecordsApi.java create mode 100644 src/main/java/ai/lamin/lamin_api_client/api/InstanceSchemaApi.java create mode 100644 src/main/java/ai/lamin/lamin_api_client/api/InstanceSearchApi.java create mode 100644 src/main/java/ai/lamin/lamin_api_client/api/InstanceStatisticsApi.java create mode 100644 src/main/java/ai/lamin/lamin_api_client/api/InstanceTransformsApi.java create mode 100644 src/main/java/ai/lamin/lamin_api_client/api/InstancesApi.java create mode 100644 src/main/java/ai/lamin/lamin_api_client/api/OrganizationsApi.java create mode 100644 src/main/java/ai/lamin/lamin_api_client/api/SpacesApi.java create mode 100644 src/main/java/ai/lamin/lamin_api_client/api/StoragesApi.java create mode 100644 src/main/java/ai/lamin/lamin_api_client/api/TeamsApi.java create mode 100644 src/main/java/ai/lamin/lamin_api_client/model/BatchDeleteBody.java create mode 100644 src/main/java/ai/lamin/lamin_api_client/model/BatchDeleteResponse.java create mode 100644 src/main/java/ai/lamin/lamin_api_client/model/BatchSyncLinksBody.java create mode 100644 src/main/java/ai/lamin/lamin_api_client/model/BatchSyncResponse.java create mode 100644 src/main/java/ai/lamin/lamin_api_client/model/BatchUpdateBody.java create mode 100644 src/main/java/ai/lamin/lamin_api_client/model/Body.java rename src/main/java/ai/lamin/lamin_api_client/model/{DbUrlRequest.java => ErrorDetail.java} (66%) create mode 100644 src/main/java/ai/lamin/lamin_api_client/model/ExecuteFunctionRequestBody.java create mode 100644 src/main/java/ai/lamin/lamin_api_client/model/ExportRecordsRequestBody.java create mode 100644 src/main/java/ai/lamin/lamin_api_client/model/NonEmptyTablesResponse.java create mode 100644 src/main/java/ai/lamin/lamin_api_client/model/Request.java create mode 100644 src/main/java/ai/lamin/lamin_api_client/model/StatisticsResponse.java create mode 100644 src/main/java/ai/lamin/lamin_api_client/model/SyncInstruction.java create mode 100644 src/main/java/ai/lamin/lamin_api_client/model/TraversalParams.java create mode 100644 src/main/java/ai/lamin/lamin_api_client/model/TraversalParamsValuesInner.java create mode 100644 src/test/src/test/java/ai/lamin/lamin_api_client/api/AccountsApiTest.java create mode 100644 src/test/src/test/java/ai/lamin/lamin_api_client/api/BackwardCompatibleEndpointsApiTest.java create mode 100644 src/test/src/test/java/ai/lamin/lamin_api_client/api/CacheApiTest.java create mode 100644 src/test/src/test/java/ai/lamin/lamin_api_client/api/DbServerApiTest.java delete mode 100644 src/test/src/test/java/ai/lamin/lamin_api_client/api/DefaultApiTest.java create mode 100644 src/test/src/test/java/ai/lamin/lamin_api_client/api/HealthChecksApiTest.java create mode 100644 src/test/src/test/java/ai/lamin/lamin_api_client/api/InstanceArtifactsApiTest.java create mode 100644 src/test/src/test/java/ai/lamin/lamin_api_client/api/InstanceDbTokenApiTest.java create mode 100644 src/test/src/test/java/ai/lamin/lamin_api_client/api/InstanceFeaturesApiTest.java create mode 100644 src/test/src/test/java/ai/lamin/lamin_api_client/api/InstanceFileExplorerApiTest.java create mode 100644 src/test/src/test/java/ai/lamin/lamin_api_client/api/InstanceFormsApiTest.java create mode 100644 src/test/src/test/java/ai/lamin/lamin_api_client/api/InstanceFunctionsApiTest.java create mode 100644 src/test/src/test/java/ai/lamin/lamin_api_client/api/InstanceLabelsApiTest.java create mode 100644 src/test/src/test/java/ai/lamin/lamin_api_client/api/InstanceRecordsApiTest.java create mode 100644 src/test/src/test/java/ai/lamin/lamin_api_client/api/InstanceSchemaApiTest.java create mode 100644 src/test/src/test/java/ai/lamin/lamin_api_client/api/InstanceSearchApiTest.java create mode 100644 src/test/src/test/java/ai/lamin/lamin_api_client/api/InstanceStatisticsApiTest.java create mode 100644 src/test/src/test/java/ai/lamin/lamin_api_client/api/InstanceTransformsApiTest.java create mode 100644 src/test/src/test/java/ai/lamin/lamin_api_client/api/InstancesApiTest.java create mode 100644 src/test/src/test/java/ai/lamin/lamin_api_client/api/OrganizationsApiTest.java create mode 100644 src/test/src/test/java/ai/lamin/lamin_api_client/api/SpacesApiTest.java create mode 100644 src/test/src/test/java/ai/lamin/lamin_api_client/api/StoragesApiTest.java create mode 100644 src/test/src/test/java/ai/lamin/lamin_api_client/api/TeamsApiTest.java create mode 100644 src/test/src/test/java/ai/lamin/lamin_api_client/model/BatchDeleteBodyTest.java create mode 100644 src/test/src/test/java/ai/lamin/lamin_api_client/model/BatchDeleteResponseTest.java create mode 100644 src/test/src/test/java/ai/lamin/lamin_api_client/model/BatchSyncLinksBodyTest.java create mode 100644 src/test/src/test/java/ai/lamin/lamin_api_client/model/BatchSyncResponseTest.java create mode 100644 src/test/src/test/java/ai/lamin/lamin_api_client/model/BatchUpdateBodyTest.java create mode 100644 src/test/src/test/java/ai/lamin/lamin_api_client/model/BodyTest.java rename src/test/src/test/java/ai/lamin/lamin_api_client/model/{DbUrlRequestTest.java => ErrorDetailTest.java} (71%) create mode 100644 src/test/src/test/java/ai/lamin/lamin_api_client/model/ExecuteFunctionRequestBodyTest.java create mode 100644 src/test/src/test/java/ai/lamin/lamin_api_client/model/ExportRecordsRequestBodyTest.java create mode 100644 src/test/src/test/java/ai/lamin/lamin_api_client/model/NonEmptyTablesResponseTest.java create mode 100644 src/test/src/test/java/ai/lamin/lamin_api_client/model/RequestTest.java create mode 100644 src/test/src/test/java/ai/lamin/lamin_api_client/model/StatisticsResponseTest.java create mode 100644 src/test/src/test/java/ai/lamin/lamin_api_client/model/SyncInstructionTest.java create mode 100644 src/test/src/test/java/ai/lamin/lamin_api_client/model/TraversalParamsTest.java create mode 100644 src/test/src/test/java/ai/lamin/lamin_api_client/model/TraversalParamsValuesInnerTest.java diff --git a/.openapi-generator/FILES b/.openapi-generator/FILES index 7244076..c2f14f0 100644 --- a/.openapi-generator/FILES +++ b/.openapi-generator/FILES @@ -1,30 +1,65 @@ .github/workflows/maven.yml README.md api/openapi.yaml +docs/AccountsApi.md docs/AddCollaboratorRequestBody.md docs/AddOrganizationMemberRequestBody.md docs/AddSpaceCollaboratorRequestBody.md docs/AddTeamMemberRequestBody.md docs/AttachSpaceToRecordRequestBody.md +docs/BackwardCompatibleEndpointsApi.md +docs/BatchDeleteBody.md +docs/BatchDeleteResponse.md +docs/BatchSyncLinksBody.md +docs/BatchSyncResponse.md +docs/BatchUpdateBody.md +docs/Body.md +docs/CacheApi.md docs/CreateArtifactRequestBody.md docs/CreateSpaceRequestBody.md docs/CreateTeamRequestBody.md docs/CreateTransformRequestBody.md -docs/DbUrlRequest.md -docs/DefaultApi.md +docs/DbServerApi.md docs/Dimension.md +docs/ErrorDetail.md +docs/ExecuteFunctionRequestBody.md +docs/ExportRecordsRequestBody.md docs/GetRecordRequestBody.md docs/GetRecordsRequestBody.md docs/GetValuesRequestBody.md docs/GroupByRequestBody.md docs/HTTPValidationError.md +docs/HealthChecksApi.md +docs/InstanceArtifactsApi.md +docs/InstanceDbTokenApi.md +docs/InstanceFeaturesApi.md +docs/InstanceFileExplorerApi.md +docs/InstanceFormsApi.md +docs/InstanceFunctionsApi.md +docs/InstanceLabelsApi.md +docs/InstanceRecordsApi.md +docs/InstanceSchemaApi.md +docs/InstanceSearchApi.md +docs/InstanceStatisticsApi.md +docs/InstanceTransformsApi.md +docs/InstancesApi.md docs/Measure.md +docs/NonEmptyTablesResponse.md docs/OrderByColumn.md +docs/OrganizationsApi.md docs/RegisterDbServerBody.md docs/RegisterFormRequest.md +docs/Request.md docs/Role.md docs/Role1.md docs/S3PermissionsRequest.md +docs/SpacesApi.md +docs/StatisticsResponse.md +docs/StoragesApi.md +docs/SyncInstruction.md +docs/TeamsApi.md +docs/TraversalParams.md +docs/TraversalParamsValuesInner.md docs/UpdateCollaboratorRequestBody.md docs/UpdateOrganizationMemberRequestBody.md docs/UpdateSpaceCollaboratorRequestBody.md @@ -50,7 +85,28 @@ src/main/java/ai/lamin/lamin_api_client/ProgressResponseBody.java src/main/java/ai/lamin/lamin_api_client/ServerConfiguration.java src/main/java/ai/lamin/lamin_api_client/ServerVariable.java src/main/java/ai/lamin/lamin_api_client/StringUtil.java -src/main/java/ai/lamin/lamin_api_client/api/DefaultApi.java +src/main/java/ai/lamin/lamin_api_client/api/AccountsApi.java +src/main/java/ai/lamin/lamin_api_client/api/BackwardCompatibleEndpointsApi.java +src/main/java/ai/lamin/lamin_api_client/api/CacheApi.java +src/main/java/ai/lamin/lamin_api_client/api/DbServerApi.java +src/main/java/ai/lamin/lamin_api_client/api/HealthChecksApi.java +src/main/java/ai/lamin/lamin_api_client/api/InstanceArtifactsApi.java +src/main/java/ai/lamin/lamin_api_client/api/InstanceDbTokenApi.java +src/main/java/ai/lamin/lamin_api_client/api/InstanceFeaturesApi.java +src/main/java/ai/lamin/lamin_api_client/api/InstanceFileExplorerApi.java +src/main/java/ai/lamin/lamin_api_client/api/InstanceFormsApi.java +src/main/java/ai/lamin/lamin_api_client/api/InstanceFunctionsApi.java +src/main/java/ai/lamin/lamin_api_client/api/InstanceLabelsApi.java +src/main/java/ai/lamin/lamin_api_client/api/InstanceRecordsApi.java +src/main/java/ai/lamin/lamin_api_client/api/InstanceSchemaApi.java +src/main/java/ai/lamin/lamin_api_client/api/InstanceSearchApi.java +src/main/java/ai/lamin/lamin_api_client/api/InstanceStatisticsApi.java +src/main/java/ai/lamin/lamin_api_client/api/InstanceTransformsApi.java +src/main/java/ai/lamin/lamin_api_client/api/InstancesApi.java +src/main/java/ai/lamin/lamin_api_client/api/OrganizationsApi.java +src/main/java/ai/lamin/lamin_api_client/api/SpacesApi.java +src/main/java/ai/lamin/lamin_api_client/api/StoragesApi.java +src/main/java/ai/lamin/lamin_api_client/api/TeamsApi.java src/main/java/ai/lamin/lamin_api_client/auth/ApiKeyAuth.java src/main/java/ai/lamin/lamin_api_client/auth/Authentication.java src/main/java/ai/lamin/lamin_api_client/auth/HttpBasicAuth.java @@ -61,24 +117,38 @@ src/main/java/ai/lamin/lamin_api_client/model/AddOrganizationMemberRequestBody.j src/main/java/ai/lamin/lamin_api_client/model/AddSpaceCollaboratorRequestBody.java 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/BatchDeleteBody.java +src/main/java/ai/lamin/lamin_api_client/model/BatchDeleteResponse.java +src/main/java/ai/lamin/lamin_api_client/model/BatchSyncLinksBody.java +src/main/java/ai/lamin/lamin_api_client/model/BatchSyncResponse.java +src/main/java/ai/lamin/lamin_api_client/model/BatchUpdateBody.java +src/main/java/ai/lamin/lamin_api_client/model/Body.java src/main/java/ai/lamin/lamin_api_client/model/CreateArtifactRequestBody.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/CreateTransformRequestBody.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/ErrorDetail.java +src/main/java/ai/lamin/lamin_api_client/model/ExecuteFunctionRequestBody.java +src/main/java/ai/lamin/lamin_api_client/model/ExportRecordsRequestBody.java src/main/java/ai/lamin/lamin_api_client/model/GetRecordRequestBody.java src/main/java/ai/lamin/lamin_api_client/model/GetRecordsRequestBody.java src/main/java/ai/lamin/lamin_api_client/model/GetValuesRequestBody.java 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/NonEmptyTablesResponse.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/Request.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/StatisticsResponse.java +src/main/java/ai/lamin/lamin_api_client/model/SyncInstruction.java +src/main/java/ai/lamin/lamin_api_client/model/TraversalParams.java +src/main/java/ai/lamin/lamin_api_client/model/TraversalParamsValuesInner.java src/main/java/ai/lamin/lamin_api_client/model/UpdateCollaboratorRequestBody.java src/main/java/ai/lamin/lamin_api_client/model/UpdateOrganizationMemberRequestBody.java src/main/java/ai/lamin/lamin_api_client/model/UpdateSpaceCollaboratorRequestBody.java @@ -87,3 +157,70 @@ src/main/java/ai/lamin/lamin_api_client/model/UpdateTeamMemberRequestBody.java src/main/java/ai/lamin/lamin_api_client/model/UpdateTeamRequestBody.java src/main/java/ai/lamin/lamin_api_client/model/ValidationError.java src/main/java/ai/lamin/lamin_api_client/model/ValidationErrorLocInner.java +src/test/src/test/java/ai/lamin/lamin_api_client/api/AccountsApiTest.java +src/test/src/test/java/ai/lamin/lamin_api_client/api/BackwardCompatibleEndpointsApiTest.java +src/test/src/test/java/ai/lamin/lamin_api_client/api/CacheApiTest.java +src/test/src/test/java/ai/lamin/lamin_api_client/api/DbServerApiTest.java +src/test/src/test/java/ai/lamin/lamin_api_client/api/HealthChecksApiTest.java +src/test/src/test/java/ai/lamin/lamin_api_client/api/InstanceArtifactsApiTest.java +src/test/src/test/java/ai/lamin/lamin_api_client/api/InstanceDbTokenApiTest.java +src/test/src/test/java/ai/lamin/lamin_api_client/api/InstanceFeaturesApiTest.java +src/test/src/test/java/ai/lamin/lamin_api_client/api/InstanceFileExplorerApiTest.java +src/test/src/test/java/ai/lamin/lamin_api_client/api/InstanceFormsApiTest.java +src/test/src/test/java/ai/lamin/lamin_api_client/api/InstanceFunctionsApiTest.java +src/test/src/test/java/ai/lamin/lamin_api_client/api/InstanceLabelsApiTest.java +src/test/src/test/java/ai/lamin/lamin_api_client/api/InstanceRecordsApiTest.java +src/test/src/test/java/ai/lamin/lamin_api_client/api/InstanceSchemaApiTest.java +src/test/src/test/java/ai/lamin/lamin_api_client/api/InstanceSearchApiTest.java +src/test/src/test/java/ai/lamin/lamin_api_client/api/InstanceStatisticsApiTest.java +src/test/src/test/java/ai/lamin/lamin_api_client/api/InstanceTransformsApiTest.java +src/test/src/test/java/ai/lamin/lamin_api_client/api/InstancesApiTest.java +src/test/src/test/java/ai/lamin/lamin_api_client/api/OrganizationsApiTest.java +src/test/src/test/java/ai/lamin/lamin_api_client/api/SpacesApiTest.java +src/test/src/test/java/ai/lamin/lamin_api_client/api/StoragesApiTest.java +src/test/src/test/java/ai/lamin/lamin_api_client/api/TeamsApiTest.java +src/test/src/test/java/ai/lamin/lamin_api_client/model/AddCollaboratorRequestBodyTest.java +src/test/src/test/java/ai/lamin/lamin_api_client/model/AddOrganizationMemberRequestBodyTest.java +src/test/src/test/java/ai/lamin/lamin_api_client/model/AddSpaceCollaboratorRequestBodyTest.java +src/test/src/test/java/ai/lamin/lamin_api_client/model/AddTeamMemberRequestBodyTest.java +src/test/src/test/java/ai/lamin/lamin_api_client/model/AttachSpaceToRecordRequestBodyTest.java +src/test/src/test/java/ai/lamin/lamin_api_client/model/BatchDeleteBodyTest.java +src/test/src/test/java/ai/lamin/lamin_api_client/model/BatchDeleteResponseTest.java +src/test/src/test/java/ai/lamin/lamin_api_client/model/BatchSyncLinksBodyTest.java +src/test/src/test/java/ai/lamin/lamin_api_client/model/BatchSyncResponseTest.java +src/test/src/test/java/ai/lamin/lamin_api_client/model/BatchUpdateBodyTest.java +src/test/src/test/java/ai/lamin/lamin_api_client/model/BodyTest.java +src/test/src/test/java/ai/lamin/lamin_api_client/model/CreateArtifactRequestBodyTest.java +src/test/src/test/java/ai/lamin/lamin_api_client/model/CreateSpaceRequestBodyTest.java +src/test/src/test/java/ai/lamin/lamin_api_client/model/CreateTeamRequestBodyTest.java +src/test/src/test/java/ai/lamin/lamin_api_client/model/CreateTransformRequestBodyTest.java +src/test/src/test/java/ai/lamin/lamin_api_client/model/DimensionTest.java +src/test/src/test/java/ai/lamin/lamin_api_client/model/ErrorDetailTest.java +src/test/src/test/java/ai/lamin/lamin_api_client/model/ExecuteFunctionRequestBodyTest.java +src/test/src/test/java/ai/lamin/lamin_api_client/model/ExportRecordsRequestBodyTest.java +src/test/src/test/java/ai/lamin/lamin_api_client/model/GetRecordRequestBodyTest.java +src/test/src/test/java/ai/lamin/lamin_api_client/model/GetRecordsRequestBodyTest.java +src/test/src/test/java/ai/lamin/lamin_api_client/model/GetValuesRequestBodyTest.java +src/test/src/test/java/ai/lamin/lamin_api_client/model/GroupByRequestBodyTest.java +src/test/src/test/java/ai/lamin/lamin_api_client/model/HTTPValidationErrorTest.java +src/test/src/test/java/ai/lamin/lamin_api_client/model/MeasureTest.java +src/test/src/test/java/ai/lamin/lamin_api_client/model/NonEmptyTablesResponseTest.java +src/test/src/test/java/ai/lamin/lamin_api_client/model/OrderByColumnTest.java +src/test/src/test/java/ai/lamin/lamin_api_client/model/RegisterDbServerBodyTest.java +src/test/src/test/java/ai/lamin/lamin_api_client/model/RegisterFormRequestTest.java +src/test/src/test/java/ai/lamin/lamin_api_client/model/RequestTest.java +src/test/src/test/java/ai/lamin/lamin_api_client/model/Role1Test.java +src/test/src/test/java/ai/lamin/lamin_api_client/model/RoleTest.java +src/test/src/test/java/ai/lamin/lamin_api_client/model/S3PermissionsRequestTest.java +src/test/src/test/java/ai/lamin/lamin_api_client/model/StatisticsResponseTest.java +src/test/src/test/java/ai/lamin/lamin_api_client/model/SyncInstructionTest.java +src/test/src/test/java/ai/lamin/lamin_api_client/model/TraversalParamsTest.java +src/test/src/test/java/ai/lamin/lamin_api_client/model/TraversalParamsValuesInnerTest.java +src/test/src/test/java/ai/lamin/lamin_api_client/model/UpdateCollaboratorRequestBodyTest.java +src/test/src/test/java/ai/lamin/lamin_api_client/model/UpdateOrganizationMemberRequestBodyTest.java +src/test/src/test/java/ai/lamin/lamin_api_client/model/UpdateSpaceCollaboratorRequestBodyTest.java +src/test/src/test/java/ai/lamin/lamin_api_client/model/UpdateSpaceRequestBodyTest.java +src/test/src/test/java/ai/lamin/lamin_api_client/model/UpdateTeamMemberRequestBodyTest.java +src/test/src/test/java/ai/lamin/lamin_api_client/model/UpdateTeamRequestBodyTest.java +src/test/src/test/java/ai/lamin/lamin_api_client/model/ValidationErrorLocInnerTest.java +src/test/src/test/java/ai/lamin/lamin_api_client/model/ValidationErrorTest.java diff --git a/README.md b/README.md index 5a284fe..9cb7e36 100644 --- a/README.md +++ b/README.md @@ -5,7 +5,7 @@ Lamin API - API version: 0.1.0 - - Build date: 2025-06-17T13:08:14.011869776+02:00[Europe/Brussels] + - Build date: 2026-01-08T15:17:29.048390180+01:00[Europe/Brussels] - Generator version: 7.12.0 No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) @@ -44,7 +44,7 @@ Add this dependency to your project's POM: ai.lamin lamin-api-client - 0.0.3 + 0.0.4 compile ``` @@ -60,7 +60,7 @@ Add this dependency to your project's build file: } dependencies { - implementation "ai.lamin:lamin-api-client:0.0.3" + implementation "ai.lamin:lamin-api-client:0.0.4" } ``` @@ -74,7 +74,7 @@ mvn clean package Then manually install the following JARs: -* `target/lamin-api-client-0.0.3.jar` +* `target/lamin-api-client-0.0.4.jar` * `target/lib/*.jar` ## Getting Started @@ -88,22 +88,21 @@ 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.model.*; -import ai.lamin.lamin_api_client.api.DefaultApi; +import ai.lamin.lamin_api_client.api.AccountsApi; public class Example { public static void main(String[] args) { ApiClient defaultClient = Configuration.getDefaultApiClient(); - defaultClient.setBasePath("https://aws.us-east-1.lamin.ai/api"); + defaultClient.setBasePath("https://staging.laminhub.com/api"); - DefaultApi apiInstance = new DefaultApi(defaultClient); + AccountsApi apiInstance = new AccountsApi(defaultClient); UUID instanceId = UUID.randomUUID(); // UUID | - AddCollaboratorRequestBody addCollaboratorRequestBody = new AddCollaboratorRequestBody(); // AddCollaboratorRequestBody | String authorization = "authorization_example"; // String | try { - Object result = apiInstance.addCollaboratorAccessV2InstancesInstanceIdCollaboratorsPut(instanceId, addCollaboratorRequestBody, authorization); + Object result = apiInstance.getCallerAccountAccountGet(instanceId, authorization); System.out.println(result); } catch (ApiException e) { - System.err.println("Exception when calling DefaultApi#addCollaboratorAccessV2InstancesInstanceIdCollaboratorsPut"); + System.err.println("Exception when calling AccountsApi#getCallerAccountAccountGet"); System.err.println("Status code: " + e.getCode()); System.err.println("Reason: " + e.getResponseBody()); System.err.println("Response headers: " + e.getResponseHeaders()); @@ -116,83 +115,84 @@ public class Example { ## Documentation for API Endpoints -All URIs are relative to *https://aws.us-east-1.lamin.ai/api* +All URIs are relative to *https://staging.laminhub.com/api* Class | Method | HTTP request | Description ------------ | ------------- | ------------- | ------------- -*DefaultApi* | [**addCollaboratorAccessV2InstancesInstanceIdCollaboratorsPut**](docs/DefaultApi.md#addCollaboratorAccessV2InstancesInstanceIdCollaboratorsPut) | **PUT** /access_v2/instances/{instance_id}/collaborators | Add Collaborator -*DefaultApi* | [**addCollaboratorInstancesInstanceIdCollaboratorsAccountIdPut**](docs/DefaultApi.md#addCollaboratorInstancesInstanceIdCollaboratorsAccountIdPut) | **PUT** /instances/{instance_id}/collaborators/{account_id} | Add Collaborator -*DefaultApi* | [**addOrganizationMemberAccessV2OrganizationsOrganizationIdMembersAccountIdPut**](docs/DefaultApi.md#addOrganizationMemberAccessV2OrganizationsOrganizationIdMembersAccountIdPut) | **PUT** /access_v2/organizations/{organization_id}/members/{account_id} | Add Organization Member -*DefaultApi* | [**addSpaceCollaboratorAccessV2SpacesSpaceIdCollaboratorsPut**](docs/DefaultApi.md#addSpaceCollaboratorAccessV2SpacesSpaceIdCollaboratorsPut) | **PUT** /access_v2/spaces/{space_id}/collaborators | Add Space Collaborator -*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* | [**checkCacheAccessDebugCacheAccessGet**](docs/DefaultApi.md#checkCacheAccessDebugCacheAccessGet) | **GET** /_debug/cache-access | Check Cache Access -*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* | [**checkLambdaAccessDebugLambdaAccessGet**](docs/DefaultApi.md#checkLambdaAccessDebugLambdaAccessGet) | **GET** /_debug/lambda-access | Check Lambda Access -*DefaultApi* | [**createArtifactInstancesInstanceIdArtifactsCreatePost**](docs/DefaultApi.md#createArtifactInstancesInstanceIdArtifactsCreatePost) | **POST** /instances/{instance_id}/artifacts/create | Create Artifact -*DefaultApi* | [**createInstanceInstancesPut**](docs/DefaultApi.md#createInstanceInstancesPut) | **PUT** /instances | Create Instance -*DefaultApi* | [**createRecordsInstancesInstanceIdModulesModuleNameModelNamePut**](docs/DefaultApi.md#createRecordsInstancesInstanceIdModulesModuleNameModelNamePut) | **PUT** /instances/{instance_id}/modules/{module_name}/{model_name} | Create Records -*DefaultApi* | [**createSpaceAccessV2SpacesPut**](docs/DefaultApi.md#createSpaceAccessV2SpacesPut) | **PUT** /access_v2/spaces | Create Space -*DefaultApi* | [**createTeamAccessV2TeamsPut**](docs/DefaultApi.md#createTeamAccessV2TeamsPut) | **PUT** /access_v2/teams | Create Team -*DefaultApi* | [**createTransformInstancesInstanceIdTransformsPost**](docs/DefaultApi.md#createTransformInstancesInstanceIdTransformsPost) | **POST** /instances/{instance_id}/transforms | Create Transform -*DefaultApi* | [**deleteCollaboratorInstancesInstanceIdCollaboratorsAccountIdDelete**](docs/DefaultApi.md#deleteCollaboratorInstancesInstanceIdCollaboratorsAccountIdDelete) | **DELETE** /instances/{instance_id}/collaborators/{account_id} | Delete Collaborator -*DefaultApi* | [**deleteInstanceInstancesInstanceIdDelete**](docs/DefaultApi.md#deleteInstanceInstancesInstanceIdDelete) | **DELETE** /instances/{instance_id} | Delete Instance -*DefaultApi* | [**deleteRecordInstancesInstanceIdModulesModuleNameModelNameUidDelete**](docs/DefaultApi.md#deleteRecordInstancesInstanceIdModulesModuleNameModelNameUidDelete) | **DELETE** /instances/{instance_id}/modules/{module_name}/{model_name}/{uid} | Delete Record -*DefaultApi* | [**deleteSpaceAccessV2SpacesSpaceIdDelete**](docs/DefaultApi.md#deleteSpaceAccessV2SpacesSpaceIdDelete) | **DELETE** /access_v2/spaces/{space_id} | Delete Space -*DefaultApi* | [**deleteTeamAccessV2TeamsTeamIdDelete**](docs/DefaultApi.md#deleteTeamAccessV2TeamsTeamIdDelete) | **DELETE** /access_v2/teams/{team_id} | Delete Team -*DefaultApi* | [**detachLabelInstancesInstanceIdModulesModuleNameModelNameIdLabelFieldLabelIdDelete**](docs/DefaultApi.md#detachLabelInstancesInstanceIdModulesModuleNameModelNameIdLabelFieldLabelIdDelete) | **DELETE** /instances/{instance_id}/modules/{module_name}/{model_name}/{id}/{label_field}/{label_id} | Detach Label -*DefaultApi* | [**detachSpaceFromInstanceAccessV2SpacesSpaceIdInstancesInstanceIdDelete**](docs/DefaultApi.md#detachSpaceFromInstanceAccessV2SpacesSpaceIdInstancesInstanceIdDelete) | **DELETE** /access_v2/spaces/{space_id}/instances/{instance_id} | Detach Space From Instance -*DefaultApi* | [**getCallerAccountAccountGet**](docs/DefaultApi.md#getCallerAccountAccountGet) | **GET** /account | Get Caller Account -*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* | [**getOrganizationAccessV2OrganizationsOrganizationIdGet**](docs/DefaultApi.md#getOrganizationAccessV2OrganizationsOrganizationIdGet) | **GET** /access_v2/organizations/{organization_id} | Get Organization -*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 -*DefaultApi* | [**getRelationCountsInstancesInstanceIdModulesModuleNameModelNameIdCountsGet**](docs/DefaultApi.md#getRelationCountsInstancesInstanceIdModulesModuleNameModelNameIdCountsGet) | **GET** /instances/{instance_id}/modules/{module_name}/{model_name}/{id}/counts | Get Relation Counts -*DefaultApi* | [**getRelationsInstancesInstanceIdSchemaModuleNameModelNameGet**](docs/DefaultApi.md#getRelationsInstancesInstanceIdSchemaModuleNameModelNameGet) | **GET** /instances/{instance_id}/schema/{module_name}/{model_name} | Get Relations -*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* | [**listOrganizationMembersAccessV2OrganizationsOrganizationIdMembersGet**](docs/DefaultApi.md#listOrganizationMembersAccessV2OrganizationsOrganizationIdMembersGet) | **GET** /access_v2/organizations/{organization_id}/members | List Organization Members -*DefaultApi* | [**listOrganizationSpacesAccessV2SpacesOrganizationsOrganizationIdGet**](docs/DefaultApi.md#listOrganizationSpacesAccessV2SpacesOrganizationsOrganizationIdGet) | **GET** /access_v2/spaces/organizations/{organization_id} | List Organization Spaces -*DefaultApi* | [**listOrganizationTeamsAccessV2TeamsOrganizationsOrganizationIdGet**](docs/DefaultApi.md#listOrganizationTeamsAccessV2TeamsOrganizationsOrganizationIdGet) | **GET** /access_v2/teams/organizations/{organization_id} | List Organization Teams -*DefaultApi* | [**listSpaceCollaboratorsAccessV2SpacesSpaceIdCollaboratorsGet**](docs/DefaultApi.md#listSpaceCollaboratorsAccessV2SpacesSpaceIdCollaboratorsGet) | **GET** /access_v2/spaces/{space_id}/collaborators | List Space Collaborators -*DefaultApi* | [**listTeamMembersAccessV2TeamsTeamIdMembersGet**](docs/DefaultApi.md#listTeamMembersAccessV2TeamsTeamIdMembersGet) | **GET** /access_v2/teams/{team_id}/members | List Team Members -*DefaultApi* | [**moveRecordToSpaceAccessV2SpacesSpaceIdRecordAttachmentsPut**](docs/DefaultApi.md#moveRecordToSpaceAccessV2SpacesSpaceIdRecordAttachmentsPut) | **PUT** /access_v2/spaces/{space_id}/record-attachments | Move Record To Space -*DefaultApi* | [**proxyS3S3PathGet**](docs/DefaultApi.md#proxyS3S3PathGet) | **GET** /s3/{path} | Proxy S3 -*DefaultApi* | [**proxyS3S3PathGet_0**](docs/DefaultApi.md#proxyS3S3PathGet_0) | **HEAD** /s3/{path} | Proxy S3 -*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* | [**removeOrganizationMemberAccessV2OrganizationsOrganizationIdMembersAccountIdDelete**](docs/DefaultApi.md#removeOrganizationMemberAccessV2OrganizationsOrganizationIdMembersAccountIdDelete) | **DELETE** /access_v2/organizations/{organization_id}/members/{account_id} | Remove Organization Member -*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 -*DefaultApi* | [**transferOwnershipInstancesInstanceIdOwnerHandlePatch**](docs/DefaultApi.md#transferOwnershipInstancesInstanceIdOwnerHandlePatch) | **PATCH** /instances/{instance_id}/owner/{handle} | Transfer Ownership -*DefaultApi* | [**updateCollaboratorAccessV2InstancesInstanceIdCollaboratorsPatch**](docs/DefaultApi.md#updateCollaboratorAccessV2InstancesInstanceIdCollaboratorsPatch) | **PATCH** /access_v2/instances/{instance_id}/collaborators | Update Collaborator -*DefaultApi* | [**updateCollaboratorInstancesInstanceIdCollaboratorsAccountIdPatch**](docs/DefaultApi.md#updateCollaboratorInstancesInstanceIdCollaboratorsAccountIdPatch) | **PATCH** /instances/{instance_id}/collaborators/{account_id} | Update Collaborator -*DefaultApi* | [**updateOrganizationMemberAccessV2OrganizationsOrganizationIdMembersAccountIdPatch**](docs/DefaultApi.md#updateOrganizationMemberAccessV2OrganizationsOrganizationIdMembersAccountIdPatch) | **PATCH** /access_v2/organizations/{organization_id}/members/{account_id} | Update Organization Member -*DefaultApi* | [**updateRecordInstancesInstanceIdModulesModuleNameModelNameUidPatch**](docs/DefaultApi.md#updateRecordInstancesInstanceIdModulesModuleNameModelNameUidPatch) | **PATCH** /instances/{instance_id}/modules/{module_name}/{model_name}/{uid} | Update Record -*DefaultApi* | [**updateSpaceAccessV2SpacesSpaceIdPatch**](docs/DefaultApi.md#updateSpaceAccessV2SpacesSpaceIdPatch) | **PATCH** /access_v2/spaces/{space_id} | Update Space -*DefaultApi* | [**updateSpaceCollaboratorAccessV2SpacesSpaceIdCollaboratorsPatch**](docs/DefaultApi.md#updateSpaceCollaboratorAccessV2SpacesSpaceIdCollaboratorsPatch) | **PATCH** /access_v2/spaces/{space_id}/collaborators | Update Space Collaborator -*DefaultApi* | [**updateTeamAccessV2TeamsTeamIdPatch**](docs/DefaultApi.md#updateTeamAccessV2TeamsTeamIdPatch) | **PATCH** /access_v2/teams/{team_id} | Update Team -*DefaultApi* | [**updateTeamMemberAccessV2TeamsTeamIdMembersAccountIdPatch**](docs/DefaultApi.md#updateTeamMemberAccessV2TeamsTeamIdMembersAccountIdPatch) | **PATCH** /access_v2/teams/{team_id}/members/{account_id} | Update Team Member -*DefaultApi* | [**uploadArtifactInstancesInstanceIdArtifactsUploadPost**](docs/DefaultApi.md#uploadArtifactInstancesInstanceIdArtifactsUploadPost) | **POST** /instances/{instance_id}/artifacts/upload | Upload Artifact -*DefaultApi* | [**upsertRecordsInstancesInstanceIdModulesModuleNameModelNameUpsertPut**](docs/DefaultApi.md#upsertRecordsInstancesInstanceIdModulesModuleNameModelNameUpsertPut) | **PUT** /instances/{instance_id}/modules/{module_name}/{model_name}/upsert | Upsert Records +*AccountsApi* | [**getCallerAccountAccountGet**](docs/AccountsApi.md#getCallerAccountAccountGet) | **GET** /account | Get Caller Account +*BackwardCompatibleEndpointsApi* | [**getDbTokenBackwardCompatibleAccessV2InstancesInstanceIdDbTokenGet**](docs/BackwardCompatibleEndpointsApi.md#getDbTokenBackwardCompatibleAccessV2InstancesInstanceIdDbTokenGet) | **GET** /access_v2/instances/{instance_id}/db_token | Get Db Token Backward Compatible +*CacheApi* | [**getInstanceCacheCacheInstancesInstanceIdGet**](docs/CacheApi.md#getInstanceCacheCacheInstancesInstanceIdGet) | **GET** /cache/instances/{instance_id} | Get Instance Cache +*CacheApi* | [**invalidateInstanceCacheCacheInstancesInstanceIdDelete**](docs/CacheApi.md#invalidateInstanceCacheCacheInstancesInstanceIdDelete) | **DELETE** /cache/instances/{instance_id} | Invalidate Instance Cache +*DbServerApi* | [**checkDbServerAccessDbServerCheckAccessPost**](docs/DbServerApi.md#checkDbServerAccessDbServerCheckAccessPost) | **POST** /db/server/check-access | Check Db Server Access +*DbServerApi* | [**registerDbServerDbServerRegisterPost**](docs/DbServerApi.md#registerDbServerDbServerRegisterPost) | **POST** /db/server/register | Register Db Server +*HealthChecksApi* | [**healthCheckHealthGet**](docs/HealthChecksApi.md#healthCheckHealthGet) | **GET** /health | Health Check +*InstanceArtifactsApi* | [**createArtifactInstancesInstanceIdArtifactsCreatePost**](docs/InstanceArtifactsApi.md#createArtifactInstancesInstanceIdArtifactsCreatePost) | **POST** /instances/{instance_id}/artifacts/create | Create Artifact +*InstanceArtifactsApi* | [**uploadArtifactInstancesInstanceIdArtifactsUploadPost**](docs/InstanceArtifactsApi.md#uploadArtifactInstancesInstanceIdArtifactsUploadPost) | **POST** /instances/{instance_id}/artifacts/upload | Upload Artifact +*InstanceDbTokenApi* | [**getDbTokenInstancesInstanceIdDbTokenGet**](docs/InstanceDbTokenApi.md#getDbTokenInstancesInstanceIdDbTokenGet) | **GET** /instances/{instance_id}/db_token | Get Db Token +*InstanceFeaturesApi* | [**queryLinkedFeaturesInstancesInstanceIdModulesModuleNameModelNameQueryFeaturesPost**](docs/InstanceFeaturesApi.md#queryLinkedFeaturesInstancesInstanceIdModulesModuleNameModelNameQueryFeaturesPost) | **POST** /instances/{instance_id}/modules/{module_name}/{model_name}/query_features | Query Linked Features +*InstanceFileExplorerApi* | [**getTreeInstancesInstanceIdFilesTreeGet**](docs/InstanceFileExplorerApi.md#getTreeInstancesInstanceIdFilesTreeGet) | **GET** /instances/{instance_id}/files/tree | Get Tree +*InstanceFileExplorerApi* | [**listDirectoryInstancesInstanceIdFilesEntityTypeGet**](docs/InstanceFileExplorerApi.md#listDirectoryInstancesInstanceIdFilesEntityTypeGet) | **GET** /instances/{instance_id}/files/{entity_type} | List Directory +*InstanceFormsApi* | [**registerFormInstancesInstanceIdFormsPost**](docs/InstanceFormsApi.md#registerFormInstancesInstanceIdFormsPost) | **POST** /instances/{instance_id}/forms | Register Form +*InstanceFunctionsApi* | [**executeFunctionInstancesInstanceIdFunctionExecutePost**](docs/InstanceFunctionsApi.md#executeFunctionInstancesInstanceIdFunctionExecutePost) | **POST** /instances/{instance_id}/function/execute | Execute Function +*InstanceLabelsApi* | [**attachLabelInstancesInstanceIdModulesModuleNameModelNameIdLabelFieldLabelIdPut**](docs/InstanceLabelsApi.md#attachLabelInstancesInstanceIdModulesModuleNameModelNameIdLabelFieldLabelIdPut) | **PUT** /instances/{instance_id}/modules/{module_name}/{model_name}/{id}/{label_field}/{label_id} | Attach Label +*InstanceLabelsApi* | [**detachLabelInstancesInstanceIdModulesModuleNameModelNameIdLabelFieldLabelIdDelete**](docs/InstanceLabelsApi.md#detachLabelInstancesInstanceIdModulesModuleNameModelNameIdLabelFieldLabelIdDelete) | **DELETE** /instances/{instance_id}/modules/{module_name}/{model_name}/{id}/{label_field}/{label_id} | Detach Label +*InstanceRecordsApi* | [**batchDeleteRecordsInstancesInstanceIdModulesModuleNameModelNameBatchDeletePost**](docs/InstanceRecordsApi.md#batchDeleteRecordsInstancesInstanceIdModulesModuleNameModelNameBatchDeletePost) | **POST** /instances/{instance_id}/modules/{module_name}/{model_name}/batch-delete | Batch Delete Records +*InstanceRecordsApi* | [**batchSyncLinksInstancesInstanceIdModulesModuleNameModelNameBatchSyncLinksPut**](docs/InstanceRecordsApi.md#batchSyncLinksInstancesInstanceIdModulesModuleNameModelNameBatchSyncLinksPut) | **PUT** /instances/{instance_id}/modules/{module_name}/{model_name}/batch-sync-links | Synchronize sets of links for multiple scopes in a single call +*InstanceRecordsApi* | [**batchUpdateRecordsInstancesInstanceIdModulesModuleNameModelNameBatchUpdatePatch**](docs/InstanceRecordsApi.md#batchUpdateRecordsInstancesInstanceIdModulesModuleNameModelNameBatchUpdatePatch) | **PATCH** /instances/{instance_id}/modules/{module_name}/{model_name}/batch-update | Update one or more records in a batch +*InstanceRecordsApi* | [**createRecordsInstancesInstanceIdModulesModuleNameModelNamePut**](docs/InstanceRecordsApi.md#createRecordsInstancesInstanceIdModulesModuleNameModelNamePut) | **PUT** /instances/{instance_id}/modules/{module_name}/{model_name} | Create Records +*InstanceRecordsApi* | [**deleteRecordInstancesInstanceIdModulesModuleNameModelNameUidDelete**](docs/InstanceRecordsApi.md#deleteRecordInstancesInstanceIdModulesModuleNameModelNameUidDelete) | **DELETE** /instances/{instance_id}/modules/{module_name}/{model_name}/{uid} | Delete Record +*InstanceRecordsApi* | [**exportRecordsInstancesInstanceIdRecordsUidExportPost**](docs/InstanceRecordsApi.md#exportRecordsInstancesInstanceIdRecordsUidExportPost) | **POST** /instances/{instance_id}/records/{uid}/export | Export Records +*InstanceRecordsApi* | [**getRecordInstancesInstanceIdModulesModuleNameModelNameIdOrUidPost**](docs/InstanceRecordsApi.md#getRecordInstancesInstanceIdModulesModuleNameModelNameIdOrUidPost) | **POST** /instances/{instance_id}/modules/{module_name}/{model_name}/{id_or_uid} | Get Record +*InstanceRecordsApi* | [**getRecordsInstancesInstanceIdModulesModuleNameModelNamePost**](docs/InstanceRecordsApi.md#getRecordsInstancesInstanceIdModulesModuleNameModelNamePost) | **POST** /instances/{instance_id}/modules/{module_name}/{model_name} | Get Records +*InstanceRecordsApi* | [**getRelativesInstancesInstanceIdModulesModuleNameModelNameRelativesPost**](docs/InstanceRecordsApi.md#getRelativesInstancesInstanceIdModulesModuleNameModelNameRelativesPost) | **POST** /instances/{instance_id}/modules/{module_name}/{model_name}/relatives | Get and query hierarchical relatives of records +*InstanceRecordsApi* | [**getValuesInstancesInstanceIdModulesModuleNameModelNameFieldsFieldPathPost**](docs/InstanceRecordsApi.md#getValuesInstancesInstanceIdModulesModuleNameModelNameFieldsFieldPathPost) | **POST** /instances/{instance_id}/modules/{module_name}/{model_name}/fields/{field_path} | Get Values +*InstanceRecordsApi* | [**updateRecordInstancesInstanceIdModulesModuleNameModelNameUidPatch**](docs/InstanceRecordsApi.md#updateRecordInstancesInstanceIdModulesModuleNameModelNameUidPatch) | **PATCH** /instances/{instance_id}/modules/{module_name}/{model_name}/{uid} | Update Record +*InstanceRecordsApi* | [**upsertRecordsInstancesInstanceIdModulesModuleNameModelNameUpsertPut**](docs/InstanceRecordsApi.md#upsertRecordsInstancesInstanceIdModulesModuleNameModelNameUpsertPut) | **PUT** /instances/{instance_id}/modules/{module_name}/{model_name}/upsert | Upsert one or more records +*InstanceSchemaApi* | [**getRelationsInstancesInstanceIdSchemaModuleNameModelNameGet**](docs/InstanceSchemaApi.md#getRelationsInstancesInstanceIdSchemaModuleNameModelNameGet) | **GET** /instances/{instance_id}/schema/{module_name}/{model_name} | Get Relations +*InstanceSchemaApi* | [**getSchemaInstancesInstanceIdSchemaGet**](docs/InstanceSchemaApi.md#getSchemaInstancesInstanceIdSchemaGet) | **GET** /instances/{instance_id}/schema | Get Schema +*InstanceSearchApi* | [**globalSearchInstancesInstanceIdSearchGet**](docs/InstanceSearchApi.md#globalSearchInstancesInstanceIdSearchGet) | **GET** /instances/{instance_id}/search | Global Search +*InstanceStatisticsApi* | [**getInstanceStatisticsInstancesInstanceIdStatisticsGet**](docs/InstanceStatisticsApi.md#getInstanceStatisticsInstancesInstanceIdStatisticsGet) | **GET** /instances/{instance_id}/statistics | Get Approximate Table Row Counts and Artifact Size +*InstanceStatisticsApi* | [**getNonEmptyTablesInstancesInstanceIdNonEmptyTablesGet**](docs/InstanceStatisticsApi.md#getNonEmptyTablesInstancesInstanceIdNonEmptyTablesGet) | **GET** /instances/{instance_id}/non_empty_tables | List Non-Empty Data Tables by Module +*InstanceStatisticsApi* | [**getRelationCountsInstancesInstanceIdModulesModuleNameModelNameIdCountsGet**](docs/InstanceStatisticsApi.md#getRelationCountsInstancesInstanceIdModulesModuleNameModelNameIdCountsGet) | **GET** /instances/{instance_id}/modules/{module_name}/{model_name}/{id}/counts | Get Relation Counts +*InstanceStatisticsApi* | [**groupByInstancesInstanceIdModulesModuleNameModelNameGroupByPost**](docs/InstanceStatisticsApi.md#groupByInstancesInstanceIdModulesModuleNameModelNameGroupByPost) | **POST** /instances/{instance_id}/modules/{module_name}/{model_name}/group-by | Group By +*InstanceTransformsApi* | [**createTransformInstancesInstanceIdTransformsPost**](docs/InstanceTransformsApi.md#createTransformInstancesInstanceIdTransformsPost) | **POST** /instances/{instance_id}/transforms | Create Transform +*InstancesApi* | [**addCollaboratorInstancesInstanceIdCollaboratorsPut**](docs/InstancesApi.md#addCollaboratorInstancesInstanceIdCollaboratorsPut) | **PUT** /instances/{instance_id}/collaborators | Add Collaborator +*InstancesApi* | [**createInstanceInstancesPut**](docs/InstancesApi.md#createInstanceInstancesPut) | **PUT** /instances | Create Instance +*InstancesApi* | [**deleteInstanceInstancesInstanceIdDelete**](docs/InstancesApi.md#deleteInstanceInstancesInstanceIdDelete) | **DELETE** /instances/{instance_id} | Delete Instance +*InstancesApi* | [**listCollaboratorsInstancesInstanceIdCollaboratorsGet**](docs/InstancesApi.md#listCollaboratorsInstancesInstanceIdCollaboratorsGet) | **GET** /instances/{instance_id}/collaborators | List Collaborators +*InstancesApi* | [**migrateInstanceInstancesInstanceIdMigratePost**](docs/InstancesApi.md#migrateInstanceInstancesInstanceIdMigratePost) | **POST** /instances/{instance_id}/migrate | Migrate Instance +*InstancesApi* | [**removeCollaboratorInstancesInstanceIdCollaboratorsDelete**](docs/InstancesApi.md#removeCollaboratorInstancesInstanceIdCollaboratorsDelete) | **DELETE** /instances/{instance_id}/collaborators | Remove Collaborator +*InstancesApi* | [**transferOwnershipInstancesInstanceIdOwnerHandlePatch**](docs/InstancesApi.md#transferOwnershipInstancesInstanceIdOwnerHandlePatch) | **PATCH** /instances/{instance_id}/owner/{handle} | Transfer Ownership +*InstancesApi* | [**updateCollaboratorInstancesInstanceIdCollaboratorsPatch**](docs/InstancesApi.md#updateCollaboratorInstancesInstanceIdCollaboratorsPatch) | **PATCH** /instances/{instance_id}/collaborators | Update Collaborator +*OrganizationsApi* | [**addOrganizationMemberOrganizationsOrganizationIdMembersAccountIdPut**](docs/OrganizationsApi.md#addOrganizationMemberOrganizationsOrganizationIdMembersAccountIdPut) | **PUT** /organizations/{organization_id}/members/{account_id} | Add Organization Member +*OrganizationsApi* | [**getOrganizationOrganizationsOrganizationIdGet**](docs/OrganizationsApi.md#getOrganizationOrganizationsOrganizationIdGet) | **GET** /organizations/{organization_id} | Get Organization +*OrganizationsApi* | [**listOrganizationMembersOrganizationsOrganizationIdMembersGet**](docs/OrganizationsApi.md#listOrganizationMembersOrganizationsOrganizationIdMembersGet) | **GET** /organizations/{organization_id}/members | List Organization Members +*OrganizationsApi* | [**removeOrganizationMemberOrganizationsOrganizationIdMembersAccountIdDelete**](docs/OrganizationsApi.md#removeOrganizationMemberOrganizationsOrganizationIdMembersAccountIdDelete) | **DELETE** /organizations/{organization_id}/members/{account_id} | Remove Organization Member +*OrganizationsApi* | [**updateOrganizationMemberOrganizationsOrganizationIdMembersAccountIdPatch**](docs/OrganizationsApi.md#updateOrganizationMemberOrganizationsOrganizationIdMembersAccountIdPatch) | **PATCH** /organizations/{organization_id}/members/{account_id} | Update Organization Member +*SpacesApi* | [**addSpaceCollaboratorSpacesSpaceIdCollaboratorsPut**](docs/SpacesApi.md#addSpaceCollaboratorSpacesSpaceIdCollaboratorsPut) | **PUT** /spaces/{space_id}/collaborators | Add Space Collaborator +*SpacesApi* | [**attachSpaceToInstanceSpacesSpaceIdInstancesInstanceIdPut**](docs/SpacesApi.md#attachSpaceToInstanceSpacesSpaceIdInstancesInstanceIdPut) | **PUT** /spaces/{space_id}/instances/{instance_id} | Attach Space To Instance +*SpacesApi* | [**createSpaceSpacesPut**](docs/SpacesApi.md#createSpaceSpacesPut) | **PUT** /spaces | Create Space +*SpacesApi* | [**deleteSpaceSpacesSpaceIdDelete**](docs/SpacesApi.md#deleteSpaceSpacesSpaceIdDelete) | **DELETE** /spaces/{space_id} | Delete Space +*SpacesApi* | [**detachSpaceFromInstanceSpacesSpaceIdInstancesInstanceIdDelete**](docs/SpacesApi.md#detachSpaceFromInstanceSpacesSpaceIdInstancesInstanceIdDelete) | **DELETE** /spaces/{space_id}/instances/{instance_id} | Detach Space From Instance +*SpacesApi* | [**getSpaceSpacesSpaceIdGet**](docs/SpacesApi.md#getSpaceSpacesSpaceIdGet) | **GET** /spaces/{space_id} | Get Space +*SpacesApi* | [**listInstanceSpacesSpacesInstancesInstanceIdGet**](docs/SpacesApi.md#listInstanceSpacesSpacesInstancesInstanceIdGet) | **GET** /spaces/instances/{instance_id} | List Instance Spaces +*SpacesApi* | [**listInstancesUsingSpaceSpacesSpaceIdInstancesGet**](docs/SpacesApi.md#listInstancesUsingSpaceSpacesSpaceIdInstancesGet) | **GET** /spaces/{space_id}/instances | List Instances Using Space +*SpacesApi* | [**listOrganizationSpacesSpacesOrganizationsOrganizationIdGet**](docs/SpacesApi.md#listOrganizationSpacesSpacesOrganizationsOrganizationIdGet) | **GET** /spaces/organizations/{organization_id} | List Organization Spaces +*SpacesApi* | [**listSpaceCollaboratorsSpacesSpaceIdCollaboratorsGet**](docs/SpacesApi.md#listSpaceCollaboratorsSpacesSpaceIdCollaboratorsGet) | **GET** /spaces/{space_id}/collaborators | List Space Collaborators +*SpacesApi* | [**moveRecordToSpaceSpacesSpaceIdRecordAttachmentsPut**](docs/SpacesApi.md#moveRecordToSpaceSpacesSpaceIdRecordAttachmentsPut) | **PUT** /spaces/{space_id}/record-attachments | Move Record To Space +*SpacesApi* | [**removeSpaceCollaboratorSpacesSpaceIdCollaboratorsDelete**](docs/SpacesApi.md#removeSpaceCollaboratorSpacesSpaceIdCollaboratorsDelete) | **DELETE** /spaces/{space_id}/collaborators | Remove Space Collaborator +*SpacesApi* | [**updateSpaceCollaboratorSpacesSpaceIdCollaboratorsPatch**](docs/SpacesApi.md#updateSpaceCollaboratorSpacesSpaceIdCollaboratorsPatch) | **PATCH** /spaces/{space_id}/collaborators | Update Space Collaborator +*SpacesApi* | [**updateSpaceSpacesSpaceIdPatch**](docs/SpacesApi.md#updateSpaceSpacesSpaceIdPatch) | **PATCH** /spaces/{space_id} | Update Space +*StoragesApi* | [**grantS3PermissionsStoragesS3BucketNamePermissionsPut**](docs/StoragesApi.md#grantS3PermissionsStoragesS3BucketNamePermissionsPut) | **PUT** /storages/s3/{bucket_name}/permissions | Grant S3 Permissions +*TeamsApi* | [**addTeamMemberTeamsTeamIdMembersAccountIdPut**](docs/TeamsApi.md#addTeamMemberTeamsTeamIdMembersAccountIdPut) | **PUT** /teams/{team_id}/members/{account_id} | Add Team Member +*TeamsApi* | [**createTeamTeamsPut**](docs/TeamsApi.md#createTeamTeamsPut) | **PUT** /teams | Create Team +*TeamsApi* | [**deleteTeamTeamsTeamIdDelete**](docs/TeamsApi.md#deleteTeamTeamsTeamIdDelete) | **DELETE** /teams/{team_id} | Delete Team +*TeamsApi* | [**getTeamTeamsTeamIdGet**](docs/TeamsApi.md#getTeamTeamsTeamIdGet) | **GET** /teams/{team_id} | Get Team +*TeamsApi* | [**listOrganizationTeamsTeamsOrganizationsOrganizationIdGet**](docs/TeamsApi.md#listOrganizationTeamsTeamsOrganizationsOrganizationIdGet) | **GET** /teams/organizations/{organization_id} | List Organization Teams +*TeamsApi* | [**listTeamMembersTeamsTeamIdMembersGet**](docs/TeamsApi.md#listTeamMembersTeamsTeamIdMembersGet) | **GET** /teams/{team_id}/members | List Team Members +*TeamsApi* | [**removeTeamMemberTeamsTeamIdMembersAccountIdDelete**](docs/TeamsApi.md#removeTeamMemberTeamsTeamIdMembersAccountIdDelete) | **DELETE** /teams/{team_id}/members/{account_id} | Remove Team Member +*TeamsApi* | [**updateTeamMemberTeamsTeamIdMembersAccountIdPatch**](docs/TeamsApi.md#updateTeamMemberTeamsTeamIdMembersAccountIdPatch) | **PATCH** /teams/{team_id}/members/{account_id} | Update Team Member +*TeamsApi* | [**updateTeamTeamsTeamIdPatch**](docs/TeamsApi.md#updateTeamTeamsTeamIdPatch) | **PATCH** /teams/{team_id} | Update Team ## Documentation for Models @@ -202,24 +202,38 @@ Class | Method | HTTP request | Description - [AddSpaceCollaboratorRequestBody](docs/AddSpaceCollaboratorRequestBody.md) - [AddTeamMemberRequestBody](docs/AddTeamMemberRequestBody.md) - [AttachSpaceToRecordRequestBody](docs/AttachSpaceToRecordRequestBody.md) + - [BatchDeleteBody](docs/BatchDeleteBody.md) + - [BatchDeleteResponse](docs/BatchDeleteResponse.md) + - [BatchSyncLinksBody](docs/BatchSyncLinksBody.md) + - [BatchSyncResponse](docs/BatchSyncResponse.md) + - [BatchUpdateBody](docs/BatchUpdateBody.md) + - [Body](docs/Body.md) - [CreateArtifactRequestBody](docs/CreateArtifactRequestBody.md) - [CreateSpaceRequestBody](docs/CreateSpaceRequestBody.md) - [CreateTeamRequestBody](docs/CreateTeamRequestBody.md) - [CreateTransformRequestBody](docs/CreateTransformRequestBody.md) - - [DbUrlRequest](docs/DbUrlRequest.md) - [Dimension](docs/Dimension.md) + - [ErrorDetail](docs/ErrorDetail.md) + - [ExecuteFunctionRequestBody](docs/ExecuteFunctionRequestBody.md) + - [ExportRecordsRequestBody](docs/ExportRecordsRequestBody.md) - [GetRecordRequestBody](docs/GetRecordRequestBody.md) - [GetRecordsRequestBody](docs/GetRecordsRequestBody.md) - [GetValuesRequestBody](docs/GetValuesRequestBody.md) - [GroupByRequestBody](docs/GroupByRequestBody.md) - [HTTPValidationError](docs/HTTPValidationError.md) - [Measure](docs/Measure.md) + - [NonEmptyTablesResponse](docs/NonEmptyTablesResponse.md) - [OrderByColumn](docs/OrderByColumn.md) - [RegisterDbServerBody](docs/RegisterDbServerBody.md) - [RegisterFormRequest](docs/RegisterFormRequest.md) + - [Request](docs/Request.md) - [Role](docs/Role.md) - [Role1](docs/Role1.md) - [S3PermissionsRequest](docs/S3PermissionsRequest.md) + - [StatisticsResponse](docs/StatisticsResponse.md) + - [SyncInstruction](docs/SyncInstruction.md) + - [TraversalParams](docs/TraversalParams.md) + - [TraversalParamsValuesInner](docs/TraversalParamsValuesInner.md) - [UpdateCollaboratorRequestBody](docs/UpdateCollaboratorRequestBody.md) - [UpdateOrganizationMemberRequestBody](docs/UpdateOrganizationMemberRequestBody.md) - [UpdateSpaceCollaboratorRequestBody](docs/UpdateSpaceCollaboratorRequestBody.md) diff --git a/api/openapi.yaml b/api/openapi.yaml index 7621552..05a0064 100644 --- a/api/openapi.yaml +++ b/api/openapi.yaml @@ -3,50 +3,36 @@ info: title: FastAPI version: 0.1.0 servers: -- url: https://aws.us-east-1.lamin.ai/api +- url: https://staging.laminhub.com/api paths: - /instances: - put: - operationId: create_instance_instances_put + /organizations/{organization_id}: + get: + description: |- + Get details of a specific organization. + + Parameters: + - **organization_id**: UUID of the organization to retrieve + + Returns: + - **200**: Organization details retrieved successfully + - **404**: Organization not found + operationId: get_organization_organizations__organization_id__get parameters: - - explode: true - in: query - name: name + - explode: false + in: path + name: organization_id required: true schema: - title: Name - type: string - style: form - - explode: true - in: query - name: storage - required: false - schema: - default: create-s3 - title: Storage - type: string - style: form - - explode: true - in: query - name: schema_str - required: false - schema: - nullable: true - type: string - style: form - - explode: true - in: query - name: db_server_key - required: false - schema: - nullable: true + format: uuid + title: Organization Id type: string - style: form + style: simple - explode: true in: query - name: storage_uid + name: instance_id required: false schema: + format: uuid nullable: true type: string style: form @@ -70,28 +56,39 @@ paths: schema: $ref: '#/components/schemas/HTTPValidationError' description: Validation Error - summary: Create Instance + summary: Get Organization + tags: + - Organizations x-accepts: - application/json - /instances/{instance_id}: - delete: - operationId: delete_instance_instances__instance_id__delete + /organizations/{organization_id}/members: + get: + description: |- + List all members of an organization. + + Parameters: + - **organization_id**: UUID of the organization to list members for + + Returns: + - **200**: List of organization members retrieved successfully + operationId: list_organization_members_organizations__organization_id__members_get parameters: - explode: false in: path - name: instance_id + name: organization_id required: true schema: format: uuid - nullable: true + title: Organization Id type: string style: simple - explode: true in: query - name: instance_name - required: true + name: instance_id + required: false schema: - title: Instance Name + format: uuid + nullable: true type: string style: form - explode: false @@ -114,37 +111,46 @@ paths: schema: $ref: '#/components/schemas/HTTPValidationError' description: Validation Error - summary: Delete Instance + summary: List Organization Members + tags: + - Organizations x-accepts: - application/json - /instances/{instance_id}/statistics: - get: - operationId: get_instance_statistics_instances__instance_id__statistics_get + /organizations/{organization_id}/members/{account_id}: + delete: + description: |- + Remove a member from an organization. + + Parameters: + - **organization_id**: UUID of the organization to remove the member from + - **account_id**: UUID of the account to remove from the organization + + Returns: + - **200**: Organization member removed successfully + - **404**: Member not found in organization + operationId: remove_organization_member_organizations__organization_id__members__account_id__delete parameters: - explode: false in: path - name: instance_id + name: organization_id required: true schema: format: uuid - nullable: true + title: Organization Id type: string style: simple - - description: "In ${module}.${model} format (case-sensitive)" - explode: true - in: query - name: q - required: false + - explode: false + in: path + name: account_id + required: true schema: - items: - nullable: true - type: string - nullable: true - type: array - style: form + format: uuid + title: Account Id + type: string + style: simple - explode: true in: query - name: schema_id + name: instance_id required: false schema: format: uuid @@ -171,25 +177,47 @@ paths: schema: $ref: '#/components/schemas/HTTPValidationError' description: Validation Error - summary: Get Instance Statistics + summary: Remove Organization Member + tags: + - Organizations x-accepts: - application/json - /instances/{instance_id}/non_empty_tables: - get: - operationId: get_non_empty_tables_instances__instance_id__non_empty_tables_get + patch: + description: |- + Update an organization member's details. + + Parameters: + - **organization_id**: UUID of the organization the member belongs to + - **account_id**: UUID of the account to update + - **body**: Request body containing updated member details + - **role**: Role of the member in the organization + + Returns: + - **200**: Organization member updated successfully + - **404**: Member not found in organization + operationId: update_organization_member_organizations__organization_id__members__account_id__patch parameters: - explode: false in: path - name: instance_id + name: organization_id required: true schema: format: uuid - nullable: true + title: Organization Id + type: string + style: simple + - explode: false + in: path + name: account_id + required: true + schema: + format: uuid + title: Account Id type: string style: simple - explode: true in: query - name: schema_id + name: instance_id required: false schema: format: uuid @@ -204,6 +232,12 @@ paths: nullable: true type: string style: simple + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/UpdateOrganizationMemberRequestBody' + required: true responses: "200": content: @@ -216,33 +250,47 @@ paths: schema: $ref: '#/components/schemas/HTTPValidationError' description: Validation Error - summary: Get Non Empty Tables + summary: Update Organization Member + tags: + - Organizations + x-content-type: application/json x-accepts: - application/json - /instances/{instance_id}/owner/{handle}: - patch: - operationId: transfer_ownership_instances__instance_id__owner__handle__patch + put: + description: |- + Add a member to an organization. + + Parameters: + - **organization_id**: UUID of the organization to add the member to + - **account_id**: UUID of the account to add as a member + - **body**: Request body containing member details + - **role**: Role of the member in the organization + + Returns: + - **201**: Organization member added successfully + operationId: add_organization_member_organizations__organization_id__members__account_id__put parameters: - explode: false in: path - name: handle + name: organization_id required: true schema: - title: Handle + format: uuid + title: Organization Id type: string style: simple - explode: false in: path - name: instance_id + name: account_id required: true schema: format: uuid - nullable: true + title: Account Id type: string style: simple - explode: true in: query - name: schema_id + name: instance_id required: false schema: format: uuid @@ -257,6 +305,12 @@ paths: nullable: true type: string style: simple + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/AddOrganizationMemberRequestBody' + required: true responses: "200": content: @@ -269,31 +323,25 @@ paths: schema: $ref: '#/components/schemas/HTTPValidationError' description: Validation Error - summary: Transfer Ownership + summary: Add Organization Member + tags: + - Organizations + x-content-type: application/json x-accepts: - application/json - /instances/{instance_id}/collaborators/{account_id}: - delete: - operationId: delete_collaborator_instances__instance_id__collaborators__account_id__delete + /account: + get: + operationId: get_caller_account_account_get parameters: - - explode: false - in: path + - explode: true + in: query name: instance_id - required: true + required: false schema: format: uuid nullable: true type: string - style: simple - - explode: false - in: path - name: account_id - required: true - schema: - format: uuid - title: Account Id - type: string - style: simple + style: form - explode: false in: header name: Authorization @@ -314,41 +362,34 @@ paths: schema: $ref: '#/components/schemas/HTTPValidationError' description: Validation Error - summary: Delete Collaborator + summary: Get Caller Account + tags: + - Accounts x-accepts: - application/json - patch: - operationId: update_collaborator_instances__instance_id__collaborators__account_id__patch + /spaces: + put: + description: |- + Create a new space. + + Parameters: + - **body**: Request body containing space details + - **name**: Name of the space + - **organization_id**: UUID of the organization + - **description**: Optional description of the space + + Returns: + - **201**: Space created successfully + operationId: create_space_spaces_put parameters: - - explode: false - in: path + - explode: true + in: query name: instance_id - required: true + required: false schema: format: uuid nullable: true type: string - style: simple - - explode: false - in: path - name: account_id - required: true - schema: - format: uuid - title: Account Id - type: string - style: simple - - explode: true - in: query - name: role - required: true - schema: - enum: - - admin - - write - - read - title: Role - type: string style: form - explode: false in: header @@ -358,6 +399,12 @@ paths: nullable: true type: string style: simple + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/CreateSpaceRequestBody' + required: true responses: "200": content: @@ -370,50 +417,96 @@ paths: schema: $ref: '#/components/schemas/HTTPValidationError' description: Validation Error - summary: Update Collaborator + summary: Create Space + tags: + - Spaces + x-content-type: application/json x-accepts: - application/json - put: - operationId: add_collaborator_instances__instance_id__collaborators__account_id__put + /spaces/{space_id}: + delete: + description: |- + Delete a space and detach it from the instance. + + Parameters: + - **space_id**: ID of the space to delete + + Returns: + - **200**: Space deleted successfully + - **404**: Space not found + operationId: delete_space_spaces__space_id__delete parameters: - explode: false in: path - name: instance_id + name: space_id required: true schema: format: uuid - nullable: true + title: Space Id type: string style: simple - - explode: false - in: path - name: account_id - required: true + - explode: true + in: query + name: instance_id + required: false schema: format: uuid - title: Account Id + nullable: true + type: string + style: form + - explode: false + in: header + name: Authorization + required: false + schema: + nullable: true type: string style: simple - - explode: true - in: query - name: schema_id + responses: + "200": + content: + application/json: + schema: {} + description: Successful Response + "422": + content: + application/json: + schema: + $ref: '#/components/schemas/HTTPValidationError' + description: Validation Error + summary: Delete Space + tags: + - Spaces + x-accepts: + - application/json + get: + description: |- + Get details of a specific space. + + Parameters: + - **space_id**: ID of the space to retrieve + + Returns: + - **200**: Space details retrieved successfully + - **404**: Space not found + operationId: get_space_spaces__space_id__get + parameters: + - explode: false + in: path + name: space_id required: true schema: format: uuid - title: Schema Id + title: Space Id type: string - style: form + style: simple - explode: true in: query - name: role + name: instance_id required: false schema: - default: read - enum: - - admin - - write - - read - title: Role + format: uuid + nullable: true type: string style: form - explode: false @@ -436,37 +529,41 @@ paths: schema: $ref: '#/components/schemas/HTTPValidationError' description: Validation Error - summary: Add Collaborator + summary: Get Space + tags: + - Spaces x-accepts: - application/json - /storages/s3/{bucket_name}/permissions: - put: - operationId: grant_s3_permissions_storages_s3__bucket_name__permissions_put + patch: + description: |- + Update a space's details. + + Parameters: + - **space_id**: ID of the space to update + - **body**: Request body containing updated space details + - **name**: Optional new name for the space + - **description**: Optional new description for the space + + Returns: + - **200**: Space updated successfully + operationId: update_space_spaces__space_id__patch parameters: - explode: false in: path - name: bucket_name + name: space_id required: true schema: - title: Bucket Name + format: uuid + title: Space Id type: string style: simple - explode: true in: query - name: aws_account_id - required: false - schema: - default: "767398070972" - title: Aws Account Id - type: string - style: form - - explode: true - in: query - name: aws_user_name + name: instance_id required: false schema: - default: lamin-manager - title: Aws User Name + format: uuid + nullable: true type: string style: form - explode: false @@ -481,7 +578,7 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/S3PermissionsRequest' + $ref: '#/components/schemas/UpdateSpaceRequestBody' required: true responses: "200": @@ -495,23 +592,49 @@ paths: schema: $ref: '#/components/schemas/HTTPValidationError' description: Validation Error - summary: Grant S3 Permissions + summary: Update Space + tags: + - Spaces x-content-type: application/json x-accepts: - application/json - /instances/{instance_id}/schema: - get: - operationId: get_schema_instances__instance_id__schema_get + /spaces/{space_id}/record-attachments: + put: + description: |- + 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 + operationId: move_record_to_space_spaces__space_id__record_attachments_put parameters: - - explode: false - in: path - name: instance_id + - explode: true + in: query + name: instance_db_space_id required: true + schema: + title: Instance Db Space Id + type: integer + style: form + - explode: true + in: query + name: instance_id + required: false schema: format: uuid nullable: true type: string - style: simple + style: form - explode: false in: header name: Authorization @@ -520,6 +643,12 @@ paths: nullable: true type: string style: simple + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/AttachSpaceToRecordRequestBody' + required: true responses: "200": content: @@ -532,27 +661,34 @@ paths: schema: $ref: '#/components/schemas/HTTPValidationError' description: Validation Error - summary: Get Schema + summary: Move Record To Space + tags: + - Spaces + x-content-type: application/json x-accepts: - application/json - /instances/{instance_id}/schema/{module_name}/{model_name}: - get: - operationId: get_relations_instances__instance_id__schema__module_name___model_name__get + /spaces/{space_id}/instances/{instance_id}: + delete: + description: |- + Detach a space from a specific instance. + + Parameters: + - **space_id**: ID of the space to detach + - **instance_id**: UUID of the instance to detach the space from (from URL path) + + Returns: + - **200**: Space detached from instance successfully + + Requires admin access to the instance + operationId: detach_space_from_instance_spaces__space_id__instances__instance_id__delete parameters: - explode: false in: path - name: module_name - required: true - schema: - title: Module Name - type: string - style: simple - - explode: false - in: path - name: model_name + name: space_id required: true schema: - title: Model Name + format: uuid + title: Space Id type: string style: simple - explode: false @@ -584,77 +720,92 @@ paths: schema: $ref: '#/components/schemas/HTTPValidationError' description: Validation Error - summary: Get Relations + summary: Detach Space From Instance + tags: + - Spaces x-accepts: - application/json - /instances/{instance_id}/modules/{module_name}/{model_name}: - post: - operationId: get_records_instances__instance_id__modules__module_name___model_name__post + put: + description: |- + Attach a space to a specific instance. + + Parameters: + - **space_id**: ID of the space to attach + - **instance_id**: UUID of the instance to attach the space to (from URL path) + + Returns: + - **200**: Space attached to instance successfully + + Requires admin access to the instance + operationId: attach_space_to_instance_spaces__space_id__instances__instance_id__put parameters: - explode: false in: path - name: module_name + name: space_id required: true schema: - title: Module Name + format: uuid + title: Space Id type: string style: simple - explode: false in: path - name: model_name + name: instance_id required: true schema: - title: Model Name + format: uuid + nullable: true + type: string + style: simple + - 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: Attach Space To Instance + tags: + - Spaces + x-accepts: + - application/json + /spaces/{space_id}/instances: + get: + description: |- + List all instances that have this space attached. + + Parameters: + - **space_id**: ID of the space to check + + Returns: + - **200**: List of instances using the space retrieved successfully + operationId: list_instances_using_space_spaces__space_id__instances_get + parameters: - explode: false in: path - name: instance_id + name: space_id required: true schema: format: uuid - nullable: true + title: Space Id type: string style: simple - explode: true in: query - name: limit - required: false - schema: - default: 50 - title: Limit - type: integer - style: form - - explode: true - in: query - name: offset - required: false - schema: - default: 0 - title: Offset - type: integer - style: form - - explode: true - in: query - name: limit_to_many - required: false - schema: - default: 10 - title: Limit To Many - type: integer - style: form - - explode: true - in: query - name: include_foreign_keys - required: false - schema: - default: false - title: Include Foreign Keys - type: boolean - style: form - - explode: true - in: query - name: schema_id + name: instance_id required: false schema: format: uuid @@ -669,11 +820,6 @@ paths: nullable: true type: string style: simple - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/GetRecordsRequestBody' responses: "200": content: @@ -686,29 +832,23 @@ paths: schema: $ref: '#/components/schemas/HTTPValidationError' description: Validation Error - summary: Get Records - x-content-type: application/json + summary: List Instances Using Space + tags: + - Spaces x-accepts: - application/json - put: - operationId: create_records_instances__instance_id__modules__module_name___model_name__put + /spaces/instances/{instance_id}: + get: + description: |- + List all spaces attached to an instance. + + Parameters: + - **instance_id**: UUID of the instance to list spaces for (from URL path) + + Returns: + - **200**: List of spaces attached to the instance retrieved successfully + operationId: list_instance_spaces_spaces_instances__instance_id__get parameters: - - explode: false - in: path - name: module_name - required: true - schema: - title: Module Name - type: string - style: simple - - explode: false - in: path - name: model_name - required: true - schema: - title: Model Name - type: string - style: simple - explode: false in: path name: instance_id @@ -718,15 +858,6 @@ paths: nullable: true type: string style: simple - - explode: true - in: query - name: schema_id - required: false - schema: - format: uuid - nullable: true - type: string - style: form - explode: false in: header name: Authorization @@ -735,11 +866,6 @@ paths: nullable: true type: string style: simple - requestBody: - content: - application/json: - schema: {} - required: true responses: "200": content: @@ -752,42 +878,56 @@ paths: schema: $ref: '#/components/schemas/HTTPValidationError' description: Validation Error - summary: Create Records - x-content-type: application/json + summary: List Instance Spaces + tags: + - Spaces x-accepts: - application/json - /instances/{instance_id}/modules/{module_name}/{model_name}/group-by: - post: - operationId: group_by_instances__instance_id__modules__module_name___model_name__group_by_post + /spaces/{space_id}/collaborators: + delete: + description: |- + Remove a collaborator (account or team) from a space. + + Parameters: + - **space_id**: ID of the space to remove the collaborator from + - **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 from space successfully + - **400**: Invalid input (e.g., both account_id and team_id provided or neither provided) + operationId: remove_space_collaborator_spaces__space_id__collaborators_delete parameters: - explode: false in: path - name: module_name + name: space_id required: true schema: - title: Module Name + format: uuid + title: Space Id type: string style: simple - - explode: false - in: path - name: model_name - required: true + - explode: true + in: query + name: account_id + required: false schema: - title: Model Name + format: uuid + nullable: true type: string - style: simple - - explode: false - in: path - name: instance_id - required: true + style: form + - explode: true + in: query + name: team_id + required: false schema: format: uuid nullable: true type: string - style: simple + style: form - explode: true in: query - name: schema_id + name: instance_id required: false schema: format: uuid @@ -802,12 +942,6 @@ paths: nullable: true type: string style: simple - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/GroupByRequestBody' - required: true responses: "200": content: @@ -820,68 +954,94 @@ paths: schema: $ref: '#/components/schemas/HTTPValidationError' description: Validation Error - summary: Group By - x-content-type: application/json + summary: Remove Space Collaborator + tags: + - Spaces x-accepts: - application/json - /instances/{instance_id}/modules/{module_name}/{model_name}/fields/{field_path}: - post: - operationId: get_values_instances__instance_id__modules__module_name___model_name__fields__field_path__post + get: + description: |- + List all collaborators of a space. + + Parameters: + - **space_id**: ID of the space to list collaborators for + + Returns: + - **200**: List of space collaborators retrieved successfully + operationId: list_space_collaborators_spaces__space_id__collaborators_get parameters: - explode: false in: path - name: module_name + name: space_id required: true schema: - title: Module Name + format: uuid + title: Space Id type: string style: simple - - explode: false - in: path - name: model_name - required: true + - explode: true + in: query + name: instance_id + required: false schema: - title: Model Name + format: uuid + nullable: true type: string - style: simple + style: form - explode: false - in: path - name: field_path - required: true + in: header + name: Authorization + required: false schema: - title: Field Path + 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 Space Collaborators + tags: + - Spaces + x-accepts: + - application/json + patch: + description: |- + Update a collaborator's permissions in a space. + + Parameters: + - **space_id**: ID of the space to update the collaborator in + - **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 in space + operationId: update_space_collaborator_spaces__space_id__collaborators_patch + parameters: - explode: false in: path - name: instance_id + name: space_id required: true schema: format: uuid - nullable: true + title: Space Id type: string style: simple - explode: true in: query - name: limit - required: false - schema: - default: 50 - title: Limit - type: integer - style: form - - explode: true - in: query - name: offset - required: false - schema: - default: 0 - title: Offset - type: integer - style: form - - explode: true - in: query - name: schema_id + name: instance_id required: false schema: format: uuid @@ -900,7 +1060,8 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/GetValuesRequestBody' + $ref: '#/components/schemas/UpdateSpaceCollaboratorRequestBody' + required: true responses: "200": content: @@ -913,68 +1074,40 @@ paths: schema: $ref: '#/components/schemas/HTTPValidationError' description: Validation Error - summary: Get Values + summary: Update Space Collaborator + tags: + - Spaces x-content-type: application/json x-accepts: - application/json - /instances/{instance_id}/modules/{module_name}/{model_name}/{id_or_uid}: - post: - operationId: get_record_instances__instance_id__modules__module_name___model_name___id_or_uid__post + put: + description: |- + Add a collaborator (account or team) to a space. + + Parameters: + - **space_id**: ID of the space to add the collaborator to + - **body**: Request body containing collaborator details + - **account_id**: UUID of the account to add (mutually exclusive with team_id) + - **team_id**: UUID of the team to add (mutually exclusive with account_id) + - **role**: Role of the collaborator + + Returns: + - **201**: Collaborator added to space successfully + - **400**: Invalid input (e.g., both account_id and team_id provided) + operationId: add_space_collaborator_spaces__space_id__collaborators_put parameters: - explode: false in: path - name: module_name - required: true - schema: - title: Module Name - type: string - style: simple - - explode: false - in: path - name: model_name - required: true - schema: - title: Model Name - type: string - style: simple - - explode: false - in: path - name: id_or_uid - required: true - schema: - title: Id Or Uid - type: string - style: simple - - explode: false - in: path - name: instance_id + name: space_id required: true schema: format: uuid - nullable: true + title: Space Id type: string style: simple - explode: true in: query - name: limit_to_many - required: false - schema: - default: 10 - title: Limit To Many - type: integer - style: form - - explode: true - in: query - name: include_foreign_keys - required: false - schema: - default: false - title: Include Foreign Keys - type: boolean - style: form - - explode: true - in: query - name: schema_id + name: instance_id required: false schema: format: uuid @@ -993,7 +1126,8 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/GetRecordRequestBody' + $ref: '#/components/schemas/AddSpaceCollaboratorRequestBody' + required: true responses: "200": content: @@ -1006,70 +1140,36 @@ paths: schema: $ref: '#/components/schemas/HTTPValidationError' description: Validation Error - summary: Get Record + summary: Add Space Collaborator + tags: + - Spaces x-content-type: application/json x-accepts: - application/json - /instances/{instance_id}/modules/{module_name}/{model_name}/{id}/{label_field}/{label_id}: - delete: - operationId: detach_label_instances__instance_id__modules__module_name___model_name___id___label_field___label_id__delete + /spaces/organizations/{organization_id}: + get: + description: |- + List all spaces in an organization. + + Parameters: + - **organization_id**: UUID of the organization to list spaces for + + Returns: + - **200**: List of spaces retrieved successfully + operationId: list_organization_spaces_spaces_organizations__organization_id__get parameters: - explode: false in: path - name: module_name - required: true - schema: - title: Module Name - type: string - style: simple - - explode: false - in: path - name: model_name - required: true - schema: - enum: - - artifact - - transform - - collection - title: Model Name - type: string - style: simple - - explode: false - in: path - name: id - required: true - schema: - title: Id - type: integer - style: simple - - explode: false - in: path - name: label_field - required: true - schema: - title: Label Field - type: string - style: simple - - explode: false - in: path - name: label_id - required: true - schema: - title: Label Id - type: integer - style: simple - - explode: false - in: path - name: instance_id + name: organization_id required: true schema: format: uuid - nullable: true + title: Organization Id type: string style: simple - explode: true in: query - name: schema_id + name: instance_id required: false schema: format: uuid @@ -1096,68 +1196,29 @@ paths: schema: $ref: '#/components/schemas/HTTPValidationError' description: Validation Error - summary: Detach Label + summary: List Organization Spaces + tags: + - Spaces x-accepts: - application/json + /teams: put: - operationId: attach_label_instances__instance_id__modules__module_name___model_name___id___label_field___label_id__put + description: |- + Create a new team. + + Parameters: + - **body**: Request body containing team details + - **name**: Name of the team + - **organization_id**: UUID of the organization + - **description**: Optional description of the team + + Returns: + - **201**: Team created successfully + operationId: create_team_teams_put parameters: - - explode: false - in: path - name: module_name - required: true - schema: - title: Module Name - type: string - style: simple - - explode: false - in: path - name: model_name - required: true - schema: - enum: - - artifact - - transform - - collection - title: Model Name - type: string - style: simple - - explode: false - in: path - name: id - required: true - schema: - title: Id - type: integer - style: simple - - explode: false - in: path - name: label_field - required: true - schema: - title: Label Field - type: string - style: simple - - explode: false - in: path - name: label_id - required: true - schema: - title: Label Id - type: integer - 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: schema_id + name: instance_id required: false schema: format: uuid @@ -1172,6 +1233,12 @@ paths: nullable: true type: string style: simple + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/CreateTeamRequestBody' + required: true responses: "200": content: @@ -1184,51 +1251,36 @@ paths: schema: $ref: '#/components/schemas/HTTPValidationError' description: Validation Error - summary: Attach Label + summary: Create Team + tags: + - Teams + x-content-type: application/json x-accepts: - application/json - /instances/{instance_id}/modules/{module_name}/{model_name}/upsert: - put: - operationId: upsert_records_instances__instance_id__modules__module_name___model_name__upsert_put + /teams/{team_id}: + delete: + description: |- + Delete a team. + + Parameters: + - **team_id**: UUID of the team to delete + + Returns: + - **200**: Team deleted successfully + operationId: delete_team_teams__team_id__delete parameters: - explode: false in: path - name: module_name - required: true - schema: - title: Module Name - type: string - style: simple - - explode: false - in: path - name: model_name - required: true - schema: - title: Model Name - type: string - style: simple - - explode: false - in: path - name: instance_id + name: team_id required: true schema: format: uuid - nullable: true + title: Team Id type: string style: simple - explode: true in: query - name: conflict_columns - required: false - schema: - items: - type: string - nullable: true - type: array - style: form - - explode: true - in: query - name: schema_id + name: instance_id required: false schema: format: uuid @@ -1243,11 +1295,6 @@ paths: nullable: true type: string style: simple - requestBody: - content: - application/json: - schema: {} - required: true responses: "200": content: @@ -1260,50 +1307,35 @@ paths: schema: $ref: '#/components/schemas/HTTPValidationError' description: Validation Error - summary: Upsert Records - x-content-type: application/json + summary: Delete Team + tags: + - Teams x-accepts: - application/json - /instances/{instance_id}/modules/{module_name}/{model_name}/{uid}: - delete: - operationId: delete_record_instances__instance_id__modules__module_name___model_name___uid__delete + get: + description: |- + Get details of a specific team. + + Parameters: + - **team_id**: UUID of the team to retrieve + + Returns: + - **200**: Team details retrieved successfully + - **404**: Team not found + operationId: get_team_teams__team_id__get parameters: - explode: false in: path - name: module_name - required: true - schema: - title: Module Name - type: string - style: simple - - explode: false - in: path - name: model_name - required: true - schema: - title: Model Name - type: string - style: simple - - explode: false - in: path - name: uid - required: true - schema: - title: Uid - type: string - style: simple - - explode: false - in: path - name: instance_id + name: team_id required: true schema: format: uuid - nullable: true + title: Team Id type: string style: simple - explode: true in: query - name: schema_id + name: instance_id required: false schema: format: uuid @@ -1330,48 +1362,37 @@ paths: schema: $ref: '#/components/schemas/HTTPValidationError' description: Validation Error - summary: Delete Record + summary: Get Team + tags: + - Teams x-accepts: - application/json patch: - operationId: update_record_instances__instance_id__modules__module_name___model_name___uid__patch + description: |- + Update a team's details. + + Parameters: + - **team_id**: UUID of the team to update + - **body**: Request body containing updated team details + - **name**: Optional new name for the team + - **description**: Optional new description for the team + + Returns: + - **200**: Team updated successfully + operationId: update_team_teams__team_id__patch parameters: - explode: false in: path - name: module_name - required: true - schema: - title: Module Name - type: string - style: simple - - explode: false - in: path - name: model_name - required: true - schema: - title: Model Name - type: string - style: simple - - explode: false - in: path - name: uid - required: true - schema: - title: Uid - type: string - style: simple - - explode: false - in: path - name: instance_id + name: team_id required: true schema: format: uuid - nullable: true + title: Team Id type: string style: simple - explode: true in: query - name: schema_id + name: instance_id required: false schema: format: uuid @@ -1389,7 +1410,8 @@ paths: requestBody: content: application/json: - schema: {} + schema: + $ref: '#/components/schemas/UpdateTeamRequestBody' required: true responses: "200": @@ -1403,50 +1425,36 @@ paths: schema: $ref: '#/components/schemas/HTTPValidationError' description: Validation Error - summary: Update Record + summary: Update Team + tags: + - Teams x-content-type: application/json x-accepts: - application/json - /instances/{instance_id}/modules/{module_name}/{model_name}/{id}/counts: + /teams/{team_id}/members: get: - operationId: get_relation_counts_instances__instance_id__modules__module_name___model_name___id__counts_get + description: |- + List all members of a team. + + Parameters: + - **team_id**: UUID of the team to list members for + + Returns: + - **200**: List of team members retrieved successfully + operationId: list_team_members_teams__team_id__members_get parameters: - explode: false in: path - name: module_name - required: true - schema: - title: Module Name - type: string - style: simple - - explode: false - in: path - name: model_name - required: true - schema: - title: Model Name - type: string - style: simple - - explode: false - in: path - name: id - required: true - schema: - title: Id - type: integer - style: simple - - explode: false - in: path - name: instance_id + name: team_id required: true schema: format: uuid - nullable: true + title: Team Id type: string style: simple - explode: true in: query - name: schema_id + name: instance_id required: false schema: format: uuid @@ -1473,22 +1481,52 @@ paths: schema: $ref: '#/components/schemas/HTTPValidationError' description: Validation Error - summary: Get Relation Counts + summary: List Team Members + tags: + - Teams x-accepts: - application/json - /instances/{instance_id}/artifacts/upload: - post: - operationId: upload_artifact_instances__instance_id__artifacts_upload_post + /teams/{team_id}/members/{account_id}: + delete: + description: |- + Remove a member from a team. + + Parameters: + - **team_id**: UUID of the team to remove the member from + - **account_id**: UUID of the account to remove from the team + + Returns: + - **200**: Team member removed successfully + - **404**: Member not found in team + operationId: remove_team_member_teams__team_id__members__account_id__delete parameters: - explode: false in: path - name: instance_id + name: team_id required: true schema: format: uuid - nullable: true + title: Team Id + type: string + style: simple + - explode: false + in: path + name: account_id + required: true + schema: + format: uuid + title: Account Id type: string style: simple + - explode: true + in: query + name: instance_id + required: false + schema: + format: uuid + nullable: true + type: string + style: form - explode: false in: header name: Authorization @@ -1497,12 +1535,6 @@ paths: nullable: true type: string style: simple - requestBody: - content: - multipart/form-data: - schema: - $ref: '#/components/schemas/Body_upload_artifact_instances__instance_id__artifacts_upload_post' - required: true responses: "200": content: @@ -1515,23 +1547,53 @@ paths: schema: $ref: '#/components/schemas/HTTPValidationError' description: Validation Error - summary: Upload Artifact - x-content-type: multipart/form-data + summary: Remove Team Member + tags: + - Teams x-accepts: - application/json - /instances/{instance_id}/artifacts/create: - post: - operationId: create_artifact_instances__instance_id__artifacts_create_post + patch: + description: |- + Update a team member's details. + + Parameters: + - **team_id**: UUID of the team the member belongs to + - **account_id**: UUID of the account to update + - **body**: Request body containing updated member details + - **role**: Role of the member in the team + + Returns: + - **200**: Team member updated successfully + - **404**: Member not found in team + operationId: update_team_member_teams__team_id__members__account_id__patch parameters: - explode: false in: path - name: instance_id + name: team_id required: true schema: format: uuid - nullable: true + title: Team Id + type: string + style: simple + - explode: false + in: path + name: account_id + required: true + schema: + format: uuid + title: Account Id type: string style: simple + - explode: true + in: query + name: instance_id + required: false + schema: + format: uuid + nullable: true + type: string + style: form - explode: false in: header name: Authorization @@ -1544,7 +1606,7 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/CreateArtifactRequestBody' + $ref: '#/components/schemas/UpdateTeamMemberRequestBody' required: true responses: "200": @@ -1558,23 +1620,53 @@ paths: schema: $ref: '#/components/schemas/HTTPValidationError' description: Validation Error - summary: Create Artifact + summary: Update Team Member + tags: + - Teams x-content-type: application/json x-accepts: - application/json - /instances/{instance_id}/transforms: - post: - operationId: create_transform_instances__instance_id__transforms_post + put: + description: |- + Add a member to a team. + + Parameters: + - **team_id**: UUID of the team to add the member to + - **account_id**: UUID of the account to add as a member + - **body**: Request body containing member details + - **role**: Role of the member in the team + + Returns: + - **201**: Team member added successfully + operationId: add_team_member_teams__team_id__members__account_id__put parameters: - explode: false in: path - name: instance_id + name: team_id required: true schema: format: uuid - nullable: true + title: Team Id + type: string + style: simple + - explode: false + in: path + name: account_id + required: true + schema: + format: uuid + title: Account Id type: string style: simple + - explode: true + in: query + name: instance_id + required: false + schema: + format: uuid + nullable: true + type: string + style: form - explode: false in: header name: Authorization @@ -1587,7 +1679,7 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/CreateTransformRequestBody' + $ref: '#/components/schemas/AddTeamMemberRequestBody' required: true responses: "200": @@ -1601,21 +1693,49 @@ paths: schema: $ref: '#/components/schemas/HTTPValidationError' description: Validation Error - summary: Create Transform + summary: Add Team Member + tags: + - Teams x-content-type: application/json x-accepts: - application/json - /s3/{path}: - delete: - operationId: proxy_s3_s3__path__get + /teams/organizations/{organization_id}: + get: + description: |- + List all teams in an organization. + + Parameters: + - **organization_id**: UUID of the organization to list teams for + + Returns: + - **200**: List of teams retrieved successfully + operationId: list_organization_teams_teams_organizations__organization_id__get parameters: - explode: false in: path - name: path + name: organization_id required: true schema: - title: Path - type: string + format: uuid + title: Organization Id + type: string + style: simple + - explode: true + in: query + name: instance_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": @@ -1629,20 +1749,88 @@ paths: schema: $ref: '#/components/schemas/HTTPValidationError' description: Validation Error - summary: Proxy S3 + summary: List Organization Teams + tags: + - Teams x-accepts: - application/json - get: - operationId: proxy_s3_s3__path__get + /instances: + put: + operationId: create_instance_instances_put parameters: - - explode: false - in: path - name: path + - explode: true + in: query + name: name required: true schema: - title: Path + title: Name + type: string + style: form + - explode: true + in: query + name: storage + required: false + schema: + default: create-s3 + title: Storage + type: string + style: form + - explode: true + in: query + name: schema_str + required: false + schema: + nullable: true + type: string + style: form + - explode: true + in: query + name: db_server_name + required: false + schema: + nullable: true + type: string + style: form + - explode: true + in: query + name: storage_uid + required: false + schema: + nullable: true + type: string + style: form + - explode: true + in: query + name: account_id + required: false + schema: + format: uuid + nullable: true + type: string + style: form + - explode: true + in: query + name: instance_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 + requestBody: + content: + application/json: + schema: + additionalProperties: {} + nullable: true responses: "200": content: @@ -1655,18 +1843,39 @@ paths: schema: $ref: '#/components/schemas/HTTPValidationError' description: Validation Error - summary: Proxy S3 + summary: Create Instance + tags: + - Instances + x-content-type: application/json x-accepts: - application/json - head: - operationId: proxy_s3_s3__path__get + /instances/{instance_id}: + delete: + operationId: delete_instance_instances__instance_id__delete parameters: - explode: false in: path - name: path + name: instance_id required: true schema: - title: Path + format: uuid + nullable: true + type: string + style: simple + - explode: true + in: query + name: instance_name + required: true + schema: + title: Instance Name + type: string + style: form + - explode: false + in: header + name: Authorization + required: false + schema: + nullable: true type: string style: simple responses: @@ -1681,18 +1890,38 @@ paths: schema: $ref: '#/components/schemas/HTTPValidationError' description: Validation Error - summary: Proxy S3 + summary: Delete Instance + tags: + - Instances x-accepts: - application/json - post: - operationId: proxy_s3_s3__path__get + /instances/{instance_id}/owner/{handle}: + patch: + operationId: transfer_ownership_instances__instance_id__owner__handle__patch parameters: - explode: false in: path - name: path + name: handle required: true schema: - title: Path + title: Handle + type: string + style: simple + - 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 responses: @@ -1707,18 +1936,30 @@ paths: schema: $ref: '#/components/schemas/HTTPValidationError' description: Validation Error - summary: Proxy S3 + summary: Transfer Ownership + tags: + - Instances x-accepts: - application/json - put: - operationId: proxy_s3_s3__path__get + /instances/{instance_id}/migrate: + post: + operationId: migrate_instance_instances__instance_id__migrate_post parameters: - explode: false in: path - name: path + name: instance_id required: true schema: - title: Path + format: uuid + nullable: true + type: string + style: simple + - explode: false + in: header + name: Authorization + required: false + schema: + nullable: true type: string style: simple responses: @@ -1733,25 +1974,26 @@ paths: schema: $ref: '#/components/schemas/HTTPValidationError' description: Validation Error - summary: Proxy S3 + summary: Migrate Instance + tags: + - Instances x-accepts: - application/json - /access_v2/instances/{instance_id}/collaborators: - delete: + /instances/{instance_id}/db_token: + get: description: |- - Remove a collaborator from an instance. + Get a database token for the specified instance. + + This token can be used to authenticate with the instance's database. 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) + - **instance_id**: UUID of the instance to get the token for (from URL path) Returns: - - **200**: Collaborator removed successfully - - **400**: Invalid input (e.g., both account_id and team_id provided) - - Requires admin access to the instance - operationId: remove_collaborator_access_v2_instances__instance_id__collaborators_delete + - **200**: Database token retrieved successfully + - **token**: The database token + - **401**: Unauthorized + operationId: get_db_token_instances__instance_id__db_token_get parameters: - explode: false in: path @@ -1762,24 +2004,6 @@ paths: nullable: true type: string style: simple - - explode: true - in: query - name: account_id - required: false - schema: - format: uuid - nullable: true - type: string - style: form - - explode: true - in: query - name: team_id - required: false - schema: - format: uuid - nullable: true - type: string - style: form - explode: false in: header name: Authorization @@ -1800,21 +2024,14 @@ paths: schema: $ref: '#/components/schemas/HTTPValidationError' description: Validation Error - summary: Remove Collaborator + summary: Get Db Token + tags: + - Instance DB Token x-accepts: - application/json + /instances/{instance_id}/schema: get: - description: |- - 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 - operationId: list_collaborators_access_v2_instances__instance_id__collaborators_get + operationId: get_schema_instances__instance_id__schema_get parameters: - explode: false in: path @@ -1845,27 +2062,31 @@ paths: schema: $ref: '#/components/schemas/HTTPValidationError' description: Validation Error - summary: List Collaborators + summary: Get Schema + tags: + - Instance Schema x-accepts: - application/json - patch: - description: |- - 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 - operationId: update_collaborator_access_v2_instances__instance_id__collaborators_patch + /instances/{instance_id}/schema/{module_name}/{model_name}: + get: + operationId: get_relations_instances__instance_id__schema__module_name___model_name__get parameters: + - explode: false + in: path + name: module_name + required: true + schema: + title: Module Name + type: string + style: simple + - explode: false + in: path + name: model_name + required: true + schema: + title: Model Name + type: string + style: simple - explode: false in: path name: instance_id @@ -1883,12 +2104,6 @@ paths: nullable: true type: string style: simple - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/UpdateCollaboratorRequestBody' - required: true responses: "200": content: @@ -1901,28 +2116,27 @@ paths: schema: $ref: '#/components/schemas/HTTPValidationError' description: Validation Error - summary: Update Collaborator - x-content-type: application/json + summary: Get Relations + tags: + - Instance Schema x-accepts: - application/json - put: + /instances/{instance_id}/collaborators: + delete: description: |- - Add a collaborator (account or team) to an instance. + Remove a collaborator from an instance. Parameters: - - **instance_id**: UUID of the instance to add the collaborator to (from URL path) - - **body**: Request body containing collaborator details - - **account_id**: UUID of the account to add (mutually exclusive with team_id) - - **team_id**: UUID of the team to add (mutually exclusive with account_id) - - **role**: Role of the collaborator + - **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: - - **201**: Collaborator added successfully + - **200**: Collaborator removed successfully - **400**: Invalid input (e.g., both account_id and team_id provided) - - **409**: Collaborator was already added Requires admin access to the instance - operationId: add_collaborator_access_v2_instances__instance_id__collaborators_put + operationId: remove_collaborator_instances__instance_id__collaborators_delete parameters: - explode: false in: path @@ -1933,103 +2147,24 @@ paths: nullable: true type: string style: simple - - explode: false - in: header - name: Authorization + - explode: true + in: query + name: account_id required: false schema: + format: uuid nullable: true type: string - style: simple - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/AddCollaboratorRequestBody' - required: true - responses: - "200": - content: - application/json: - schema: {} - description: Successful Response - "422": - content: - application/json: - schema: - $ref: '#/components/schemas/HTTPValidationError' - description: Validation Error - summary: Add Collaborator - x-content-type: application/json - x-accepts: - - application/json - /access_v2/spaces: - put: - description: |- - Create a new space. - - Parameters: - - **body**: Request body containing space details - - **name**: Name of the space - - **organization_id**: UUID of the organization - - **description**: Optional description of the space - - Returns: - - **201**: Space created successfully - operationId: create_space_access_v2_spaces_put - parameters: - - explode: false - in: header - name: Authorization + style: form + - explode: true + in: query + name: team_id required: false - schema: - nullable: true - type: string - style: simple - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/CreateSpaceRequestBody' - required: true - responses: - "200": - content: - application/json: - schema: {} - description: Successful Response - "422": - content: - application/json: - schema: - $ref: '#/components/schemas/HTTPValidationError' - description: Validation Error - summary: Create Space - x-content-type: application/json - x-accepts: - - application/json - /access_v2/spaces/{space_id}: - delete: - description: |- - Delete a space and detach it from the instance. - - Parameters: - - **space_id**: ID of the space to delete - - Returns: - - **200**: Space deleted successfully - - **404**: Space not found - operationId: delete_space_access_v2_spaces__space_id__delete - parameters: - - explode: false - in: path - name: space_id - required: true schema: format: uuid - title: Space Id + nullable: true type: string - style: simple + style: form - explode: false in: header name: Authorization @@ -2050,28 +2185,31 @@ paths: schema: $ref: '#/components/schemas/HTTPValidationError' description: Validation Error - summary: Delete Space + summary: Remove Collaborator + tags: + - Instances x-accepts: - application/json get: description: |- - Get details of a specific space. + List all collaborators of an instance. Parameters: - - **space_id**: ID of the space to retrieve + - **instance_id**: UUID of the instance to list collaborators for (from URL path) Returns: - - **200**: Space details retrieved successfully - - **404**: Space not found - operationId: get_space_access_v2_spaces__space_id__get + - **200**: List of instance collaborators retrieved successfully + + Requires read access to the instance + operationId: list_collaborators_instances__instance_id__collaborators_get parameters: - explode: false in: path - name: space_id + name: instance_id required: true schema: format: uuid - title: Space Id + nullable: true type: string style: simple - explode: false @@ -2094,30 +2232,36 @@ paths: schema: $ref: '#/components/schemas/HTTPValidationError' description: Validation Error - summary: Get Space + summary: List Collaborators + tags: + - Instances x-accepts: - application/json patch: description: |- - Update a space's details. + Update a collaborator's permissions on an instance. Parameters: - - **space_id**: ID of the space to update - - **body**: Request body containing updated space details - - **name**: Optional new name for the space - - **description**: Optional new description for the space + - **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**: Space updated successfully - operationId: update_space_access_v2_spaces__space_id__patch + - **200**: Collaborator updated successfully + - **400**: Invalid input (e.g., both account_id and team_id provided) + + Requires admin access to the instance + operationId: update_collaborator_instances__instance_id__collaborators_patch parameters: - explode: false in: path - name: space_id + name: instance_id required: true schema: format: uuid - title: Space Id + nullable: true type: string style: simple - explode: false @@ -2132,7 +2276,7 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/UpdateSpaceRequestBody' + $ref: '#/components/schemas/UpdateCollaboratorRequestBody' required: true responses: "200": @@ -2146,56 +2290,40 @@ paths: schema: $ref: '#/components/schemas/HTTPValidationError' description: Validation Error - summary: Update Space + summary: Update Collaborator + tags: + - Instances x-content-type: application/json x-accepts: - application/json - /access_v2/spaces/{space_id}/record-attachments: put: description: |- - Move a record to a specific space. + Add a collaborator (account or team) to an instance. 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) + - **instance_id**: UUID of the instance to add the collaborator to (from URL path) + - **body**: Request body containing collaborator details + - **account_id**: UUID of the account to add (mutually exclusive with team_id) + - **team_id**: UUID of the team to add (mutually exclusive with account_id) + - **role**: Role of the collaborator Returns: - - **200**: Record moved to the space successfully + - **201**: Collaborator added successfully + - **400**: Invalid input (e.g., both account_id and team_id provided) + - **409**: Collaborator was already added Requires admin access to the instance - operationId: move_record_to_space_access_v2_spaces__space_id__record_attachments_put + operationId: add_collaborator_instances__instance_id__collaborators_put parameters: - - explode: true - in: query - name: instance_db_space_id - required: true - schema: - title: Instance Db Space Id - type: integer - style: form - - explode: true - in: query + - explode: false + in: path name: instance_id - required: false - schema: - format: uuid - nullable: true - type: string - style: form - - explode: true - in: query - name: schema_id - required: false + required: true schema: format: uuid nullable: true type: string - style: form + style: simple - explode: false in: header name: Authorization @@ -2208,7 +2336,7 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/AttachSpaceToRecordRequestBody' + $ref: '#/components/schemas/AddCollaboratorRequestBody' required: true responses: "200": @@ -2222,43 +2350,33 @@ paths: schema: $ref: '#/components/schemas/HTTPValidationError' description: Validation Error - summary: Move Record To Space + summary: Add Collaborator + tags: + - Instances x-content-type: application/json x-accepts: - application/json - /access_v2/spaces/{space_id}/instances/{instance_id}: - delete: - description: |- - Detach a space from a specific instance. - - Parameters: - - **space_id**: ID of the space to detach - - **instance_id**: UUID of the instance to detach the space from (from URL path) - - Returns: - - **200**: Space detached from instance successfully - - Requires admin access to the instance - operationId: detach_space_from_instance_access_v2_spaces__space_id__instances__instance_id__delete + /instances/{instance_id}/search: + get: + operationId: global_search_instances__instance_id__search_get parameters: - explode: false in: path - name: space_id + name: instance_id required: true schema: format: uuid - title: Space Id + nullable: true type: string style: simple - - explode: false - in: path - name: instance_id + - explode: true + in: query + name: search_term required: true schema: - format: uuid - nullable: true + title: Search Term type: string - style: simple + style: form - explode: false in: header name: Authorization @@ -2279,30 +2397,24 @@ paths: schema: $ref: '#/components/schemas/HTTPValidationError' description: Validation Error - summary: Detach Space From Instance + summary: Global Search + tags: + - Instance Search x-accepts: - application/json - put: - description: |- - Attach a space to a specific instance. - - Parameters: - - **space_id**: ID of the space to attach - - **instance_id**: UUID of the instance to attach the space to (from URL path) - - Returns: - - **200**: Space attached to instance successfully - - Requires admin access to the instance - operationId: attach_space_to_instance_access_v2_spaces__space_id__instances__instance_id__put + /instances/{instance_id}/files/{entity_type}: + get: + operationId: list_directory_instances__instance_id__files__entity_type__get parameters: - explode: false in: path - name: space_id + name: entity_type required: true schema: - format: uuid - title: Space Id + enum: + - artifacts + - transforms + title: Entity Type type: string style: simple - explode: false @@ -2314,6 +2426,15 @@ paths: nullable: true type: string style: simple + - explode: true + in: query + name: path + required: false + schema: + default: "" + title: Path + type: string + style: form - explode: false in: header name: Authorization @@ -2334,30 +2455,35 @@ paths: schema: $ref: '#/components/schemas/HTTPValidationError' description: Validation Error - summary: Attach Space To Instance + summary: List Directory + tags: + - Instance File Explorer x-accepts: - application/json - /access_v2/spaces/{space_id}/instances: + /instances/{instance_id}/files/tree: get: - description: |- - List all instances that have this space attached. - - Parameters: - - **space_id**: ID of the space to check - - Returns: - - **200**: List of instances using the space retrieved successfully - operationId: list_instances_using_space_access_v2_spaces__space_id__instances_get + operationId: get_tree_instances__instance_id__files_tree_get parameters: - explode: false in: path - name: space_id + name: instance_id required: true schema: format: uuid - title: Space Id + nullable: true type: string style: simple + - explode: true + in: query + name: entity_type + required: true + schema: + enum: + - artifacts + - transforms + title: Entity Type + type: string + style: form - explode: false in: header name: Authorization @@ -2378,21 +2504,31 @@ paths: schema: $ref: '#/components/schemas/HTTPValidationError' description: Validation Error - summary: List Instances Using Space + summary: Get Tree + tags: + - Instance File Explorer x-accepts: - application/json - /access_v2/spaces/instances/{instance_id}: - get: - description: |- - List all spaces attached to an instance. - - Parameters: - - **instance_id**: UUID of the instance to list spaces for (from URL path) - - Returns: - - **200**: List of spaces attached to the instance retrieved successfully - operationId: list_instance_spaces_access_v2_spaces_instances__instance_id__get + /instances/{instance_id}/modules/{module_name}/{model_name}/group-by: + post: + operationId: group_by_instances__instance_id__modules__module_name___model_name__group_by_post parameters: + - explode: false + in: path + name: module_name + required: true + schema: + title: Module Name + type: string + style: simple + - explode: false + in: path + name: model_name + required: true + schema: + title: Model Name + type: string + style: simple - explode: false in: path name: instance_id @@ -2410,6 +2546,12 @@ paths: nullable: true type: string style: simple + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/GroupByRequestBody' + required: true responses: "200": content: @@ -2422,50 +2564,51 @@ paths: schema: $ref: '#/components/schemas/HTTPValidationError' description: Validation Error - summary: List Instance Spaces + summary: Group By + tags: + - Instance Statistics + x-content-type: application/json x-accepts: - application/json - /access_v2/spaces/{space_id}/collaborators: - delete: + /instances/{instance_id}/statistics: + get: description: |- - Remove a collaborator (account or team) from a space. + Retrieves instance statistics, including artifact size and table row counts. - Parameters: - - **space_id**: ID of the space to remove the collaborator from - - **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 from space successfully - - **400**: Invalid input (e.g., both account_id and team_id provided or neither provided) - operationId: remove_space_collaborator_access_v2_spaces__space_id__collaborators_delete + This endpoint uses a hybrid approach optimized for both accuracy and performance: + - **Row Counts (`counts`)**: Uses a hybrid counting strategy: + - For small tables (≤ 2000 estimated rows): **Exact counts** using + `COUNT(*)` to ensure accuracy for small datasets. + - For larger tables: **Fast approximations** based on PostgreSQL statistics catalog + (`pg_class.reltuples`) for near-instant retrieval. These stats are updated + periodically by database operations like `ANALYZE` and `AUTOVACUUM`. + - **Artifact Size (`instance_size`)**: This is an **exact** real-time calculation, + derived by performing a `SUM(size)` on the artifact table. + operationId: get_instance_statistics_instances__instance_id__statistics_get parameters: - explode: false in: path - name: space_id + name: instance_id required: true - schema: - format: uuid - title: Space Id - type: string - style: simple - - explode: true - in: query - name: account_id - required: false schema: format: uuid nullable: true type: string - style: form - - explode: true + style: simple + - description: "A list of models in \"${module}.${model}\" format (case-sensitive).\ + \ If omitted, statistics for all primary tables are returned." + example: + - core.ULabel + explode: true in: query - name: team_id + name: q required: false schema: - format: uuid + items: + nullable: true + type: string nullable: true - type: string + type: array style: form - explode: false in: header @@ -2479,35 +2622,64 @@ paths: "200": content: application/json: - schema: {} + schema: + $ref: '#/components/schemas/StatisticsResponse' description: Successful Response + "400": + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorDetail' + description: Invalid model name format provided. + "403": + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorDetail' + description: Read access denied to the instance. + "404": + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorDetail' + description: Instance or requested model not found. "422": content: application/json: schema: $ref: '#/components/schemas/HTTPValidationError' description: Validation Error - summary: Remove Space Collaborator + summary: Get Approximate Table Row Counts and Artifact Size + tags: + - Instance Statistics x-accepts: - application/json + /instances/{instance_id}/non_empty_tables: get: description: |- - List all collaborators of a space. + Analyzes the instance's database schema to identify all tables that contain data. - Parameters: - - **space_id**: ID of the space to list collaborators for + This endpoint uses a hybrid approach optimized for both accuracy and performance: + - **For small tables (≤ 2000 estimated rows)**: **Exact non-empty check** using + `COUNT(*) > 0` to ensure accuracy for small datasets. + - **For larger tables (> 2000 estimated rows)**: **Fast approximation** based on + PostgreSQL statistics catalog (`pg_class.reltuples > 0`) for near-instant + retrieval. These stats are updated periodically by database operations like + `ANALYZE` and `AUTOVACUUM`. - Returns: - - **200**: List of space collaborators retrieved successfully - operationId: list_space_collaborators_access_v2_spaces__space_id__collaborators_get + **Accuracy Note**: + - Small tables: Guaranteed accurate non-empty detection + - Large tables: May have acceptable false positives if all rows are deleted + but space hasn't been reclaimed until `VACUUM FULL` or `TRUNCATE` is run. + operationId: get_non_empty_tables_instances__instance_id__non_empty_tables_get parameters: - explode: false in: path - name: space_id + name: instance_id required: true schema: format: uuid - title: Space Id + nullable: true type: string style: simple - explode: false @@ -2522,41 +2694,74 @@ paths: "200": content: application/json: - schema: {} + schema: + $ref: '#/components/schemas/NonEmptyTablesResponse' description: Successful Response + "403": + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorDetail' + description: Read access denied to the instance. + "404": + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorDetail' + description: Instance not accessible. + "500": + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorDetail' + description: "Internal server error, such as a missing schema or database\ + \ connection failure." "422": content: application/json: schema: $ref: '#/components/schemas/HTTPValidationError' description: Validation Error - summary: List Space Collaborators + summary: List Non-Empty Data Tables by Module + tags: + - Instance Statistics x-accepts: - application/json - patch: - description: |- - Update a collaborator's permissions in a space. - - Parameters: - - **space_id**: ID of the space to update the collaborator in - - **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 in space - operationId: update_space_collaborator_access_v2_spaces__space_id__collaborators_patch + /instances/{instance_id}/modules/{module_name}/{model_name}/{id}/counts: + get: + operationId: get_relation_counts_instances__instance_id__modules__module_name___model_name___id__counts_get parameters: - explode: false in: path - name: space_id + name: module_name + required: true + schema: + title: Module Name + type: string + style: simple + - explode: false + in: path + name: model_name + required: true + schema: + title: Model Name + type: string + style: simple + - explode: false + in: path + name: id + required: true + schema: + title: Id + type: integer + style: simple + - explode: false + in: path + name: instance_id required: true schema: format: uuid - title: Space Id + nullable: true type: string style: simple - explode: false @@ -2567,12 +2772,6 @@ paths: nullable: true type: string style: simple - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/UpdateSpaceCollaboratorRequestBody' - required: true responses: "200": content: @@ -2585,33 +2784,33 @@ paths: schema: $ref: '#/components/schemas/HTTPValidationError' description: Validation Error - summary: Update Space Collaborator - x-content-type: application/json + summary: Get Relation Counts + tags: + - Instance Statistics x-accepts: - application/json - put: + /instances/{instance_id}/forms: + post: description: |- - Add a collaborator (account or team) to a space. + Register a form for a specific instance. Parameters: - - **space_id**: ID of the space to add the collaborator to - - **body**: Request body containing collaborator details - - **account_id**: UUID of the account to add (mutually exclusive with team_id) - - **team_id**: UUID of the team to add (mutually exclusive with account_id) - - **role**: Role of the collaborator + - **body**: Request body containing form details + - **key**: Key of the form + - **data**: Form data + - **schema_uid**: UID of the schema Returns: - - **201**: Collaborator added to space successfully - - **400**: Invalid input (e.g., both account_id and team_id provided) - operationId: add_space_collaborator_access_v2_spaces__space_id__collaborators_put + - **200**: Form registered successfully + operationId: register_form_instances__instance_id__forms_post parameters: - explode: false in: path - name: space_id + name: instance_id required: true schema: format: uuid - title: Space Id + nullable: true type: string style: simple - explode: false @@ -2626,7 +2825,7 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/AddSpaceCollaboratorRequestBody' + $ref: '#/components/schemas/RegisterFormRequest' required: true responses: "200": @@ -2640,29 +2839,23 @@ paths: schema: $ref: '#/components/schemas/HTTPValidationError' description: Validation Error - summary: Add Space Collaborator + summary: Register Form + tags: + - Instance Forms x-content-type: application/json x-accepts: - application/json - /access_v2/spaces/organizations/{organization_id}: - get: - description: |- - List all spaces in an organization. - - Parameters: - - **organization_id**: UUID of the organization to list spaces for - - Returns: - - **200**: List of spaces retrieved successfully - operationId: list_organization_spaces_access_v2_spaces_organizations__organization_id__get + /instances/{instance_id}/function/execute: + post: + operationId: execute_function_instances__instance_id__function_execute_post parameters: - explode: false in: path - name: organization_id + name: instance_id required: true schema: format: uuid - title: Organization Id + nullable: true type: string style: simple - explode: false @@ -2673,6 +2866,12 @@ paths: nullable: true type: string style: simple + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/ExecuteFunctionRequestBody' + required: true responses: "200": content: @@ -2685,24 +2884,25 @@ paths: schema: $ref: '#/components/schemas/HTTPValidationError' description: Validation Error - summary: List Organization Spaces + summary: Execute Function + tags: + - Instance Functions + x-content-type: application/json x-accepts: - application/json - /access_v2/teams: - put: - description: |- - Create a new team. - - Parameters: - - **body**: Request body containing team details - - **name**: Name of the team - - **organization_id**: UUID of the organization - - **description**: Optional description of the team - - Returns: - - **201**: Team created successfully - operationId: create_team_access_v2_teams_put + /instances/{instance_id}/transforms: + post: + operationId: create_transform_instances__instance_id__transforms_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 @@ -2715,7 +2915,7 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/CreateTeamRequestBody' + $ref: '#/components/schemas/CreateTransformRequestBody' required: true responses: "200": @@ -2729,29 +2929,157 @@ paths: schema: $ref: '#/components/schemas/HTTPValidationError' description: Validation Error - summary: Create Team + summary: Create Transform + tags: + - Instance Transforms + x-content-type: application/json + x-accepts: + - application/json + /instances/{instance_id}/artifacts/upload: + post: + operationId: upload_artifact_instances__instance_id__artifacts_upload_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: + multipart/form-data: + schema: + $ref: '#/components/schemas/Body_upload_artifact_instances__instance_id__artifacts_upload_post' + required: true + responses: + "200": + content: + application/json: + schema: {} + description: Successful Response + "422": + content: + application/json: + schema: + $ref: '#/components/schemas/HTTPValidationError' + description: Validation Error + summary: Upload Artifact + tags: + - Instance Artifacts + x-content-type: multipart/form-data + x-accepts: + - application/json + /instances/{instance_id}/artifacts/create: + post: + operationId: create_artifact_instances__instance_id__artifacts_create_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/CreateArtifactRequestBody' + required: true + responses: + "200": + content: + application/json: + schema: {} + description: Successful Response + "422": + content: + application/json: + schema: + $ref: '#/components/schemas/HTTPValidationError' + description: Validation Error + summary: Create Artifact + tags: + - Instance Artifacts x-content-type: application/json x-accepts: - application/json - /access_v2/teams/{team_id}: + /instances/{instance_id}/modules/{module_name}/{model_name}/{id}/{label_field}/{label_id}: delete: - description: |- - Delete a team. - - Parameters: - - **team_id**: UUID of the team to delete - - Returns: - - **200**: Team deleted successfully - operationId: delete_team_access_v2_teams__team_id__delete + operationId: detach_label_instances__instance_id__modules__module_name___model_name___id___label_field___label_id__delete parameters: - explode: false in: path - name: team_id + name: module_name + required: true + schema: + title: Module Name + type: string + style: simple + - explode: false + in: path + name: model_name + required: true + schema: + enum: + - artifact + - transform + - collection + title: Model Name + type: string + style: simple + - explode: false + in: path + name: id + required: true + schema: + title: Id + type: integer + style: simple + - explode: false + in: path + name: label_field + required: true + schema: + title: Label Field + type: string + style: simple + - explode: false + in: path + name: label_id + required: true + schema: + title: Label Id + type: integer + style: simple + - explode: false + in: path + name: instance_id required: true schema: format: uuid - title: Team Id + nullable: true type: string style: simple - explode: false @@ -2774,28 +3102,65 @@ paths: schema: $ref: '#/components/schemas/HTTPValidationError' description: Validation Error - summary: Delete Team + summary: Detach Label + tags: + - Instance Labels x-accepts: - application/json - get: - description: |- - Get details of a specific team. - - Parameters: - - **team_id**: UUID of the team to retrieve - - Returns: - - **200**: Team details retrieved successfully - - **404**: Team not found - operationId: get_team_access_v2_teams__team_id__get + put: + operationId: attach_label_instances__instance_id__modules__module_name___model_name___id___label_field___label_id__put parameters: - explode: false in: path - name: team_id + name: module_name + required: true + schema: + title: Module Name + type: string + style: simple + - explode: false + in: path + name: model_name + required: true + schema: + enum: + - artifact + - transform + - collection + title: Model Name + type: string + style: simple + - explode: false + in: path + name: id + required: true + schema: + title: Id + type: integer + style: simple + - explode: false + in: path + name: label_field + required: true + schema: + title: Label Field + type: string + style: simple + - explode: false + in: path + name: label_id + required: true + schema: + title: Label Id + type: integer + style: simple + - explode: false + in: path + name: instance_id required: true schema: format: uuid - title: Team Id + nullable: true type: string style: simple - explode: false @@ -2818,32 +3183,60 @@ paths: schema: $ref: '#/components/schemas/HTTPValidationError' description: Validation Error - summary: Get Team + summary: Attach Label + tags: + - Instance Labels x-accepts: - application/json - patch: - description: |- - Update a team's details. - - Parameters: - - **team_id**: UUID of the team to update - - **body**: Request body containing updated team details - - **name**: Optional new name for the team - - **description**: Optional new description for the team - - Returns: - - **200**: Team updated successfully - operationId: update_team_access_v2_teams__team_id__patch + /instances/{instance_id}/modules/{module_name}/{model_name}/query_features: + post: + description: Queries and returns a flat list of all unique Feature records associated + with a set of filtered primary model records. + operationId: query_linked_features_instances__instance_id__modules__module_name___model_name__query_features_post parameters: - explode: false in: path - name: team_id + name: module_name + required: true + schema: + title: Module Name + type: string + style: simple + - explode: false + in: path + name: model_name + required: true + schema: + title: Model Name + type: string + style: simple + - explode: false + in: path + name: instance_id required: true schema: format: uuid - title: Team Id + nullable: true type: string style: simple + - explode: true + in: query + name: limit + required: false + schema: + default: 50 + title: Limit + type: integer + style: form + - explode: true + in: query + name: offset + required: false + schema: + default: 0 + title: Offset + type: integer + style: form - explode: false in: header name: Authorization @@ -2856,8 +3249,7 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/UpdateTeamRequestBody' - required: true + $ref: '#/components/schemas/GetRecordsRequestBody' responses: "200": content: @@ -2870,31 +3262,75 @@ paths: schema: $ref: '#/components/schemas/HTTPValidationError' description: Validation Error - summary: Update Team + summary: Query Linked Features + tags: + - Instance Features x-content-type: application/json x-accepts: - application/json - /access_v2/teams/{team_id}/members: - get: + /instances/{instance_id}/modules/{module_name}/{model_name}/relatives: + post: description: |- - List all members of a team. + Finds and queries all relatives (ancestors or descendants) for a given set of records. - Parameters: - - **team_id**: UUID of the team to list members for + This endpoint first performs a recursive traversal to identify a complete set of related records. + It then applies standard query parameters (filter, sort, search, select, etc.) to that set. - Returns: - - **200**: List of team members retrieved successfully - operationId: list_team_members_access_v2_teams__team_id__members_get + **Traversal Strategies:** + The endpoint intelligently discovers the relationship structure from the schema: + + 1. **ManyToMany Graph:** It first looks for an explicit `parents` or `children` relationship field, which is assumed to be a Directed Acyclic Graph (DAG). + 2. **ForeignKey Tree:** If a ManyToMany field is not found, it falls back to traversing a self-referential `type` field, which is assumed to represent a parent-pointer tree. + operationId: get_relatives_instances__instance_id__modules__module_name___model_name__relatives_post parameters: - explode: false in: path - name: team_id + name: module_name + required: true + schema: + title: Module Name + type: string + style: simple + - explode: false + in: path + name: model_name + required: true + schema: + title: Model Name + type: string + style: simple + - explode: false + in: path + name: instance_id required: true schema: format: uuid - title: Team Id + nullable: true type: string style: simple + - description: The maximum number of relative records to return. + explode: true + in: query + name: limit + required: false + schema: + default: 100 + description: The maximum number of relative records to return. + title: Limit + type: integer + style: form + - description: The offset for paginating through the results. + explode: true + in: query + name: offset + required: false + schema: + default: 0 + description: The offset for paginating through the results. + minimum: 0 + title: Offset + type: integer + style: form - explode: false in: header name: Authorization @@ -2903,6 +3339,12 @@ paths: nullable: true type: string style: simple + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/Request' + required: true responses: "200": content: @@ -2915,39 +3357,134 @@ paths: schema: $ref: '#/components/schemas/HTTPValidationError' description: Validation Error - summary: List Team Members + summary: Get and query hierarchical relatives of records + tags: + - Instance Records + x-content-type: application/json x-accepts: - application/json - /access_v2/teams/{team_id}/members/{account_id}: - delete: - description: |- - Remove a member from a team. - - Parameters: - - **team_id**: UUID of the team to remove the member from - - **account_id**: UUID of the account to remove from the team - - Returns: - - **200**: Team member removed successfully - - **404**: Member not found in team - operationId: remove_team_member_access_v2_teams__team_id__members__account_id__delete + /instances/{instance_id}/modules/{module_name}/{model_name}: + post: + operationId: get_records_instances__instance_id__modules__module_name___model_name__post parameters: - explode: false in: path - name: team_id + name: module_name + required: true + schema: + title: Module Name + type: string + style: simple + - explode: false + in: path + name: model_name + required: true + schema: + title: Model Name + type: string + style: simple + - explode: false + in: path + name: instance_id required: true schema: format: uuid - title: Team Id + nullable: true type: string style: simple + - explode: true + in: query + name: limit + required: false + schema: + default: 50 + title: Limit + type: integer + style: form + - explode: true + in: query + name: offset + required: false + schema: + default: 0 + title: Offset + type: integer + style: form + - explode: true + in: query + name: limit_to_many + required: false + schema: + default: 10 + title: Limit To Many + type: integer + style: form + - explode: true + in: query + name: include_foreign_keys + required: false + schema: + default: false + title: Include Foreign Keys + type: boolean + style: form + - explode: false + in: header + name: Authorization + required: false + schema: + nullable: true + type: string + style: simple + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/GetRecordsRequestBody' + responses: + "200": + content: + application/json: + schema: {} + description: Successful Response + "422": + content: + application/json: + schema: + $ref: '#/components/schemas/HTTPValidationError' + description: Validation Error + summary: Get Records + tags: + - Instance Records + x-content-type: application/json + x-accepts: + - application/json + put: + operationId: create_records_instances__instance_id__modules__module_name___model_name__put + parameters: - explode: false in: path - name: account_id + name: module_name + required: true + schema: + title: Module Name + type: string + style: simple + - explode: false + in: path + name: model_name + required: true + schema: + title: Model Name + type: string + style: simple + - explode: false + in: path + name: instance_id required: true schema: format: uuid - title: Account Id + nullable: true type: string style: simple - explode: false @@ -2958,6 +3495,11 @@ paths: nullable: true type: string style: simple + requestBody: + content: + application/json: + schema: {} + required: true responses: "200": content: @@ -2970,42 +3512,67 @@ paths: schema: $ref: '#/components/schemas/HTTPValidationError' description: Validation Error - summary: Remove Team Member + summary: Create Records + tags: + - Instance Records + x-content-type: application/json x-accepts: - application/json - patch: - description: |- - Update a team member's details. - - Parameters: - - **team_id**: UUID of the team the member belongs to - - **account_id**: UUID of the account to update - - **body**: Request body containing updated member details - - **role**: Role of the member in the team - - Returns: - - **200**: Team member updated successfully - - **404**: Member not found in team - operationId: update_team_member_access_v2_teams__team_id__members__account_id__patch + /instances/{instance_id}/modules/{module_name}/{model_name}/fields/{field_path}: + post: + operationId: get_values_instances__instance_id__modules__module_name___model_name__fields__field_path__post parameters: - explode: false in: path - name: team_id + name: module_name required: true schema: - format: uuid - title: Team Id + title: Module Name type: string style: simple - explode: false in: path - name: account_id + name: model_name + required: true + schema: + title: Model Name + type: string + style: simple + - explode: false + in: path + name: field_path + required: true + schema: + title: Field Path + type: string + style: simple + - explode: false + in: path + name: instance_id required: true schema: format: uuid - title: Account Id + nullable: true type: string style: simple + - explode: true + in: query + name: limit + required: false + schema: + default: 50 + title: Limit + type: integer + style: form + - explode: true + in: query + name: offset + required: false + schema: + default: 0 + title: Offset + type: integer + style: form - explode: false in: header name: Authorization @@ -3018,8 +3585,7 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/UpdateTeamMemberRequestBody' - required: true + $ref: '#/components/schemas/GetValuesRequestBody' responses: "200": content: @@ -3032,42 +3598,59 @@ paths: schema: $ref: '#/components/schemas/HTTPValidationError' description: Validation Error - summary: Update Team Member + summary: Get Values + tags: + - Instance Records x-content-type: application/json x-accepts: - application/json + /instances/{instance_id}/modules/{module_name}/{model_name}/upsert: put: - description: |- - Add a member to a team. - - Parameters: - - **team_id**: UUID of the team to add the member to - - **account_id**: UUID of the account to add as a member - - **body**: Request body containing member details - - **role**: Role of the member in the team - - Returns: - - **201**: Team member added successfully - operationId: add_team_member_access_v2_teams__team_id__members__account_id__put + description: Insert new records or update existing ones based on a conflict + key. + operationId: upsert_records_instances__instance_id__modules__module_name___model_name__upsert_put parameters: - explode: false in: path - name: team_id + name: module_name required: true schema: - format: uuid - title: Team Id + title: Module Name type: string style: simple - explode: false in: path - name: account_id + name: model_name + required: true + schema: + title: Model Name + type: string + style: simple + - explode: false + in: path + name: instance_id required: true schema: format: uuid - title: Account Id + nullable: true type: string style: simple + - description: A list of column names that define the unique key for conflict + resolution. This must correspond to a unique constraint or index in the + database. + explode: true + in: query + name: conflict_columns + required: true + schema: + description: A list of column names that define the unique key for conflict + resolution. This must correspond to a unique constraint or index in the + database. + items: + nullable: true + type: string + type: array + style: form - explode: false in: header name: Authorization @@ -3080,84 +3663,55 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/AddTeamMemberRequestBody' + $ref: '#/components/schemas/Body' required: true responses: "200": content: application/json: schema: {} - description: Successful Response + description: "Successful Response. Returns a list of the full, upserted\ + \ records as they exist in the database." + "400": + description: The 'conflict_columns' query parameter was not provided. + "404": + description: The specified module or model name was not found. "422": - content: - application/json: - schema: - $ref: '#/components/schemas/HTTPValidationError' - description: Validation Error - summary: Add Team Member + description: "The request payload is invalid (e.g., a record is missing\ + \ a required conflict key, or the conflict key is not a valid unique constraint\ + \ in the database)." + summary: Upsert one or more records + tags: + - Instance Records x-content-type: application/json x-accepts: - application/json - /access_v2/teams/organizations/{organization_id}: - get: + /instances/{instance_id}/modules/{module_name}/{model_name}/batch-update: + patch: description: |- - List all teams in an organization. - - Parameters: - - **organization_id**: UUID of the organization to list teams for + Partially updates multiple records in a single request. - Returns: - - **200**: List of teams retrieved successfully - operationId: list_organization_teams_access_v2_teams_organizations__organization_id__get + This endpoint processes a list of records, updating each one in the database. + It is designed to handle heterogeneous partial updates, meaning each record + in the batch can update a different set of fields. + operationId: batch_update_records_instances__instance_id__modules__module_name___model_name__batch_update_patch parameters: - explode: false in: path - name: organization_id + name: module_name required: true schema: - format: uuid - title: Organization Id + title: Module Name type: string style: simple - explode: false - in: header - name: Authorization - required: false + in: path + name: model_name + required: true schema: - nullable: true + title: Model Name 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 Organization Teams - x-accepts: - - application/json - /access_v2/instances/{instance_id}/db_token: - get: - description: |- - Get a database token for the specified instance. - - This token can be used to authenticate with the instance's database. - - Parameters: - - **instance_id**: UUID of the instance to get the token for (from URL path) - - Returns: - - **200**: Database token retrieved successfully - - **token**: The database token - - **401**: Unauthorized - operationId: get_db_token_access_v2_instances__instance_id__db_token_get - parameters: - explode: false in: path name: instance_id @@ -3175,41 +3729,63 @@ paths: nullable: true type: string style: simple + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/BatchUpdateBody' + required: true responses: "200": content: application/json: - schema: {} - description: Successful Response - "422": - content: - application/json: + example: + - uid: abc + name: New Name A + updated_at: 2023-10-27T12:00:00Z + - uid: xyz + description: New Description B + updated_at: 2023-10-27T12:00:00Z schema: - $ref: '#/components/schemas/HTTPValidationError' - description: Validation Error - summary: Get Db Token + items: + additionalProperties: {} + type: array + description: "Successful update. Returns a list of the full, updated records." + "422": + description: A record in the payload is missing a required index key. + summary: Update one or more records in a batch + tags: + - Instance Records + x-content-type: application/json x-accepts: - application/json - /access_v2/organizations/{organization_id}: - get: - description: |- - Get details of a specific organization. - - Parameters: - - **organization_id**: UUID of the organization to retrieve - - Returns: - - **200**: Organization details retrieved successfully - - **404**: Organization not found - operationId: get_organization_access_v2_organizations__organization_id__get + /instances/{instance_id}/modules/{module_name}/{model_name}/batch-delete: + post: + operationId: batch_delete_records_instances__instance_id__modules__module_name___model_name__batch_delete_post parameters: - explode: false in: path - name: organization_id + name: module_name + required: true + schema: + title: Module Name + type: string + style: simple + - explode: false + in: path + name: model_name + required: true + schema: + title: Model Name + type: string + style: simple + - explode: false + in: path + name: instance_id required: true schema: format: uuid - title: Organization Id + nullable: true type: string style: simple - explode: false @@ -3220,11 +3796,18 @@ paths: nullable: true type: string style: simple + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/BatchDeleteBody' + required: true responses: "200": content: application/json: - schema: {} + schema: + $ref: '#/components/schemas/BatchDeleteResponse' description: Successful Response "422": content: @@ -3232,28 +3815,39 @@ paths: schema: $ref: '#/components/schemas/HTTPValidationError' description: Validation Error - summary: Get Organization + summary: Batch Delete Records + tags: + - Instance Records + x-content-type: application/json x-accepts: - application/json - /access_v2/organizations/{organization_id}/members: - get: - description: |- - List all members of an organization. - - Parameters: - - **organization_id**: UUID of the organization to list members for - - Returns: - - **200**: List of organization members retrieved successfully - operationId: list_organization_members_access_v2_organizations__organization_id__members_get + /instances/{instance_id}/modules/{module_name}/{model_name}/batch-sync-links: + put: + operationId: batch_sync_links_instances__instance_id__modules__module_name___model_name__batch_sync_links_put parameters: - explode: false in: path - name: organization_id + name: module_name + required: true + schema: + title: Module Name + type: string + style: simple + - explode: false + in: path + name: model_name + required: true + schema: + title: Model Name + type: string + style: simple + - explode: false + in: path + name: instance_id required: true schema: format: uuid - title: Organization Id + nullable: true type: string style: simple - explode: false @@ -3264,11 +3858,18 @@ paths: nullable: true type: string style: simple + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/BatchSyncLinksBody' + required: true responses: "200": content: application/json: - schema: {} + schema: + $ref: '#/components/schemas/BatchSyncResponse' description: Successful Response "422": content: @@ -3276,39 +3877,31 @@ paths: schema: $ref: '#/components/schemas/HTTPValidationError' description: Validation Error - summary: List Organization Members + summary: Synchronize sets of links for multiple scopes in a single call + tags: + - Instance Records + x-content-type: application/json x-accepts: - application/json - /access_v2/organizations/{organization_id}/members/{account_id}: - delete: - description: |- - Remove a member from an organization. - - Parameters: - - **organization_id**: UUID of the organization to remove the member from - - **account_id**: UUID of the account to remove from the organization - - Returns: - - **200**: Organization member removed successfully - - **404**: Member not found in organization - operationId: remove_organization_member_access_v2_organizations__organization_id__members__account_id__delete + /instances/{instance_id}/records/{uid}/export: + post: + operationId: export_records_instances__instance_id__records__uid__export_post parameters: - explode: false in: path - name: organization_id + name: uid required: true schema: - format: uuid - title: Organization Id + title: Uid type: string style: simple - explode: false in: path - name: account_id + name: instance_id required: true schema: format: uuid - title: Account Id + nullable: true type: string style: simple - explode: false @@ -3319,6 +3912,11 @@ paths: nullable: true type: string style: simple + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/ExportRecordsRequestBody' responses: "200": content: @@ -3331,42 +3929,67 @@ paths: schema: $ref: '#/components/schemas/HTTPValidationError' description: Validation Error - summary: Remove Organization Member + summary: Export Records + tags: + - Instance Records + x-content-type: application/json x-accepts: - application/json - patch: - description: |- - Update an organization member's details. - - Parameters: - - **organization_id**: UUID of the organization the member belongs to - - **account_id**: UUID of the account to update - - **body**: Request body containing updated member details - - **role**: Role of the member in the organization - - Returns: - - **200**: Organization member updated successfully - - **404**: Member not found in organization - operationId: update_organization_member_access_v2_organizations__organization_id__members__account_id__patch + /instances/{instance_id}/modules/{module_name}/{model_name}/{id_or_uid}: + post: + operationId: get_record_instances__instance_id__modules__module_name___model_name___id_or_uid__post parameters: - explode: false in: path - name: organization_id + name: module_name required: true schema: - format: uuid - title: Organization Id + title: Module Name type: string style: simple - explode: false in: path - name: account_id + name: model_name + required: true + schema: + title: Model Name + type: string + style: simple + - explode: false + in: path + name: id_or_uid + required: true + schema: + title: Id Or Uid + type: string + style: simple + - explode: false + in: path + name: instance_id required: true schema: format: uuid - title: Account Id + nullable: true type: string style: simple + - explode: true + in: query + name: limit_to_many + required: false + schema: + default: 10 + title: Limit To Many + type: integer + style: form + - explode: true + in: query + name: include_foreign_keys + required: false + schema: + default: false + title: Include Foreign Keys + type: boolean + style: form - explode: false in: header name: Authorization @@ -3379,8 +4002,7 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/UpdateOrganizationMemberRequestBody' - required: true + $ref: '#/components/schemas/GetRecordRequestBody' responses: "200": content: @@ -3393,40 +4015,47 @@ paths: schema: $ref: '#/components/schemas/HTTPValidationError' description: Validation Error - summary: Update Organization Member + summary: Get Record + tags: + - Instance Records x-content-type: application/json x-accepts: - application/json - put: - description: |- - Add a member to an organization. - - Parameters: - - **organization_id**: UUID of the organization to add the member to - - **account_id**: UUID of the account to add as a member - - **body**: Request body containing member details - - **role**: Role of the member in the organization - - Returns: - - **201**: Organization member added successfully - operationId: add_organization_member_access_v2_organizations__organization_id__members__account_id__put + /instances/{instance_id}/modules/{module_name}/{model_name}/{uid}: + delete: + operationId: delete_record_instances__instance_id__modules__module_name___model_name___uid__delete parameters: - explode: false in: path - name: organization_id + name: module_name required: true schema: - format: uuid - title: Organization Id + title: Module Name type: string style: simple - explode: false in: path - name: account_id + name: model_name + required: true + schema: + title: Model Name + type: string + style: simple + - explode: false + in: path + name: uid + required: true + schema: + title: Uid + type: string + style: simple + - explode: false + in: path + name: instance_id required: true schema: format: uuid - title: Account Id + nullable: true type: string style: simple - explode: false @@ -3437,12 +4066,6 @@ paths: nullable: true type: string style: simple - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/AddOrganizationMemberRequestBody' - required: true responses: "200": content: @@ -3455,52 +4078,47 @@ paths: schema: $ref: '#/components/schemas/HTTPValidationError' description: Validation Error - summary: Add Organization Member - x-content-type: application/json + summary: Delete Record + tags: + - Instance Records x-accepts: - application/json - /instances/{instance_id}/{entity_type}: - get: - operationId: list_directory_instances__instance_id___entity_type__get + patch: + operationId: update_record_instances__instance_id__modules__module_name___model_name___uid__patch parameters: - explode: false in: path - name: entity_type + name: module_name required: true schema: - enum: - - artifact - - transform - title: Entity Type + title: Module Name type: string style: simple - explode: false in: path - name: instance_id + name: model_name required: true schema: - format: uuid - nullable: true + title: Model Name type: string style: simple - - explode: true - in: query - name: path - required: false + - explode: false + in: path + name: uid + required: true schema: - default: "" - title: Path + title: Uid type: string - style: form - - explode: true - in: query - name: schema_id - required: false + style: simple + - explode: false + in: path + name: instance_id + required: true schema: format: uuid nullable: true type: string - style: form + style: simple - explode: false in: header name: Authorization @@ -3509,6 +4127,11 @@ paths: nullable: true type: string style: simple + requestBody: + content: + application/json: + schema: {} + required: true responses: "200": content: @@ -3521,36 +4144,45 @@ paths: schema: $ref: '#/components/schemas/HTTPValidationError' description: Validation Error - summary: List Directory + summary: Update Record + tags: + - Instance Records + x-content-type: application/json x-accepts: - application/json - /instances/{instance_id}/tree: - get: - operationId: get_tree_instances__instance_id__tree_get + /storages/s3/{bucket_name}/permissions: + put: + operationId: grant_s3_permissions_storages_s3__bucket_name__permissions_put parameters: - explode: false in: path - name: instance_id + name: bucket_name required: true schema: - format: uuid - nullable: true + title: Bucket Name type: string style: simple - explode: true in: query - name: entity_type - required: true + name: aws_account_id + required: false schema: - enum: - - artifact - - transform - title: Entity Type + default: "767398070972" + title: Aws Account Id + type: string + style: form + - explode: true + in: query + name: aws_user_name + required: false + schema: + default: lamin-manager + title: Aws User Name type: string style: form - explode: true in: query - name: schema_id + name: instance_id required: false schema: format: uuid @@ -3565,6 +4197,12 @@ paths: nullable: true type: string style: simple + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/S3PermissionsRequest' + required: true responses: "200": content: @@ -3577,33 +4215,25 @@ paths: schema: $ref: '#/components/schemas/HTTPValidationError' description: Validation Error - summary: Get Tree + summary: Grant S3 Permissions + tags: + - Storages + x-content-type: application/json x-accepts: - application/json - /instances/{instance_id}/forms: + /db/server/register: 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 + operationId: register_db_server_db_server_register_post parameters: - - explode: false - in: path + - explode: true + in: query name: instance_id - required: true + required: false schema: format: uuid nullable: true type: string - style: simple + style: form - explode: false in: header name: Authorization @@ -3616,7 +4246,7 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/RegisterFormRequest' + $ref: '#/components/schemas/RegisterDbServerBody' required: true responses: "200": @@ -3630,31 +4260,41 @@ paths: schema: $ref: '#/components/schemas/HTTPValidationError' description: Validation Error - summary: Register Form + summary: Register Db Server + tags: + - DB Server 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: + /db/server/check-access: post: - operationId: check_db_access__debug_db_access_post - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/DbUrlRequest' + 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: true + in: query + name: instance_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: @@ -3667,38 +4307,38 @@ paths: schema: $ref: '#/components/schemas/HTTPValidationError' description: Validation Error - summary: Check Db Access - x-content-type: application/json - x-accepts: - - application/json - /_debug/lambda-access: - get: - operationId: check_lambda_access__debug_lambda_access_get - responses: - "200": - content: - application/json: - schema: {} - description: Successful Response - summary: Check Lambda Access + summary: Check Db Server Access + tags: + - DB Server x-accepts: - application/json - /_debug/cache-access: + /health: get: - operationId: check_cache_access__debug_cache_access_get + operationId: health_check_health_get responses: "200": content: application/json: schema: {} description: Successful Response - summary: Check Cache Access + summary: Health Check + tags: + - Health Checks x-accepts: - application/json - /db/server/register: - post: - operationId: register_db_server_db_server_register_post + /cache/instances/{instance_id}: + delete: + operationId: invalidate_instance_cache_cache_instances__instance_id__delete 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 @@ -3707,12 +4347,6 @@ paths: nullable: true type: string style: simple - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/RegisterDbServerBody' - required: true responses: "200": content: @@ -3725,22 +4359,23 @@ paths: schema: $ref: '#/components/schemas/HTTPValidationError' description: Validation Error - summary: Register Db Server - x-content-type: application/json + summary: Invalidate Instance Cache + tags: + - Cache x-accepts: - application/json - /db/server/check-access: - post: - operationId: check_db_server_access_db_server_check_access_post + get: + operationId: get_instance_cache_cache_instances__instance_id__get parameters: - - explode: true - in: query - name: name + - explode: false + in: path + name: instance_id required: true schema: - title: Name + format: uuid + nullable: true type: string - style: form + style: simple - explode: false in: header name: Authorization @@ -3761,13 +4396,24 @@ paths: schema: $ref: '#/components/schemas/HTTPValidationError' description: Validation Error - summary: Check Db Server Access + summary: Get Instance Cache + tags: + - Cache x-accepts: - application/json - /account: + /access_v2/instances/{instance_id}/db_token: get: - operationId: get_caller_account_account_get + operationId: get_db_token_backward_compatible_access_v2_instances__instance_id__db_token_get 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 @@ -3788,7 +4434,9 @@ paths: schema: $ref: '#/components/schemas/HTTPValidationError' description: Validation Error - summary: Get Caller Account + summary: Get Db Token Backward Compatible + tags: + - Backward Compatible Endpoints x-accepts: - application/json components: @@ -3824,8 +4472,9 @@ components: default: member enum: - admin - - member - manager + - member + - guest title: Role type: string title: AddOrganizationMemberRequestBody @@ -3879,6 +4528,125 @@ components: - module_name - record_id title: AttachSpaceToRecordRequestBody + BatchDeleteBody: + example: + records: + - key: "" + - key: "" + properties: + records: + description: "A list of dictionaries, where each dictionary contains the\ + \ key(s) identifying a record to delete." + items: + additionalProperties: {} + type: array + required: + - records + title: BatchDeleteBody + BatchDeleteResponse: + example: + deleted_count: 0 + properties: + deleted_count: + title: Deleted Count + type: integer + required: + - deleted_count + title: BatchDeleteResponse + BatchSyncLinksBody: + description: The request body for the batch synchronization endpoint. + example: + instructions: + - desired_ids: + - "" + - "" + scope: + key: "" + - desired_ids: + - "" + - "" + scope: + key: "" + list_key: list_key + properties: + instructions: + description: A list of synchronization instructions to be processed in a + single batch. + items: + $ref: '#/components/schemas/SyncInstruction' + type: array + list_key: + description: "The name of the column whose values are being synchronized\ + \ (e.g., 'ulabel_id'). This must be the same for all instructions in the\ + \ batch." + title: List Key + type: string + required: + - instructions + - list_key + title: BatchSyncLinksBody + BatchSyncResponse: + description: "The detailed response model for a batch synchronization operation,\ + \ including the lists of records that were processed." + example: + deleted: + - key: "" + - key: "" + inserted: + - key: "" + - key: "" + kept: 0 + status: status + properties: + status: + title: Status + type: string + deleted: + description: A list of the records that were deleted. + items: + additionalProperties: {} + type: array + inserted: + description: "A list of the records that were inserted, including server-added\ + \ audit fields." + items: + additionalProperties: {} + type: array + kept: + description: The number of records that already existed and were kept. + title: Kept + type: integer + required: + - deleted + - inserted + - kept + - status + title: BatchSyncResponse + BatchUpdateBody: + example: + index_columns: + - index_columns + - index_columns + records: + - key: "" + - key: "" + properties: + records: + description: A list of records to update. Each dictionary must contain the + key(s) specified in `index_columns` and the fields to be updated. + items: + additionalProperties: {} + type: array + index_columns: + description: "A list of column names to use as the identifier for matching\ + \ records to update (e.g., ['uid'])." + items: + type: string + type: array + required: + - index_columns + - records + title: BatchUpdateBody Body_upload_artifact_instances__instance_id__artifacts_upload_post: properties: file: @@ -3949,17 +4717,17 @@ components: title: CreateTeamRequestBody CreateTransformRequestBody: example: + kind: kind kwargs: key: "" - type: type source_code: source_code key: key properties: key: title: Key type: string - type: - title: Type + kind: + title: Kind type: string source_code: title: Source Code @@ -3969,19 +4737,9 @@ components: nullable: true required: - key + - kind - source_code - - type title: CreateTransformRequestBody - DbUrlRequest: - example: - db_url: db_url - properties: - db_url: - title: Db Url - type: string - required: - - db_url - title: DbUrlRequest Dimension: example: func: count @@ -4002,6 +4760,47 @@ components: required: - field_name title: Dimension + ErrorDetail: + example: + detail: detail + properties: + detail: + title: Detail + type: string + required: + - detail + title: ErrorDetail + ExecuteFunctionRequestBody: + example: + transform_uid: transform_uid + function_name: function_name + function_kwargs: + key: "" + properties: + transform_uid: + title: Transform Uid + type: string + function_name: + title: Function Name + type: string + function_kwargs: + additionalProperties: {} + title: Function Kwargs + required: + - function_kwargs + - function_name + - transform_uid + title: ExecuteFunctionRequestBody + ExportRecordsRequestBody: + example: + kwargs: + key: "" + properties: + kwargs: + additionalProperties: {} + default: {} + title: Kwargs + title: ExportRecordsRequestBody GetRecordRequestBody: example: select: @@ -4018,6 +4817,9 @@ components: example: filter: key: "" + search_in: + - search_in + - search_in search: "" select: - select @@ -4045,11 +4847,19 @@ components: default: "" title: Search type: string + search_in: + items: + type: string + nullable: true + type: array title: GetRecordsRequestBody GetValuesRequestBody: example: filter: key: "" + search_in: + - search_in + - search_in search: "" order_by: - field: field @@ -4069,6 +4879,11 @@ components: default: "" title: Search type: string + search_in: + items: + type: string + nullable: true + type: array title: GetValuesRequestBody GroupByRequestBody: example: @@ -4146,6 +4961,23 @@ components: - agg_func - field_name title: Measure + NonEmptyTablesResponse: + example: + non_empty_tables: + key: + - non_empty_tables + - non_empty_tables + properties: + non_empty_tables: + additionalProperties: + items: + type: string + description: A dictionary where keys are module names and values are lists + of class names representing non-empty tables. + title: Non Empty Tables + required: + - non_empty_tables + title: NonEmptyTablesResponse OrderByColumn: example: field: field @@ -4163,6 +4995,7 @@ components: title: OrderByColumn RegisterDbServerBody: example: + organization_id: 046b6c7f-0b8a-43b9-b35d-6489e6daee91 name: name api_server_name: api_server_name url: url @@ -4176,9 +5009,14 @@ components: api_server_name: title: Api Server Name type: string + organization_id: + format: uuid + title: Organization Id + type: string required: - api_server_name - name + - organization_id - url title: RegisterDbServerBody RegisterFormRequest: @@ -4202,11 +5040,65 @@ components: - key - schema_uid title: RegisterFormRequest + Request: + example: + filter: + key: "" + search_in: + - search_in + - search_in + search: "" + select: + - select + - select + order_by: + - field: field + descending: false + - field: field + descending: false + relatives: + depth: 6 + field: id + kind: ancestors + values: + - 0 + - 0 + properties: + select: + items: + type: string + nullable: true + type: array + filter: + additionalProperties: {} + nullable: true + order_by: + items: + $ref: '#/components/schemas/OrderByColumn' + nullable: true + type: array + search: + default: "" + title: Search + type: string + search_in: + items: + type: string + nullable: true + type: array + relatives: + $ref: '#/components/schemas/TraversalParams' + required: + - relatives + title: Request S3PermissionsRequest: example: aws_access_key_id: aws_access_key_id + aws_session_token: aws_session_token aws_secret_access_key: aws_secret_access_key region: region + extra_parameters: + key: "" properties: aws_access_key_id: title: Aws Access Key Id @@ -4217,11 +5109,102 @@ components: region: title: Region type: string + aws_session_token: + nullable: true + type: string + extra_parameters: + additionalProperties: {} + nullable: true required: - aws_access_key_id - aws_secret_access_key - region title: S3PermissionsRequest + StatisticsResponse: + description: Defines the response for the instance statistics endpoint. + example: + instance_size: 0 + counts: + key: + key: 6 + properties: + instance_size: + description: "Total size in bytes of all artifacts, calculated precisely\ + \ in real-time." + title: Instance Size + type: integer + counts: + additionalProperties: + additionalProperties: + type: integer + description: "A nested dictionary containing approximate row counts for\ + \ tables. Keys are module names, and values are dictionaries mapping class\ + \ names to their estimated row count." + title: Counts + required: + - counts + - instance_size + title: StatisticsResponse + SyncInstruction: + description: "Defines a single synchronization instruction, containing the scope\ + \ and the desired state for that scope." + example: + desired_ids: + - "" + - "" + scope: + key: "" + properties: + scope: + additionalProperties: {} + description: "Key-value pairs defining the constant scope for this specific\ + \ synchronization operation (e.g., {'artifact_id': 1, 'feature_id': 10})." + title: Scope + desired_ids: + description: The complete list of desired IDs for the list_key within this + scope. + items: {} + type: array + required: + - desired_ids + - scope + title: SyncInstruction + TraversalParams: + description: Parameters that define the hierarchical traversal. + example: + depth: 6 + field: id + kind: ancestors + values: + - 0 + - 0 + properties: + field: + default: id + description: "The field on the model to use for identifying starting records\ + \ (e.g., 'id', 'uid')." + title: Field + type: string + values: + description: A list of values for the specified 'field' to begin the traversal + from. + items: + $ref: '#/components/schemas/TraversalParams_values_inner' + type: array + kind: + description: The direction of traversal + enum: + - ancestors + - descendants + title: Kind + type: string + depth: + nullable: true + type: integer + required: + - kind + - values + title: TraversalParams UpdateCollaboratorRequestBody: example: account_id: 046b6c7f-0b8a-43b9-b35d-6489e6daee91 @@ -4253,8 +5236,9 @@ components: role: enum: - admin - - member - manager + - member + - guest title: Role type: string required: @@ -4338,6 +5322,17 @@ components: - msg - type title: ValidationError + Body: + anyOf: + - items: + additionalProperties: {} + type: array + - additionalProperties: {} + description: "A single record as a JSON object or a list of records to upsert.\ + \ If a record's values for the `conflict_columns` match an existing record,\ + \ it will be updated. Otherwise, a new record will be inserted. Only the fields\ + \ you provide will be modified on update." + title: Body Role: anyOf: - enum: @@ -4346,11 +5341,17 @@ components: type: string - enum: - admin - - member - manager + - member + - guest type: string default: member title: Role + TraversalParams_values_inner: + anyOf: + - type: integer + - type: string + - type: boolean Role_1: anyOf: - enum: @@ -4359,8 +5360,9 @@ components: type: string - enum: - admin - - member - manager + - member + - guest type: string title: Role ValidationError_loc_inner: diff --git a/config.yaml b/config.yaml index 70476c8..174daf3 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.3 +artifactVersion: 0.0.4 # Description: artifact URL in generated pom.xml artifactUrl: https://github.com/laminlabs/lamin-api-client-java diff --git a/docs/AccountsApi.md b/docs/AccountsApi.md new file mode 100644 index 0000000..1822554 --- /dev/null +++ b/docs/AccountsApi.md @@ -0,0 +1,72 @@ +# AccountsApi + +All URIs are relative to *https://staging.laminhub.com/api* + +| Method | HTTP request | Description | +|------------- | ------------- | -------------| +| [**getCallerAccountAccountGet**](AccountsApi.md#getCallerAccountAccountGet) | **GET** /account | Get Caller Account | + + + +# **getCallerAccountAccountGet** +> Object getCallerAccountAccountGet(instanceId, authorization) + +Get Caller Account + +### 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.AccountsApi; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("https://staging.laminhub.com/api"); + + AccountsApi apiInstance = new AccountsApi(defaultClient); + UUID instanceId = UUID.randomUUID(); // UUID | + String authorization = "authorization_example"; // String | + try { + Object result = apiInstance.getCallerAccountAccountGet(instanceId, authorization); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling AccountsApi#getCallerAccountAccountGet"); + 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**| | [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 | - | + diff --git a/docs/AddOrganizationMemberRequestBody.md b/docs/AddOrganizationMemberRequestBody.md index cac9793..b610450 100644 --- a/docs/AddOrganizationMemberRequestBody.md +++ b/docs/AddOrganizationMemberRequestBody.md @@ -16,8 +16,9 @@ | Name | Value | |---- | -----| | ADMIN | "admin" | -| MEMBER | "member" | | MANAGER | "manager" | +| MEMBER | "member" | +| GUEST | "guest" | diff --git a/docs/BackwardCompatibleEndpointsApi.md b/docs/BackwardCompatibleEndpointsApi.md new file mode 100644 index 0000000..7bf08b1 --- /dev/null +++ b/docs/BackwardCompatibleEndpointsApi.md @@ -0,0 +1,72 @@ +# BackwardCompatibleEndpointsApi + +All URIs are relative to *https://staging.laminhub.com/api* + +| Method | HTTP request | Description | +|------------- | ------------- | -------------| +| [**getDbTokenBackwardCompatibleAccessV2InstancesInstanceIdDbTokenGet**](BackwardCompatibleEndpointsApi.md#getDbTokenBackwardCompatibleAccessV2InstancesInstanceIdDbTokenGet) | **GET** /access_v2/instances/{instance_id}/db_token | Get Db Token Backward Compatible | + + + +# **getDbTokenBackwardCompatibleAccessV2InstancesInstanceIdDbTokenGet** +> Object getDbTokenBackwardCompatibleAccessV2InstancesInstanceIdDbTokenGet(instanceId, authorization) + +Get Db Token Backward Compatible + +### 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.BackwardCompatibleEndpointsApi; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("https://staging.laminhub.com/api"); + + BackwardCompatibleEndpointsApi apiInstance = new BackwardCompatibleEndpointsApi(defaultClient); + UUID instanceId = UUID.randomUUID(); // UUID | + String authorization = "authorization_example"; // String | + try { + Object result = apiInstance.getDbTokenBackwardCompatibleAccessV2InstancesInstanceIdDbTokenGet(instanceId, authorization); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling BackwardCompatibleEndpointsApi#getDbTokenBackwardCompatibleAccessV2InstancesInstanceIdDbTokenGet"); + 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**| | | +| **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 | - | + diff --git a/docs/BatchDeleteBody.md b/docs/BatchDeleteBody.md new file mode 100644 index 0000000..63c577a --- /dev/null +++ b/docs/BatchDeleteBody.md @@ -0,0 +1,13 @@ + + +# BatchDeleteBody + + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**records** | **List<Map<String, Object>>** | A list of dictionaries, where each dictionary contains the key(s) identifying a record to delete. | | + + + diff --git a/docs/BatchDeleteResponse.md b/docs/BatchDeleteResponse.md new file mode 100644 index 0000000..8c0b5c0 --- /dev/null +++ b/docs/BatchDeleteResponse.md @@ -0,0 +1,13 @@ + + +# BatchDeleteResponse + + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**deletedCount** | **Integer** | | | + + + diff --git a/docs/BatchSyncLinksBody.md b/docs/BatchSyncLinksBody.md new file mode 100644 index 0000000..eec3e55 --- /dev/null +++ b/docs/BatchSyncLinksBody.md @@ -0,0 +1,15 @@ + + +# BatchSyncLinksBody + +The request body for the batch synchronization endpoint. + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**instructions** | [**List<SyncInstruction>**](SyncInstruction.md) | A list of synchronization instructions to be processed in a single batch. | | +|**listKey** | **String** | The name of the column whose values are being synchronized (e.g., 'ulabel_id'). This must be the same for all instructions in the batch. | | + + + diff --git a/docs/BatchSyncResponse.md b/docs/BatchSyncResponse.md new file mode 100644 index 0000000..7b3af56 --- /dev/null +++ b/docs/BatchSyncResponse.md @@ -0,0 +1,17 @@ + + +# BatchSyncResponse + +The detailed response model for a batch synchronization operation, including the lists of records that were processed. + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**status** | **String** | | | +|**deleted** | **List<Map<String, Object>>** | A list of the records that were deleted. | | +|**inserted** | **List<Map<String, Object>>** | A list of the records that were inserted, including server-added audit fields. | | +|**kept** | **Integer** | The number of records that already existed and were kept. | | + + + diff --git a/docs/BatchUpdateBody.md b/docs/BatchUpdateBody.md new file mode 100644 index 0000000..fb4258f --- /dev/null +++ b/docs/BatchUpdateBody.md @@ -0,0 +1,14 @@ + + +# BatchUpdateBody + + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**records** | **List<Map<String, Object>>** | A list of records to update. Each dictionary must contain the key(s) specified in `index_columns` and the fields to be updated. | | +|**indexColumns** | **List<String>** | A list of column names to use as the identifier for matching records to update (e.g., ['uid']). | | + + + diff --git a/docs/Body.md b/docs/Body.md new file mode 100644 index 0000000..2ae97de --- /dev/null +++ b/docs/Body.md @@ -0,0 +1,13 @@ + + +# Body + +A single record as a JSON object or a list of records to upsert. If a record's values for the `conflict_columns` match an existing record, it will be updated. Otherwise, a new record will be inserted. Only the fields you provide will be modified on update. + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| + + + diff --git a/docs/CacheApi.md b/docs/CacheApi.md new file mode 100644 index 0000000..950a5b2 --- /dev/null +++ b/docs/CacheApi.md @@ -0,0 +1,136 @@ +# CacheApi + +All URIs are relative to *https://staging.laminhub.com/api* + +| Method | HTTP request | Description | +|------------- | ------------- | -------------| +| [**getInstanceCacheCacheInstancesInstanceIdGet**](CacheApi.md#getInstanceCacheCacheInstancesInstanceIdGet) | **GET** /cache/instances/{instance_id} | Get Instance Cache | +| [**invalidateInstanceCacheCacheInstancesInstanceIdDelete**](CacheApi.md#invalidateInstanceCacheCacheInstancesInstanceIdDelete) | **DELETE** /cache/instances/{instance_id} | Invalidate Instance Cache | + + + +# **getInstanceCacheCacheInstancesInstanceIdGet** +> Object getInstanceCacheCacheInstancesInstanceIdGet(instanceId, authorization) + +Get Instance Cache + +### 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.CacheApi; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("https://staging.laminhub.com/api"); + + CacheApi apiInstance = new CacheApi(defaultClient); + UUID instanceId = UUID.randomUUID(); // UUID | + String authorization = "authorization_example"; // String | + try { + Object result = apiInstance.getInstanceCacheCacheInstancesInstanceIdGet(instanceId, authorization); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling CacheApi#getInstanceCacheCacheInstancesInstanceIdGet"); + 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**| | | +| **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 | - | + + +# **invalidateInstanceCacheCacheInstancesInstanceIdDelete** +> Object invalidateInstanceCacheCacheInstancesInstanceIdDelete(instanceId, authorization) + +Invalidate Instance Cache + +### 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.CacheApi; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("https://staging.laminhub.com/api"); + + CacheApi apiInstance = new CacheApi(defaultClient); + UUID instanceId = UUID.randomUUID(); // UUID | + String authorization = "authorization_example"; // String | + try { + Object result = apiInstance.invalidateInstanceCacheCacheInstancesInstanceIdDelete(instanceId, authorization); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling CacheApi#invalidateInstanceCacheCacheInstancesInstanceIdDelete"); + 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**| | | +| **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 | - | + diff --git a/docs/CreateTransformRequestBody.md b/docs/CreateTransformRequestBody.md index 6283650..69e7439 100644 --- a/docs/CreateTransformRequestBody.md +++ b/docs/CreateTransformRequestBody.md @@ -8,7 +8,7 @@ | Name | Type | Description | Notes | |------------ | ------------- | ------------- | -------------| |**key** | **String** | | | -|**type** | **String** | | | +|**kind** | **String** | | | |**sourceCode** | **String** | | | |**kwargs** | **Map<String, Object>** | | [optional] | diff --git a/docs/DbServerApi.md b/docs/DbServerApi.md new file mode 100644 index 0000000..56077c0 --- /dev/null +++ b/docs/DbServerApi.md @@ -0,0 +1,140 @@ +# DbServerApi + +All URIs are relative to *https://staging.laminhub.com/api* + +| Method | HTTP request | Description | +|------------- | ------------- | -------------| +| [**checkDbServerAccessDbServerCheckAccessPost**](DbServerApi.md#checkDbServerAccessDbServerCheckAccessPost) | **POST** /db/server/check-access | Check Db Server Access | +| [**registerDbServerDbServerRegisterPost**](DbServerApi.md#registerDbServerDbServerRegisterPost) | **POST** /db/server/register | Register Db Server | + + + +# **checkDbServerAccessDbServerCheckAccessPost** +> Object checkDbServerAccessDbServerCheckAccessPost(name, instanceId, 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.DbServerApi; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("https://staging.laminhub.com/api"); + + DbServerApi apiInstance = new DbServerApi(defaultClient); + String name = "name_example"; // String | + UUID instanceId = UUID.randomUUID(); // UUID | + String authorization = "authorization_example"; // String | + try { + Object result = apiInstance.checkDbServerAccessDbServerCheckAccessPost(name, instanceId, authorization); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling DbServerApi#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**| | | +| **instanceId** | **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 | - | + + +# **registerDbServerDbServerRegisterPost** +> Object registerDbServerDbServerRegisterPost(registerDbServerBody, instanceId, 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.DbServerApi; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("https://staging.laminhub.com/api"); + + DbServerApi apiInstance = new DbServerApi(defaultClient); + RegisterDbServerBody registerDbServerBody = new RegisterDbServerBody(); // RegisterDbServerBody | + UUID instanceId = UUID.randomUUID(); // UUID | + String authorization = "authorization_example"; // String | + try { + Object result = apiInstance.registerDbServerDbServerRegisterPost(registerDbServerBody, instanceId, authorization); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling DbServerApi#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)| | | +| **instanceId** | **UUID**| | [optional] | +| **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 | - | + diff --git a/docs/DefaultApi.md b/docs/DefaultApi.md deleted file mode 100644 index eaec2e7..0000000 --- a/docs/DefaultApi.md +++ /dev/null @@ -1,4945 +0,0 @@ -# DefaultApi - -All URIs are relative to *https://aws.us-east-1.lamin.ai/api* - -| Method | HTTP request | Description | -|------------- | ------------- | -------------| -| [**addCollaboratorAccessV2InstancesInstanceIdCollaboratorsPut**](DefaultApi.md#addCollaboratorAccessV2InstancesInstanceIdCollaboratorsPut) | **PUT** /access_v2/instances/{instance_id}/collaborators | Add Collaborator | -| [**addCollaboratorInstancesInstanceIdCollaboratorsAccountIdPut**](DefaultApi.md#addCollaboratorInstancesInstanceIdCollaboratorsAccountIdPut) | **PUT** /instances/{instance_id}/collaborators/{account_id} | Add Collaborator | -| [**addOrganizationMemberAccessV2OrganizationsOrganizationIdMembersAccountIdPut**](DefaultApi.md#addOrganizationMemberAccessV2OrganizationsOrganizationIdMembersAccountIdPut) | **PUT** /access_v2/organizations/{organization_id}/members/{account_id} | Add Organization Member | -| [**addSpaceCollaboratorAccessV2SpacesSpaceIdCollaboratorsPut**](DefaultApi.md#addSpaceCollaboratorAccessV2SpacesSpaceIdCollaboratorsPut) | **PUT** /access_v2/spaces/{space_id}/collaborators | Add Space Collaborator | -| [**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 | -| [**checkCacheAccessDebugCacheAccessGet**](DefaultApi.md#checkCacheAccessDebugCacheAccessGet) | **GET** /_debug/cache-access | Check Cache Access | -| [**checkDbAccessDebugDbAccessPost**](DefaultApi.md#checkDbAccessDebugDbAccessPost) | **POST** /_debug/db-access | Check Db Access | -| [**checkDbServerAccessDbServerCheckAccessPost**](DefaultApi.md#checkDbServerAccessDbServerCheckAccessPost) | **POST** /db/server/check-access | Check Db Server Access | -| [**checkLambdaAccessDebugLambdaAccessGet**](DefaultApi.md#checkLambdaAccessDebugLambdaAccessGet) | **GET** /_debug/lambda-access | Check Lambda Access | -| [**createArtifactInstancesInstanceIdArtifactsCreatePost**](DefaultApi.md#createArtifactInstancesInstanceIdArtifactsCreatePost) | **POST** /instances/{instance_id}/artifacts/create | Create Artifact | -| [**createInstanceInstancesPut**](DefaultApi.md#createInstanceInstancesPut) | **PUT** /instances | Create Instance | -| [**createRecordsInstancesInstanceIdModulesModuleNameModelNamePut**](DefaultApi.md#createRecordsInstancesInstanceIdModulesModuleNameModelNamePut) | **PUT** /instances/{instance_id}/modules/{module_name}/{model_name} | Create Records | -| [**createSpaceAccessV2SpacesPut**](DefaultApi.md#createSpaceAccessV2SpacesPut) | **PUT** /access_v2/spaces | Create Space | -| [**createTeamAccessV2TeamsPut**](DefaultApi.md#createTeamAccessV2TeamsPut) | **PUT** /access_v2/teams | Create Team | -| [**createTransformInstancesInstanceIdTransformsPost**](DefaultApi.md#createTransformInstancesInstanceIdTransformsPost) | **POST** /instances/{instance_id}/transforms | Create Transform | -| [**deleteCollaboratorInstancesInstanceIdCollaboratorsAccountIdDelete**](DefaultApi.md#deleteCollaboratorInstancesInstanceIdCollaboratorsAccountIdDelete) | **DELETE** /instances/{instance_id}/collaborators/{account_id} | Delete Collaborator | -| [**deleteInstanceInstancesInstanceIdDelete**](DefaultApi.md#deleteInstanceInstancesInstanceIdDelete) | **DELETE** /instances/{instance_id} | Delete Instance | -| [**deleteRecordInstancesInstanceIdModulesModuleNameModelNameUidDelete**](DefaultApi.md#deleteRecordInstancesInstanceIdModulesModuleNameModelNameUidDelete) | **DELETE** /instances/{instance_id}/modules/{module_name}/{model_name}/{uid} | Delete Record | -| [**deleteSpaceAccessV2SpacesSpaceIdDelete**](DefaultApi.md#deleteSpaceAccessV2SpacesSpaceIdDelete) | **DELETE** /access_v2/spaces/{space_id} | Delete Space | -| [**deleteTeamAccessV2TeamsTeamIdDelete**](DefaultApi.md#deleteTeamAccessV2TeamsTeamIdDelete) | **DELETE** /access_v2/teams/{team_id} | Delete Team | -| [**detachLabelInstancesInstanceIdModulesModuleNameModelNameIdLabelFieldLabelIdDelete**](DefaultApi.md#detachLabelInstancesInstanceIdModulesModuleNameModelNameIdLabelFieldLabelIdDelete) | **DELETE** /instances/{instance_id}/modules/{module_name}/{model_name}/{id}/{label_field}/{label_id} | Detach Label | -| [**detachSpaceFromInstanceAccessV2SpacesSpaceIdInstancesInstanceIdDelete**](DefaultApi.md#detachSpaceFromInstanceAccessV2SpacesSpaceIdInstancesInstanceIdDelete) | **DELETE** /access_v2/spaces/{space_id}/instances/{instance_id} | Detach Space From Instance | -| [**getCallerAccountAccountGet**](DefaultApi.md#getCallerAccountAccountGet) | **GET** /account | Get Caller Account | -| [**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 | -| [**getOrganizationAccessV2OrganizationsOrganizationIdGet**](DefaultApi.md#getOrganizationAccessV2OrganizationsOrganizationIdGet) | **GET** /access_v2/organizations/{organization_id} | Get Organization | -| [**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 | -| [**getRelationCountsInstancesInstanceIdModulesModuleNameModelNameIdCountsGet**](DefaultApi.md#getRelationCountsInstancesInstanceIdModulesModuleNameModelNameIdCountsGet) | **GET** /instances/{instance_id}/modules/{module_name}/{model_name}/{id}/counts | Get Relation Counts | -| [**getRelationsInstancesInstanceIdSchemaModuleNameModelNameGet**](DefaultApi.md#getRelationsInstancesInstanceIdSchemaModuleNameModelNameGet) | **GET** /instances/{instance_id}/schema/{module_name}/{model_name} | Get Relations | -| [**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 | -| [**listOrganizationMembersAccessV2OrganizationsOrganizationIdMembersGet**](DefaultApi.md#listOrganizationMembersAccessV2OrganizationsOrganizationIdMembersGet) | **GET** /access_v2/organizations/{organization_id}/members | List Organization Members | -| [**listOrganizationSpacesAccessV2SpacesOrganizationsOrganizationIdGet**](DefaultApi.md#listOrganizationSpacesAccessV2SpacesOrganizationsOrganizationIdGet) | **GET** /access_v2/spaces/organizations/{organization_id} | List Organization Spaces | -| [**listOrganizationTeamsAccessV2TeamsOrganizationsOrganizationIdGet**](DefaultApi.md#listOrganizationTeamsAccessV2TeamsOrganizationsOrganizationIdGet) | **GET** /access_v2/teams/organizations/{organization_id} | List Organization Teams | -| [**listSpaceCollaboratorsAccessV2SpacesSpaceIdCollaboratorsGet**](DefaultApi.md#listSpaceCollaboratorsAccessV2SpacesSpaceIdCollaboratorsGet) | **GET** /access_v2/spaces/{space_id}/collaborators | List Space Collaborators | -| [**listTeamMembersAccessV2TeamsTeamIdMembersGet**](DefaultApi.md#listTeamMembersAccessV2TeamsTeamIdMembersGet) | **GET** /access_v2/teams/{team_id}/members | List Team Members | -| [**moveRecordToSpaceAccessV2SpacesSpaceIdRecordAttachmentsPut**](DefaultApi.md#moveRecordToSpaceAccessV2SpacesSpaceIdRecordAttachmentsPut) | **PUT** /access_v2/spaces/{space_id}/record-attachments | Move Record To Space | -| [**proxyS3S3PathGet**](DefaultApi.md#proxyS3S3PathGet) | **GET** /s3/{path} | Proxy S3 | -| [**proxyS3S3PathGet_0**](DefaultApi.md#proxyS3S3PathGet_0) | **HEAD** /s3/{path} | Proxy S3 | -| [**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 | -| [**removeOrganizationMemberAccessV2OrganizationsOrganizationIdMembersAccountIdDelete**](DefaultApi.md#removeOrganizationMemberAccessV2OrganizationsOrganizationIdMembersAccountIdDelete) | **DELETE** /access_v2/organizations/{organization_id}/members/{account_id} | Remove Organization Member | -| [**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 | -| [**transferOwnershipInstancesInstanceIdOwnerHandlePatch**](DefaultApi.md#transferOwnershipInstancesInstanceIdOwnerHandlePatch) | **PATCH** /instances/{instance_id}/owner/{handle} | Transfer Ownership | -| [**updateCollaboratorAccessV2InstancesInstanceIdCollaboratorsPatch**](DefaultApi.md#updateCollaboratorAccessV2InstancesInstanceIdCollaboratorsPatch) | **PATCH** /access_v2/instances/{instance_id}/collaborators | Update Collaborator | -| [**updateCollaboratorInstancesInstanceIdCollaboratorsAccountIdPatch**](DefaultApi.md#updateCollaboratorInstancesInstanceIdCollaboratorsAccountIdPatch) | **PATCH** /instances/{instance_id}/collaborators/{account_id} | Update Collaborator | -| [**updateOrganizationMemberAccessV2OrganizationsOrganizationIdMembersAccountIdPatch**](DefaultApi.md#updateOrganizationMemberAccessV2OrganizationsOrganizationIdMembersAccountIdPatch) | **PATCH** /access_v2/organizations/{organization_id}/members/{account_id} | Update Organization Member | -| [**updateRecordInstancesInstanceIdModulesModuleNameModelNameUidPatch**](DefaultApi.md#updateRecordInstancesInstanceIdModulesModuleNameModelNameUidPatch) | **PATCH** /instances/{instance_id}/modules/{module_name}/{model_name}/{uid} | Update Record | -| [**updateSpaceAccessV2SpacesSpaceIdPatch**](DefaultApi.md#updateSpaceAccessV2SpacesSpaceIdPatch) | **PATCH** /access_v2/spaces/{space_id} | Update Space | -| [**updateSpaceCollaboratorAccessV2SpacesSpaceIdCollaboratorsPatch**](DefaultApi.md#updateSpaceCollaboratorAccessV2SpacesSpaceIdCollaboratorsPatch) | **PATCH** /access_v2/spaces/{space_id}/collaborators | Update Space Collaborator | -| [**updateTeamAccessV2TeamsTeamIdPatch**](DefaultApi.md#updateTeamAccessV2TeamsTeamIdPatch) | **PATCH** /access_v2/teams/{team_id} | Update Team | -| [**updateTeamMemberAccessV2TeamsTeamIdMembersAccountIdPatch**](DefaultApi.md#updateTeamMemberAccessV2TeamsTeamIdMembersAccountIdPatch) | **PATCH** /access_v2/teams/{team_id}/members/{account_id} | Update Team Member | -| [**uploadArtifactInstancesInstanceIdArtifactsUploadPost**](DefaultApi.md#uploadArtifactInstancesInstanceIdArtifactsUploadPost) | **POST** /instances/{instance_id}/artifacts/upload | Upload Artifact | -| [**upsertRecordsInstancesInstanceIdModulesModuleNameModelNameUpsertPut**](DefaultApi.md#upsertRecordsInstancesInstanceIdModulesModuleNameModelNameUpsertPut) | **PUT** /instances/{instance_id}/modules/{module_name}/{model_name}/upsert | Upsert Records | - - - -# **addCollaboratorAccessV2InstancesInstanceIdCollaboratorsPut** -> Object addCollaboratorAccessV2InstancesInstanceIdCollaboratorsPut(instanceId, addCollaboratorRequestBody, authorization) - -Add Collaborator - -Add a collaborator (account or team) to an instance. Parameters: - **instance_id**: UUID of the instance to add the collaborator to (from URL path) - **body**: Request body containing collaborator details - **account_id**: UUID of the account to add (mutually exclusive with team_id) - **team_id**: UUID of the team to add (mutually exclusive with account_id) - **role**: Role of the collaborator Returns: - **201**: Collaborator added successfully - **400**: Invalid input (e.g., both account_id and team_id provided) - **409**: Collaborator was already added Requires admin access to the instance - -### 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 | - AddCollaboratorRequestBody addCollaboratorRequestBody = new AddCollaboratorRequestBody(); // AddCollaboratorRequestBody | - String authorization = "authorization_example"; // String | - try { - Object result = apiInstance.addCollaboratorAccessV2InstancesInstanceIdCollaboratorsPut(instanceId, addCollaboratorRequestBody, authorization); - System.out.println(result); - } catch (ApiException e) { - System.err.println("Exception when calling DefaultApi#addCollaboratorAccessV2InstancesInstanceIdCollaboratorsPut"); - 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**| | | -| **addCollaboratorRequestBody** | [**AddCollaboratorRequestBody**](AddCollaboratorRequestBody.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 | - | - - -# **addCollaboratorInstancesInstanceIdCollaboratorsAccountIdPut** -> Object addCollaboratorInstancesInstanceIdCollaboratorsAccountIdPut(instanceId, accountId, schemaId, role, authorization) - -Add Collaborator - -### 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 | - UUID accountId = UUID.randomUUID(); // UUID | - UUID schemaId = UUID.randomUUID(); // UUID | - String role = "admin"; // String | - String authorization = "authorization_example"; // String | - try { - Object result = apiInstance.addCollaboratorInstancesInstanceIdCollaboratorsAccountIdPut(instanceId, accountId, schemaId, role, authorization); - System.out.println(result); - } catch (ApiException e) { - System.err.println("Exception when calling DefaultApi#addCollaboratorInstancesInstanceIdCollaboratorsAccountIdPut"); - 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**| | | -| **accountId** | **UUID**| | | -| **schemaId** | **UUID**| | | -| **role** | **String**| | [optional] [default to read] [enum: admin, write, read] | -| **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 | - | - - -# **addOrganizationMemberAccessV2OrganizationsOrganizationIdMembersAccountIdPut** -> Object addOrganizationMemberAccessV2OrganizationsOrganizationIdMembersAccountIdPut(organizationId, accountId, addOrganizationMemberRequestBody, authorization) - -Add Organization Member - -Add a member to an organization. Parameters: - **organization_id**: UUID of the organization to add the member to - **account_id**: UUID of the account to add as a member - **body**: Request body containing member details - **role**: Role of the member in the organization Returns: - **201**: Organization member added 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 organizationId = UUID.randomUUID(); // UUID | - UUID accountId = UUID.randomUUID(); // UUID | - AddOrganizationMemberRequestBody addOrganizationMemberRequestBody = new AddOrganizationMemberRequestBody(); // AddOrganizationMemberRequestBody | - String authorization = "authorization_example"; // String | - try { - Object result = apiInstance.addOrganizationMemberAccessV2OrganizationsOrganizationIdMembersAccountIdPut(organizationId, accountId, addOrganizationMemberRequestBody, authorization); - System.out.println(result); - } catch (ApiException e) { - System.err.println("Exception when calling DefaultApi#addOrganizationMemberAccessV2OrganizationsOrganizationIdMembersAccountIdPut"); - 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 | -|------------- | ------------- | ------------- | -------------| -| **organizationId** | **UUID**| | | -| **accountId** | **UUID**| | | -| **addOrganizationMemberRequestBody** | [**AddOrganizationMemberRequestBody**](AddOrganizationMemberRequestBody.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 | - | - - -# **addSpaceCollaboratorAccessV2SpacesSpaceIdCollaboratorsPut** -> Object addSpaceCollaboratorAccessV2SpacesSpaceIdCollaboratorsPut(spaceId, addSpaceCollaboratorRequestBody, authorization) - -Add Space Collaborator - -Add a collaborator (account or team) to a space. Parameters: - **space_id**: ID of the space to add the collaborator to - **body**: Request body containing collaborator details - **account_id**: UUID of the account to add (mutually exclusive with team_id) - **team_id**: UUID of the team to add (mutually exclusive with account_id) - **role**: Role of the collaborator Returns: - **201**: Collaborator added to space successfully - **400**: Invalid input (e.g., both account_id and team_id provided) - -### 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 spaceId = UUID.randomUUID(); // UUID | - AddSpaceCollaboratorRequestBody addSpaceCollaboratorRequestBody = new AddSpaceCollaboratorRequestBody(); // AddSpaceCollaboratorRequestBody | - String authorization = "authorization_example"; // String | - try { - Object result = apiInstance.addSpaceCollaboratorAccessV2SpacesSpaceIdCollaboratorsPut(spaceId, addSpaceCollaboratorRequestBody, authorization); - System.out.println(result); - } catch (ApiException e) { - System.err.println("Exception when calling DefaultApi#addSpaceCollaboratorAccessV2SpacesSpaceIdCollaboratorsPut"); - 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 | -|------------- | ------------- | ------------- | -------------| -| **spaceId** | **UUID**| | | -| **addSpaceCollaboratorRequestBody** | [**AddSpaceCollaboratorRequestBody**](AddSpaceCollaboratorRequestBody.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 | - | - - -# **addTeamMemberAccessV2TeamsTeamIdMembersAccountIdPut** -> Object addTeamMemberAccessV2TeamsTeamIdMembersAccountIdPut(teamId, accountId, addTeamMemberRequestBody, authorization) - -Add Team Member - -Add a member to a team. Parameters: - **team_id**: UUID of the team to add the member to - **account_id**: UUID of the account to add as a member - **body**: Request body containing member details - **role**: Role of the member in the team Returns: - **201**: Team member added 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 teamId = UUID.randomUUID(); // UUID | - UUID accountId = UUID.randomUUID(); // UUID | - AddTeamMemberRequestBody addTeamMemberRequestBody = new AddTeamMemberRequestBody(); // AddTeamMemberRequestBody | - String authorization = "authorization_example"; // String | - try { - Object result = apiInstance.addTeamMemberAccessV2TeamsTeamIdMembersAccountIdPut(teamId, accountId, addTeamMemberRequestBody, authorization); - System.out.println(result); - } catch (ApiException e) { - System.err.println("Exception when calling DefaultApi#addTeamMemberAccessV2TeamsTeamIdMembersAccountIdPut"); - 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 | -|------------- | ------------- | ------------- | -------------| -| **teamId** | **UUID**| | | -| **accountId** | **UUID**| | | -| **addTeamMemberRequestBody** | [**AddTeamMemberRequestBody**](AddTeamMemberRequestBody.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 | - | - - -# **attachLabelInstancesInstanceIdModulesModuleNameModelNameIdLabelFieldLabelIdPut** -> Object attachLabelInstancesInstanceIdModulesModuleNameModelNameIdLabelFieldLabelIdPut(moduleName, modelName, id, labelField, labelId, instanceId, schemaId, authorization) - -Attach Label - -### 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 moduleName = "moduleName_example"; // String | - String modelName = "artifact"; // String | - Integer id = 56; // Integer | - String labelField = "labelField_example"; // String | - Integer labelId = 56; // Integer | - UUID instanceId = UUID.randomUUID(); // UUID | - UUID schemaId = UUID.randomUUID(); // UUID | - String authorization = "authorization_example"; // String | - try { - Object result = apiInstance.attachLabelInstancesInstanceIdModulesModuleNameModelNameIdLabelFieldLabelIdPut(moduleName, modelName, id, labelField, labelId, instanceId, schemaId, authorization); - System.out.println(result); - } catch (ApiException e) { - System.err.println("Exception when calling DefaultApi#attachLabelInstancesInstanceIdModulesModuleNameModelNameIdLabelFieldLabelIdPut"); - 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 | -|------------- | ------------- | ------------- | -------------| -| **moduleName** | **String**| | | -| **modelName** | **String**| | [enum: artifact, transform, collection] | -| **id** | **Integer**| | | -| **labelField** | **String**| | | -| **labelId** | **Integer**| | | -| **instanceId** | **UUID**| | | -| **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 | - | - - -# **attachSpaceToInstanceAccessV2SpacesSpaceIdInstancesInstanceIdPut** -> Object attachSpaceToInstanceAccessV2SpacesSpaceIdInstancesInstanceIdPut(spaceId, instanceId, authorization) - -Attach Space To Instance - -Attach a space to a specific instance. Parameters: - **space_id**: ID of the space to attach - **instance_id**: UUID of the instance to attach the space to (from URL path) Returns: - **200**: Space attached to instance successfully Requires admin access to the instance - -### 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 spaceId = UUID.randomUUID(); // UUID | - UUID instanceId = UUID.randomUUID(); // UUID | - String authorization = "authorization_example"; // String | - try { - Object result = apiInstance.attachSpaceToInstanceAccessV2SpacesSpaceIdInstancesInstanceIdPut(spaceId, instanceId, authorization); - System.out.println(result); - } catch (ApiException e) { - System.err.println("Exception when calling DefaultApi#attachSpaceToInstanceAccessV2SpacesSpaceIdInstancesInstanceIdPut"); - 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 | -|------------- | ------------- | ------------- | -------------| -| **spaceId** | **UUID**| | | -| **instanceId** | **UUID**| | | -| **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 | - | - - -# **checkCacheAccessDebugCacheAccessGet** -> Object checkCacheAccessDebugCacheAccessGet() - -Check Cache 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); - try { - Object result = apiInstance.checkCacheAccessDebugCacheAccessGet(); - System.out.println(result); - } catch (ApiException e) { - System.err.println("Exception when calling DefaultApi#checkCacheAccessDebugCacheAccessGet"); - 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 | - | - - -# **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 | - | - - -# **checkLambdaAccessDebugLambdaAccessGet** -> Object checkLambdaAccessDebugLambdaAccessGet() - -Check Lambda 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); - try { - Object result = apiInstance.checkLambdaAccessDebugLambdaAccessGet(); - System.out.println(result); - } catch (ApiException e) { - System.err.println("Exception when calling DefaultApi#checkLambdaAccessDebugLambdaAccessGet"); - 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 | - | - - -# **createArtifactInstancesInstanceIdArtifactsCreatePost** -> Object createArtifactInstancesInstanceIdArtifactsCreatePost(instanceId, createArtifactRequestBody, authorization) - -Create Artifact - -### 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 | - CreateArtifactRequestBody createArtifactRequestBody = new CreateArtifactRequestBody(); // CreateArtifactRequestBody | - String authorization = "authorization_example"; // String | - try { - Object result = apiInstance.createArtifactInstancesInstanceIdArtifactsCreatePost(instanceId, createArtifactRequestBody, authorization); - System.out.println(result); - } catch (ApiException e) { - System.err.println("Exception when calling DefaultApi#createArtifactInstancesInstanceIdArtifactsCreatePost"); - 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**| | | -| **createArtifactRequestBody** | [**CreateArtifactRequestBody**](CreateArtifactRequestBody.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 | - | - - -# **createInstanceInstancesPut** -> Object createInstanceInstancesPut(name, storage, schemaStr, dbServerKey, storageUid, authorization) - -Create Instance - -### 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 storage = "create-s3"; // String | - String schemaStr = "schemaStr_example"; // String | - String dbServerKey = "dbServerKey_example"; // String | - String storageUid = "storageUid_example"; // String | - String authorization = "authorization_example"; // String | - try { - Object result = apiInstance.createInstanceInstancesPut(name, storage, schemaStr, dbServerKey, storageUid, authorization); - System.out.println(result); - } catch (ApiException e) { - System.err.println("Exception when calling DefaultApi#createInstanceInstancesPut"); - 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**| | | -| **storage** | **String**| | [optional] [default to create-s3] | -| **schemaStr** | **String**| | [optional] | -| **dbServerKey** | **String**| | [optional] | -| **storageUid** | **String**| | [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 | - | - - -# **createRecordsInstancesInstanceIdModulesModuleNameModelNamePut** -> Object createRecordsInstancesInstanceIdModulesModuleNameModelNamePut(moduleName, modelName, instanceId, body, schemaId, authorization) - -Create Records - -### 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 moduleName = "moduleName_example"; // String | - String modelName = "modelName_example"; // String | - UUID instanceId = UUID.randomUUID(); // UUID | - Object body = null; // Object | - UUID schemaId = UUID.randomUUID(); // UUID | - String authorization = "authorization_example"; // String | - try { - Object result = apiInstance.createRecordsInstancesInstanceIdModulesModuleNameModelNamePut(moduleName, modelName, instanceId, body, schemaId, authorization); - System.out.println(result); - } catch (ApiException e) { - System.err.println("Exception when calling DefaultApi#createRecordsInstancesInstanceIdModulesModuleNameModelNamePut"); - 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 | -|------------- | ------------- | ------------- | -------------| -| **moduleName** | **String**| | | -| **modelName** | **String**| | | -| **instanceId** | **UUID**| | | -| **body** | **Object**| | | -| **schemaId** | **UUID**| | [optional] | -| **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 | - | - - -# **createSpaceAccessV2SpacesPut** -> Object createSpaceAccessV2SpacesPut(createSpaceRequestBody, authorization) - -Create Space - -Create a new space. Parameters: - **body**: Request body containing space details - **name**: Name of the space - **organization_id**: UUID of the organization - **description**: Optional description of the space Returns: - **201**: Space created 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); - CreateSpaceRequestBody createSpaceRequestBody = new CreateSpaceRequestBody(); // CreateSpaceRequestBody | - String authorization = "authorization_example"; // String | - try { - Object result = apiInstance.createSpaceAccessV2SpacesPut(createSpaceRequestBody, authorization); - System.out.println(result); - } catch (ApiException e) { - System.err.println("Exception when calling DefaultApi#createSpaceAccessV2SpacesPut"); - 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 | -|------------- | ------------- | ------------- | -------------| -| **createSpaceRequestBody** | [**CreateSpaceRequestBody**](CreateSpaceRequestBody.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 | - | - - -# **createTeamAccessV2TeamsPut** -> Object createTeamAccessV2TeamsPut(createTeamRequestBody, authorization) - -Create Team - -Create a new team. Parameters: - **body**: Request body containing team details - **name**: Name of the team - **organization_id**: UUID of the organization - **description**: Optional description of the team Returns: - **201**: Team created 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); - CreateTeamRequestBody createTeamRequestBody = new CreateTeamRequestBody(); // CreateTeamRequestBody | - String authorization = "authorization_example"; // String | - try { - Object result = apiInstance.createTeamAccessV2TeamsPut(createTeamRequestBody, authorization); - System.out.println(result); - } catch (ApiException e) { - System.err.println("Exception when calling DefaultApi#createTeamAccessV2TeamsPut"); - 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 | -|------------- | ------------- | ------------- | -------------| -| **createTeamRequestBody** | [**CreateTeamRequestBody**](CreateTeamRequestBody.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 | - | - - -# **createTransformInstancesInstanceIdTransformsPost** -> Object createTransformInstancesInstanceIdTransformsPost(instanceId, createTransformRequestBody, authorization) - -Create Transform - -### 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 | - CreateTransformRequestBody createTransformRequestBody = new CreateTransformRequestBody(); // CreateTransformRequestBody | - String authorization = "authorization_example"; // String | - try { - Object result = apiInstance.createTransformInstancesInstanceIdTransformsPost(instanceId, createTransformRequestBody, authorization); - System.out.println(result); - } catch (ApiException e) { - System.err.println("Exception when calling DefaultApi#createTransformInstancesInstanceIdTransformsPost"); - 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**| | | -| **createTransformRequestBody** | [**CreateTransformRequestBody**](CreateTransformRequestBody.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 | - | - - -# **deleteCollaboratorInstancesInstanceIdCollaboratorsAccountIdDelete** -> Object deleteCollaboratorInstancesInstanceIdCollaboratorsAccountIdDelete(instanceId, accountId, authorization) - -Delete Collaborator - -### 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 | - UUID accountId = UUID.randomUUID(); // UUID | - String authorization = "authorization_example"; // String | - try { - Object result = apiInstance.deleteCollaboratorInstancesInstanceIdCollaboratorsAccountIdDelete(instanceId, accountId, authorization); - System.out.println(result); - } catch (ApiException e) { - System.err.println("Exception when calling DefaultApi#deleteCollaboratorInstancesInstanceIdCollaboratorsAccountIdDelete"); - 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**| | | -| **accountId** | **UUID**| | | -| **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 | - | - - -# **deleteInstanceInstancesInstanceIdDelete** -> Object deleteInstanceInstancesInstanceIdDelete(instanceId, instanceName, authorization) - -Delete Instance - -### 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 instanceName = "instanceName_example"; // String | - String authorization = "authorization_example"; // String | - try { - Object result = apiInstance.deleteInstanceInstancesInstanceIdDelete(instanceId, instanceName, authorization); - System.out.println(result); - } catch (ApiException e) { - System.err.println("Exception when calling DefaultApi#deleteInstanceInstancesInstanceIdDelete"); - 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**| | | -| **instanceName** | **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 | - | - - -# **deleteRecordInstancesInstanceIdModulesModuleNameModelNameUidDelete** -> Object deleteRecordInstancesInstanceIdModulesModuleNameModelNameUidDelete(moduleName, modelName, uid, instanceId, schemaId, authorization) - -Delete Record - -### 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 moduleName = "moduleName_example"; // String | - String modelName = "modelName_example"; // String | - String uid = "uid_example"; // String | - UUID instanceId = UUID.randomUUID(); // UUID | - UUID schemaId = UUID.randomUUID(); // UUID | - String authorization = "authorization_example"; // String | - try { - Object result = apiInstance.deleteRecordInstancesInstanceIdModulesModuleNameModelNameUidDelete(moduleName, modelName, uid, instanceId, schemaId, authorization); - System.out.println(result); - } catch (ApiException e) { - System.err.println("Exception when calling DefaultApi#deleteRecordInstancesInstanceIdModulesModuleNameModelNameUidDelete"); - 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 | -|------------- | ------------- | ------------- | -------------| -| **moduleName** | **String**| | | -| **modelName** | **String**| | | -| **uid** | **String**| | | -| **instanceId** | **UUID**| | | -| **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 | - | - - -# **deleteSpaceAccessV2SpacesSpaceIdDelete** -> Object deleteSpaceAccessV2SpacesSpaceIdDelete(spaceId, authorization) - -Delete Space - -Delete a space and detach it from the instance. Parameters: - **space_id**: ID of the space to delete Returns: - **200**: Space deleted successfully - **404**: Space not found - -### 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 spaceId = UUID.randomUUID(); // UUID | - String authorization = "authorization_example"; // String | - try { - Object result = apiInstance.deleteSpaceAccessV2SpacesSpaceIdDelete(spaceId, authorization); - System.out.println(result); - } catch (ApiException e) { - System.err.println("Exception when calling DefaultApi#deleteSpaceAccessV2SpacesSpaceIdDelete"); - 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 | -|------------- | ------------- | ------------- | -------------| -| **spaceId** | **UUID**| | | -| **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 | - | - - -# **deleteTeamAccessV2TeamsTeamIdDelete** -> Object deleteTeamAccessV2TeamsTeamIdDelete(teamId, authorization) - -Delete Team - -Delete a team. Parameters: - **team_id**: UUID of the team to delete Returns: - **200**: Team deleted 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 teamId = UUID.randomUUID(); // UUID | - String authorization = "authorization_example"; // String | - try { - Object result = apiInstance.deleteTeamAccessV2TeamsTeamIdDelete(teamId, authorization); - System.out.println(result); - } catch (ApiException e) { - System.err.println("Exception when calling DefaultApi#deleteTeamAccessV2TeamsTeamIdDelete"); - 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 | -|------------- | ------------- | ------------- | -------------| -| **teamId** | **UUID**| | | -| **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 | - | - - -# **detachLabelInstancesInstanceIdModulesModuleNameModelNameIdLabelFieldLabelIdDelete** -> Object detachLabelInstancesInstanceIdModulesModuleNameModelNameIdLabelFieldLabelIdDelete(moduleName, modelName, id, labelField, labelId, instanceId, schemaId, authorization) - -Detach Label - -### 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 moduleName = "moduleName_example"; // String | - String modelName = "artifact"; // String | - Integer id = 56; // Integer | - String labelField = "labelField_example"; // String | - Integer labelId = 56; // Integer | - UUID instanceId = UUID.randomUUID(); // UUID | - UUID schemaId = UUID.randomUUID(); // UUID | - String authorization = "authorization_example"; // String | - try { - Object result = apiInstance.detachLabelInstancesInstanceIdModulesModuleNameModelNameIdLabelFieldLabelIdDelete(moduleName, modelName, id, labelField, labelId, instanceId, schemaId, authorization); - System.out.println(result); - } catch (ApiException e) { - System.err.println("Exception when calling DefaultApi#detachLabelInstancesInstanceIdModulesModuleNameModelNameIdLabelFieldLabelIdDelete"); - 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 | -|------------- | ------------- | ------------- | -------------| -| **moduleName** | **String**| | | -| **modelName** | **String**| | [enum: artifact, transform, collection] | -| **id** | **Integer**| | | -| **labelField** | **String**| | | -| **labelId** | **Integer**| | | -| **instanceId** | **UUID**| | | -| **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 | - | - - -# **detachSpaceFromInstanceAccessV2SpacesSpaceIdInstancesInstanceIdDelete** -> Object detachSpaceFromInstanceAccessV2SpacesSpaceIdInstancesInstanceIdDelete(spaceId, instanceId, authorization) - -Detach Space From Instance - -Detach a space from a specific instance. Parameters: - **space_id**: ID of the space to detach - **instance_id**: UUID of the instance to detach the space from (from URL path) Returns: - **200**: Space detached from instance successfully Requires admin access to the instance - -### 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 spaceId = UUID.randomUUID(); // UUID | - UUID instanceId = UUID.randomUUID(); // UUID | - String authorization = "authorization_example"; // String | - try { - Object result = apiInstance.detachSpaceFromInstanceAccessV2SpacesSpaceIdInstancesInstanceIdDelete(spaceId, instanceId, authorization); - System.out.println(result); - } catch (ApiException e) { - System.err.println("Exception when calling DefaultApi#detachSpaceFromInstanceAccessV2SpacesSpaceIdInstancesInstanceIdDelete"); - 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 | -|------------- | ------------- | ------------- | -------------| -| **spaceId** | **UUID**| | | -| **instanceId** | **UUID**| | | -| **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 | - | - - -# **getCallerAccountAccountGet** -> Object getCallerAccountAccountGet(authorization) - -Get Caller Account - -### 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 authorization = "authorization_example"; // String | - try { - Object result = apiInstance.getCallerAccountAccountGet(authorization); - System.out.println(result); - } catch (ApiException e) { - System.err.println("Exception when calling DefaultApi#getCallerAccountAccountGet"); - 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 | -|------------- | ------------- | ------------- | -------------| -| **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 | - | - - -# **getDbTokenAccessV2InstancesInstanceIdDbTokenGet** -> Object getDbTokenAccessV2InstancesInstanceIdDbTokenGet(instanceId, authorization) - -Get Db Token - -Get a database token for the specified instance. This token can be used to authenticate with the instance's database. Parameters: - **instance_id**: UUID of the instance to get the token for (from URL path) Returns: - **200**: Database token retrieved successfully - **token**: The database token - **401**: Unauthorized - -### 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 authorization = "authorization_example"; // String | - try { - Object result = apiInstance.getDbTokenAccessV2InstancesInstanceIdDbTokenGet(instanceId, authorization); - System.out.println(result); - } catch (ApiException e) { - System.err.println("Exception when calling DefaultApi#getDbTokenAccessV2InstancesInstanceIdDbTokenGet"); - 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**| | | -| **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 | - | - - -# **getInstanceStatisticsInstancesInstanceIdStatisticsGet** -> Object getInstanceStatisticsInstancesInstanceIdStatisticsGet(instanceId, q, schemaId, authorization) - -Get Instance Statistics - -### 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 | - List q = Arrays.asList(); // List | In ${module}.${model} format (case-sensitive) - UUID schemaId = UUID.randomUUID(); // UUID | - String authorization = "authorization_example"; // String | - try { - Object result = apiInstance.getInstanceStatisticsInstancesInstanceIdStatisticsGet(instanceId, q, schemaId, authorization); - System.out.println(result); - } catch (ApiException e) { - System.err.println("Exception when calling DefaultApi#getInstanceStatisticsInstancesInstanceIdStatisticsGet"); - 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**| | | -| **q** | [**List<String>**](String.md)| In ${module}.${model} format (case-sensitive) | [optional] | -| **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 | - | - - -# **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) - -Get Non Empty Tables - -### 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 | - UUID schemaId = UUID.randomUUID(); // UUID | - String authorization = "authorization_example"; // String | - try { - Object result = apiInstance.getNonEmptyTablesInstancesInstanceIdNonEmptyTablesGet(instanceId, schemaId, authorization); - System.out.println(result); - } catch (ApiException e) { - System.err.println("Exception when calling DefaultApi#getNonEmptyTablesInstancesInstanceIdNonEmptyTablesGet"); - 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**| | | -| **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 | - | - - -# **getOrganizationAccessV2OrganizationsOrganizationIdGet** -> Object getOrganizationAccessV2OrganizationsOrganizationIdGet(organizationId, authorization) - -Get Organization - -Get details of a specific organization. Parameters: - **organization_id**: UUID of the organization to retrieve Returns: - **200**: Organization details retrieved successfully - **404**: Organization not found - -### 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 organizationId = UUID.randomUUID(); // UUID | - String authorization = "authorization_example"; // String | - try { - Object result = apiInstance.getOrganizationAccessV2OrganizationsOrganizationIdGet(organizationId, authorization); - System.out.println(result); - } catch (ApiException e) { - System.err.println("Exception when calling DefaultApi#getOrganizationAccessV2OrganizationsOrganizationIdGet"); - 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 | -|------------- | ------------- | ------------- | -------------| -| **organizationId** | **UUID**| | | -| **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 | - | - - -# **getRecordInstancesInstanceIdModulesModuleNameModelNameIdOrUidPost** -> Object getRecordInstancesInstanceIdModulesModuleNameModelNameIdOrUidPost(moduleName, modelName, idOrUid, instanceId, limitToMany, includeForeignKeys, schemaId, authorization, getRecordRequestBody) - -Get Record - -### 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 moduleName = "moduleName_example"; // String | - String modelName = "modelName_example"; // String | - String idOrUid = "idOrUid_example"; // String | - UUID instanceId = UUID.randomUUID(); // UUID | - Integer limitToMany = 10; // Integer | - Boolean includeForeignKeys = false; // Boolean | - UUID schemaId = UUID.randomUUID(); // UUID | - String authorization = "authorization_example"; // String | - GetRecordRequestBody getRecordRequestBody = new GetRecordRequestBody(); // GetRecordRequestBody | - try { - Object result = apiInstance.getRecordInstancesInstanceIdModulesModuleNameModelNameIdOrUidPost(moduleName, modelName, idOrUid, instanceId, limitToMany, includeForeignKeys, schemaId, authorization, getRecordRequestBody); - System.out.println(result); - } catch (ApiException e) { - System.err.println("Exception when calling DefaultApi#getRecordInstancesInstanceIdModulesModuleNameModelNameIdOrUidPost"); - 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 | -|------------- | ------------- | ------------- | -------------| -| **moduleName** | **String**| | | -| **modelName** | **String**| | | -| **idOrUid** | **String**| | | -| **instanceId** | **UUID**| | | -| **limitToMany** | **Integer**| | [optional] [default to 10] | -| **includeForeignKeys** | **Boolean**| | [optional] [default to false] | -| **schemaId** | **UUID**| | [optional] | -| **authorization** | **String**| | [optional] | -| **getRecordRequestBody** | [**GetRecordRequestBody**](GetRecordRequestBody.md)| | [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 | - | - - -# **getRecordsInstancesInstanceIdModulesModuleNameModelNamePost** -> Object getRecordsInstancesInstanceIdModulesModuleNameModelNamePost(moduleName, modelName, instanceId, limit, offset, limitToMany, includeForeignKeys, schemaId, authorization, getRecordsRequestBody) - -Get Records - -### 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 moduleName = "moduleName_example"; // String | - String modelName = "modelName_example"; // String | - UUID instanceId = UUID.randomUUID(); // UUID | - Integer limit = 50; // Integer | - Integer offset = 0; // Integer | - Integer limitToMany = 10; // Integer | - Boolean includeForeignKeys = false; // Boolean | - UUID schemaId = UUID.randomUUID(); // UUID | - String authorization = "authorization_example"; // String | - GetRecordsRequestBody getRecordsRequestBody = new GetRecordsRequestBody(); // GetRecordsRequestBody | - try { - Object result = apiInstance.getRecordsInstancesInstanceIdModulesModuleNameModelNamePost(moduleName, modelName, instanceId, limit, offset, limitToMany, includeForeignKeys, schemaId, authorization, getRecordsRequestBody); - System.out.println(result); - } catch (ApiException e) { - System.err.println("Exception when calling DefaultApi#getRecordsInstancesInstanceIdModulesModuleNameModelNamePost"); - 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 | -|------------- | ------------- | ------------- | -------------| -| **moduleName** | **String**| | | -| **modelName** | **String**| | | -| **instanceId** | **UUID**| | | -| **limit** | **Integer**| | [optional] [default to 50] | -| **offset** | **Integer**| | [optional] [default to 0] | -| **limitToMany** | **Integer**| | [optional] [default to 10] | -| **includeForeignKeys** | **Boolean**| | [optional] [default to false] | -| **schemaId** | **UUID**| | [optional] | -| **authorization** | **String**| | [optional] | -| **getRecordsRequestBody** | [**GetRecordsRequestBody**](GetRecordsRequestBody.md)| | [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 | - | - - -# **getRelationCountsInstancesInstanceIdModulesModuleNameModelNameIdCountsGet** -> Object getRelationCountsInstancesInstanceIdModulesModuleNameModelNameIdCountsGet(moduleName, modelName, id, instanceId, schemaId, authorization) - -Get Relation Counts - -### 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 moduleName = "moduleName_example"; // String | - String modelName = "modelName_example"; // String | - Integer id = 56; // Integer | - UUID instanceId = UUID.randomUUID(); // UUID | - UUID schemaId = UUID.randomUUID(); // UUID | - String authorization = "authorization_example"; // String | - try { - Object result = apiInstance.getRelationCountsInstancesInstanceIdModulesModuleNameModelNameIdCountsGet(moduleName, modelName, id, instanceId, schemaId, authorization); - System.out.println(result); - } catch (ApiException e) { - System.err.println("Exception when calling DefaultApi#getRelationCountsInstancesInstanceIdModulesModuleNameModelNameIdCountsGet"); - 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 | -|------------- | ------------- | ------------- | -------------| -| **moduleName** | **String**| | | -| **modelName** | **String**| | | -| **id** | **Integer**| | | -| **instanceId** | **UUID**| | | -| **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 | - | - - -# **getRelationsInstancesInstanceIdSchemaModuleNameModelNameGet** -> Object getRelationsInstancesInstanceIdSchemaModuleNameModelNameGet(moduleName, modelName, instanceId, authorization) - -Get Relations - -### 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 moduleName = "moduleName_example"; // String | - String modelName = "modelName_example"; // String | - UUID instanceId = UUID.randomUUID(); // UUID | - String authorization = "authorization_example"; // String | - try { - Object result = apiInstance.getRelationsInstancesInstanceIdSchemaModuleNameModelNameGet(moduleName, modelName, instanceId, authorization); - System.out.println(result); - } catch (ApiException e) { - System.err.println("Exception when calling DefaultApi#getRelationsInstancesInstanceIdSchemaModuleNameModelNameGet"); - 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 | -|------------- | ------------- | ------------- | -------------| -| **moduleName** | **String**| | | -| **modelName** | **String**| | | -| **instanceId** | **UUID**| | | -| **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 | - | - - -# **getSchemaInstancesInstanceIdSchemaGet** -> Object getSchemaInstancesInstanceIdSchemaGet(instanceId, authorization) - -Get Schema - -### 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 authorization = "authorization_example"; // String | - try { - Object result = apiInstance.getSchemaInstancesInstanceIdSchemaGet(instanceId, authorization); - System.out.println(result); - } catch (ApiException e) { - System.err.println("Exception when calling DefaultApi#getSchemaInstancesInstanceIdSchemaGet"); - 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**| | | -| **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 | - | - - -# **getSpaceAccessV2SpacesSpaceIdGet** -> Object getSpaceAccessV2SpacesSpaceIdGet(spaceId, authorization) - -Get Space - -Get details of a specific space. Parameters: - **space_id**: ID of the space to retrieve Returns: - **200**: Space details retrieved successfully - **404**: Space not found - -### 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 spaceId = UUID.randomUUID(); // UUID | - String authorization = "authorization_example"; // String | - try { - Object result = apiInstance.getSpaceAccessV2SpacesSpaceIdGet(spaceId, authorization); - System.out.println(result); - } catch (ApiException e) { - System.err.println("Exception when calling DefaultApi#getSpaceAccessV2SpacesSpaceIdGet"); - 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 | -|------------- | ------------- | ------------- | -------------| -| **spaceId** | **UUID**| | | -| **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 | - | - - -# **getTeamAccessV2TeamsTeamIdGet** -> Object getTeamAccessV2TeamsTeamIdGet(teamId, authorization) - -Get Team - -Get details of a specific team. Parameters: - **team_id**: UUID of the team to retrieve Returns: - **200**: Team details retrieved successfully - **404**: Team not found - -### 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 teamId = UUID.randomUUID(); // UUID | - String authorization = "authorization_example"; // String | - try { - Object result = apiInstance.getTeamAccessV2TeamsTeamIdGet(teamId, authorization); - System.out.println(result); - } catch (ApiException e) { - System.err.println("Exception when calling DefaultApi#getTeamAccessV2TeamsTeamIdGet"); - 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 | -|------------- | ------------- | ------------- | -------------| -| **teamId** | **UUID**| | | -| **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 | - | - - -# **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) - -Get Values - -### 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 moduleName = "moduleName_example"; // String | - String modelName = "modelName_example"; // String | - String fieldPath = "fieldPath_example"; // String | - UUID instanceId = UUID.randomUUID(); // UUID | - Integer limit = 50; // Integer | - Integer offset = 0; // Integer | - UUID schemaId = UUID.randomUUID(); // UUID | - String authorization = "authorization_example"; // String | - GetValuesRequestBody getValuesRequestBody = new GetValuesRequestBody(); // GetValuesRequestBody | - try { - Object result = apiInstance.getValuesInstancesInstanceIdModulesModuleNameModelNameFieldsFieldPathPost(moduleName, modelName, fieldPath, instanceId, limit, offset, schemaId, authorization, getValuesRequestBody); - System.out.println(result); - } catch (ApiException e) { - System.err.println("Exception when calling DefaultApi#getValuesInstancesInstanceIdModulesModuleNameModelNameFieldsFieldPathPost"); - 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 | -|------------- | ------------- | ------------- | -------------| -| **moduleName** | **String**| | | -| **modelName** | **String**| | | -| **fieldPath** | **String**| | | -| **instanceId** | **UUID**| | | -| **limit** | **Integer**| | [optional] [default to 50] | -| **offset** | **Integer**| | [optional] [default to 0] | -| **schemaId** | **UUID**| | [optional] | -| **authorization** | **String**| | [optional] | -| **getValuesRequestBody** | [**GetValuesRequestBody**](GetValuesRequestBody.md)| | [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 | - | - - -# **grantS3PermissionsStoragesS3BucketNamePermissionsPut** -> Object grantS3PermissionsStoragesS3BucketNamePermissionsPut(bucketName, s3PermissionsRequest, awsAccountId, awsUserName, authorization) - -Grant S3 Permissions - -### 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 bucketName = "bucketName_example"; // String | - S3PermissionsRequest s3PermissionsRequest = new S3PermissionsRequest(); // S3PermissionsRequest | - String awsAccountId = "767398070972"; // String | - String awsUserName = "lamin-manager"; // String | - String authorization = "authorization_example"; // String | - try { - Object result = apiInstance.grantS3PermissionsStoragesS3BucketNamePermissionsPut(bucketName, s3PermissionsRequest, awsAccountId, awsUserName, authorization); - System.out.println(result); - } catch (ApiException e) { - System.err.println("Exception when calling DefaultApi#grantS3PermissionsStoragesS3BucketNamePermissionsPut"); - 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 | -|------------- | ------------- | ------------- | -------------| -| **bucketName** | **String**| | | -| **s3PermissionsRequest** | [**S3PermissionsRequest**](S3PermissionsRequest.md)| | | -| **awsAccountId** | **String**| | [optional] [default to 767398070972] | -| **awsUserName** | **String**| | [optional] [default to lamin-manager] | -| **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 | - | - - -# **groupByInstancesInstanceIdModulesModuleNameModelNameGroupByPost** -> Object groupByInstancesInstanceIdModulesModuleNameModelNameGroupByPost(moduleName, modelName, instanceId, groupByRequestBody, schemaId, authorization) - -Group By - -### 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 moduleName = "moduleName_example"; // String | - String modelName = "modelName_example"; // String | - UUID instanceId = UUID.randomUUID(); // UUID | - GroupByRequestBody groupByRequestBody = new GroupByRequestBody(); // GroupByRequestBody | - UUID schemaId = UUID.randomUUID(); // UUID | - String authorization = "authorization_example"; // String | - try { - Object result = apiInstance.groupByInstancesInstanceIdModulesModuleNameModelNameGroupByPost(moduleName, modelName, instanceId, groupByRequestBody, schemaId, authorization); - System.out.println(result); - } catch (ApiException e) { - System.err.println("Exception when calling DefaultApi#groupByInstancesInstanceIdModulesModuleNameModelNameGroupByPost"); - 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 | -|------------- | ------------- | ------------- | -------------| -| **moduleName** | **String**| | | -| **modelName** | **String**| | | -| **instanceId** | **UUID**| | | -| **groupByRequestBody** | [**GroupByRequestBody**](GroupByRequestBody.md)| | | -| **schemaId** | **UUID**| | [optional] | -| **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 | - | - - -# **listCollaboratorsAccessV2InstancesInstanceIdCollaboratorsGet** -> Object listCollaboratorsAccessV2InstancesInstanceIdCollaboratorsGet(instanceId, authorization) - -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 Requires read access to the instance - -### 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 authorization = "authorization_example"; // String | - try { - Object result = apiInstance.listCollaboratorsAccessV2InstancesInstanceIdCollaboratorsGet(instanceId, authorization); - System.out.println(result); - } catch (ApiException e) { - System.err.println("Exception when calling DefaultApi#listCollaboratorsAccessV2InstancesInstanceIdCollaboratorsGet"); - 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**| | | -| **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 | - | - - -# **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) - -List Instance Spaces - -List all spaces attached to an instance. Parameters: - **instance_id**: UUID of the instance to list spaces for (from URL path) Returns: - **200**: List of spaces attached to the instance retrieved 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 | - String authorization = "authorization_example"; // String | - try { - Object result = apiInstance.listInstanceSpacesAccessV2SpacesInstancesInstanceIdGet(instanceId, authorization); - System.out.println(result); - } catch (ApiException e) { - System.err.println("Exception when calling DefaultApi#listInstanceSpacesAccessV2SpacesInstancesInstanceIdGet"); - 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**| | | -| **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 | - | - - -# **listInstancesUsingSpaceAccessV2SpacesSpaceIdInstancesGet** -> Object listInstancesUsingSpaceAccessV2SpacesSpaceIdInstancesGet(spaceId, authorization) - -List Instances Using Space - -List all instances that have this space attached. Parameters: - **space_id**: ID of the space to check Returns: - **200**: List of instances using the space retrieved 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 spaceId = UUID.randomUUID(); // UUID | - String authorization = "authorization_example"; // String | - try { - Object result = apiInstance.listInstancesUsingSpaceAccessV2SpacesSpaceIdInstancesGet(spaceId, authorization); - System.out.println(result); - } catch (ApiException e) { - System.err.println("Exception when calling DefaultApi#listInstancesUsingSpaceAccessV2SpacesSpaceIdInstancesGet"); - 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 | -|------------- | ------------- | ------------- | -------------| -| **spaceId** | **UUID**| | | -| **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 | - | - - -# **listOrganizationMembersAccessV2OrganizationsOrganizationIdMembersGet** -> Object listOrganizationMembersAccessV2OrganizationsOrganizationIdMembersGet(organizationId, authorization) - -List Organization Members - -List all members of an organization. Parameters: - **organization_id**: UUID of the organization to list members for Returns: - **200**: List of organization members retrieved 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 organizationId = UUID.randomUUID(); // UUID | - String authorization = "authorization_example"; // String | - try { - Object result = apiInstance.listOrganizationMembersAccessV2OrganizationsOrganizationIdMembersGet(organizationId, authorization); - System.out.println(result); - } catch (ApiException e) { - System.err.println("Exception when calling DefaultApi#listOrganizationMembersAccessV2OrganizationsOrganizationIdMembersGet"); - 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 | -|------------- | ------------- | ------------- | -------------| -| **organizationId** | **UUID**| | | -| **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 | - | - - -# **listOrganizationSpacesAccessV2SpacesOrganizationsOrganizationIdGet** -> Object listOrganizationSpacesAccessV2SpacesOrganizationsOrganizationIdGet(organizationId, authorization) - -List Organization Spaces - -List all spaces in an organization. Parameters: - **organization_id**: UUID of the organization to list spaces for Returns: - **200**: List of spaces retrieved 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 organizationId = UUID.randomUUID(); // UUID | - String authorization = "authorization_example"; // String | - try { - Object result = apiInstance.listOrganizationSpacesAccessV2SpacesOrganizationsOrganizationIdGet(organizationId, authorization); - System.out.println(result); - } catch (ApiException e) { - System.err.println("Exception when calling DefaultApi#listOrganizationSpacesAccessV2SpacesOrganizationsOrganizationIdGet"); - 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 | -|------------- | ------------- | ------------- | -------------| -| **organizationId** | **UUID**| | | -| **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 | - | - - -# **listOrganizationTeamsAccessV2TeamsOrganizationsOrganizationIdGet** -> Object listOrganizationTeamsAccessV2TeamsOrganizationsOrganizationIdGet(organizationId, authorization) - -List Organization Teams - -List all teams in an organization. Parameters: - **organization_id**: UUID of the organization to list teams for Returns: - **200**: List of teams retrieved 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 organizationId = UUID.randomUUID(); // UUID | - String authorization = "authorization_example"; // String | - try { - Object result = apiInstance.listOrganizationTeamsAccessV2TeamsOrganizationsOrganizationIdGet(organizationId, authorization); - System.out.println(result); - } catch (ApiException e) { - System.err.println("Exception when calling DefaultApi#listOrganizationTeamsAccessV2TeamsOrganizationsOrganizationIdGet"); - 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 | -|------------- | ------------- | ------------- | -------------| -| **organizationId** | **UUID**| | | -| **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 | - | - - -# **listSpaceCollaboratorsAccessV2SpacesSpaceIdCollaboratorsGet** -> Object listSpaceCollaboratorsAccessV2SpacesSpaceIdCollaboratorsGet(spaceId, authorization) - -List Space Collaborators - -List all collaborators of a space. Parameters: - **space_id**: ID of the space to list collaborators for Returns: - **200**: List of space collaborators retrieved 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 spaceId = UUID.randomUUID(); // UUID | - String authorization = "authorization_example"; // String | - try { - Object result = apiInstance.listSpaceCollaboratorsAccessV2SpacesSpaceIdCollaboratorsGet(spaceId, authorization); - System.out.println(result); - } catch (ApiException e) { - System.err.println("Exception when calling DefaultApi#listSpaceCollaboratorsAccessV2SpacesSpaceIdCollaboratorsGet"); - 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 | -|------------- | ------------- | ------------- | -------------| -| **spaceId** | **UUID**| | | -| **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 | - | - - -# **listTeamMembersAccessV2TeamsTeamIdMembersGet** -> Object listTeamMembersAccessV2TeamsTeamIdMembersGet(teamId, authorization) - -List Team Members - -List all members of a team. Parameters: - **team_id**: UUID of the team to list members for Returns: - **200**: List of team members retrieved 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 teamId = UUID.randomUUID(); // UUID | - String authorization = "authorization_example"; // String | - try { - Object result = apiInstance.listTeamMembersAccessV2TeamsTeamIdMembersGet(teamId, authorization); - System.out.println(result); - } catch (ApiException e) { - System.err.println("Exception when calling DefaultApi#listTeamMembersAccessV2TeamsTeamIdMembersGet"); - 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 | -|------------- | ------------- | ------------- | -------------| -| **teamId** | **UUID**| | | -| **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 | - | - - -# **moveRecordToSpaceAccessV2SpacesSpaceIdRecordAttachmentsPut** -> Object moveRecordToSpaceAccessV2SpacesSpaceIdRecordAttachmentsPut(instanceDbSpaceId, attachSpaceToRecordRequestBody, instanceId, schemaId, authorization) - -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 - -### 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); - 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(instanceDbSpaceId, attachSpaceToRecordRequestBody, instanceId, schemaId, authorization); - System.out.println(result); - } catch (ApiException e) { - System.err.println("Exception when calling DefaultApi#moveRecordToSpaceAccessV2SpacesSpaceIdRecordAttachmentsPut"); - 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 | -|------------- | ------------- | ------------- | -------------| -| **instanceDbSpaceId** | **Integer**| | | -| **attachSpaceToRecordRequestBody** | [**AttachSpaceToRecordRequestBody**](AttachSpaceToRecordRequestBody.md)| | | -| **instanceId** | **UUID**| | [optional] | -| **schemaId** | **UUID**| | [optional] | -| **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 | - | - - -# **proxyS3S3PathGet** -> Object proxyS3S3PathGet(path) - -Proxy S3 - -### 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 path = "path_example"; // String | - try { - Object result = apiInstance.proxyS3S3PathGet(path); - System.out.println(result); - } catch (ApiException e) { - System.err.println("Exception when calling DefaultApi#proxyS3S3PathGet"); - 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 | -|------------- | ------------- | ------------- | -------------| -| **path** | **String**| | | - -### 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 | - | - - -# **proxyS3S3PathGet_0** -> Object proxyS3S3PathGet_0(path) - -Proxy S3 - -### 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 path = "path_example"; // String | - try { - Object result = apiInstance.proxyS3S3PathGet_0(path); - System.out.println(result); - } catch (ApiException e) { - System.err.println("Exception when calling DefaultApi#proxyS3S3PathGet_0"); - 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 | -|------------- | ------------- | ------------- | -------------| -| **path** | **String**| | | - -### 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 | - | - - -# **proxyS3S3PathGet_1** -> Object proxyS3S3PathGet_1(path) - -Proxy S3 - -### 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 path = "path_example"; // String | - try { - Object result = apiInstance.proxyS3S3PathGet_1(path); - System.out.println(result); - } catch (ApiException e) { - System.err.println("Exception when calling DefaultApi#proxyS3S3PathGet_1"); - 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 | -|------------- | ------------- | ------------- | -------------| -| **path** | **String**| | | - -### 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 | - | - - -# **proxyS3S3PathGet_2** -> Object proxyS3S3PathGet_2(path) - -Proxy S3 - -### 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 path = "path_example"; // String | - try { - Object result = apiInstance.proxyS3S3PathGet_2(path); - System.out.println(result); - } catch (ApiException e) { - System.err.println("Exception when calling DefaultApi#proxyS3S3PathGet_2"); - 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 | -|------------- | ------------- | ------------- | -------------| -| **path** | **String**| | | - -### 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 | - | - - -# **proxyS3S3PathGet_3** -> Object proxyS3S3PathGet_3(path) - -Proxy S3 - -### 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 path = "path_example"; // String | - try { - Object result = apiInstance.proxyS3S3PathGet_3(path); - System.out.println(result); - } catch (ApiException e) { - System.err.println("Exception when calling DefaultApi#proxyS3S3PathGet_3"); - 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 | -|------------- | ------------- | ------------- | -------------| -| **path** | **String**| | | - -### 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 | - | - - -# **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) Requires admin access to the instance - -### 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 | - UUID accountId = UUID.randomUUID(); // UUID | - UUID teamId = UUID.randomUUID(); // UUID | - String authorization = "authorization_example"; // String | - try { - Object result = apiInstance.removeCollaboratorAccessV2InstancesInstanceIdCollaboratorsDelete(instanceId, accountId, teamId, authorization); - System.out.println(result); - } catch (ApiException e) { - System.err.println("Exception when calling DefaultApi#removeCollaboratorAccessV2InstancesInstanceIdCollaboratorsDelete"); - 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**| | | -| **accountId** | **UUID**| | [optional] | -| **teamId** | **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 | - | - - -# **removeOrganizationMemberAccessV2OrganizationsOrganizationIdMembersAccountIdDelete** -> Object removeOrganizationMemberAccessV2OrganizationsOrganizationIdMembersAccountIdDelete(organizationId, accountId, authorization) - -Remove Organization Member - -Remove a member from an organization. Parameters: - **organization_id**: UUID of the organization to remove the member from - **account_id**: UUID of the account to remove from the organization Returns: - **200**: Organization member removed successfully - **404**: Member not found in organization - -### 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 organizationId = UUID.randomUUID(); // UUID | - UUID accountId = UUID.randomUUID(); // UUID | - String authorization = "authorization_example"; // String | - try { - Object result = apiInstance.removeOrganizationMemberAccessV2OrganizationsOrganizationIdMembersAccountIdDelete(organizationId, accountId, authorization); - System.out.println(result); - } catch (ApiException e) { - System.err.println("Exception when calling DefaultApi#removeOrganizationMemberAccessV2OrganizationsOrganizationIdMembersAccountIdDelete"); - 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 | -|------------- | ------------- | ------------- | -------------| -| **organizationId** | **UUID**| | | -| **accountId** | **UUID**| | | -| **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 | - | - - -# **removeSpaceCollaboratorAccessV2SpacesSpaceIdCollaboratorsDelete** -> Object removeSpaceCollaboratorAccessV2SpacesSpaceIdCollaboratorsDelete(spaceId, accountId, teamId, authorization) - -Remove Space Collaborator - -Remove a collaborator (account or team) from a space. Parameters: - **space_id**: ID of the space to remove the collaborator from - **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 from space successfully - **400**: Invalid input (e.g., both account_id and team_id provided or neither provided) - -### 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 spaceId = UUID.randomUUID(); // UUID | - UUID accountId = UUID.randomUUID(); // UUID | - UUID teamId = UUID.randomUUID(); // UUID | - String authorization = "authorization_example"; // String | - try { - Object result = apiInstance.removeSpaceCollaboratorAccessV2SpacesSpaceIdCollaboratorsDelete(spaceId, accountId, teamId, authorization); - System.out.println(result); - } catch (ApiException e) { - System.err.println("Exception when calling DefaultApi#removeSpaceCollaboratorAccessV2SpacesSpaceIdCollaboratorsDelete"); - 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 | -|------------- | ------------- | ------------- | -------------| -| **spaceId** | **UUID**| | | -| **accountId** | **UUID**| | [optional] | -| **teamId** | **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 | - | - - -# **removeTeamMemberAccessV2TeamsTeamIdMembersAccountIdDelete** -> Object removeTeamMemberAccessV2TeamsTeamIdMembersAccountIdDelete(teamId, accountId, authorization) - -Remove Team Member - -Remove a member from a team. Parameters: - **team_id**: UUID of the team to remove the member from - **account_id**: UUID of the account to remove from the team Returns: - **200**: Team member removed successfully - **404**: Member not found in team - -### 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 teamId = UUID.randomUUID(); // UUID | - UUID accountId = UUID.randomUUID(); // UUID | - String authorization = "authorization_example"; // String | - try { - Object result = apiInstance.removeTeamMemberAccessV2TeamsTeamIdMembersAccountIdDelete(teamId, accountId, authorization); - System.out.println(result); - } catch (ApiException e) { - System.err.println("Exception when calling DefaultApi#removeTeamMemberAccessV2TeamsTeamIdMembersAccountIdDelete"); - 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 | -|------------- | ------------- | ------------- | -------------| -| **teamId** | **UUID**| | | -| **accountId** | **UUID**| | | -| **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 | - | - - -# **transferOwnershipInstancesInstanceIdOwnerHandlePatch** -> Object transferOwnershipInstancesInstanceIdOwnerHandlePatch(handle, instanceId, schemaId, authorization) - -Transfer Ownership - -### 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 handle = "handle_example"; // String | - UUID instanceId = UUID.randomUUID(); // UUID | - UUID schemaId = UUID.randomUUID(); // UUID | - String authorization = "authorization_example"; // String | - try { - Object result = apiInstance.transferOwnershipInstancesInstanceIdOwnerHandlePatch(handle, instanceId, schemaId, authorization); - System.out.println(result); - } catch (ApiException e) { - System.err.println("Exception when calling DefaultApi#transferOwnershipInstancesInstanceIdOwnerHandlePatch"); - 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 | -|------------- | ------------- | ------------- | -------------| -| **handle** | **String**| | | -| **instanceId** | **UUID**| | | -| **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 | - | - - -# **updateCollaboratorAccessV2InstancesInstanceIdCollaboratorsPatch** -> Object updateCollaboratorAccessV2InstancesInstanceIdCollaboratorsPatch(instanceId, updateCollaboratorRequestBody, authorization) - -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) Requires admin access to the instance - -### 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 | - UpdateCollaboratorRequestBody updateCollaboratorRequestBody = new UpdateCollaboratorRequestBody(); // UpdateCollaboratorRequestBody | - String authorization = "authorization_example"; // String | - try { - Object result = apiInstance.updateCollaboratorAccessV2InstancesInstanceIdCollaboratorsPatch(instanceId, updateCollaboratorRequestBody, authorization); - System.out.println(result); - } catch (ApiException e) { - System.err.println("Exception when calling DefaultApi#updateCollaboratorAccessV2InstancesInstanceIdCollaboratorsPatch"); - 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**| | | -| **updateCollaboratorRequestBody** | [**UpdateCollaboratorRequestBody**](UpdateCollaboratorRequestBody.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 | - | - - -# **updateCollaboratorInstancesInstanceIdCollaboratorsAccountIdPatch** -> Object updateCollaboratorInstancesInstanceIdCollaboratorsAccountIdPatch(instanceId, accountId, role, authorization) - -Update Collaborator - -### 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 | - UUID accountId = UUID.randomUUID(); // UUID | - String role = "admin"; // String | - String authorization = "authorization_example"; // String | - try { - Object result = apiInstance.updateCollaboratorInstancesInstanceIdCollaboratorsAccountIdPatch(instanceId, accountId, role, authorization); - System.out.println(result); - } catch (ApiException e) { - System.err.println("Exception when calling DefaultApi#updateCollaboratorInstancesInstanceIdCollaboratorsAccountIdPatch"); - 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**| | | -| **accountId** | **UUID**| | | -| **role** | **String**| | [enum: admin, write, read] | -| **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 | - | - - -# **updateOrganizationMemberAccessV2OrganizationsOrganizationIdMembersAccountIdPatch** -> Object updateOrganizationMemberAccessV2OrganizationsOrganizationIdMembersAccountIdPatch(organizationId, accountId, updateOrganizationMemberRequestBody, authorization) - -Update Organization Member - -Update an organization member's details. Parameters: - **organization_id**: UUID of the organization the member belongs to - **account_id**: UUID of the account to update - **body**: Request body containing updated member details - **role**: Role of the member in the organization Returns: - **200**: Organization member updated successfully - **404**: Member not found in organization - -### 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 organizationId = UUID.randomUUID(); // UUID | - UUID accountId = UUID.randomUUID(); // UUID | - UpdateOrganizationMemberRequestBody updateOrganizationMemberRequestBody = new UpdateOrganizationMemberRequestBody(); // UpdateOrganizationMemberRequestBody | - String authorization = "authorization_example"; // String | - try { - Object result = apiInstance.updateOrganizationMemberAccessV2OrganizationsOrganizationIdMembersAccountIdPatch(organizationId, accountId, updateOrganizationMemberRequestBody, authorization); - System.out.println(result); - } catch (ApiException e) { - System.err.println("Exception when calling DefaultApi#updateOrganizationMemberAccessV2OrganizationsOrganizationIdMembersAccountIdPatch"); - 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 | -|------------- | ------------- | ------------- | -------------| -| **organizationId** | **UUID**| | | -| **accountId** | **UUID**| | | -| **updateOrganizationMemberRequestBody** | [**UpdateOrganizationMemberRequestBody**](UpdateOrganizationMemberRequestBody.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 | - | - - -# **updateRecordInstancesInstanceIdModulesModuleNameModelNameUidPatch** -> Object updateRecordInstancesInstanceIdModulesModuleNameModelNameUidPatch(moduleName, modelName, uid, instanceId, body, schemaId, authorization) - -Update Record - -### 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 moduleName = "moduleName_example"; // String | - String modelName = "modelName_example"; // String | - String uid = "uid_example"; // String | - UUID instanceId = UUID.randomUUID(); // UUID | - Object body = null; // Object | - UUID schemaId = UUID.randomUUID(); // UUID | - String authorization = "authorization_example"; // String | - try { - Object result = apiInstance.updateRecordInstancesInstanceIdModulesModuleNameModelNameUidPatch(moduleName, modelName, uid, instanceId, body, schemaId, authorization); - System.out.println(result); - } catch (ApiException e) { - System.err.println("Exception when calling DefaultApi#updateRecordInstancesInstanceIdModulesModuleNameModelNameUidPatch"); - 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 | -|------------- | ------------- | ------------- | -------------| -| **moduleName** | **String**| | | -| **modelName** | **String**| | | -| **uid** | **String**| | | -| **instanceId** | **UUID**| | | -| **body** | **Object**| | | -| **schemaId** | **UUID**| | [optional] | -| **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 | - | - - -# **updateSpaceAccessV2SpacesSpaceIdPatch** -> Object updateSpaceAccessV2SpacesSpaceIdPatch(spaceId, updateSpaceRequestBody, authorization) - -Update Space - -Update a space's details. Parameters: - **space_id**: ID of the space to update - **body**: Request body containing updated space details - **name**: Optional new name for the space - **description**: Optional new description for the space Returns: - **200**: Space updated 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 spaceId = UUID.randomUUID(); // UUID | - UpdateSpaceRequestBody updateSpaceRequestBody = new UpdateSpaceRequestBody(); // UpdateSpaceRequestBody | - String authorization = "authorization_example"; // String | - try { - Object result = apiInstance.updateSpaceAccessV2SpacesSpaceIdPatch(spaceId, updateSpaceRequestBody, authorization); - System.out.println(result); - } catch (ApiException e) { - System.err.println("Exception when calling DefaultApi#updateSpaceAccessV2SpacesSpaceIdPatch"); - 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 | -|------------- | ------------- | ------------- | -------------| -| **spaceId** | **UUID**| | | -| **updateSpaceRequestBody** | [**UpdateSpaceRequestBody**](UpdateSpaceRequestBody.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 | - | - - -# **updateSpaceCollaboratorAccessV2SpacesSpaceIdCollaboratorsPatch** -> Object updateSpaceCollaboratorAccessV2SpacesSpaceIdCollaboratorsPatch(spaceId, updateSpaceCollaboratorRequestBody, authorization) - -Update Space Collaborator - -Update a collaborator's permissions in a space. Parameters: - **space_id**: ID of the space to update the collaborator in - **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 in space - -### 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 spaceId = UUID.randomUUID(); // UUID | - UpdateSpaceCollaboratorRequestBody updateSpaceCollaboratorRequestBody = new UpdateSpaceCollaboratorRequestBody(); // UpdateSpaceCollaboratorRequestBody | - String authorization = "authorization_example"; // String | - try { - Object result = apiInstance.updateSpaceCollaboratorAccessV2SpacesSpaceIdCollaboratorsPatch(spaceId, updateSpaceCollaboratorRequestBody, authorization); - System.out.println(result); - } catch (ApiException e) { - System.err.println("Exception when calling DefaultApi#updateSpaceCollaboratorAccessV2SpacesSpaceIdCollaboratorsPatch"); - 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 | -|------------- | ------------- | ------------- | -------------| -| **spaceId** | **UUID**| | | -| **updateSpaceCollaboratorRequestBody** | [**UpdateSpaceCollaboratorRequestBody**](UpdateSpaceCollaboratorRequestBody.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 | - | - - -# **updateTeamAccessV2TeamsTeamIdPatch** -> Object updateTeamAccessV2TeamsTeamIdPatch(teamId, updateTeamRequestBody, authorization) - -Update Team - -Update a team's details. Parameters: - **team_id**: UUID of the team to update - **body**: Request body containing updated team details - **name**: Optional new name for the team - **description**: Optional new description for the team Returns: - **200**: Team updated 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 teamId = UUID.randomUUID(); // UUID | - UpdateTeamRequestBody updateTeamRequestBody = new UpdateTeamRequestBody(); // UpdateTeamRequestBody | - String authorization = "authorization_example"; // String | - try { - Object result = apiInstance.updateTeamAccessV2TeamsTeamIdPatch(teamId, updateTeamRequestBody, authorization); - System.out.println(result); - } catch (ApiException e) { - System.err.println("Exception when calling DefaultApi#updateTeamAccessV2TeamsTeamIdPatch"); - 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 | -|------------- | ------------- | ------------- | -------------| -| **teamId** | **UUID**| | | -| **updateTeamRequestBody** | [**UpdateTeamRequestBody**](UpdateTeamRequestBody.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 | - | - - -# **updateTeamMemberAccessV2TeamsTeamIdMembersAccountIdPatch** -> Object updateTeamMemberAccessV2TeamsTeamIdMembersAccountIdPatch(teamId, accountId, updateTeamMemberRequestBody, authorization) - -Update Team Member - -Update a team member's details. Parameters: - **team_id**: UUID of the team the member belongs to - **account_id**: UUID of the account to update - **body**: Request body containing updated member details - **role**: Role of the member in the team Returns: - **200**: Team member updated successfully - **404**: Member not found in team - -### 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 teamId = UUID.randomUUID(); // UUID | - UUID accountId = UUID.randomUUID(); // UUID | - UpdateTeamMemberRequestBody updateTeamMemberRequestBody = new UpdateTeamMemberRequestBody(); // UpdateTeamMemberRequestBody | - String authorization = "authorization_example"; // String | - try { - Object result = apiInstance.updateTeamMemberAccessV2TeamsTeamIdMembersAccountIdPatch(teamId, accountId, updateTeamMemberRequestBody, authorization); - System.out.println(result); - } catch (ApiException e) { - System.err.println("Exception when calling DefaultApi#updateTeamMemberAccessV2TeamsTeamIdMembersAccountIdPatch"); - 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 | -|------------- | ------------- | ------------- | -------------| -| **teamId** | **UUID**| | | -| **accountId** | **UUID**| | | -| **updateTeamMemberRequestBody** | [**UpdateTeamMemberRequestBody**](UpdateTeamMemberRequestBody.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 | - | - - -# **uploadArtifactInstancesInstanceIdArtifactsUploadPost** -> Object uploadArtifactInstancesInstanceIdArtifactsUploadPost(instanceId, _file, authorization, kwargs) - -Upload Artifact - -### 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 | - File _file = new File("/path/to/file"); // File | - String authorization = "authorization_example"; // String | - String kwargs = "kwargs_example"; // String | - try { - Object result = apiInstance.uploadArtifactInstancesInstanceIdArtifactsUploadPost(instanceId, _file, authorization, kwargs); - System.out.println(result); - } catch (ApiException e) { - System.err.println("Exception when calling DefaultApi#uploadArtifactInstancesInstanceIdArtifactsUploadPost"); - 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**| | | -| **_file** | **File**| | | -| **authorization** | **String**| | [optional] | -| **kwargs** | **String**| | [optional] | - -### Return type - -**Object** - -### Authorization - -No authorization required - -### HTTP request headers - - - **Content-Type**: multipart/form-data - - **Accept**: application/json - -### HTTP response details -| Status code | Description | Response headers | -|-------------|-------------|------------------| -| **200** | Successful Response | - | -| **422** | Validation Error | - | - - -# **upsertRecordsInstancesInstanceIdModulesModuleNameModelNameUpsertPut** -> Object upsertRecordsInstancesInstanceIdModulesModuleNameModelNameUpsertPut(moduleName, modelName, instanceId, body, conflictColumns, schemaId, authorization) - -Upsert Records - -### 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 moduleName = "moduleName_example"; // String | - String modelName = "modelName_example"; // String | - UUID instanceId = UUID.randomUUID(); // UUID | - Object body = null; // Object | - List conflictColumns = Arrays.asList(); // List | - UUID schemaId = UUID.randomUUID(); // UUID | - String authorization = "authorization_example"; // String | - try { - Object result = apiInstance.upsertRecordsInstancesInstanceIdModulesModuleNameModelNameUpsertPut(moduleName, modelName, instanceId, body, conflictColumns, schemaId, authorization); - System.out.println(result); - } catch (ApiException e) { - System.err.println("Exception when calling DefaultApi#upsertRecordsInstancesInstanceIdModulesModuleNameModelNameUpsertPut"); - 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 | -|------------- | ------------- | ------------- | -------------| -| **moduleName** | **String**| | | -| **modelName** | **String**| | | -| **instanceId** | **UUID**| | | -| **body** | **Object**| | | -| **conflictColumns** | [**List<String>**](String.md)| | [optional] | -| **schemaId** | **UUID**| | [optional] | -| **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 | - | - diff --git a/docs/DbUrlRequest.md b/docs/ErrorDetail.md similarity index 72% rename from docs/DbUrlRequest.md rename to docs/ErrorDetail.md index cecd140..9d28adc 100644 --- a/docs/DbUrlRequest.md +++ b/docs/ErrorDetail.md @@ -1,13 +1,13 @@ -# DbUrlRequest +# ErrorDetail ## Properties | Name | Type | Description | Notes | |------------ | ------------- | ------------- | -------------| -|**dbUrl** | **String** | | | +|**detail** | **String** | | | diff --git a/docs/ExecuteFunctionRequestBody.md b/docs/ExecuteFunctionRequestBody.md new file mode 100644 index 0000000..f418e34 --- /dev/null +++ b/docs/ExecuteFunctionRequestBody.md @@ -0,0 +1,15 @@ + + +# ExecuteFunctionRequestBody + + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**transformUid** | **String** | | | +|**functionName** | **String** | | | +|**functionKwargs** | **Map<String, Object>** | | | + + + diff --git a/docs/ExportRecordsRequestBody.md b/docs/ExportRecordsRequestBody.md new file mode 100644 index 0000000..71ef509 --- /dev/null +++ b/docs/ExportRecordsRequestBody.md @@ -0,0 +1,13 @@ + + +# ExportRecordsRequestBody + + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**kwargs** | **Map<String, Object>** | | [optional] | + + + diff --git a/docs/GetRecordsRequestBody.md b/docs/GetRecordsRequestBody.md index aaa765f..f7b5e5d 100644 --- a/docs/GetRecordsRequestBody.md +++ b/docs/GetRecordsRequestBody.md @@ -11,6 +11,7 @@ |**filter** | **Map<String, Object>** | | [optional] | |**orderBy** | [**List<OrderByColumn>**](OrderByColumn.md) | | [optional] | |**search** | **String** | | [optional] | +|**searchIn** | **List<String>** | | [optional] | diff --git a/docs/GetValuesRequestBody.md b/docs/GetValuesRequestBody.md index 37abda4..465d63b 100644 --- a/docs/GetValuesRequestBody.md +++ b/docs/GetValuesRequestBody.md @@ -10,6 +10,7 @@ |**filter** | **Map<String, Object>** | | [optional] | |**orderBy** | [**List<OrderByColumn>**](OrderByColumn.md) | | [optional] | |**search** | **String** | | [optional] | +|**searchIn** | **List<String>** | | [optional] | diff --git a/docs/HealthChecksApi.md b/docs/HealthChecksApi.md new file mode 100644 index 0000000..dea890d --- /dev/null +++ b/docs/HealthChecksApi.md @@ -0,0 +1,65 @@ +# HealthChecksApi + +All URIs are relative to *https://staging.laminhub.com/api* + +| Method | HTTP request | Description | +|------------- | ------------- | -------------| +| [**healthCheckHealthGet**](HealthChecksApi.md#healthCheckHealthGet) | **GET** /health | Health Check | + + + +# **healthCheckHealthGet** +> Object healthCheckHealthGet() + +Health Check + +### 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.HealthChecksApi; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("https://staging.laminhub.com/api"); + + HealthChecksApi apiInstance = new HealthChecksApi(defaultClient); + try { + Object result = apiInstance.healthCheckHealthGet(); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling HealthChecksApi#healthCheckHealthGet"); + 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 | - | + diff --git a/docs/InstanceArtifactsApi.md b/docs/InstanceArtifactsApi.md new file mode 100644 index 0000000..e6a75e3 --- /dev/null +++ b/docs/InstanceArtifactsApi.md @@ -0,0 +1,142 @@ +# InstanceArtifactsApi + +All URIs are relative to *https://staging.laminhub.com/api* + +| Method | HTTP request | Description | +|------------- | ------------- | -------------| +| [**createArtifactInstancesInstanceIdArtifactsCreatePost**](InstanceArtifactsApi.md#createArtifactInstancesInstanceIdArtifactsCreatePost) | **POST** /instances/{instance_id}/artifacts/create | Create Artifact | +| [**uploadArtifactInstancesInstanceIdArtifactsUploadPost**](InstanceArtifactsApi.md#uploadArtifactInstancesInstanceIdArtifactsUploadPost) | **POST** /instances/{instance_id}/artifacts/upload | Upload Artifact | + + + +# **createArtifactInstancesInstanceIdArtifactsCreatePost** +> Object createArtifactInstancesInstanceIdArtifactsCreatePost(instanceId, createArtifactRequestBody, authorization) + +Create Artifact + +### 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.InstanceArtifactsApi; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("https://staging.laminhub.com/api"); + + InstanceArtifactsApi apiInstance = new InstanceArtifactsApi(defaultClient); + UUID instanceId = UUID.randomUUID(); // UUID | + CreateArtifactRequestBody createArtifactRequestBody = new CreateArtifactRequestBody(); // CreateArtifactRequestBody | + String authorization = "authorization_example"; // String | + try { + Object result = apiInstance.createArtifactInstancesInstanceIdArtifactsCreatePost(instanceId, createArtifactRequestBody, authorization); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling InstanceArtifactsApi#createArtifactInstancesInstanceIdArtifactsCreatePost"); + 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**| | | +| **createArtifactRequestBody** | [**CreateArtifactRequestBody**](CreateArtifactRequestBody.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 | - | + + +# **uploadArtifactInstancesInstanceIdArtifactsUploadPost** +> Object uploadArtifactInstancesInstanceIdArtifactsUploadPost(instanceId, _file, authorization, kwargs) + +Upload Artifact + +### 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.InstanceArtifactsApi; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("https://staging.laminhub.com/api"); + + InstanceArtifactsApi apiInstance = new InstanceArtifactsApi(defaultClient); + UUID instanceId = UUID.randomUUID(); // UUID | + File _file = new File("/path/to/file"); // File | + String authorization = "authorization_example"; // String | + String kwargs = "kwargs_example"; // String | + try { + Object result = apiInstance.uploadArtifactInstancesInstanceIdArtifactsUploadPost(instanceId, _file, authorization, kwargs); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling InstanceArtifactsApi#uploadArtifactInstancesInstanceIdArtifactsUploadPost"); + 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**| | | +| **_file** | **File**| | | +| **authorization** | **String**| | [optional] | +| **kwargs** | **String**| | [optional] | + +### Return type + +**Object** + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: multipart/form-data + - **Accept**: application/json + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | Successful Response | - | +| **422** | Validation Error | - | + diff --git a/docs/InstanceDbTokenApi.md b/docs/InstanceDbTokenApi.md new file mode 100644 index 0000000..2c69c77 --- /dev/null +++ b/docs/InstanceDbTokenApi.md @@ -0,0 +1,74 @@ +# InstanceDbTokenApi + +All URIs are relative to *https://staging.laminhub.com/api* + +| Method | HTTP request | Description | +|------------- | ------------- | -------------| +| [**getDbTokenInstancesInstanceIdDbTokenGet**](InstanceDbTokenApi.md#getDbTokenInstancesInstanceIdDbTokenGet) | **GET** /instances/{instance_id}/db_token | Get Db Token | + + + +# **getDbTokenInstancesInstanceIdDbTokenGet** +> Object getDbTokenInstancesInstanceIdDbTokenGet(instanceId, authorization) + +Get Db Token + +Get a database token for the specified instance. This token can be used to authenticate with the instance's database. Parameters: - **instance_id**: UUID of the instance to get the token for (from URL path) Returns: - **200**: Database token retrieved successfully - **token**: The database token - **401**: Unauthorized + +### 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.InstanceDbTokenApi; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("https://staging.laminhub.com/api"); + + InstanceDbTokenApi apiInstance = new InstanceDbTokenApi(defaultClient); + UUID instanceId = UUID.randomUUID(); // UUID | + String authorization = "authorization_example"; // String | + try { + Object result = apiInstance.getDbTokenInstancesInstanceIdDbTokenGet(instanceId, authorization); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling InstanceDbTokenApi#getDbTokenInstancesInstanceIdDbTokenGet"); + 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**| | | +| **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 | - | + diff --git a/docs/InstanceFeaturesApi.md b/docs/InstanceFeaturesApi.md new file mode 100644 index 0000000..8d69ea9 --- /dev/null +++ b/docs/InstanceFeaturesApi.md @@ -0,0 +1,84 @@ +# InstanceFeaturesApi + +All URIs are relative to *https://staging.laminhub.com/api* + +| Method | HTTP request | Description | +|------------- | ------------- | -------------| +| [**queryLinkedFeaturesInstancesInstanceIdModulesModuleNameModelNameQueryFeaturesPost**](InstanceFeaturesApi.md#queryLinkedFeaturesInstancesInstanceIdModulesModuleNameModelNameQueryFeaturesPost) | **POST** /instances/{instance_id}/modules/{module_name}/{model_name}/query_features | Query Linked Features | + + + +# **queryLinkedFeaturesInstancesInstanceIdModulesModuleNameModelNameQueryFeaturesPost** +> Object queryLinkedFeaturesInstancesInstanceIdModulesModuleNameModelNameQueryFeaturesPost(moduleName, modelName, instanceId, limit, offset, authorization, getRecordsRequestBody) + +Query Linked Features + +Queries and returns a flat list of all unique Feature records associated with a set of filtered primary model records. + +### 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.InstanceFeaturesApi; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("https://staging.laminhub.com/api"); + + InstanceFeaturesApi apiInstance = new InstanceFeaturesApi(defaultClient); + String moduleName = "moduleName_example"; // String | + String modelName = "modelName_example"; // String | + UUID instanceId = UUID.randomUUID(); // UUID | + Integer limit = 50; // Integer | + Integer offset = 0; // Integer | + String authorization = "authorization_example"; // String | + GetRecordsRequestBody getRecordsRequestBody = new GetRecordsRequestBody(); // GetRecordsRequestBody | + try { + Object result = apiInstance.queryLinkedFeaturesInstancesInstanceIdModulesModuleNameModelNameQueryFeaturesPost(moduleName, modelName, instanceId, limit, offset, authorization, getRecordsRequestBody); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling InstanceFeaturesApi#queryLinkedFeaturesInstancesInstanceIdModulesModuleNameModelNameQueryFeaturesPost"); + 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 | +|------------- | ------------- | ------------- | -------------| +| **moduleName** | **String**| | | +| **modelName** | **String**| | | +| **instanceId** | **UUID**| | | +| **limit** | **Integer**| | [optional] [default to 50] | +| **offset** | **Integer**| | [optional] [default to 0] | +| **authorization** | **String**| | [optional] | +| **getRecordsRequestBody** | [**GetRecordsRequestBody**](GetRecordsRequestBody.md)| | [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 | - | + diff --git a/docs/InstanceFileExplorerApi.md b/docs/InstanceFileExplorerApi.md new file mode 100644 index 0000000..a4e6341 --- /dev/null +++ b/docs/InstanceFileExplorerApi.md @@ -0,0 +1,142 @@ +# InstanceFileExplorerApi + +All URIs are relative to *https://staging.laminhub.com/api* + +| Method | HTTP request | Description | +|------------- | ------------- | -------------| +| [**getTreeInstancesInstanceIdFilesTreeGet**](InstanceFileExplorerApi.md#getTreeInstancesInstanceIdFilesTreeGet) | **GET** /instances/{instance_id}/files/tree | Get Tree | +| [**listDirectoryInstancesInstanceIdFilesEntityTypeGet**](InstanceFileExplorerApi.md#listDirectoryInstancesInstanceIdFilesEntityTypeGet) | **GET** /instances/{instance_id}/files/{entity_type} | List Directory | + + + +# **getTreeInstancesInstanceIdFilesTreeGet** +> Object getTreeInstancesInstanceIdFilesTreeGet(instanceId, entityType, 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.InstanceFileExplorerApi; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("https://staging.laminhub.com/api"); + + InstanceFileExplorerApi apiInstance = new InstanceFileExplorerApi(defaultClient); + UUID instanceId = UUID.randomUUID(); // UUID | + String entityType = "artifacts"; // String | + String authorization = "authorization_example"; // String | + try { + Object result = apiInstance.getTreeInstancesInstanceIdFilesTreeGet(instanceId, entityType, authorization); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling InstanceFileExplorerApi#getTreeInstancesInstanceIdFilesTreeGet"); + 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: artifacts, transforms] | +| **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 | - | + + +# **listDirectoryInstancesInstanceIdFilesEntityTypeGet** +> Object listDirectoryInstancesInstanceIdFilesEntityTypeGet(entityType, instanceId, path, 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.InstanceFileExplorerApi; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("https://staging.laminhub.com/api"); + + InstanceFileExplorerApi apiInstance = new InstanceFileExplorerApi(defaultClient); + String entityType = "artifacts"; // String | + UUID instanceId = UUID.randomUUID(); // UUID | + String path = ""; // String | + String authorization = "authorization_example"; // String | + try { + Object result = apiInstance.listDirectoryInstancesInstanceIdFilesEntityTypeGet(entityType, instanceId, path, authorization); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling InstanceFileExplorerApi#listDirectoryInstancesInstanceIdFilesEntityTypeGet"); + 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: artifacts, transforms] | +| **instanceId** | **UUID**| | | +| **path** | **String**| | [optional] [default to ] | +| **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 | - | + diff --git a/docs/InstanceFormsApi.md b/docs/InstanceFormsApi.md new file mode 100644 index 0000000..3c3a368 --- /dev/null +++ b/docs/InstanceFormsApi.md @@ -0,0 +1,76 @@ +# InstanceFormsApi + +All URIs are relative to *https://staging.laminhub.com/api* + +| Method | HTTP request | Description | +|------------- | ------------- | -------------| +| [**registerFormInstancesInstanceIdFormsPost**](InstanceFormsApi.md#registerFormInstancesInstanceIdFormsPost) | **POST** /instances/{instance_id}/forms | Register Form | + + + +# **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: - **200**: 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.InstanceFormsApi; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("https://staging.laminhub.com/api"); + + InstanceFormsApi apiInstance = new InstanceFormsApi(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 InstanceFormsApi#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 | - | + diff --git a/docs/InstanceFunctionsApi.md b/docs/InstanceFunctionsApi.md new file mode 100644 index 0000000..0a13325 --- /dev/null +++ b/docs/InstanceFunctionsApi.md @@ -0,0 +1,74 @@ +# InstanceFunctionsApi + +All URIs are relative to *https://staging.laminhub.com/api* + +| Method | HTTP request | Description | +|------------- | ------------- | -------------| +| [**executeFunctionInstancesInstanceIdFunctionExecutePost**](InstanceFunctionsApi.md#executeFunctionInstancesInstanceIdFunctionExecutePost) | **POST** /instances/{instance_id}/function/execute | Execute Function | + + + +# **executeFunctionInstancesInstanceIdFunctionExecutePost** +> Object executeFunctionInstancesInstanceIdFunctionExecutePost(instanceId, executeFunctionRequestBody, authorization) + +Execute Function + +### 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.InstanceFunctionsApi; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("https://staging.laminhub.com/api"); + + InstanceFunctionsApi apiInstance = new InstanceFunctionsApi(defaultClient); + UUID instanceId = UUID.randomUUID(); // UUID | + ExecuteFunctionRequestBody executeFunctionRequestBody = new ExecuteFunctionRequestBody(); // ExecuteFunctionRequestBody | + String authorization = "authorization_example"; // String | + try { + Object result = apiInstance.executeFunctionInstancesInstanceIdFunctionExecutePost(instanceId, executeFunctionRequestBody, authorization); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling InstanceFunctionsApi#executeFunctionInstancesInstanceIdFunctionExecutePost"); + 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**| | | +| **executeFunctionRequestBody** | [**ExecuteFunctionRequestBody**](ExecuteFunctionRequestBody.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 | - | + diff --git a/docs/InstanceLabelsApi.md b/docs/InstanceLabelsApi.md new file mode 100644 index 0000000..df8ab12 --- /dev/null +++ b/docs/InstanceLabelsApi.md @@ -0,0 +1,156 @@ +# InstanceLabelsApi + +All URIs are relative to *https://staging.laminhub.com/api* + +| Method | HTTP request | Description | +|------------- | ------------- | -------------| +| [**attachLabelInstancesInstanceIdModulesModuleNameModelNameIdLabelFieldLabelIdPut**](InstanceLabelsApi.md#attachLabelInstancesInstanceIdModulesModuleNameModelNameIdLabelFieldLabelIdPut) | **PUT** /instances/{instance_id}/modules/{module_name}/{model_name}/{id}/{label_field}/{label_id} | Attach Label | +| [**detachLabelInstancesInstanceIdModulesModuleNameModelNameIdLabelFieldLabelIdDelete**](InstanceLabelsApi.md#detachLabelInstancesInstanceIdModulesModuleNameModelNameIdLabelFieldLabelIdDelete) | **DELETE** /instances/{instance_id}/modules/{module_name}/{model_name}/{id}/{label_field}/{label_id} | Detach Label | + + + +# **attachLabelInstancesInstanceIdModulesModuleNameModelNameIdLabelFieldLabelIdPut** +> Object attachLabelInstancesInstanceIdModulesModuleNameModelNameIdLabelFieldLabelIdPut(moduleName, modelName, id, labelField, labelId, instanceId, authorization) + +Attach Label + +### 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.InstanceLabelsApi; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("https://staging.laminhub.com/api"); + + InstanceLabelsApi apiInstance = new InstanceLabelsApi(defaultClient); + String moduleName = "moduleName_example"; // String | + String modelName = "artifact"; // String | + Integer id = 56; // Integer | + String labelField = "labelField_example"; // String | + Integer labelId = 56; // Integer | + UUID instanceId = UUID.randomUUID(); // UUID | + String authorization = "authorization_example"; // String | + try { + Object result = apiInstance.attachLabelInstancesInstanceIdModulesModuleNameModelNameIdLabelFieldLabelIdPut(moduleName, modelName, id, labelField, labelId, instanceId, authorization); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling InstanceLabelsApi#attachLabelInstancesInstanceIdModulesModuleNameModelNameIdLabelFieldLabelIdPut"); + 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 | +|------------- | ------------- | ------------- | -------------| +| **moduleName** | **String**| | | +| **modelName** | **String**| | [enum: artifact, transform, collection] | +| **id** | **Integer**| | | +| **labelField** | **String**| | | +| **labelId** | **Integer**| | | +| **instanceId** | **UUID**| | | +| **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 | - | + + +# **detachLabelInstancesInstanceIdModulesModuleNameModelNameIdLabelFieldLabelIdDelete** +> Object detachLabelInstancesInstanceIdModulesModuleNameModelNameIdLabelFieldLabelIdDelete(moduleName, modelName, id, labelField, labelId, instanceId, authorization) + +Detach Label + +### 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.InstanceLabelsApi; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("https://staging.laminhub.com/api"); + + InstanceLabelsApi apiInstance = new InstanceLabelsApi(defaultClient); + String moduleName = "moduleName_example"; // String | + String modelName = "artifact"; // String | + Integer id = 56; // Integer | + String labelField = "labelField_example"; // String | + Integer labelId = 56; // Integer | + UUID instanceId = UUID.randomUUID(); // UUID | + String authorization = "authorization_example"; // String | + try { + Object result = apiInstance.detachLabelInstancesInstanceIdModulesModuleNameModelNameIdLabelFieldLabelIdDelete(moduleName, modelName, id, labelField, labelId, instanceId, authorization); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling InstanceLabelsApi#detachLabelInstancesInstanceIdModulesModuleNameModelNameIdLabelFieldLabelIdDelete"); + 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 | +|------------- | ------------- | ------------- | -------------| +| **moduleName** | **String**| | | +| **modelName** | **String**| | [enum: artifact, transform, collection] | +| **id** | **Integer**| | | +| **labelField** | **String**| | | +| **labelId** | **Integer**| | | +| **instanceId** | **UUID**| | | +| **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 | - | + diff --git a/docs/InstanceRecordsApi.md b/docs/InstanceRecordsApi.md new file mode 100644 index 0000000..13178b3 --- /dev/null +++ b/docs/InstanceRecordsApi.md @@ -0,0 +1,882 @@ +# InstanceRecordsApi + +All URIs are relative to *https://staging.laminhub.com/api* + +| Method | HTTP request | Description | +|------------- | ------------- | -------------| +| [**batchDeleteRecordsInstancesInstanceIdModulesModuleNameModelNameBatchDeletePost**](InstanceRecordsApi.md#batchDeleteRecordsInstancesInstanceIdModulesModuleNameModelNameBatchDeletePost) | **POST** /instances/{instance_id}/modules/{module_name}/{model_name}/batch-delete | Batch Delete Records | +| [**batchSyncLinksInstancesInstanceIdModulesModuleNameModelNameBatchSyncLinksPut**](InstanceRecordsApi.md#batchSyncLinksInstancesInstanceIdModulesModuleNameModelNameBatchSyncLinksPut) | **PUT** /instances/{instance_id}/modules/{module_name}/{model_name}/batch-sync-links | Synchronize sets of links for multiple scopes in a single call | +| [**batchUpdateRecordsInstancesInstanceIdModulesModuleNameModelNameBatchUpdatePatch**](InstanceRecordsApi.md#batchUpdateRecordsInstancesInstanceIdModulesModuleNameModelNameBatchUpdatePatch) | **PATCH** /instances/{instance_id}/modules/{module_name}/{model_name}/batch-update | Update one or more records in a batch | +| [**createRecordsInstancesInstanceIdModulesModuleNameModelNamePut**](InstanceRecordsApi.md#createRecordsInstancesInstanceIdModulesModuleNameModelNamePut) | **PUT** /instances/{instance_id}/modules/{module_name}/{model_name} | Create Records | +| [**deleteRecordInstancesInstanceIdModulesModuleNameModelNameUidDelete**](InstanceRecordsApi.md#deleteRecordInstancesInstanceIdModulesModuleNameModelNameUidDelete) | **DELETE** /instances/{instance_id}/modules/{module_name}/{model_name}/{uid} | Delete Record | +| [**exportRecordsInstancesInstanceIdRecordsUidExportPost**](InstanceRecordsApi.md#exportRecordsInstancesInstanceIdRecordsUidExportPost) | **POST** /instances/{instance_id}/records/{uid}/export | Export Records | +| [**getRecordInstancesInstanceIdModulesModuleNameModelNameIdOrUidPost**](InstanceRecordsApi.md#getRecordInstancesInstanceIdModulesModuleNameModelNameIdOrUidPost) | **POST** /instances/{instance_id}/modules/{module_name}/{model_name}/{id_or_uid} | Get Record | +| [**getRecordsInstancesInstanceIdModulesModuleNameModelNamePost**](InstanceRecordsApi.md#getRecordsInstancesInstanceIdModulesModuleNameModelNamePost) | **POST** /instances/{instance_id}/modules/{module_name}/{model_name} | Get Records | +| [**getRelativesInstancesInstanceIdModulesModuleNameModelNameRelativesPost**](InstanceRecordsApi.md#getRelativesInstancesInstanceIdModulesModuleNameModelNameRelativesPost) | **POST** /instances/{instance_id}/modules/{module_name}/{model_name}/relatives | Get and query hierarchical relatives of records | +| [**getValuesInstancesInstanceIdModulesModuleNameModelNameFieldsFieldPathPost**](InstanceRecordsApi.md#getValuesInstancesInstanceIdModulesModuleNameModelNameFieldsFieldPathPost) | **POST** /instances/{instance_id}/modules/{module_name}/{model_name}/fields/{field_path} | Get Values | +| [**updateRecordInstancesInstanceIdModulesModuleNameModelNameUidPatch**](InstanceRecordsApi.md#updateRecordInstancesInstanceIdModulesModuleNameModelNameUidPatch) | **PATCH** /instances/{instance_id}/modules/{module_name}/{model_name}/{uid} | Update Record | +| [**upsertRecordsInstancesInstanceIdModulesModuleNameModelNameUpsertPut**](InstanceRecordsApi.md#upsertRecordsInstancesInstanceIdModulesModuleNameModelNameUpsertPut) | **PUT** /instances/{instance_id}/modules/{module_name}/{model_name}/upsert | Upsert one or more records | + + + +# **batchDeleteRecordsInstancesInstanceIdModulesModuleNameModelNameBatchDeletePost** +> BatchDeleteResponse batchDeleteRecordsInstancesInstanceIdModulesModuleNameModelNameBatchDeletePost(moduleName, modelName, instanceId, batchDeleteBody, authorization) + +Batch Delete Records + +### 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.InstanceRecordsApi; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("https://staging.laminhub.com/api"); + + InstanceRecordsApi apiInstance = new InstanceRecordsApi(defaultClient); + String moduleName = "moduleName_example"; // String | + String modelName = "modelName_example"; // String | + UUID instanceId = UUID.randomUUID(); // UUID | + BatchDeleteBody batchDeleteBody = new BatchDeleteBody(); // BatchDeleteBody | + String authorization = "authorization_example"; // String | + try { + BatchDeleteResponse result = apiInstance.batchDeleteRecordsInstancesInstanceIdModulesModuleNameModelNameBatchDeletePost(moduleName, modelName, instanceId, batchDeleteBody, authorization); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling InstanceRecordsApi#batchDeleteRecordsInstancesInstanceIdModulesModuleNameModelNameBatchDeletePost"); + 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 | +|------------- | ------------- | ------------- | -------------| +| **moduleName** | **String**| | | +| **modelName** | **String**| | | +| **instanceId** | **UUID**| | | +| **batchDeleteBody** | [**BatchDeleteBody**](BatchDeleteBody.md)| | | +| **authorization** | **String**| | [optional] | + +### Return type + +[**BatchDeleteResponse**](BatchDeleteResponse.md) + +### 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 | - | + + +# **batchSyncLinksInstancesInstanceIdModulesModuleNameModelNameBatchSyncLinksPut** +> BatchSyncResponse batchSyncLinksInstancesInstanceIdModulesModuleNameModelNameBatchSyncLinksPut(moduleName, modelName, instanceId, batchSyncLinksBody, authorization) + +Synchronize sets of links for multiple scopes in a single call + +### 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.InstanceRecordsApi; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("https://staging.laminhub.com/api"); + + InstanceRecordsApi apiInstance = new InstanceRecordsApi(defaultClient); + String moduleName = "moduleName_example"; // String | + String modelName = "modelName_example"; // String | + UUID instanceId = UUID.randomUUID(); // UUID | + BatchSyncLinksBody batchSyncLinksBody = new BatchSyncLinksBody(); // BatchSyncLinksBody | + String authorization = "authorization_example"; // String | + try { + BatchSyncResponse result = apiInstance.batchSyncLinksInstancesInstanceIdModulesModuleNameModelNameBatchSyncLinksPut(moduleName, modelName, instanceId, batchSyncLinksBody, authorization); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling InstanceRecordsApi#batchSyncLinksInstancesInstanceIdModulesModuleNameModelNameBatchSyncLinksPut"); + 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 | +|------------- | ------------- | ------------- | -------------| +| **moduleName** | **String**| | | +| **modelName** | **String**| | | +| **instanceId** | **UUID**| | | +| **batchSyncLinksBody** | [**BatchSyncLinksBody**](BatchSyncLinksBody.md)| | | +| **authorization** | **String**| | [optional] | + +### Return type + +[**BatchSyncResponse**](BatchSyncResponse.md) + +### 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 | - | + + +# **batchUpdateRecordsInstancesInstanceIdModulesModuleNameModelNameBatchUpdatePatch** +> List<Map<String, Object>> batchUpdateRecordsInstancesInstanceIdModulesModuleNameModelNameBatchUpdatePatch(moduleName, modelName, instanceId, batchUpdateBody, authorization) + +Update one or more records in a batch + +Partially updates multiple records in a single request. This endpoint processes a list of records, updating each one in the database. It is designed to handle heterogeneous partial updates, meaning each record in the batch can update a different set of fields. + +### 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.InstanceRecordsApi; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("https://staging.laminhub.com/api"); + + InstanceRecordsApi apiInstance = new InstanceRecordsApi(defaultClient); + String moduleName = "moduleName_example"; // String | + String modelName = "modelName_example"; // String | + UUID instanceId = UUID.randomUUID(); // UUID | + BatchUpdateBody batchUpdateBody = new BatchUpdateBody(); // BatchUpdateBody | + String authorization = "authorization_example"; // String | + try { + List> result = apiInstance.batchUpdateRecordsInstancesInstanceIdModulesModuleNameModelNameBatchUpdatePatch(moduleName, modelName, instanceId, batchUpdateBody, authorization); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling InstanceRecordsApi#batchUpdateRecordsInstancesInstanceIdModulesModuleNameModelNameBatchUpdatePatch"); + 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 | +|------------- | ------------- | ------------- | -------------| +| **moduleName** | **String**| | | +| **modelName** | **String**| | | +| **instanceId** | **UUID**| | | +| **batchUpdateBody** | [**BatchUpdateBody**](BatchUpdateBody.md)| | | +| **authorization** | **String**| | [optional] | + +### Return type + +[**List<Map<String, Object>>**](Map.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | Successful update. Returns a list of the full, updated records. | - | +| **422** | A record in the payload is missing a required index key. | - | + + +# **createRecordsInstancesInstanceIdModulesModuleNameModelNamePut** +> Object createRecordsInstancesInstanceIdModulesModuleNameModelNamePut(moduleName, modelName, instanceId, body, authorization) + +Create Records + +### 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.InstanceRecordsApi; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("https://staging.laminhub.com/api"); + + InstanceRecordsApi apiInstance = new InstanceRecordsApi(defaultClient); + String moduleName = "moduleName_example"; // String | + String modelName = "modelName_example"; // String | + UUID instanceId = UUID.randomUUID(); // UUID | + Object body = null; // Object | + String authorization = "authorization_example"; // String | + try { + Object result = apiInstance.createRecordsInstancesInstanceIdModulesModuleNameModelNamePut(moduleName, modelName, instanceId, body, authorization); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling InstanceRecordsApi#createRecordsInstancesInstanceIdModulesModuleNameModelNamePut"); + 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 | +|------------- | ------------- | ------------- | -------------| +| **moduleName** | **String**| | | +| **modelName** | **String**| | | +| **instanceId** | **UUID**| | | +| **body** | **Object**| | | +| **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 | - | + + +# **deleteRecordInstancesInstanceIdModulesModuleNameModelNameUidDelete** +> Object deleteRecordInstancesInstanceIdModulesModuleNameModelNameUidDelete(moduleName, modelName, uid, instanceId, authorization) + +Delete Record + +### 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.InstanceRecordsApi; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("https://staging.laminhub.com/api"); + + InstanceRecordsApi apiInstance = new InstanceRecordsApi(defaultClient); + String moduleName = "moduleName_example"; // String | + String modelName = "modelName_example"; // String | + String uid = "uid_example"; // String | + UUID instanceId = UUID.randomUUID(); // UUID | + String authorization = "authorization_example"; // String | + try { + Object result = apiInstance.deleteRecordInstancesInstanceIdModulesModuleNameModelNameUidDelete(moduleName, modelName, uid, instanceId, authorization); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling InstanceRecordsApi#deleteRecordInstancesInstanceIdModulesModuleNameModelNameUidDelete"); + 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 | +|------------- | ------------- | ------------- | -------------| +| **moduleName** | **String**| | | +| **modelName** | **String**| | | +| **uid** | **String**| | | +| **instanceId** | **UUID**| | | +| **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 | - | + + +# **exportRecordsInstancesInstanceIdRecordsUidExportPost** +> Object exportRecordsInstancesInstanceIdRecordsUidExportPost(uid, instanceId, authorization, exportRecordsRequestBody) + +Export Records + +### 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.InstanceRecordsApi; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("https://staging.laminhub.com/api"); + + InstanceRecordsApi apiInstance = new InstanceRecordsApi(defaultClient); + String uid = "uid_example"; // String | + UUID instanceId = UUID.randomUUID(); // UUID | + String authorization = "authorization_example"; // String | + ExportRecordsRequestBody exportRecordsRequestBody = new ExportRecordsRequestBody(); // ExportRecordsRequestBody | + try { + Object result = apiInstance.exportRecordsInstancesInstanceIdRecordsUidExportPost(uid, instanceId, authorization, exportRecordsRequestBody); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling InstanceRecordsApi#exportRecordsInstancesInstanceIdRecordsUidExportPost"); + 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 | +|------------- | ------------- | ------------- | -------------| +| **uid** | **String**| | | +| **instanceId** | **UUID**| | | +| **authorization** | **String**| | [optional] | +| **exportRecordsRequestBody** | [**ExportRecordsRequestBody**](ExportRecordsRequestBody.md)| | [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 | - | + + +# **getRecordInstancesInstanceIdModulesModuleNameModelNameIdOrUidPost** +> Object getRecordInstancesInstanceIdModulesModuleNameModelNameIdOrUidPost(moduleName, modelName, idOrUid, instanceId, limitToMany, includeForeignKeys, authorization, getRecordRequestBody) + +Get Record + +### 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.InstanceRecordsApi; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("https://staging.laminhub.com/api"); + + InstanceRecordsApi apiInstance = new InstanceRecordsApi(defaultClient); + String moduleName = "moduleName_example"; // String | + String modelName = "modelName_example"; // String | + String idOrUid = "idOrUid_example"; // String | + UUID instanceId = UUID.randomUUID(); // UUID | + Integer limitToMany = 10; // Integer | + Boolean includeForeignKeys = false; // Boolean | + String authorization = "authorization_example"; // String | + GetRecordRequestBody getRecordRequestBody = new GetRecordRequestBody(); // GetRecordRequestBody | + try { + Object result = apiInstance.getRecordInstancesInstanceIdModulesModuleNameModelNameIdOrUidPost(moduleName, modelName, idOrUid, instanceId, limitToMany, includeForeignKeys, authorization, getRecordRequestBody); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling InstanceRecordsApi#getRecordInstancesInstanceIdModulesModuleNameModelNameIdOrUidPost"); + 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 | +|------------- | ------------- | ------------- | -------------| +| **moduleName** | **String**| | | +| **modelName** | **String**| | | +| **idOrUid** | **String**| | | +| **instanceId** | **UUID**| | | +| **limitToMany** | **Integer**| | [optional] [default to 10] | +| **includeForeignKeys** | **Boolean**| | [optional] [default to false] | +| **authorization** | **String**| | [optional] | +| **getRecordRequestBody** | [**GetRecordRequestBody**](GetRecordRequestBody.md)| | [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 | - | + + +# **getRecordsInstancesInstanceIdModulesModuleNameModelNamePost** +> Object getRecordsInstancesInstanceIdModulesModuleNameModelNamePost(moduleName, modelName, instanceId, limit, offset, limitToMany, includeForeignKeys, authorization, getRecordsRequestBody) + +Get Records + +### 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.InstanceRecordsApi; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("https://staging.laminhub.com/api"); + + InstanceRecordsApi apiInstance = new InstanceRecordsApi(defaultClient); + String moduleName = "moduleName_example"; // String | + String modelName = "modelName_example"; // String | + UUID instanceId = UUID.randomUUID(); // UUID | + Integer limit = 50; // Integer | + Integer offset = 0; // Integer | + Integer limitToMany = 10; // Integer | + Boolean includeForeignKeys = false; // Boolean | + String authorization = "authorization_example"; // String | + GetRecordsRequestBody getRecordsRequestBody = new GetRecordsRequestBody(); // GetRecordsRequestBody | + try { + Object result = apiInstance.getRecordsInstancesInstanceIdModulesModuleNameModelNamePost(moduleName, modelName, instanceId, limit, offset, limitToMany, includeForeignKeys, authorization, getRecordsRequestBody); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling InstanceRecordsApi#getRecordsInstancesInstanceIdModulesModuleNameModelNamePost"); + 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 | +|------------- | ------------- | ------------- | -------------| +| **moduleName** | **String**| | | +| **modelName** | **String**| | | +| **instanceId** | **UUID**| | | +| **limit** | **Integer**| | [optional] [default to 50] | +| **offset** | **Integer**| | [optional] [default to 0] | +| **limitToMany** | **Integer**| | [optional] [default to 10] | +| **includeForeignKeys** | **Boolean**| | [optional] [default to false] | +| **authorization** | **String**| | [optional] | +| **getRecordsRequestBody** | [**GetRecordsRequestBody**](GetRecordsRequestBody.md)| | [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 | - | + + +# **getRelativesInstancesInstanceIdModulesModuleNameModelNameRelativesPost** +> Object getRelativesInstancesInstanceIdModulesModuleNameModelNameRelativesPost(moduleName, modelName, instanceId, request, limit, offset, authorization) + +Get and query hierarchical relatives of records + +Finds and queries all relatives (ancestors or descendants) for a given set of records. This endpoint first performs a recursive traversal to identify a complete set of related records. It then applies standard query parameters (filter, sort, search, select, etc.) to that set. **Traversal Strategies:** The endpoint intelligently discovers the relationship structure from the schema: 1. **ManyToMany Graph:** It first looks for an explicit `parents` or `children` relationship field, which is assumed to be a Directed Acyclic Graph (DAG). 2. **ForeignKey Tree:** If a ManyToMany field is not found, it falls back to traversing a self-referential `type` field, which is assumed to represent a parent-pointer 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.InstanceRecordsApi; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("https://staging.laminhub.com/api"); + + InstanceRecordsApi apiInstance = new InstanceRecordsApi(defaultClient); + String moduleName = "moduleName_example"; // String | + String modelName = "modelName_example"; // String | + UUID instanceId = UUID.randomUUID(); // UUID | + Request request = new Request(); // Request | + Integer limit = 100; // Integer | The maximum number of relative records to return. + Integer offset = 0; // Integer | The offset for paginating through the results. + String authorization = "authorization_example"; // String | + try { + Object result = apiInstance.getRelativesInstancesInstanceIdModulesModuleNameModelNameRelativesPost(moduleName, modelName, instanceId, request, limit, offset, authorization); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling InstanceRecordsApi#getRelativesInstancesInstanceIdModulesModuleNameModelNameRelativesPost"); + 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 | +|------------- | ------------- | ------------- | -------------| +| **moduleName** | **String**| | | +| **modelName** | **String**| | | +| **instanceId** | **UUID**| | | +| **request** | [**Request**](Request.md)| | | +| **limit** | **Integer**| The maximum number of relative records to return. | [optional] [default to 100] | +| **offset** | **Integer**| The offset for paginating through the results. | [optional] [default to 0] | +| **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 | - | + + +# **getValuesInstancesInstanceIdModulesModuleNameModelNameFieldsFieldPathPost** +> Object getValuesInstancesInstanceIdModulesModuleNameModelNameFieldsFieldPathPost(moduleName, modelName, fieldPath, instanceId, limit, offset, authorization, getValuesRequestBody) + +Get Values + +### 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.InstanceRecordsApi; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("https://staging.laminhub.com/api"); + + InstanceRecordsApi apiInstance = new InstanceRecordsApi(defaultClient); + String moduleName = "moduleName_example"; // String | + String modelName = "modelName_example"; // String | + String fieldPath = "fieldPath_example"; // String | + UUID instanceId = UUID.randomUUID(); // UUID | + Integer limit = 50; // Integer | + Integer offset = 0; // Integer | + String authorization = "authorization_example"; // String | + GetValuesRequestBody getValuesRequestBody = new GetValuesRequestBody(); // GetValuesRequestBody | + try { + Object result = apiInstance.getValuesInstancesInstanceIdModulesModuleNameModelNameFieldsFieldPathPost(moduleName, modelName, fieldPath, instanceId, limit, offset, authorization, getValuesRequestBody); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling InstanceRecordsApi#getValuesInstancesInstanceIdModulesModuleNameModelNameFieldsFieldPathPost"); + 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 | +|------------- | ------------- | ------------- | -------------| +| **moduleName** | **String**| | | +| **modelName** | **String**| | | +| **fieldPath** | **String**| | | +| **instanceId** | **UUID**| | | +| **limit** | **Integer**| | [optional] [default to 50] | +| **offset** | **Integer**| | [optional] [default to 0] | +| **authorization** | **String**| | [optional] | +| **getValuesRequestBody** | [**GetValuesRequestBody**](GetValuesRequestBody.md)| | [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 | - | + + +# **updateRecordInstancesInstanceIdModulesModuleNameModelNameUidPatch** +> Object updateRecordInstancesInstanceIdModulesModuleNameModelNameUidPatch(moduleName, modelName, uid, instanceId, body, authorization) + +Update Record + +### 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.InstanceRecordsApi; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("https://staging.laminhub.com/api"); + + InstanceRecordsApi apiInstance = new InstanceRecordsApi(defaultClient); + String moduleName = "moduleName_example"; // String | + String modelName = "modelName_example"; // String | + String uid = "uid_example"; // String | + UUID instanceId = UUID.randomUUID(); // UUID | + Object body = null; // Object | + String authorization = "authorization_example"; // String | + try { + Object result = apiInstance.updateRecordInstancesInstanceIdModulesModuleNameModelNameUidPatch(moduleName, modelName, uid, instanceId, body, authorization); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling InstanceRecordsApi#updateRecordInstancesInstanceIdModulesModuleNameModelNameUidPatch"); + 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 | +|------------- | ------------- | ------------- | -------------| +| **moduleName** | **String**| | | +| **modelName** | **String**| | | +| **uid** | **String**| | | +| **instanceId** | **UUID**| | | +| **body** | **Object**| | | +| **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 | - | + + +# **upsertRecordsInstancesInstanceIdModulesModuleNameModelNameUpsertPut** +> Object upsertRecordsInstancesInstanceIdModulesModuleNameModelNameUpsertPut(moduleName, modelName, instanceId, conflictColumns, body, authorization) + +Upsert one or more records + +Insert new records or update existing ones based on a conflict key. + +### 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.InstanceRecordsApi; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("https://staging.laminhub.com/api"); + + InstanceRecordsApi apiInstance = new InstanceRecordsApi(defaultClient); + String moduleName = "moduleName_example"; // String | + String modelName = "modelName_example"; // String | + UUID instanceId = UUID.randomUUID(); // UUID | + List conflictColumns = Arrays.asList(); // List | A list of column names that define the unique key for conflict resolution. This must correspond to a unique constraint or index in the database. + Body body = new Body(); // Body | + String authorization = "authorization_example"; // String | + try { + Object result = apiInstance.upsertRecordsInstancesInstanceIdModulesModuleNameModelNameUpsertPut(moduleName, modelName, instanceId, conflictColumns, body, authorization); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling InstanceRecordsApi#upsertRecordsInstancesInstanceIdModulesModuleNameModelNameUpsertPut"); + 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 | +|------------- | ------------- | ------------- | -------------| +| **moduleName** | **String**| | | +| **modelName** | **String**| | | +| **instanceId** | **UUID**| | | +| **conflictColumns** | [**List<String>**](String.md)| A list of column names that define the unique key for conflict resolution. This must correspond to a unique constraint or index in the database. | | +| **body** | [**Body**](Body.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. Returns a list of the full, upserted records as they exist in the database. | - | +| **400** | The 'conflict_columns' query parameter was not provided. | - | +| **404** | The specified module or model name was not found. | - | +| **422** | The request payload is invalid (e.g., a record is missing a required conflict key, or the conflict key is not a valid unique constraint in the database). | - | + diff --git a/docs/InstanceSchemaApi.md b/docs/InstanceSchemaApi.md new file mode 100644 index 0000000..d4389dc --- /dev/null +++ b/docs/InstanceSchemaApi.md @@ -0,0 +1,140 @@ +# InstanceSchemaApi + +All URIs are relative to *https://staging.laminhub.com/api* + +| Method | HTTP request | Description | +|------------- | ------------- | -------------| +| [**getRelationsInstancesInstanceIdSchemaModuleNameModelNameGet**](InstanceSchemaApi.md#getRelationsInstancesInstanceIdSchemaModuleNameModelNameGet) | **GET** /instances/{instance_id}/schema/{module_name}/{model_name} | Get Relations | +| [**getSchemaInstancesInstanceIdSchemaGet**](InstanceSchemaApi.md#getSchemaInstancesInstanceIdSchemaGet) | **GET** /instances/{instance_id}/schema | Get Schema | + + + +# **getRelationsInstancesInstanceIdSchemaModuleNameModelNameGet** +> Object getRelationsInstancesInstanceIdSchemaModuleNameModelNameGet(moduleName, modelName, instanceId, authorization) + +Get Relations + +### 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.InstanceSchemaApi; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("https://staging.laminhub.com/api"); + + InstanceSchemaApi apiInstance = new InstanceSchemaApi(defaultClient); + String moduleName = "moduleName_example"; // String | + String modelName = "modelName_example"; // String | + UUID instanceId = UUID.randomUUID(); // UUID | + String authorization = "authorization_example"; // String | + try { + Object result = apiInstance.getRelationsInstancesInstanceIdSchemaModuleNameModelNameGet(moduleName, modelName, instanceId, authorization); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling InstanceSchemaApi#getRelationsInstancesInstanceIdSchemaModuleNameModelNameGet"); + 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 | +|------------- | ------------- | ------------- | -------------| +| **moduleName** | **String**| | | +| **modelName** | **String**| | | +| **instanceId** | **UUID**| | | +| **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 | - | + + +# **getSchemaInstancesInstanceIdSchemaGet** +> Object getSchemaInstancesInstanceIdSchemaGet(instanceId, authorization) + +Get Schema + +### 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.InstanceSchemaApi; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("https://staging.laminhub.com/api"); + + InstanceSchemaApi apiInstance = new InstanceSchemaApi(defaultClient); + UUID instanceId = UUID.randomUUID(); // UUID | + String authorization = "authorization_example"; // String | + try { + Object result = apiInstance.getSchemaInstancesInstanceIdSchemaGet(instanceId, authorization); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling InstanceSchemaApi#getSchemaInstancesInstanceIdSchemaGet"); + 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**| | | +| **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 | - | + diff --git a/docs/InstanceSearchApi.md b/docs/InstanceSearchApi.md new file mode 100644 index 0000000..128b624 --- /dev/null +++ b/docs/InstanceSearchApi.md @@ -0,0 +1,74 @@ +# InstanceSearchApi + +All URIs are relative to *https://staging.laminhub.com/api* + +| Method | HTTP request | Description | +|------------- | ------------- | -------------| +| [**globalSearchInstancesInstanceIdSearchGet**](InstanceSearchApi.md#globalSearchInstancesInstanceIdSearchGet) | **GET** /instances/{instance_id}/search | Global Search | + + + +# **globalSearchInstancesInstanceIdSearchGet** +> Object globalSearchInstancesInstanceIdSearchGet(instanceId, searchTerm, authorization) + +Global Search + +### 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.InstanceSearchApi; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("https://staging.laminhub.com/api"); + + InstanceSearchApi apiInstance = new InstanceSearchApi(defaultClient); + UUID instanceId = UUID.randomUUID(); // UUID | + String searchTerm = "searchTerm_example"; // String | + String authorization = "authorization_example"; // String | + try { + Object result = apiInstance.globalSearchInstancesInstanceIdSearchGet(instanceId, searchTerm, authorization); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling InstanceSearchApi#globalSearchInstancesInstanceIdSearchGet"); + 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**| | | +| **searchTerm** | **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 | - | + diff --git a/docs/InstanceStatisticsApi.md b/docs/InstanceStatisticsApi.md new file mode 100644 index 0000000..7c3a51c --- /dev/null +++ b/docs/InstanceStatisticsApi.md @@ -0,0 +1,288 @@ +# InstanceStatisticsApi + +All URIs are relative to *https://staging.laminhub.com/api* + +| Method | HTTP request | Description | +|------------- | ------------- | -------------| +| [**getInstanceStatisticsInstancesInstanceIdStatisticsGet**](InstanceStatisticsApi.md#getInstanceStatisticsInstancesInstanceIdStatisticsGet) | **GET** /instances/{instance_id}/statistics | Get Approximate Table Row Counts and Artifact Size | +| [**getNonEmptyTablesInstancesInstanceIdNonEmptyTablesGet**](InstanceStatisticsApi.md#getNonEmptyTablesInstancesInstanceIdNonEmptyTablesGet) | **GET** /instances/{instance_id}/non_empty_tables | List Non-Empty Data Tables by Module | +| [**getRelationCountsInstancesInstanceIdModulesModuleNameModelNameIdCountsGet**](InstanceStatisticsApi.md#getRelationCountsInstancesInstanceIdModulesModuleNameModelNameIdCountsGet) | **GET** /instances/{instance_id}/modules/{module_name}/{model_name}/{id}/counts | Get Relation Counts | +| [**groupByInstancesInstanceIdModulesModuleNameModelNameGroupByPost**](InstanceStatisticsApi.md#groupByInstancesInstanceIdModulesModuleNameModelNameGroupByPost) | **POST** /instances/{instance_id}/modules/{module_name}/{model_name}/group-by | Group By | + + + +# **getInstanceStatisticsInstancesInstanceIdStatisticsGet** +> StatisticsResponse getInstanceStatisticsInstancesInstanceIdStatisticsGet(instanceId, q, authorization) + +Get Approximate Table Row Counts and Artifact Size + +Retrieves instance statistics, including artifact size and table row counts. This endpoint uses a hybrid approach optimized for both accuracy and performance: - **Row Counts (`counts`)**: Uses a hybrid counting strategy: - For small tables (≤ 2000 estimated rows): **Exact counts** using `COUNT(*)` to ensure accuracy for small datasets. - For larger tables: **Fast approximations** based on PostgreSQL statistics catalog (`pg_class.reltuples`) for near-instant retrieval. These stats are updated periodically by database operations like `ANALYZE` and `AUTOVACUUM`. - **Artifact Size (`instance_size`)**: This is an **exact** real-time calculation, derived by performing a `SUM(size)` on the artifact table. + +### 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.InstanceStatisticsApi; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("https://staging.laminhub.com/api"); + + InstanceStatisticsApi apiInstance = new InstanceStatisticsApi(defaultClient); + UUID instanceId = UUID.randomUUID(); // UUID | + List q = Arrays.asList(); // List | A list of models in \"${module}.${model}\" format (case-sensitive). If omitted, statistics for all primary tables are returned. + String authorization = "authorization_example"; // String | + try { + StatisticsResponse result = apiInstance.getInstanceStatisticsInstancesInstanceIdStatisticsGet(instanceId, q, authorization); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling InstanceStatisticsApi#getInstanceStatisticsInstancesInstanceIdStatisticsGet"); + 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**| | | +| **q** | [**List<String>**](String.md)| A list of models in \"${module}.${model}\" format (case-sensitive). If omitted, statistics for all primary tables are returned. | [optional] | +| **authorization** | **String**| | [optional] | + +### Return type + +[**StatisticsResponse**](StatisticsResponse.md) + +### 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 | - | +| **400** | Invalid model name format provided. | - | +| **403** | Read access denied to the instance. | - | +| **404** | Instance or requested model not found. | - | +| **422** | Validation Error | - | + + +# **getNonEmptyTablesInstancesInstanceIdNonEmptyTablesGet** +> NonEmptyTablesResponse getNonEmptyTablesInstancesInstanceIdNonEmptyTablesGet(instanceId, authorization) + +List Non-Empty Data Tables by Module + +Analyzes the instance's database schema to identify all tables that contain data. This endpoint uses a hybrid approach optimized for both accuracy and performance: - **For small tables (≤ 2000 estimated rows)**: **Exact non-empty check** using `COUNT(*) > 0` to ensure accuracy for small datasets. - **For larger tables (> 2000 estimated rows)**: **Fast approximation** based on PostgreSQL statistics catalog (`pg_class.reltuples > 0`) for near-instant retrieval. These stats are updated periodically by database operations like `ANALYZE` and `AUTOVACUUM`. **Accuracy Note**: - Small tables: Guaranteed accurate non-empty detection - Large tables: May have acceptable false positives if all rows are deleted but space hasn't been reclaimed until `VACUUM FULL` or `TRUNCATE` is run. + +### 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.InstanceStatisticsApi; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("https://staging.laminhub.com/api"); + + InstanceStatisticsApi apiInstance = new InstanceStatisticsApi(defaultClient); + UUID instanceId = UUID.randomUUID(); // UUID | + String authorization = "authorization_example"; // String | + try { + NonEmptyTablesResponse result = apiInstance.getNonEmptyTablesInstancesInstanceIdNonEmptyTablesGet(instanceId, authorization); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling InstanceStatisticsApi#getNonEmptyTablesInstancesInstanceIdNonEmptyTablesGet"); + 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**| | | +| **authorization** | **String**| | [optional] | + +### Return type + +[**NonEmptyTablesResponse**](NonEmptyTablesResponse.md) + +### 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 | - | +| **403** | Read access denied to the instance. | - | +| **404** | Instance not accessible. | - | +| **500** | Internal server error, such as a missing schema or database connection failure. | - | +| **422** | Validation Error | - | + + +# **getRelationCountsInstancesInstanceIdModulesModuleNameModelNameIdCountsGet** +> Object getRelationCountsInstancesInstanceIdModulesModuleNameModelNameIdCountsGet(moduleName, modelName, id, instanceId, authorization) + +Get Relation Counts + +### 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.InstanceStatisticsApi; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("https://staging.laminhub.com/api"); + + InstanceStatisticsApi apiInstance = new InstanceStatisticsApi(defaultClient); + String moduleName = "moduleName_example"; // String | + String modelName = "modelName_example"; // String | + Integer id = 56; // Integer | + UUID instanceId = UUID.randomUUID(); // UUID | + String authorization = "authorization_example"; // String | + try { + Object result = apiInstance.getRelationCountsInstancesInstanceIdModulesModuleNameModelNameIdCountsGet(moduleName, modelName, id, instanceId, authorization); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling InstanceStatisticsApi#getRelationCountsInstancesInstanceIdModulesModuleNameModelNameIdCountsGet"); + 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 | +|------------- | ------------- | ------------- | -------------| +| **moduleName** | **String**| | | +| **modelName** | **String**| | | +| **id** | **Integer**| | | +| **instanceId** | **UUID**| | | +| **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 | - | + + +# **groupByInstancesInstanceIdModulesModuleNameModelNameGroupByPost** +> Object groupByInstancesInstanceIdModulesModuleNameModelNameGroupByPost(moduleName, modelName, instanceId, groupByRequestBody, authorization) + +Group By + +### 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.InstanceStatisticsApi; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("https://staging.laminhub.com/api"); + + InstanceStatisticsApi apiInstance = new InstanceStatisticsApi(defaultClient); + String moduleName = "moduleName_example"; // String | + String modelName = "modelName_example"; // String | + UUID instanceId = UUID.randomUUID(); // UUID | + GroupByRequestBody groupByRequestBody = new GroupByRequestBody(); // GroupByRequestBody | + String authorization = "authorization_example"; // String | + try { + Object result = apiInstance.groupByInstancesInstanceIdModulesModuleNameModelNameGroupByPost(moduleName, modelName, instanceId, groupByRequestBody, authorization); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling InstanceStatisticsApi#groupByInstancesInstanceIdModulesModuleNameModelNameGroupByPost"); + 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 | +|------------- | ------------- | ------------- | -------------| +| **moduleName** | **String**| | | +| **modelName** | **String**| | | +| **instanceId** | **UUID**| | | +| **groupByRequestBody** | [**GroupByRequestBody**](GroupByRequestBody.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 | - | + diff --git a/docs/InstanceTransformsApi.md b/docs/InstanceTransformsApi.md new file mode 100644 index 0000000..b63c03a --- /dev/null +++ b/docs/InstanceTransformsApi.md @@ -0,0 +1,74 @@ +# InstanceTransformsApi + +All URIs are relative to *https://staging.laminhub.com/api* + +| Method | HTTP request | Description | +|------------- | ------------- | -------------| +| [**createTransformInstancesInstanceIdTransformsPost**](InstanceTransformsApi.md#createTransformInstancesInstanceIdTransformsPost) | **POST** /instances/{instance_id}/transforms | Create Transform | + + + +# **createTransformInstancesInstanceIdTransformsPost** +> Object createTransformInstancesInstanceIdTransformsPost(instanceId, createTransformRequestBody, authorization) + +Create Transform + +### 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.InstanceTransformsApi; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("https://staging.laminhub.com/api"); + + InstanceTransformsApi apiInstance = new InstanceTransformsApi(defaultClient); + UUID instanceId = UUID.randomUUID(); // UUID | + CreateTransformRequestBody createTransformRequestBody = new CreateTransformRequestBody(); // CreateTransformRequestBody | + String authorization = "authorization_example"; // String | + try { + Object result = apiInstance.createTransformInstancesInstanceIdTransformsPost(instanceId, createTransformRequestBody, authorization); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling InstanceTransformsApi#createTransformInstancesInstanceIdTransformsPost"); + 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**| | | +| **createTransformRequestBody** | [**CreateTransformRequestBody**](CreateTransformRequestBody.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 | - | + diff --git a/docs/InstancesApi.md b/docs/InstancesApi.md new file mode 100644 index 0000000..bba2c77 --- /dev/null +++ b/docs/InstancesApi.md @@ -0,0 +1,554 @@ +# InstancesApi + +All URIs are relative to *https://staging.laminhub.com/api* + +| Method | HTTP request | Description | +|------------- | ------------- | -------------| +| [**addCollaboratorInstancesInstanceIdCollaboratorsPut**](InstancesApi.md#addCollaboratorInstancesInstanceIdCollaboratorsPut) | **PUT** /instances/{instance_id}/collaborators | Add Collaborator | +| [**createInstanceInstancesPut**](InstancesApi.md#createInstanceInstancesPut) | **PUT** /instances | Create Instance | +| [**deleteInstanceInstancesInstanceIdDelete**](InstancesApi.md#deleteInstanceInstancesInstanceIdDelete) | **DELETE** /instances/{instance_id} | Delete Instance | +| [**listCollaboratorsInstancesInstanceIdCollaboratorsGet**](InstancesApi.md#listCollaboratorsInstancesInstanceIdCollaboratorsGet) | **GET** /instances/{instance_id}/collaborators | List Collaborators | +| [**migrateInstanceInstancesInstanceIdMigratePost**](InstancesApi.md#migrateInstanceInstancesInstanceIdMigratePost) | **POST** /instances/{instance_id}/migrate | Migrate Instance | +| [**removeCollaboratorInstancesInstanceIdCollaboratorsDelete**](InstancesApi.md#removeCollaboratorInstancesInstanceIdCollaboratorsDelete) | **DELETE** /instances/{instance_id}/collaborators | Remove Collaborator | +| [**transferOwnershipInstancesInstanceIdOwnerHandlePatch**](InstancesApi.md#transferOwnershipInstancesInstanceIdOwnerHandlePatch) | **PATCH** /instances/{instance_id}/owner/{handle} | Transfer Ownership | +| [**updateCollaboratorInstancesInstanceIdCollaboratorsPatch**](InstancesApi.md#updateCollaboratorInstancesInstanceIdCollaboratorsPatch) | **PATCH** /instances/{instance_id}/collaborators | Update Collaborator | + + + +# **addCollaboratorInstancesInstanceIdCollaboratorsPut** +> Object addCollaboratorInstancesInstanceIdCollaboratorsPut(instanceId, addCollaboratorRequestBody, authorization) + +Add Collaborator + +Add a collaborator (account or team) to an instance. Parameters: - **instance_id**: UUID of the instance to add the collaborator to (from URL path) - **body**: Request body containing collaborator details - **account_id**: UUID of the account to add (mutually exclusive with team_id) - **team_id**: UUID of the team to add (mutually exclusive with account_id) - **role**: Role of the collaborator Returns: - **201**: Collaborator added successfully - **400**: Invalid input (e.g., both account_id and team_id provided) - **409**: Collaborator was already added Requires admin access to the instance + +### 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.InstancesApi; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("https://staging.laminhub.com/api"); + + InstancesApi apiInstance = new InstancesApi(defaultClient); + UUID instanceId = UUID.randomUUID(); // UUID | + AddCollaboratorRequestBody addCollaboratorRequestBody = new AddCollaboratorRequestBody(); // AddCollaboratorRequestBody | + String authorization = "authorization_example"; // String | + try { + Object result = apiInstance.addCollaboratorInstancesInstanceIdCollaboratorsPut(instanceId, addCollaboratorRequestBody, authorization); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling InstancesApi#addCollaboratorInstancesInstanceIdCollaboratorsPut"); + 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**| | | +| **addCollaboratorRequestBody** | [**AddCollaboratorRequestBody**](AddCollaboratorRequestBody.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 | - | + + +# **createInstanceInstancesPut** +> Object createInstanceInstancesPut(name, storage, schemaStr, dbServerName, storageUid, accountId, instanceId, authorization, requestBody) + +Create Instance + +### 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.InstancesApi; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("https://staging.laminhub.com/api"); + + InstancesApi apiInstance = new InstancesApi(defaultClient); + String name = "name_example"; // String | + String storage = "create-s3"; // String | + String schemaStr = "schemaStr_example"; // String | + String dbServerName = "dbServerName_example"; // String | + String storageUid = "storageUid_example"; // String | + UUID accountId = UUID.randomUUID(); // UUID | + UUID instanceId = UUID.randomUUID(); // UUID | + String authorization = "authorization_example"; // String | + Map requestBody = null; // Map | + try { + Object result = apiInstance.createInstanceInstancesPut(name, storage, schemaStr, dbServerName, storageUid, accountId, instanceId, authorization, requestBody); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling InstancesApi#createInstanceInstancesPut"); + 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**| | | +| **storage** | **String**| | [optional] [default to create-s3] | +| **schemaStr** | **String**| | [optional] | +| **dbServerName** | **String**| | [optional] | +| **storageUid** | **String**| | [optional] | +| **accountId** | **UUID**| | [optional] | +| **instanceId** | **UUID**| | [optional] | +| **authorization** | **String**| | [optional] | +| **requestBody** | [**Map<String, Object>**](Object.md)| | [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 | - | + + +# **deleteInstanceInstancesInstanceIdDelete** +> Object deleteInstanceInstancesInstanceIdDelete(instanceId, instanceName, authorization) + +Delete Instance + +### 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.InstancesApi; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("https://staging.laminhub.com/api"); + + InstancesApi apiInstance = new InstancesApi(defaultClient); + UUID instanceId = UUID.randomUUID(); // UUID | + String instanceName = "instanceName_example"; // String | + String authorization = "authorization_example"; // String | + try { + Object result = apiInstance.deleteInstanceInstancesInstanceIdDelete(instanceId, instanceName, authorization); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling InstancesApi#deleteInstanceInstancesInstanceIdDelete"); + 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**| | | +| **instanceName** | **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 | - | + + +# **listCollaboratorsInstancesInstanceIdCollaboratorsGet** +> Object listCollaboratorsInstancesInstanceIdCollaboratorsGet(instanceId, authorization) + +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 Requires read access to the instance + +### 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.InstancesApi; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("https://staging.laminhub.com/api"); + + InstancesApi apiInstance = new InstancesApi(defaultClient); + UUID instanceId = UUID.randomUUID(); // UUID | + String authorization = "authorization_example"; // String | + try { + Object result = apiInstance.listCollaboratorsInstancesInstanceIdCollaboratorsGet(instanceId, authorization); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling InstancesApi#listCollaboratorsInstancesInstanceIdCollaboratorsGet"); + 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**| | | +| **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 | - | + + +# **migrateInstanceInstancesInstanceIdMigratePost** +> Object migrateInstanceInstancesInstanceIdMigratePost(instanceId, authorization) + +Migrate Instance + +### 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.InstancesApi; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("https://staging.laminhub.com/api"); + + InstancesApi apiInstance = new InstancesApi(defaultClient); + UUID instanceId = UUID.randomUUID(); // UUID | + String authorization = "authorization_example"; // String | + try { + Object result = apiInstance.migrateInstanceInstancesInstanceIdMigratePost(instanceId, authorization); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling InstancesApi#migrateInstanceInstancesInstanceIdMigratePost"); + 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**| | | +| **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 | - | + + +# **removeCollaboratorInstancesInstanceIdCollaboratorsDelete** +> Object removeCollaboratorInstancesInstanceIdCollaboratorsDelete(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) Requires admin access to the instance + +### 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.InstancesApi; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("https://staging.laminhub.com/api"); + + InstancesApi apiInstance = new InstancesApi(defaultClient); + UUID instanceId = UUID.randomUUID(); // UUID | + UUID accountId = UUID.randomUUID(); // UUID | + UUID teamId = UUID.randomUUID(); // UUID | + String authorization = "authorization_example"; // String | + try { + Object result = apiInstance.removeCollaboratorInstancesInstanceIdCollaboratorsDelete(instanceId, accountId, teamId, authorization); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling InstancesApi#removeCollaboratorInstancesInstanceIdCollaboratorsDelete"); + 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**| | | +| **accountId** | **UUID**| | [optional] | +| **teamId** | **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 | - | + + +# **transferOwnershipInstancesInstanceIdOwnerHandlePatch** +> Object transferOwnershipInstancesInstanceIdOwnerHandlePatch(handle, instanceId, authorization) + +Transfer Ownership + +### 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.InstancesApi; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("https://staging.laminhub.com/api"); + + InstancesApi apiInstance = new InstancesApi(defaultClient); + String handle = "handle_example"; // String | + UUID instanceId = UUID.randomUUID(); // UUID | + String authorization = "authorization_example"; // String | + try { + Object result = apiInstance.transferOwnershipInstancesInstanceIdOwnerHandlePatch(handle, instanceId, authorization); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling InstancesApi#transferOwnershipInstancesInstanceIdOwnerHandlePatch"); + 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 | +|------------- | ------------- | ------------- | -------------| +| **handle** | **String**| | | +| **instanceId** | **UUID**| | | +| **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 | - | + + +# **updateCollaboratorInstancesInstanceIdCollaboratorsPatch** +> Object updateCollaboratorInstancesInstanceIdCollaboratorsPatch(instanceId, updateCollaboratorRequestBody, authorization) + +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) Requires admin access to the instance + +### 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.InstancesApi; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("https://staging.laminhub.com/api"); + + InstancesApi apiInstance = new InstancesApi(defaultClient); + UUID instanceId = UUID.randomUUID(); // UUID | + UpdateCollaboratorRequestBody updateCollaboratorRequestBody = new UpdateCollaboratorRequestBody(); // UpdateCollaboratorRequestBody | + String authorization = "authorization_example"; // String | + try { + Object result = apiInstance.updateCollaboratorInstancesInstanceIdCollaboratorsPatch(instanceId, updateCollaboratorRequestBody, authorization); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling InstancesApi#updateCollaboratorInstancesInstanceIdCollaboratorsPatch"); + 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**| | | +| **updateCollaboratorRequestBody** | [**UpdateCollaboratorRequestBody**](UpdateCollaboratorRequestBody.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 | - | + diff --git a/docs/NonEmptyTablesResponse.md b/docs/NonEmptyTablesResponse.md new file mode 100644 index 0000000..11d894b --- /dev/null +++ b/docs/NonEmptyTablesResponse.md @@ -0,0 +1,13 @@ + + +# NonEmptyTablesResponse + + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**nonEmptyTables** | **Map<String, List<String>>** | A dictionary where keys are module names and values are lists of class names representing non-empty tables. | | + + + diff --git a/docs/OrganizationsApi.md b/docs/OrganizationsApi.md new file mode 100644 index 0000000..1bcf91e --- /dev/null +++ b/docs/OrganizationsApi.md @@ -0,0 +1,358 @@ +# OrganizationsApi + +All URIs are relative to *https://staging.laminhub.com/api* + +| Method | HTTP request | Description | +|------------- | ------------- | -------------| +| [**addOrganizationMemberOrganizationsOrganizationIdMembersAccountIdPut**](OrganizationsApi.md#addOrganizationMemberOrganizationsOrganizationIdMembersAccountIdPut) | **PUT** /organizations/{organization_id}/members/{account_id} | Add Organization Member | +| [**getOrganizationOrganizationsOrganizationIdGet**](OrganizationsApi.md#getOrganizationOrganizationsOrganizationIdGet) | **GET** /organizations/{organization_id} | Get Organization | +| [**listOrganizationMembersOrganizationsOrganizationIdMembersGet**](OrganizationsApi.md#listOrganizationMembersOrganizationsOrganizationIdMembersGet) | **GET** /organizations/{organization_id}/members | List Organization Members | +| [**removeOrganizationMemberOrganizationsOrganizationIdMembersAccountIdDelete**](OrganizationsApi.md#removeOrganizationMemberOrganizationsOrganizationIdMembersAccountIdDelete) | **DELETE** /organizations/{organization_id}/members/{account_id} | Remove Organization Member | +| [**updateOrganizationMemberOrganizationsOrganizationIdMembersAccountIdPatch**](OrganizationsApi.md#updateOrganizationMemberOrganizationsOrganizationIdMembersAccountIdPatch) | **PATCH** /organizations/{organization_id}/members/{account_id} | Update Organization Member | + + + +# **addOrganizationMemberOrganizationsOrganizationIdMembersAccountIdPut** +> Object addOrganizationMemberOrganizationsOrganizationIdMembersAccountIdPut(organizationId, accountId, addOrganizationMemberRequestBody, instanceId, authorization) + +Add Organization Member + +Add a member to an organization. Parameters: - **organization_id**: UUID of the organization to add the member to - **account_id**: UUID of the account to add as a member - **body**: Request body containing member details - **role**: Role of the member in the organization Returns: - **201**: Organization member added 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.OrganizationsApi; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("https://staging.laminhub.com/api"); + + OrganizationsApi apiInstance = new OrganizationsApi(defaultClient); + UUID organizationId = UUID.randomUUID(); // UUID | + UUID accountId = UUID.randomUUID(); // UUID | + AddOrganizationMemberRequestBody addOrganizationMemberRequestBody = new AddOrganizationMemberRequestBody(); // AddOrganizationMemberRequestBody | + UUID instanceId = UUID.randomUUID(); // UUID | + String authorization = "authorization_example"; // String | + try { + Object result = apiInstance.addOrganizationMemberOrganizationsOrganizationIdMembersAccountIdPut(organizationId, accountId, addOrganizationMemberRequestBody, instanceId, authorization); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling OrganizationsApi#addOrganizationMemberOrganizationsOrganizationIdMembersAccountIdPut"); + 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 | +|------------- | ------------- | ------------- | -------------| +| **organizationId** | **UUID**| | | +| **accountId** | **UUID**| | | +| **addOrganizationMemberRequestBody** | [**AddOrganizationMemberRequestBody**](AddOrganizationMemberRequestBody.md)| | | +| **instanceId** | **UUID**| | [optional] | +| **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 | - | + + +# **getOrganizationOrganizationsOrganizationIdGet** +> Object getOrganizationOrganizationsOrganizationIdGet(organizationId, instanceId, authorization) + +Get Organization + +Get details of a specific organization. Parameters: - **organization_id**: UUID of the organization to retrieve Returns: - **200**: Organization details retrieved successfully - **404**: Organization not found + +### 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.OrganizationsApi; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("https://staging.laminhub.com/api"); + + OrganizationsApi apiInstance = new OrganizationsApi(defaultClient); + UUID organizationId = UUID.randomUUID(); // UUID | + UUID instanceId = UUID.randomUUID(); // UUID | + String authorization = "authorization_example"; // String | + try { + Object result = apiInstance.getOrganizationOrganizationsOrganizationIdGet(organizationId, instanceId, authorization); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling OrganizationsApi#getOrganizationOrganizationsOrganizationIdGet"); + 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 | +|------------- | ------------- | ------------- | -------------| +| **organizationId** | **UUID**| | | +| **instanceId** | **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 | - | + + +# **listOrganizationMembersOrganizationsOrganizationIdMembersGet** +> Object listOrganizationMembersOrganizationsOrganizationIdMembersGet(organizationId, instanceId, authorization) + +List Organization Members + +List all members of an organization. Parameters: - **organization_id**: UUID of the organization to list members for Returns: - **200**: List of organization members retrieved 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.OrganizationsApi; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("https://staging.laminhub.com/api"); + + OrganizationsApi apiInstance = new OrganizationsApi(defaultClient); + UUID organizationId = UUID.randomUUID(); // UUID | + UUID instanceId = UUID.randomUUID(); // UUID | + String authorization = "authorization_example"; // String | + try { + Object result = apiInstance.listOrganizationMembersOrganizationsOrganizationIdMembersGet(organizationId, instanceId, authorization); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling OrganizationsApi#listOrganizationMembersOrganizationsOrganizationIdMembersGet"); + 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 | +|------------- | ------------- | ------------- | -------------| +| **organizationId** | **UUID**| | | +| **instanceId** | **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 | - | + + +# **removeOrganizationMemberOrganizationsOrganizationIdMembersAccountIdDelete** +> Object removeOrganizationMemberOrganizationsOrganizationIdMembersAccountIdDelete(organizationId, accountId, instanceId, authorization) + +Remove Organization Member + +Remove a member from an organization. Parameters: - **organization_id**: UUID of the organization to remove the member from - **account_id**: UUID of the account to remove from the organization Returns: - **200**: Organization member removed successfully - **404**: Member not found in organization + +### 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.OrganizationsApi; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("https://staging.laminhub.com/api"); + + OrganizationsApi apiInstance = new OrganizationsApi(defaultClient); + UUID organizationId = UUID.randomUUID(); // UUID | + UUID accountId = UUID.randomUUID(); // UUID | + UUID instanceId = UUID.randomUUID(); // UUID | + String authorization = "authorization_example"; // String | + try { + Object result = apiInstance.removeOrganizationMemberOrganizationsOrganizationIdMembersAccountIdDelete(organizationId, accountId, instanceId, authorization); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling OrganizationsApi#removeOrganizationMemberOrganizationsOrganizationIdMembersAccountIdDelete"); + 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 | +|------------- | ------------- | ------------- | -------------| +| **organizationId** | **UUID**| | | +| **accountId** | **UUID**| | | +| **instanceId** | **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 | - | + + +# **updateOrganizationMemberOrganizationsOrganizationIdMembersAccountIdPatch** +> Object updateOrganizationMemberOrganizationsOrganizationIdMembersAccountIdPatch(organizationId, accountId, updateOrganizationMemberRequestBody, instanceId, authorization) + +Update Organization Member + +Update an organization member's details. Parameters: - **organization_id**: UUID of the organization the member belongs to - **account_id**: UUID of the account to update - **body**: Request body containing updated member details - **role**: Role of the member in the organization Returns: - **200**: Organization member updated successfully - **404**: Member not found in organization + +### 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.OrganizationsApi; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("https://staging.laminhub.com/api"); + + OrganizationsApi apiInstance = new OrganizationsApi(defaultClient); + UUID organizationId = UUID.randomUUID(); // UUID | + UUID accountId = UUID.randomUUID(); // UUID | + UpdateOrganizationMemberRequestBody updateOrganizationMemberRequestBody = new UpdateOrganizationMemberRequestBody(); // UpdateOrganizationMemberRequestBody | + UUID instanceId = UUID.randomUUID(); // UUID | + String authorization = "authorization_example"; // String | + try { + Object result = apiInstance.updateOrganizationMemberOrganizationsOrganizationIdMembersAccountIdPatch(organizationId, accountId, updateOrganizationMemberRequestBody, instanceId, authorization); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling OrganizationsApi#updateOrganizationMemberOrganizationsOrganizationIdMembersAccountIdPatch"); + 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 | +|------------- | ------------- | ------------- | -------------| +| **organizationId** | **UUID**| | | +| **accountId** | **UUID**| | | +| **updateOrganizationMemberRequestBody** | [**UpdateOrganizationMemberRequestBody**](UpdateOrganizationMemberRequestBody.md)| | | +| **instanceId** | **UUID**| | [optional] | +| **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 | - | + diff --git a/docs/RegisterDbServerBody.md b/docs/RegisterDbServerBody.md index 4a7c021..ae49e06 100644 --- a/docs/RegisterDbServerBody.md +++ b/docs/RegisterDbServerBody.md @@ -10,6 +10,7 @@ |**name** | **String** | | | |**url** | **String** | | | |**apiServerName** | **String** | | | +|**organizationId** | **UUID** | | | diff --git a/docs/Request.md b/docs/Request.md new file mode 100644 index 0000000..479ff22 --- /dev/null +++ b/docs/Request.md @@ -0,0 +1,18 @@ + + +# Request + + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**relatives** | [**TraversalParams**](TraversalParams.md) | The parameters defining the relationship traversal. | | +|**select** | **List<String>** | | [optional] | +|**filter** | **Map<String, Object>** | | [optional] | +|**orderBy** | [**List<OrderByColumn>**](OrderByColumn.md) | | [optional] | +|**search** | **String** | | [optional] | +|**searchIn** | **List<String>** | | [optional] | + + + diff --git a/docs/S3PermissionsRequest.md b/docs/S3PermissionsRequest.md index 8e475e4..64f308f 100644 --- a/docs/S3PermissionsRequest.md +++ b/docs/S3PermissionsRequest.md @@ -10,6 +10,8 @@ |**awsAccessKeyId** | **String** | | | |**awsSecretAccessKey** | **String** | | | |**region** | **String** | | | +|**awsSessionToken** | **String** | | [optional] | +|**extraParameters** | **Map<String, Object>** | | [optional] | diff --git a/docs/SpacesApi.md b/docs/SpacesApi.md new file mode 100644 index 0000000..f4c4037 --- /dev/null +++ b/docs/SpacesApi.md @@ -0,0 +1,970 @@ +# SpacesApi + +All URIs are relative to *https://staging.laminhub.com/api* + +| Method | HTTP request | Description | +|------------- | ------------- | -------------| +| [**addSpaceCollaboratorSpacesSpaceIdCollaboratorsPut**](SpacesApi.md#addSpaceCollaboratorSpacesSpaceIdCollaboratorsPut) | **PUT** /spaces/{space_id}/collaborators | Add Space Collaborator | +| [**attachSpaceToInstanceSpacesSpaceIdInstancesInstanceIdPut**](SpacesApi.md#attachSpaceToInstanceSpacesSpaceIdInstancesInstanceIdPut) | **PUT** /spaces/{space_id}/instances/{instance_id} | Attach Space To Instance | +| [**createSpaceSpacesPut**](SpacesApi.md#createSpaceSpacesPut) | **PUT** /spaces | Create Space | +| [**deleteSpaceSpacesSpaceIdDelete**](SpacesApi.md#deleteSpaceSpacesSpaceIdDelete) | **DELETE** /spaces/{space_id} | Delete Space | +| [**detachSpaceFromInstanceSpacesSpaceIdInstancesInstanceIdDelete**](SpacesApi.md#detachSpaceFromInstanceSpacesSpaceIdInstancesInstanceIdDelete) | **DELETE** /spaces/{space_id}/instances/{instance_id} | Detach Space From Instance | +| [**getSpaceSpacesSpaceIdGet**](SpacesApi.md#getSpaceSpacesSpaceIdGet) | **GET** /spaces/{space_id} | Get Space | +| [**listInstanceSpacesSpacesInstancesInstanceIdGet**](SpacesApi.md#listInstanceSpacesSpacesInstancesInstanceIdGet) | **GET** /spaces/instances/{instance_id} | List Instance Spaces | +| [**listInstancesUsingSpaceSpacesSpaceIdInstancesGet**](SpacesApi.md#listInstancesUsingSpaceSpacesSpaceIdInstancesGet) | **GET** /spaces/{space_id}/instances | List Instances Using Space | +| [**listOrganizationSpacesSpacesOrganizationsOrganizationIdGet**](SpacesApi.md#listOrganizationSpacesSpacesOrganizationsOrganizationIdGet) | **GET** /spaces/organizations/{organization_id} | List Organization Spaces | +| [**listSpaceCollaboratorsSpacesSpaceIdCollaboratorsGet**](SpacesApi.md#listSpaceCollaboratorsSpacesSpaceIdCollaboratorsGet) | **GET** /spaces/{space_id}/collaborators | List Space Collaborators | +| [**moveRecordToSpaceSpacesSpaceIdRecordAttachmentsPut**](SpacesApi.md#moveRecordToSpaceSpacesSpaceIdRecordAttachmentsPut) | **PUT** /spaces/{space_id}/record-attachments | Move Record To Space | +| [**removeSpaceCollaboratorSpacesSpaceIdCollaboratorsDelete**](SpacesApi.md#removeSpaceCollaboratorSpacesSpaceIdCollaboratorsDelete) | **DELETE** /spaces/{space_id}/collaborators | Remove Space Collaborator | +| [**updateSpaceCollaboratorSpacesSpaceIdCollaboratorsPatch**](SpacesApi.md#updateSpaceCollaboratorSpacesSpaceIdCollaboratorsPatch) | **PATCH** /spaces/{space_id}/collaborators | Update Space Collaborator | +| [**updateSpaceSpacesSpaceIdPatch**](SpacesApi.md#updateSpaceSpacesSpaceIdPatch) | **PATCH** /spaces/{space_id} | Update Space | + + + +# **addSpaceCollaboratorSpacesSpaceIdCollaboratorsPut** +> Object addSpaceCollaboratorSpacesSpaceIdCollaboratorsPut(spaceId, addSpaceCollaboratorRequestBody, instanceId, authorization) + +Add Space Collaborator + +Add a collaborator (account or team) to a space. Parameters: - **space_id**: ID of the space to add the collaborator to - **body**: Request body containing collaborator details - **account_id**: UUID of the account to add (mutually exclusive with team_id) - **team_id**: UUID of the team to add (mutually exclusive with account_id) - **role**: Role of the collaborator Returns: - **201**: Collaborator added to space successfully - **400**: Invalid input (e.g., both account_id and team_id provided) + +### 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.SpacesApi; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("https://staging.laminhub.com/api"); + + SpacesApi apiInstance = new SpacesApi(defaultClient); + UUID spaceId = UUID.randomUUID(); // UUID | + AddSpaceCollaboratorRequestBody addSpaceCollaboratorRequestBody = new AddSpaceCollaboratorRequestBody(); // AddSpaceCollaboratorRequestBody | + UUID instanceId = UUID.randomUUID(); // UUID | + String authorization = "authorization_example"; // String | + try { + Object result = apiInstance.addSpaceCollaboratorSpacesSpaceIdCollaboratorsPut(spaceId, addSpaceCollaboratorRequestBody, instanceId, authorization); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling SpacesApi#addSpaceCollaboratorSpacesSpaceIdCollaboratorsPut"); + 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 | +|------------- | ------------- | ------------- | -------------| +| **spaceId** | **UUID**| | | +| **addSpaceCollaboratorRequestBody** | [**AddSpaceCollaboratorRequestBody**](AddSpaceCollaboratorRequestBody.md)| | | +| **instanceId** | **UUID**| | [optional] | +| **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 | - | + + +# **attachSpaceToInstanceSpacesSpaceIdInstancesInstanceIdPut** +> Object attachSpaceToInstanceSpacesSpaceIdInstancesInstanceIdPut(spaceId, instanceId, authorization) + +Attach Space To Instance + +Attach a space to a specific instance. Parameters: - **space_id**: ID of the space to attach - **instance_id**: UUID of the instance to attach the space to (from URL path) Returns: - **200**: Space attached to instance successfully Requires admin access to the instance + +### 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.SpacesApi; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("https://staging.laminhub.com/api"); + + SpacesApi apiInstance = new SpacesApi(defaultClient); + UUID spaceId = UUID.randomUUID(); // UUID | + UUID instanceId = UUID.randomUUID(); // UUID | + String authorization = "authorization_example"; // String | + try { + Object result = apiInstance.attachSpaceToInstanceSpacesSpaceIdInstancesInstanceIdPut(spaceId, instanceId, authorization); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling SpacesApi#attachSpaceToInstanceSpacesSpaceIdInstancesInstanceIdPut"); + 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 | +|------------- | ------------- | ------------- | -------------| +| **spaceId** | **UUID**| | | +| **instanceId** | **UUID**| | | +| **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 | - | + + +# **createSpaceSpacesPut** +> Object createSpaceSpacesPut(createSpaceRequestBody, instanceId, authorization) + +Create Space + +Create a new space. Parameters: - **body**: Request body containing space details - **name**: Name of the space - **organization_id**: UUID of the organization - **description**: Optional description of the space Returns: - **201**: Space created 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.SpacesApi; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("https://staging.laminhub.com/api"); + + SpacesApi apiInstance = new SpacesApi(defaultClient); + CreateSpaceRequestBody createSpaceRequestBody = new CreateSpaceRequestBody(); // CreateSpaceRequestBody | + UUID instanceId = UUID.randomUUID(); // UUID | + String authorization = "authorization_example"; // String | + try { + Object result = apiInstance.createSpaceSpacesPut(createSpaceRequestBody, instanceId, authorization); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling SpacesApi#createSpaceSpacesPut"); + 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 | +|------------- | ------------- | ------------- | -------------| +| **createSpaceRequestBody** | [**CreateSpaceRequestBody**](CreateSpaceRequestBody.md)| | | +| **instanceId** | **UUID**| | [optional] | +| **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 | - | + + +# **deleteSpaceSpacesSpaceIdDelete** +> Object deleteSpaceSpacesSpaceIdDelete(spaceId, instanceId, authorization) + +Delete Space + +Delete a space and detach it from the instance. Parameters: - **space_id**: ID of the space to delete Returns: - **200**: Space deleted successfully - **404**: Space not found + +### 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.SpacesApi; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("https://staging.laminhub.com/api"); + + SpacesApi apiInstance = new SpacesApi(defaultClient); + UUID spaceId = UUID.randomUUID(); // UUID | + UUID instanceId = UUID.randomUUID(); // UUID | + String authorization = "authorization_example"; // String | + try { + Object result = apiInstance.deleteSpaceSpacesSpaceIdDelete(spaceId, instanceId, authorization); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling SpacesApi#deleteSpaceSpacesSpaceIdDelete"); + 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 | +|------------- | ------------- | ------------- | -------------| +| **spaceId** | **UUID**| | | +| **instanceId** | **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 | - | + + +# **detachSpaceFromInstanceSpacesSpaceIdInstancesInstanceIdDelete** +> Object detachSpaceFromInstanceSpacesSpaceIdInstancesInstanceIdDelete(spaceId, instanceId, authorization) + +Detach Space From Instance + +Detach a space from a specific instance. Parameters: - **space_id**: ID of the space to detach - **instance_id**: UUID of the instance to detach the space from (from URL path) Returns: - **200**: Space detached from instance successfully Requires admin access to the instance + +### 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.SpacesApi; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("https://staging.laminhub.com/api"); + + SpacesApi apiInstance = new SpacesApi(defaultClient); + UUID spaceId = UUID.randomUUID(); // UUID | + UUID instanceId = UUID.randomUUID(); // UUID | + String authorization = "authorization_example"; // String | + try { + Object result = apiInstance.detachSpaceFromInstanceSpacesSpaceIdInstancesInstanceIdDelete(spaceId, instanceId, authorization); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling SpacesApi#detachSpaceFromInstanceSpacesSpaceIdInstancesInstanceIdDelete"); + 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 | +|------------- | ------------- | ------------- | -------------| +| **spaceId** | **UUID**| | | +| **instanceId** | **UUID**| | | +| **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 | - | + + +# **getSpaceSpacesSpaceIdGet** +> Object getSpaceSpacesSpaceIdGet(spaceId, instanceId, authorization) + +Get Space + +Get details of a specific space. Parameters: - **space_id**: ID of the space to retrieve Returns: - **200**: Space details retrieved successfully - **404**: Space not found + +### 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.SpacesApi; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("https://staging.laminhub.com/api"); + + SpacesApi apiInstance = new SpacesApi(defaultClient); + UUID spaceId = UUID.randomUUID(); // UUID | + UUID instanceId = UUID.randomUUID(); // UUID | + String authorization = "authorization_example"; // String | + try { + Object result = apiInstance.getSpaceSpacesSpaceIdGet(spaceId, instanceId, authorization); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling SpacesApi#getSpaceSpacesSpaceIdGet"); + 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 | +|------------- | ------------- | ------------- | -------------| +| **spaceId** | **UUID**| | | +| **instanceId** | **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 | - | + + +# **listInstanceSpacesSpacesInstancesInstanceIdGet** +> Object listInstanceSpacesSpacesInstancesInstanceIdGet(instanceId, authorization) + +List Instance Spaces + +List all spaces attached to an instance. Parameters: - **instance_id**: UUID of the instance to list spaces for (from URL path) Returns: - **200**: List of spaces attached to the instance retrieved 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.SpacesApi; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("https://staging.laminhub.com/api"); + + SpacesApi apiInstance = new SpacesApi(defaultClient); + UUID instanceId = UUID.randomUUID(); // UUID | + String authorization = "authorization_example"; // String | + try { + Object result = apiInstance.listInstanceSpacesSpacesInstancesInstanceIdGet(instanceId, authorization); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling SpacesApi#listInstanceSpacesSpacesInstancesInstanceIdGet"); + 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**| | | +| **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 | - | + + +# **listInstancesUsingSpaceSpacesSpaceIdInstancesGet** +> Object listInstancesUsingSpaceSpacesSpaceIdInstancesGet(spaceId, instanceId, authorization) + +List Instances Using Space + +List all instances that have this space attached. Parameters: - **space_id**: ID of the space to check Returns: - **200**: List of instances using the space retrieved 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.SpacesApi; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("https://staging.laminhub.com/api"); + + SpacesApi apiInstance = new SpacesApi(defaultClient); + UUID spaceId = UUID.randomUUID(); // UUID | + UUID instanceId = UUID.randomUUID(); // UUID | + String authorization = "authorization_example"; // String | + try { + Object result = apiInstance.listInstancesUsingSpaceSpacesSpaceIdInstancesGet(spaceId, instanceId, authorization); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling SpacesApi#listInstancesUsingSpaceSpacesSpaceIdInstancesGet"); + 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 | +|------------- | ------------- | ------------- | -------------| +| **spaceId** | **UUID**| | | +| **instanceId** | **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 | - | + + +# **listOrganizationSpacesSpacesOrganizationsOrganizationIdGet** +> Object listOrganizationSpacesSpacesOrganizationsOrganizationIdGet(organizationId, instanceId, authorization) + +List Organization Spaces + +List all spaces in an organization. Parameters: - **organization_id**: UUID of the organization to list spaces for Returns: - **200**: List of spaces retrieved 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.SpacesApi; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("https://staging.laminhub.com/api"); + + SpacesApi apiInstance = new SpacesApi(defaultClient); + UUID organizationId = UUID.randomUUID(); // UUID | + UUID instanceId = UUID.randomUUID(); // UUID | + String authorization = "authorization_example"; // String | + try { + Object result = apiInstance.listOrganizationSpacesSpacesOrganizationsOrganizationIdGet(organizationId, instanceId, authorization); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling SpacesApi#listOrganizationSpacesSpacesOrganizationsOrganizationIdGet"); + 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 | +|------------- | ------------- | ------------- | -------------| +| **organizationId** | **UUID**| | | +| **instanceId** | **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 | - | + + +# **listSpaceCollaboratorsSpacesSpaceIdCollaboratorsGet** +> Object listSpaceCollaboratorsSpacesSpaceIdCollaboratorsGet(spaceId, instanceId, authorization) + +List Space Collaborators + +List all collaborators of a space. Parameters: - **space_id**: ID of the space to list collaborators for Returns: - **200**: List of space collaborators retrieved 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.SpacesApi; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("https://staging.laminhub.com/api"); + + SpacesApi apiInstance = new SpacesApi(defaultClient); + UUID spaceId = UUID.randomUUID(); // UUID | + UUID instanceId = UUID.randomUUID(); // UUID | + String authorization = "authorization_example"; // String | + try { + Object result = apiInstance.listSpaceCollaboratorsSpacesSpaceIdCollaboratorsGet(spaceId, instanceId, authorization); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling SpacesApi#listSpaceCollaboratorsSpacesSpaceIdCollaboratorsGet"); + 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 | +|------------- | ------------- | ------------- | -------------| +| **spaceId** | **UUID**| | | +| **instanceId** | **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 | - | + + +# **moveRecordToSpaceSpacesSpaceIdRecordAttachmentsPut** +> Object moveRecordToSpaceSpacesSpaceIdRecordAttachmentsPut(instanceDbSpaceId, attachSpaceToRecordRequestBody, instanceId, authorization) + +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 + +### 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.SpacesApi; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("https://staging.laminhub.com/api"); + + SpacesApi apiInstance = new SpacesApi(defaultClient); + Integer instanceDbSpaceId = 56; // Integer | + AttachSpaceToRecordRequestBody attachSpaceToRecordRequestBody = new AttachSpaceToRecordRequestBody(); // AttachSpaceToRecordRequestBody | + UUID instanceId = UUID.randomUUID(); // UUID | + String authorization = "authorization_example"; // String | + try { + Object result = apiInstance.moveRecordToSpaceSpacesSpaceIdRecordAttachmentsPut(instanceDbSpaceId, attachSpaceToRecordRequestBody, instanceId, authorization); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling SpacesApi#moveRecordToSpaceSpacesSpaceIdRecordAttachmentsPut"); + 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 | +|------------- | ------------- | ------------- | -------------| +| **instanceDbSpaceId** | **Integer**| | | +| **attachSpaceToRecordRequestBody** | [**AttachSpaceToRecordRequestBody**](AttachSpaceToRecordRequestBody.md)| | | +| **instanceId** | **UUID**| | [optional] | +| **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 | - | + + +# **removeSpaceCollaboratorSpacesSpaceIdCollaboratorsDelete** +> Object removeSpaceCollaboratorSpacesSpaceIdCollaboratorsDelete(spaceId, accountId, teamId, instanceId, authorization) + +Remove Space Collaborator + +Remove a collaborator (account or team) from a space. Parameters: - **space_id**: ID of the space to remove the collaborator from - **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 from space successfully - **400**: Invalid input (e.g., both account_id and team_id provided or neither provided) + +### 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.SpacesApi; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("https://staging.laminhub.com/api"); + + SpacesApi apiInstance = new SpacesApi(defaultClient); + UUID spaceId = UUID.randomUUID(); // UUID | + UUID accountId = UUID.randomUUID(); // UUID | + UUID teamId = UUID.randomUUID(); // UUID | + UUID instanceId = UUID.randomUUID(); // UUID | + String authorization = "authorization_example"; // String | + try { + Object result = apiInstance.removeSpaceCollaboratorSpacesSpaceIdCollaboratorsDelete(spaceId, accountId, teamId, instanceId, authorization); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling SpacesApi#removeSpaceCollaboratorSpacesSpaceIdCollaboratorsDelete"); + 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 | +|------------- | ------------- | ------------- | -------------| +| **spaceId** | **UUID**| | | +| **accountId** | **UUID**| | [optional] | +| **teamId** | **UUID**| | [optional] | +| **instanceId** | **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 | - | + + +# **updateSpaceCollaboratorSpacesSpaceIdCollaboratorsPatch** +> Object updateSpaceCollaboratorSpacesSpaceIdCollaboratorsPatch(spaceId, updateSpaceCollaboratorRequestBody, instanceId, authorization) + +Update Space Collaborator + +Update a collaborator's permissions in a space. Parameters: - **space_id**: ID of the space to update the collaborator in - **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 in space + +### 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.SpacesApi; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("https://staging.laminhub.com/api"); + + SpacesApi apiInstance = new SpacesApi(defaultClient); + UUID spaceId = UUID.randomUUID(); // UUID | + UpdateSpaceCollaboratorRequestBody updateSpaceCollaboratorRequestBody = new UpdateSpaceCollaboratorRequestBody(); // UpdateSpaceCollaboratorRequestBody | + UUID instanceId = UUID.randomUUID(); // UUID | + String authorization = "authorization_example"; // String | + try { + Object result = apiInstance.updateSpaceCollaboratorSpacesSpaceIdCollaboratorsPatch(spaceId, updateSpaceCollaboratorRequestBody, instanceId, authorization); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling SpacesApi#updateSpaceCollaboratorSpacesSpaceIdCollaboratorsPatch"); + 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 | +|------------- | ------------- | ------------- | -------------| +| **spaceId** | **UUID**| | | +| **updateSpaceCollaboratorRequestBody** | [**UpdateSpaceCollaboratorRequestBody**](UpdateSpaceCollaboratorRequestBody.md)| | | +| **instanceId** | **UUID**| | [optional] | +| **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 | - | + + +# **updateSpaceSpacesSpaceIdPatch** +> Object updateSpaceSpacesSpaceIdPatch(spaceId, updateSpaceRequestBody, instanceId, authorization) + +Update Space + +Update a space's details. Parameters: - **space_id**: ID of the space to update - **body**: Request body containing updated space details - **name**: Optional new name for the space - **description**: Optional new description for the space Returns: - **200**: Space updated 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.SpacesApi; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("https://staging.laminhub.com/api"); + + SpacesApi apiInstance = new SpacesApi(defaultClient); + UUID spaceId = UUID.randomUUID(); // UUID | + UpdateSpaceRequestBody updateSpaceRequestBody = new UpdateSpaceRequestBody(); // UpdateSpaceRequestBody | + UUID instanceId = UUID.randomUUID(); // UUID | + String authorization = "authorization_example"; // String | + try { + Object result = apiInstance.updateSpaceSpacesSpaceIdPatch(spaceId, updateSpaceRequestBody, instanceId, authorization); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling SpacesApi#updateSpaceSpacesSpaceIdPatch"); + 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 | +|------------- | ------------- | ------------- | -------------| +| **spaceId** | **UUID**| | | +| **updateSpaceRequestBody** | [**UpdateSpaceRequestBody**](UpdateSpaceRequestBody.md)| | | +| **instanceId** | **UUID**| | [optional] | +| **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 | - | + diff --git a/docs/StatisticsResponse.md b/docs/StatisticsResponse.md new file mode 100644 index 0000000..e3edd9d --- /dev/null +++ b/docs/StatisticsResponse.md @@ -0,0 +1,15 @@ + + +# StatisticsResponse + +Defines the response for the instance statistics endpoint. + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**instanceSize** | **Integer** | Total size in bytes of all artifacts, calculated precisely in real-time. | | +|**counts** | **Map<String, Map<String, Integer>>** | A nested dictionary containing approximate row counts for tables. Keys are module names, and values are dictionaries mapping class names to their estimated row count. | | + + + diff --git a/docs/StoragesApi.md b/docs/StoragesApi.md new file mode 100644 index 0000000..df4364b --- /dev/null +++ b/docs/StoragesApi.md @@ -0,0 +1,80 @@ +# StoragesApi + +All URIs are relative to *https://staging.laminhub.com/api* + +| Method | HTTP request | Description | +|------------- | ------------- | -------------| +| [**grantS3PermissionsStoragesS3BucketNamePermissionsPut**](StoragesApi.md#grantS3PermissionsStoragesS3BucketNamePermissionsPut) | **PUT** /storages/s3/{bucket_name}/permissions | Grant S3 Permissions | + + + +# **grantS3PermissionsStoragesS3BucketNamePermissionsPut** +> Object grantS3PermissionsStoragesS3BucketNamePermissionsPut(bucketName, s3PermissionsRequest, awsAccountId, awsUserName, instanceId, authorization) + +Grant S3 Permissions + +### 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.StoragesApi; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("https://staging.laminhub.com/api"); + + StoragesApi apiInstance = new StoragesApi(defaultClient); + String bucketName = "bucketName_example"; // String | + S3PermissionsRequest s3PermissionsRequest = new S3PermissionsRequest(); // S3PermissionsRequest | + String awsAccountId = "767398070972"; // String | + String awsUserName = "lamin-manager"; // String | + UUID instanceId = UUID.randomUUID(); // UUID | + String authorization = "authorization_example"; // String | + try { + Object result = apiInstance.grantS3PermissionsStoragesS3BucketNamePermissionsPut(bucketName, s3PermissionsRequest, awsAccountId, awsUserName, instanceId, authorization); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling StoragesApi#grantS3PermissionsStoragesS3BucketNamePermissionsPut"); + 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 | +|------------- | ------------- | ------------- | -------------| +| **bucketName** | **String**| | | +| **s3PermissionsRequest** | [**S3PermissionsRequest**](S3PermissionsRequest.md)| | | +| **awsAccountId** | **String**| | [optional] [default to 767398070972] | +| **awsUserName** | **String**| | [optional] [default to lamin-manager] | +| **instanceId** | **UUID**| | [optional] | +| **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 | - | + diff --git a/docs/SyncInstruction.md b/docs/SyncInstruction.md new file mode 100644 index 0000000..cfe1060 --- /dev/null +++ b/docs/SyncInstruction.md @@ -0,0 +1,15 @@ + + +# SyncInstruction + +Defines a single synchronization instruction, containing the scope and the desired state for that scope. + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**scope** | **Map<String, Object>** | Key-value pairs defining the constant scope for this specific synchronization operation (e.g., {'artifact_id': 1, 'feature_id': 10}). | | +|**desiredIds** | **List<Object>** | The complete list of desired IDs for the list_key within this scope. | | + + + diff --git a/docs/TeamsApi.md b/docs/TeamsApi.md new file mode 100644 index 0000000..23f97d3 --- /dev/null +++ b/docs/TeamsApi.md @@ -0,0 +1,632 @@ +# TeamsApi + +All URIs are relative to *https://staging.laminhub.com/api* + +| Method | HTTP request | Description | +|------------- | ------------- | -------------| +| [**addTeamMemberTeamsTeamIdMembersAccountIdPut**](TeamsApi.md#addTeamMemberTeamsTeamIdMembersAccountIdPut) | **PUT** /teams/{team_id}/members/{account_id} | Add Team Member | +| [**createTeamTeamsPut**](TeamsApi.md#createTeamTeamsPut) | **PUT** /teams | Create Team | +| [**deleteTeamTeamsTeamIdDelete**](TeamsApi.md#deleteTeamTeamsTeamIdDelete) | **DELETE** /teams/{team_id} | Delete Team | +| [**getTeamTeamsTeamIdGet**](TeamsApi.md#getTeamTeamsTeamIdGet) | **GET** /teams/{team_id} | Get Team | +| [**listOrganizationTeamsTeamsOrganizationsOrganizationIdGet**](TeamsApi.md#listOrganizationTeamsTeamsOrganizationsOrganizationIdGet) | **GET** /teams/organizations/{organization_id} | List Organization Teams | +| [**listTeamMembersTeamsTeamIdMembersGet**](TeamsApi.md#listTeamMembersTeamsTeamIdMembersGet) | **GET** /teams/{team_id}/members | List Team Members | +| [**removeTeamMemberTeamsTeamIdMembersAccountIdDelete**](TeamsApi.md#removeTeamMemberTeamsTeamIdMembersAccountIdDelete) | **DELETE** /teams/{team_id}/members/{account_id} | Remove Team Member | +| [**updateTeamMemberTeamsTeamIdMembersAccountIdPatch**](TeamsApi.md#updateTeamMemberTeamsTeamIdMembersAccountIdPatch) | **PATCH** /teams/{team_id}/members/{account_id} | Update Team Member | +| [**updateTeamTeamsTeamIdPatch**](TeamsApi.md#updateTeamTeamsTeamIdPatch) | **PATCH** /teams/{team_id} | Update Team | + + + +# **addTeamMemberTeamsTeamIdMembersAccountIdPut** +> Object addTeamMemberTeamsTeamIdMembersAccountIdPut(teamId, accountId, addTeamMemberRequestBody, instanceId, authorization) + +Add Team Member + +Add a member to a team. Parameters: - **team_id**: UUID of the team to add the member to - **account_id**: UUID of the account to add as a member - **body**: Request body containing member details - **role**: Role of the member in the team Returns: - **201**: Team member added 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.TeamsApi; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("https://staging.laminhub.com/api"); + + TeamsApi apiInstance = new TeamsApi(defaultClient); + UUID teamId = UUID.randomUUID(); // UUID | + UUID accountId = UUID.randomUUID(); // UUID | + AddTeamMemberRequestBody addTeamMemberRequestBody = new AddTeamMemberRequestBody(); // AddTeamMemberRequestBody | + UUID instanceId = UUID.randomUUID(); // UUID | + String authorization = "authorization_example"; // String | + try { + Object result = apiInstance.addTeamMemberTeamsTeamIdMembersAccountIdPut(teamId, accountId, addTeamMemberRequestBody, instanceId, authorization); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling TeamsApi#addTeamMemberTeamsTeamIdMembersAccountIdPut"); + 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 | +|------------- | ------------- | ------------- | -------------| +| **teamId** | **UUID**| | | +| **accountId** | **UUID**| | | +| **addTeamMemberRequestBody** | [**AddTeamMemberRequestBody**](AddTeamMemberRequestBody.md)| | | +| **instanceId** | **UUID**| | [optional] | +| **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 | - | + + +# **createTeamTeamsPut** +> Object createTeamTeamsPut(createTeamRequestBody, instanceId, authorization) + +Create Team + +Create a new team. Parameters: - **body**: Request body containing team details - **name**: Name of the team - **organization_id**: UUID of the organization - **description**: Optional description of the team Returns: - **201**: Team created 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.TeamsApi; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("https://staging.laminhub.com/api"); + + TeamsApi apiInstance = new TeamsApi(defaultClient); + CreateTeamRequestBody createTeamRequestBody = new CreateTeamRequestBody(); // CreateTeamRequestBody | + UUID instanceId = UUID.randomUUID(); // UUID | + String authorization = "authorization_example"; // String | + try { + Object result = apiInstance.createTeamTeamsPut(createTeamRequestBody, instanceId, authorization); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling TeamsApi#createTeamTeamsPut"); + 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 | +|------------- | ------------- | ------------- | -------------| +| **createTeamRequestBody** | [**CreateTeamRequestBody**](CreateTeamRequestBody.md)| | | +| **instanceId** | **UUID**| | [optional] | +| **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 | - | + + +# **deleteTeamTeamsTeamIdDelete** +> Object deleteTeamTeamsTeamIdDelete(teamId, instanceId, authorization) + +Delete Team + +Delete a team. Parameters: - **team_id**: UUID of the team to delete Returns: - **200**: Team deleted 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.TeamsApi; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("https://staging.laminhub.com/api"); + + TeamsApi apiInstance = new TeamsApi(defaultClient); + UUID teamId = UUID.randomUUID(); // UUID | + UUID instanceId = UUID.randomUUID(); // UUID | + String authorization = "authorization_example"; // String | + try { + Object result = apiInstance.deleteTeamTeamsTeamIdDelete(teamId, instanceId, authorization); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling TeamsApi#deleteTeamTeamsTeamIdDelete"); + 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 | +|------------- | ------------- | ------------- | -------------| +| **teamId** | **UUID**| | | +| **instanceId** | **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 | - | + + +# **getTeamTeamsTeamIdGet** +> Object getTeamTeamsTeamIdGet(teamId, instanceId, authorization) + +Get Team + +Get details of a specific team. Parameters: - **team_id**: UUID of the team to retrieve Returns: - **200**: Team details retrieved successfully - **404**: Team not found + +### 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.TeamsApi; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("https://staging.laminhub.com/api"); + + TeamsApi apiInstance = new TeamsApi(defaultClient); + UUID teamId = UUID.randomUUID(); // UUID | + UUID instanceId = UUID.randomUUID(); // UUID | + String authorization = "authorization_example"; // String | + try { + Object result = apiInstance.getTeamTeamsTeamIdGet(teamId, instanceId, authorization); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling TeamsApi#getTeamTeamsTeamIdGet"); + 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 | +|------------- | ------------- | ------------- | -------------| +| **teamId** | **UUID**| | | +| **instanceId** | **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 | - | + + +# **listOrganizationTeamsTeamsOrganizationsOrganizationIdGet** +> Object listOrganizationTeamsTeamsOrganizationsOrganizationIdGet(organizationId, instanceId, authorization) + +List Organization Teams + +List all teams in an organization. Parameters: - **organization_id**: UUID of the organization to list teams for Returns: - **200**: List of teams retrieved 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.TeamsApi; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("https://staging.laminhub.com/api"); + + TeamsApi apiInstance = new TeamsApi(defaultClient); + UUID organizationId = UUID.randomUUID(); // UUID | + UUID instanceId = UUID.randomUUID(); // UUID | + String authorization = "authorization_example"; // String | + try { + Object result = apiInstance.listOrganizationTeamsTeamsOrganizationsOrganizationIdGet(organizationId, instanceId, authorization); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling TeamsApi#listOrganizationTeamsTeamsOrganizationsOrganizationIdGet"); + 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 | +|------------- | ------------- | ------------- | -------------| +| **organizationId** | **UUID**| | | +| **instanceId** | **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 | - | + + +# **listTeamMembersTeamsTeamIdMembersGet** +> Object listTeamMembersTeamsTeamIdMembersGet(teamId, instanceId, authorization) + +List Team Members + +List all members of a team. Parameters: - **team_id**: UUID of the team to list members for Returns: - **200**: List of team members retrieved 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.TeamsApi; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("https://staging.laminhub.com/api"); + + TeamsApi apiInstance = new TeamsApi(defaultClient); + UUID teamId = UUID.randomUUID(); // UUID | + UUID instanceId = UUID.randomUUID(); // UUID | + String authorization = "authorization_example"; // String | + try { + Object result = apiInstance.listTeamMembersTeamsTeamIdMembersGet(teamId, instanceId, authorization); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling TeamsApi#listTeamMembersTeamsTeamIdMembersGet"); + 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 | +|------------- | ------------- | ------------- | -------------| +| **teamId** | **UUID**| | | +| **instanceId** | **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 | - | + + +# **removeTeamMemberTeamsTeamIdMembersAccountIdDelete** +> Object removeTeamMemberTeamsTeamIdMembersAccountIdDelete(teamId, accountId, instanceId, authorization) + +Remove Team Member + +Remove a member from a team. Parameters: - **team_id**: UUID of the team to remove the member from - **account_id**: UUID of the account to remove from the team Returns: - **200**: Team member removed successfully - **404**: Member not found in team + +### 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.TeamsApi; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("https://staging.laminhub.com/api"); + + TeamsApi apiInstance = new TeamsApi(defaultClient); + UUID teamId = UUID.randomUUID(); // UUID | + UUID accountId = UUID.randomUUID(); // UUID | + UUID instanceId = UUID.randomUUID(); // UUID | + String authorization = "authorization_example"; // String | + try { + Object result = apiInstance.removeTeamMemberTeamsTeamIdMembersAccountIdDelete(teamId, accountId, instanceId, authorization); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling TeamsApi#removeTeamMemberTeamsTeamIdMembersAccountIdDelete"); + 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 | +|------------- | ------------- | ------------- | -------------| +| **teamId** | **UUID**| | | +| **accountId** | **UUID**| | | +| **instanceId** | **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 | - | + + +# **updateTeamMemberTeamsTeamIdMembersAccountIdPatch** +> Object updateTeamMemberTeamsTeamIdMembersAccountIdPatch(teamId, accountId, updateTeamMemberRequestBody, instanceId, authorization) + +Update Team Member + +Update a team member's details. Parameters: - **team_id**: UUID of the team the member belongs to - **account_id**: UUID of the account to update - **body**: Request body containing updated member details - **role**: Role of the member in the team Returns: - **200**: Team member updated successfully - **404**: Member not found in team + +### 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.TeamsApi; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("https://staging.laminhub.com/api"); + + TeamsApi apiInstance = new TeamsApi(defaultClient); + UUID teamId = UUID.randomUUID(); // UUID | + UUID accountId = UUID.randomUUID(); // UUID | + UpdateTeamMemberRequestBody updateTeamMemberRequestBody = new UpdateTeamMemberRequestBody(); // UpdateTeamMemberRequestBody | + UUID instanceId = UUID.randomUUID(); // UUID | + String authorization = "authorization_example"; // String | + try { + Object result = apiInstance.updateTeamMemberTeamsTeamIdMembersAccountIdPatch(teamId, accountId, updateTeamMemberRequestBody, instanceId, authorization); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling TeamsApi#updateTeamMemberTeamsTeamIdMembersAccountIdPatch"); + 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 | +|------------- | ------------- | ------------- | -------------| +| **teamId** | **UUID**| | | +| **accountId** | **UUID**| | | +| **updateTeamMemberRequestBody** | [**UpdateTeamMemberRequestBody**](UpdateTeamMemberRequestBody.md)| | | +| **instanceId** | **UUID**| | [optional] | +| **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 | - | + + +# **updateTeamTeamsTeamIdPatch** +> Object updateTeamTeamsTeamIdPatch(teamId, updateTeamRequestBody, instanceId, authorization) + +Update Team + +Update a team's details. Parameters: - **team_id**: UUID of the team to update - **body**: Request body containing updated team details - **name**: Optional new name for the team - **description**: Optional new description for the team Returns: - **200**: Team updated 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.TeamsApi; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("https://staging.laminhub.com/api"); + + TeamsApi apiInstance = new TeamsApi(defaultClient); + UUID teamId = UUID.randomUUID(); // UUID | + UpdateTeamRequestBody updateTeamRequestBody = new UpdateTeamRequestBody(); // UpdateTeamRequestBody | + UUID instanceId = UUID.randomUUID(); // UUID | + String authorization = "authorization_example"; // String | + try { + Object result = apiInstance.updateTeamTeamsTeamIdPatch(teamId, updateTeamRequestBody, instanceId, authorization); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling TeamsApi#updateTeamTeamsTeamIdPatch"); + 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 | +|------------- | ------------- | ------------- | -------------| +| **teamId** | **UUID**| | | +| **updateTeamRequestBody** | [**UpdateTeamRequestBody**](UpdateTeamRequestBody.md)| | | +| **instanceId** | **UUID**| | [optional] | +| **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 | - | + diff --git a/docs/TraversalParams.md b/docs/TraversalParams.md new file mode 100644 index 0000000..bdef0ae --- /dev/null +++ b/docs/TraversalParams.md @@ -0,0 +1,26 @@ + + +# TraversalParams + +Parameters that define the hierarchical traversal. + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**values** | [**List<TraversalParamsValuesInner>**](TraversalParamsValuesInner.md) | A list of values for the specified 'field' to begin the traversal from. | | +|**kind** | [**KindEnum**](#KindEnum) | The direction of traversal | | +|**field** | **String** | The field on the model to use for identifying starting records (e.g., 'id', 'uid'). | [optional] | +|**depth** | **Integer** | | [optional] | + + + +## Enum: KindEnum + +| Name | Value | +|---- | -----| +| ANCESTORS | "ancestors" | +| DESCENDANTS | "descendants" | + + + diff --git a/docs/TraversalParamsValuesInner.md b/docs/TraversalParamsValuesInner.md new file mode 100644 index 0000000..59f801b --- /dev/null +++ b/docs/TraversalParamsValuesInner.md @@ -0,0 +1,12 @@ + + +# TraversalParamsValuesInner + + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| + + + diff --git a/docs/UpdateOrganizationMemberRequestBody.md b/docs/UpdateOrganizationMemberRequestBody.md index 6bcea03..b457920 100644 --- a/docs/UpdateOrganizationMemberRequestBody.md +++ b/docs/UpdateOrganizationMemberRequestBody.md @@ -16,8 +16,9 @@ | Name | Value | |---- | -----| | ADMIN | "admin" | -| MEMBER | "member" | | MANAGER | "manager" | +| MEMBER | "member" | +| GUEST | "guest" | diff --git a/generate.sh b/generate.sh index 305faf5..b6df64a 100755 --- a/generate.sh +++ b/generate.sh @@ -2,8 +2,8 @@ # See https://openapi-generator.tech/docs/installation to install openapi-generator-cli -INPUT_SPEC="https://aws.us-east-1.lamin.ai/api/openapi.json" -# INPUT_SPEC="https://staging.laminhub.com/api/openapi.json" +# INPUT_SPEC="https://aws.us-east-1.lamin.ai/api/openapi.json" +INPUT_SPEC="https://staging.laminhub.com/api/openapi.json" npx @openapitools/openapi-generator-cli generate \ --generator-name java \ diff --git a/pom.xml b/pom.xml index 346d770..b94dddf 100644 --- a/pom.xml +++ b/pom.xml @@ -6,7 +6,7 @@ lamin-api-client jar lamin-api-client - 0.0.3 + 0.0.4 https://github.com/laminlabs/lamin-api-client-java Java client for the Lamin API 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 83d7ad7..a88f052 100644 --- a/src/main/java/ai/lamin/lamin_api_client/ApiClient.java +++ b/src/main/java/ai/lamin/lamin_api_client/ApiClient.java @@ -61,10 +61,10 @@ */ public class ApiClient { - private String basePath = "https://aws.us-east-1.lamin.ai/api"; + private String basePath = "https://staging.laminhub.com/api"; protected List servers = new ArrayList(Arrays.asList( new ServerConfiguration( - "https://aws.us-east-1.lamin.ai/api", + "https://staging.laminhub.com/api", "No description provided", new HashMap() ) @@ -139,7 +139,7 @@ private void init() { json = new JSON(); // Set default User-Agent. - setUserAgent("OpenAPI-Generator/0.0.3/java"); + setUserAgent("OpenAPI-Generator/0.0.4/java"); authentications = new HashMap(); } @@ -156,7 +156,7 @@ public String getBasePath() { /** * Set base path * - * @param basePath Base path of the URL (e.g https://aws.us-east-1.lamin.ai/api + * @param basePath Base path of the URL (e.g https://staging.laminhub.com/api * @return An instance of OkHttpClient */ public ApiClient setBasePath(String basePath) { 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 e8d66ee..e704210 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-06-17T13:08:14.011869776+02:00[Europe/Brussels]", comments = "Generator version: 7.12.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-01-08T15:17:29.048390180+01: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 fe9b5d2..968036a 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-06-17T13:08:14.011869776+02:00[Europe/Brussels]", comments = "Generator version: 7.12.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-01-08T15:17:29.048390180+01:00[Europe/Brussels]", comments = "Generator version: 7.12.0") public class Configuration { - public static final String VERSION = "0.0.3"; + public static final String VERSION = "0.0.4"; 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 d85dd2b..a5bb536 100644 --- a/src/main/java/ai/lamin/lamin_api_client/JSON.java +++ b/src/main/java/ai/lamin/lamin_api_client/JSON.java @@ -98,24 +98,38 @@ private static Class getClassByDiscriminator(Map classByDiscriminatorValue, Stri gsonBuilder.registerTypeAdapterFactory(new ai.lamin.lamin_api_client.model.AddSpaceCollaboratorRequestBody.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new ai.lamin.lamin_api_client.model.AddTeamMemberRequestBody.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new ai.lamin.lamin_api_client.model.AttachSpaceToRecordRequestBody.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new ai.lamin.lamin_api_client.model.BatchDeleteBody.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new ai.lamin.lamin_api_client.model.BatchDeleteResponse.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new ai.lamin.lamin_api_client.model.BatchSyncLinksBody.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new ai.lamin.lamin_api_client.model.BatchSyncResponse.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new ai.lamin.lamin_api_client.model.BatchUpdateBody.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new ai.lamin.lamin_api_client.model.Body.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new ai.lamin.lamin_api_client.model.CreateArtifactRequestBody.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.CreateTransformRequestBody.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.ErrorDetail.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new ai.lamin.lamin_api_client.model.ExecuteFunctionRequestBody.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new ai.lamin.lamin_api_client.model.ExportRecordsRequestBody.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new ai.lamin.lamin_api_client.model.GetRecordRequestBody.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new ai.lamin.lamin_api_client.model.GetRecordsRequestBody.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new ai.lamin.lamin_api_client.model.GetValuesRequestBody.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new ai.lamin.lamin_api_client.model.GroupByRequestBody.CustomTypeAdapterFactory()); 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.NonEmptyTablesResponse.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.Request.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.StatisticsResponse.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new ai.lamin.lamin_api_client.model.SyncInstruction.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new ai.lamin.lamin_api_client.model.TraversalParams.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new ai.lamin.lamin_api_client.model.TraversalParamsValuesInner.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new ai.lamin.lamin_api_client.model.UpdateCollaboratorRequestBody.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new ai.lamin.lamin_api_client.model.UpdateOrganizationMemberRequestBody.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 bd15b78..682b6d9 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-06-17T13:08:14.011869776+02:00[Europe/Brussels]", comments = "Generator version: 7.12.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-01-08T15:17:29.048390180+01: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 cbcec02..c4459d2 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-06-17T13:08:14.011869776+02:00[Europe/Brussels]", comments = "Generator version: 7.12.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-01-08T15:17:29.048390180+01: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 fe22e42..02e9a1a 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-06-17T13:08:14.011869776+02:00[Europe/Brussels]", comments = "Generator version: 7.12.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-01-08T15:17:29.048390180+01: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 e0bc34b..183ba81 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-06-17T13:08:14.011869776+02:00[Europe/Brussels]", comments = "Generator version: 7.12.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-01-08T15:17:29.048390180+01: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/AccountsApi.java b/src/main/java/ai/lamin/lamin_api_client/api/AccountsApi.java new file mode 100644 index 0000000..6771a5d --- /dev/null +++ b/src/main/java/ai/lamin/lamin_api_client/api/AccountsApi.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.api; + +import ai.lamin.lamin_api_client.ApiCallback; +import ai.lamin.lamin_api_client.ApiClient; +import ai.lamin.lamin_api_client.ApiException; +import ai.lamin.lamin_api_client.ApiResponse; +import ai.lamin.lamin_api_client.Configuration; +import ai.lamin.lamin_api_client.Pair; +import ai.lamin.lamin_api_client.ProgressRequestBody; +import ai.lamin.lamin_api_client.ProgressResponseBody; + +import com.google.gson.reflect.TypeToken; + +import java.io.IOException; + + +import ai.lamin.lamin_api_client.model.HTTPValidationError; +import java.util.UUID; + +import java.lang.reflect.Type; +import java.util.ArrayList; +import java.util.HashMap; +import java.util.List; +import java.util.Map; + +public class AccountsApi { + private ApiClient localVarApiClient; + private int localHostIndex; + private String localCustomBaseUrl; + + public AccountsApi() { + this(Configuration.getDefaultApiClient()); + } + + public AccountsApi(ApiClient apiClient) { + this.localVarApiClient = apiClient; + } + + public ApiClient getApiClient() { + return localVarApiClient; + } + + public void setApiClient(ApiClient apiClient) { + this.localVarApiClient = apiClient; + } + + public int getHostIndex() { + return localHostIndex; + } + + public void setHostIndex(int hostIndex) { + this.localHostIndex = hostIndex; + } + + public String getCustomBaseUrl() { + return localCustomBaseUrl; + } + + public void setCustomBaseUrl(String customBaseUrl) { + this.localCustomBaseUrl = customBaseUrl; + } + + /** + * Build call for getCallerAccountAccountGet + * @param instanceId (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 getCallerAccountAccountGetCall(UUID instanceId, 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 = "/account"; + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + if (instanceId != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("instance_id", instanceId)); + } + + 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 getCallerAccountAccountGetValidateBeforeCall(UUID instanceId, String authorization, final ApiCallback _callback) throws ApiException { + return getCallerAccountAccountGetCall(instanceId, authorization, _callback); + + } + + /** + * Get Caller Account + * + * @param instanceId (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 getCallerAccountAccountGet(UUID instanceId, String authorization) throws ApiException { + ApiResponse localVarResp = getCallerAccountAccountGetWithHttpInfo(instanceId, authorization); + return localVarResp.getData(); + } + + /** + * Get Caller Account + * + * @param instanceId (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 getCallerAccountAccountGetWithHttpInfo(UUID instanceId, String authorization) throws ApiException { + okhttp3.Call localVarCall = getCallerAccountAccountGetValidateBeforeCall(instanceId, authorization, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * Get Caller Account (asynchronously) + * + * @param instanceId (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 getCallerAccountAccountGetAsync(UUID instanceId, String authorization, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = getCallerAccountAccountGetValidateBeforeCall(instanceId, authorization, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } +} diff --git a/src/main/java/ai/lamin/lamin_api_client/api/BackwardCompatibleEndpointsApi.java b/src/main/java/ai/lamin/lamin_api_client/api/BackwardCompatibleEndpointsApi.java new file mode 100644 index 0000000..dd4737c --- /dev/null +++ b/src/main/java/ai/lamin/lamin_api_client/api/BackwardCompatibleEndpointsApi.java @@ -0,0 +1,216 @@ +/* + * 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.api; + +import ai.lamin.lamin_api_client.ApiCallback; +import ai.lamin.lamin_api_client.ApiClient; +import ai.lamin.lamin_api_client.ApiException; +import ai.lamin.lamin_api_client.ApiResponse; +import ai.lamin.lamin_api_client.Configuration; +import ai.lamin.lamin_api_client.Pair; +import ai.lamin.lamin_api_client.ProgressRequestBody; +import ai.lamin.lamin_api_client.ProgressResponseBody; + +import com.google.gson.reflect.TypeToken; + +import java.io.IOException; + + +import ai.lamin.lamin_api_client.model.HTTPValidationError; +import java.util.UUID; + +import java.lang.reflect.Type; +import java.util.ArrayList; +import java.util.HashMap; +import java.util.List; +import java.util.Map; + +public class BackwardCompatibleEndpointsApi { + private ApiClient localVarApiClient; + private int localHostIndex; + private String localCustomBaseUrl; + + public BackwardCompatibleEndpointsApi() { + this(Configuration.getDefaultApiClient()); + } + + public BackwardCompatibleEndpointsApi(ApiClient apiClient) { + this.localVarApiClient = apiClient; + } + + public ApiClient getApiClient() { + return localVarApiClient; + } + + public void setApiClient(ApiClient apiClient) { + this.localVarApiClient = apiClient; + } + + public int getHostIndex() { + return localHostIndex; + } + + public void setHostIndex(int hostIndex) { + this.localHostIndex = hostIndex; + } + + public String getCustomBaseUrl() { + return localCustomBaseUrl; + } + + public void setCustomBaseUrl(String customBaseUrl) { + this.localCustomBaseUrl = customBaseUrl; + } + + /** + * Build call for getDbTokenBackwardCompatibleAccessV2InstancesInstanceIdDbTokenGet + * @param instanceId (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 getDbTokenBackwardCompatibleAccessV2InstancesInstanceIdDbTokenGetCall(UUID instanceId, 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 = "/access_v2/instances/{instance_id}/db_token" + .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 = { + }; + 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 getDbTokenBackwardCompatibleAccessV2InstancesInstanceIdDbTokenGetValidateBeforeCall(UUID instanceId, 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 getDbTokenBackwardCompatibleAccessV2InstancesInstanceIdDbTokenGet(Async)"); + } + + return getDbTokenBackwardCompatibleAccessV2InstancesInstanceIdDbTokenGetCall(instanceId, authorization, _callback); + + } + + /** + * Get Db Token Backward Compatible + * + * @param instanceId (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 getDbTokenBackwardCompatibleAccessV2InstancesInstanceIdDbTokenGet(UUID instanceId, String authorization) throws ApiException { + ApiResponse localVarResp = getDbTokenBackwardCompatibleAccessV2InstancesInstanceIdDbTokenGetWithHttpInfo(instanceId, authorization); + return localVarResp.getData(); + } + + /** + * Get Db Token Backward Compatible + * + * @param instanceId (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 getDbTokenBackwardCompatibleAccessV2InstancesInstanceIdDbTokenGetWithHttpInfo(UUID instanceId, String authorization) throws ApiException { + okhttp3.Call localVarCall = getDbTokenBackwardCompatibleAccessV2InstancesInstanceIdDbTokenGetValidateBeforeCall(instanceId, authorization, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * Get Db Token Backward Compatible (asynchronously) + * + * @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 getDbTokenBackwardCompatibleAccessV2InstancesInstanceIdDbTokenGetAsync(UUID instanceId, String authorization, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = getDbTokenBackwardCompatibleAccessV2InstancesInstanceIdDbTokenGetValidateBeforeCall(instanceId, authorization, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } +} diff --git a/src/main/java/ai/lamin/lamin_api_client/api/CacheApi.java b/src/main/java/ai/lamin/lamin_api_client/api/CacheApi.java new file mode 100644 index 0000000..39f876c --- /dev/null +++ b/src/main/java/ai/lamin/lamin_api_client/api/CacheApi.java @@ -0,0 +1,356 @@ +/* + * 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.api; + +import ai.lamin.lamin_api_client.ApiCallback; +import ai.lamin.lamin_api_client.ApiClient; +import ai.lamin.lamin_api_client.ApiException; +import ai.lamin.lamin_api_client.ApiResponse; +import ai.lamin.lamin_api_client.Configuration; +import ai.lamin.lamin_api_client.Pair; +import ai.lamin.lamin_api_client.ProgressRequestBody; +import ai.lamin.lamin_api_client.ProgressResponseBody; + +import com.google.gson.reflect.TypeToken; + +import java.io.IOException; + + +import ai.lamin.lamin_api_client.model.HTTPValidationError; +import java.util.UUID; + +import java.lang.reflect.Type; +import java.util.ArrayList; +import java.util.HashMap; +import java.util.List; +import java.util.Map; + +public class CacheApi { + private ApiClient localVarApiClient; + private int localHostIndex; + private String localCustomBaseUrl; + + public CacheApi() { + this(Configuration.getDefaultApiClient()); + } + + public CacheApi(ApiClient apiClient) { + this.localVarApiClient = apiClient; + } + + public ApiClient getApiClient() { + return localVarApiClient; + } + + public void setApiClient(ApiClient apiClient) { + this.localVarApiClient = apiClient; + } + + public int getHostIndex() { + return localHostIndex; + } + + public void setHostIndex(int hostIndex) { + this.localHostIndex = hostIndex; + } + + public String getCustomBaseUrl() { + return localCustomBaseUrl; + } + + public void setCustomBaseUrl(String customBaseUrl) { + this.localCustomBaseUrl = customBaseUrl; + } + + /** + * Build call for getInstanceCacheCacheInstancesInstanceIdGet + * @param instanceId (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 getInstanceCacheCacheInstancesInstanceIdGetCall(UUID instanceId, 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 = "/cache/instances/{instance_id}" + .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 = { + }; + 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 getInstanceCacheCacheInstancesInstanceIdGetValidateBeforeCall(UUID instanceId, 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 getInstanceCacheCacheInstancesInstanceIdGet(Async)"); + } + + return getInstanceCacheCacheInstancesInstanceIdGetCall(instanceId, authorization, _callback); + + } + + /** + * Get Instance Cache + * + * @param instanceId (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 getInstanceCacheCacheInstancesInstanceIdGet(UUID instanceId, String authorization) throws ApiException { + ApiResponse localVarResp = getInstanceCacheCacheInstancesInstanceIdGetWithHttpInfo(instanceId, authorization); + return localVarResp.getData(); + } + + /** + * Get Instance Cache + * + * @param instanceId (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 getInstanceCacheCacheInstancesInstanceIdGetWithHttpInfo(UUID instanceId, String authorization) throws ApiException { + okhttp3.Call localVarCall = getInstanceCacheCacheInstancesInstanceIdGetValidateBeforeCall(instanceId, authorization, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * Get Instance Cache (asynchronously) + * + * @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 getInstanceCacheCacheInstancesInstanceIdGetAsync(UUID instanceId, String authorization, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = getInstanceCacheCacheInstancesInstanceIdGetValidateBeforeCall(instanceId, authorization, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + /** + * Build call for invalidateInstanceCacheCacheInstancesInstanceIdDelete + * @param instanceId (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 invalidateInstanceCacheCacheInstancesInstanceIdDeleteCall(UUID instanceId, 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 = "/cache/instances/{instance_id}" + .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 = { + }; + 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, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call invalidateInstanceCacheCacheInstancesInstanceIdDeleteValidateBeforeCall(UUID instanceId, 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 invalidateInstanceCacheCacheInstancesInstanceIdDelete(Async)"); + } + + return invalidateInstanceCacheCacheInstancesInstanceIdDeleteCall(instanceId, authorization, _callback); + + } + + /** + * Invalidate Instance Cache + * + * @param instanceId (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 invalidateInstanceCacheCacheInstancesInstanceIdDelete(UUID instanceId, String authorization) throws ApiException { + ApiResponse localVarResp = invalidateInstanceCacheCacheInstancesInstanceIdDeleteWithHttpInfo(instanceId, authorization); + return localVarResp.getData(); + } + + /** + * Invalidate Instance Cache + * + * @param instanceId (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 invalidateInstanceCacheCacheInstancesInstanceIdDeleteWithHttpInfo(UUID instanceId, String authorization) throws ApiException { + okhttp3.Call localVarCall = invalidateInstanceCacheCacheInstancesInstanceIdDeleteValidateBeforeCall(instanceId, authorization, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * Invalidate Instance Cache (asynchronously) + * + * @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 invalidateInstanceCacheCacheInstancesInstanceIdDeleteAsync(UUID instanceId, String authorization, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = invalidateInstanceCacheCacheInstancesInstanceIdDeleteValidateBeforeCall(instanceId, authorization, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } +} diff --git a/src/main/java/ai/lamin/lamin_api_client/api/DbServerApi.java b/src/main/java/ai/lamin/lamin_api_client/api/DbServerApi.java new file mode 100644 index 0000000..a19f06a --- /dev/null +++ b/src/main/java/ai/lamin/lamin_api_client/api/DbServerApi.java @@ -0,0 +1,376 @@ +/* + * 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.api; + +import ai.lamin.lamin_api_client.ApiCallback; +import ai.lamin.lamin_api_client.ApiClient; +import ai.lamin.lamin_api_client.ApiException; +import ai.lamin.lamin_api_client.ApiResponse; +import ai.lamin.lamin_api_client.Configuration; +import ai.lamin.lamin_api_client.Pair; +import ai.lamin.lamin_api_client.ProgressRequestBody; +import ai.lamin.lamin_api_client.ProgressResponseBody; + +import com.google.gson.reflect.TypeToken; + +import java.io.IOException; + + +import ai.lamin.lamin_api_client.model.HTTPValidationError; +import ai.lamin.lamin_api_client.model.RegisterDbServerBody; +import java.util.UUID; + +import java.lang.reflect.Type; +import java.util.ArrayList; +import java.util.HashMap; +import java.util.List; +import java.util.Map; + +public class DbServerApi { + private ApiClient localVarApiClient; + private int localHostIndex; + private String localCustomBaseUrl; + + public DbServerApi() { + this(Configuration.getDefaultApiClient()); + } + + public DbServerApi(ApiClient apiClient) { + this.localVarApiClient = apiClient; + } + + public ApiClient getApiClient() { + return localVarApiClient; + } + + public void setApiClient(ApiClient apiClient) { + this.localVarApiClient = apiClient; + } + + public int getHostIndex() { + return localHostIndex; + } + + public void setHostIndex(int hostIndex) { + this.localHostIndex = hostIndex; + } + + public String getCustomBaseUrl() { + return localCustomBaseUrl; + } + + public void setCustomBaseUrl(String customBaseUrl) { + this.localCustomBaseUrl = customBaseUrl; + } + + /** + * Build call for checkDbServerAccessDbServerCheckAccessPost + * @param name (required) + * @param instanceId (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 checkDbServerAccessDbServerCheckAccessPostCall(String name, UUID instanceId, 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)); + } + + if (instanceId != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("instance_id", instanceId)); + } + + 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, UUID instanceId, 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, instanceId, authorization, _callback); + + } + + /** + * Check Db Server Access + * + * @param name (required) + * @param instanceId (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 checkDbServerAccessDbServerCheckAccessPost(String name, UUID instanceId, String authorization) throws ApiException { + ApiResponse localVarResp = checkDbServerAccessDbServerCheckAccessPostWithHttpInfo(name, instanceId, authorization); + return localVarResp.getData(); + } + + /** + * Check Db Server Access + * + * @param name (required) + * @param instanceId (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 checkDbServerAccessDbServerCheckAccessPostWithHttpInfo(String name, UUID instanceId, String authorization) throws ApiException { + okhttp3.Call localVarCall = checkDbServerAccessDbServerCheckAccessPostValidateBeforeCall(name, instanceId, authorization, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * Check Db Server Access (asynchronously) + * + * @param name (required) + * @param instanceId (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 checkDbServerAccessDbServerCheckAccessPostAsync(String name, UUID instanceId, String authorization, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = checkDbServerAccessDbServerCheckAccessPostValidateBeforeCall(name, instanceId, authorization, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + /** + * Build call for registerDbServerDbServerRegisterPost + * @param registerDbServerBody (required) + * @param instanceId (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 registerDbServerDbServerRegisterPostCall(RegisterDbServerBody registerDbServerBody, UUID instanceId, 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(); + + if (instanceId != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("instance_id", instanceId)); + } + + 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, UUID instanceId, 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, instanceId, authorization, _callback); + + } + + /** + * Register Db Server + * + * @param registerDbServerBody (required) + * @param instanceId (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 registerDbServerDbServerRegisterPost(RegisterDbServerBody registerDbServerBody, UUID instanceId, String authorization) throws ApiException { + ApiResponse localVarResp = registerDbServerDbServerRegisterPostWithHttpInfo(registerDbServerBody, instanceId, authorization); + return localVarResp.getData(); + } + + /** + * Register Db Server + * + * @param registerDbServerBody (required) + * @param instanceId (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 registerDbServerDbServerRegisterPostWithHttpInfo(RegisterDbServerBody registerDbServerBody, UUID instanceId, String authorization) throws ApiException { + okhttp3.Call localVarCall = registerDbServerDbServerRegisterPostValidateBeforeCall(registerDbServerBody, instanceId, authorization, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * Register Db Server (asynchronously) + * + * @param registerDbServerBody (required) + * @param instanceId (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 registerDbServerDbServerRegisterPostAsync(RegisterDbServerBody registerDbServerBody, UUID instanceId, String authorization, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = registerDbServerDbServerRegisterPostValidateBeforeCall(registerDbServerBody, instanceId, authorization, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } +} 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 deleted file mode 100644 index dcd8ad6..0000000 --- a/src/main/java/ai/lamin/lamin_api_client/api/DefaultApi.java +++ /dev/null @@ -1,11275 +0,0 @@ -/* - * 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.api; - -import ai.lamin.lamin_api_client.ApiCallback; -import ai.lamin.lamin_api_client.ApiClient; -import ai.lamin.lamin_api_client.ApiException; -import ai.lamin.lamin_api_client.ApiResponse; -import ai.lamin.lamin_api_client.Configuration; -import ai.lamin.lamin_api_client.Pair; -import ai.lamin.lamin_api_client.ProgressRequestBody; -import ai.lamin.lamin_api_client.ProgressResponseBody; - -import com.google.gson.reflect.TypeToken; - -import java.io.IOException; - - -import ai.lamin.lamin_api_client.model.AddCollaboratorRequestBody; -import ai.lamin.lamin_api_client.model.AddOrganizationMemberRequestBody; -import ai.lamin.lamin_api_client.model.AddSpaceCollaboratorRequestBody; -import ai.lamin.lamin_api_client.model.AddTeamMemberRequestBody; -import ai.lamin.lamin_api_client.model.AttachSpaceToRecordRequestBody; -import ai.lamin.lamin_api_client.model.CreateArtifactRequestBody; -import ai.lamin.lamin_api_client.model.CreateSpaceRequestBody; -import ai.lamin.lamin_api_client.model.CreateTeamRequestBody; -import ai.lamin.lamin_api_client.model.CreateTransformRequestBody; -import ai.lamin.lamin_api_client.model.DbUrlRequest; -import java.io.File; -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; -import ai.lamin.lamin_api_client.model.UpdateOrganizationMemberRequestBody; -import ai.lamin.lamin_api_client.model.UpdateSpaceCollaboratorRequestBody; -import ai.lamin.lamin_api_client.model.UpdateSpaceRequestBody; -import ai.lamin.lamin_api_client.model.UpdateTeamMemberRequestBody; -import ai.lamin.lamin_api_client.model.UpdateTeamRequestBody; - -import java.lang.reflect.Type; -import java.util.ArrayList; -import java.util.HashMap; -import java.util.List; -import java.util.Map; - -public class DefaultApi { - private ApiClient localVarApiClient; - private int localHostIndex; - private String localCustomBaseUrl; - - public DefaultApi() { - this(Configuration.getDefaultApiClient()); - } - - public DefaultApi(ApiClient apiClient) { - this.localVarApiClient = apiClient; - } - - public ApiClient getApiClient() { - return localVarApiClient; - } - - public void setApiClient(ApiClient apiClient) { - this.localVarApiClient = apiClient; - } - - public int getHostIndex() { - return localHostIndex; - } - - public void setHostIndex(int hostIndex) { - this.localHostIndex = hostIndex; - } - - public String getCustomBaseUrl() { - return localCustomBaseUrl; - } - - public void setCustomBaseUrl(String customBaseUrl) { - this.localCustomBaseUrl = customBaseUrl; - } - - /** - * Build call for addCollaboratorAccessV2InstancesInstanceIdCollaboratorsPut - * @param instanceId (required) - * @param addCollaboratorRequestBody (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 addCollaboratorAccessV2InstancesInstanceIdCollaboratorsPutCall(UUID instanceId, AddCollaboratorRequestBody addCollaboratorRequestBody, 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 = addCollaboratorRequestBody; - - // create path and map variables - String localVarPath = "/access_v2/instances/{instance_id}/collaborators" - .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, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); - } - - @SuppressWarnings("rawtypes") - private okhttp3.Call addCollaboratorAccessV2InstancesInstanceIdCollaboratorsPutValidateBeforeCall(UUID instanceId, AddCollaboratorRequestBody addCollaboratorRequestBody, 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 addCollaboratorAccessV2InstancesInstanceIdCollaboratorsPut(Async)"); - } - - // verify the required parameter 'addCollaboratorRequestBody' is set - if (addCollaboratorRequestBody == null) { - throw new ApiException("Missing the required parameter 'addCollaboratorRequestBody' when calling addCollaboratorAccessV2InstancesInstanceIdCollaboratorsPut(Async)"); - } - - return addCollaboratorAccessV2InstancesInstanceIdCollaboratorsPutCall(instanceId, addCollaboratorRequestBody, authorization, _callback); - - } - - /** - * Add Collaborator - * Add a collaborator (account or team) to an instance. Parameters: - **instance_id**: UUID of the instance to add the collaborator to (from URL path) - **body**: Request body containing collaborator details - **account_id**: UUID of the account to add (mutually exclusive with team_id) - **team_id**: UUID of the team to add (mutually exclusive with account_id) - **role**: Role of the collaborator Returns: - **201**: Collaborator added successfully - **400**: Invalid input (e.g., both account_id and team_id provided) - **409**: Collaborator was already added Requires admin access to the instance - * @param instanceId (required) - * @param addCollaboratorRequestBody (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 addCollaboratorAccessV2InstancesInstanceIdCollaboratorsPut(UUID instanceId, AddCollaboratorRequestBody addCollaboratorRequestBody, String authorization) throws ApiException { - ApiResponse localVarResp = addCollaboratorAccessV2InstancesInstanceIdCollaboratorsPutWithHttpInfo(instanceId, addCollaboratorRequestBody, authorization); - return localVarResp.getData(); - } - - /** - * Add Collaborator - * Add a collaborator (account or team) to an instance. Parameters: - **instance_id**: UUID of the instance to add the collaborator to (from URL path) - **body**: Request body containing collaborator details - **account_id**: UUID of the account to add (mutually exclusive with team_id) - **team_id**: UUID of the team to add (mutually exclusive with account_id) - **role**: Role of the collaborator Returns: - **201**: Collaborator added successfully - **400**: Invalid input (e.g., both account_id and team_id provided) - **409**: Collaborator was already added Requires admin access to the instance - * @param instanceId (required) - * @param addCollaboratorRequestBody (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 addCollaboratorAccessV2InstancesInstanceIdCollaboratorsPutWithHttpInfo(UUID instanceId, AddCollaboratorRequestBody addCollaboratorRequestBody, String authorization) throws ApiException { - okhttp3.Call localVarCall = addCollaboratorAccessV2InstancesInstanceIdCollaboratorsPutValidateBeforeCall(instanceId, addCollaboratorRequestBody, authorization, null); - Type localVarReturnType = new TypeToken(){}.getType(); - return localVarApiClient.execute(localVarCall, localVarReturnType); - } - - /** - * Add Collaborator (asynchronously) - * Add a collaborator (account or team) to an instance. Parameters: - **instance_id**: UUID of the instance to add the collaborator to (from URL path) - **body**: Request body containing collaborator details - **account_id**: UUID of the account to add (mutually exclusive with team_id) - **team_id**: UUID of the team to add (mutually exclusive with account_id) - **role**: Role of the collaborator Returns: - **201**: Collaborator added successfully - **400**: Invalid input (e.g., both account_id and team_id provided) - **409**: Collaborator was already added Requires admin access to the instance - * @param instanceId (required) - * @param addCollaboratorRequestBody (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 addCollaboratorAccessV2InstancesInstanceIdCollaboratorsPutAsync(UUID instanceId, AddCollaboratorRequestBody addCollaboratorRequestBody, String authorization, final ApiCallback _callback) throws ApiException { - - okhttp3.Call localVarCall = addCollaboratorAccessV2InstancesInstanceIdCollaboratorsPutValidateBeforeCall(instanceId, addCollaboratorRequestBody, authorization, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); - localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); - return localVarCall; - } - /** - * Build call for addCollaboratorInstancesInstanceIdCollaboratorsAccountIdPut - * @param instanceId (required) - * @param accountId (required) - * @param schemaId (required) - * @param role (optional, default to read) - * @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 addCollaboratorInstancesInstanceIdCollaboratorsAccountIdPutCall(UUID instanceId, UUID accountId, UUID schemaId, String role, 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}/collaborators/{account_id}" - .replace("{" + "instance_id" + "}", localVarApiClient.escapeString(instanceId.toString())) - .replace("{" + "account_id" + "}", localVarApiClient.escapeString(accountId.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)); - } - - if (role != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("role", role)); - } - - 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, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); - } - - @SuppressWarnings("rawtypes") - private okhttp3.Call addCollaboratorInstancesInstanceIdCollaboratorsAccountIdPutValidateBeforeCall(UUID instanceId, UUID accountId, UUID schemaId, String role, 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 addCollaboratorInstancesInstanceIdCollaboratorsAccountIdPut(Async)"); - } - - // verify the required parameter 'accountId' is set - if (accountId == null) { - throw new ApiException("Missing the required parameter 'accountId' when calling addCollaboratorInstancesInstanceIdCollaboratorsAccountIdPut(Async)"); - } - - // verify the required parameter 'schemaId' is set - if (schemaId == null) { - throw new ApiException("Missing the required parameter 'schemaId' when calling addCollaboratorInstancesInstanceIdCollaboratorsAccountIdPut(Async)"); - } - - return addCollaboratorInstancesInstanceIdCollaboratorsAccountIdPutCall(instanceId, accountId, schemaId, role, authorization, _callback); - - } - - /** - * Add Collaborator - * - * @param instanceId (required) - * @param accountId (required) - * @param schemaId (required) - * @param role (optional, default to read) - * @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 addCollaboratorInstancesInstanceIdCollaboratorsAccountIdPut(UUID instanceId, UUID accountId, UUID schemaId, String role, String authorization) throws ApiException { - ApiResponse localVarResp = addCollaboratorInstancesInstanceIdCollaboratorsAccountIdPutWithHttpInfo(instanceId, accountId, schemaId, role, authorization); - return localVarResp.getData(); - } - - /** - * Add Collaborator - * - * @param instanceId (required) - * @param accountId (required) - * @param schemaId (required) - * @param role (optional, default to read) - * @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 addCollaboratorInstancesInstanceIdCollaboratorsAccountIdPutWithHttpInfo(UUID instanceId, UUID accountId, UUID schemaId, String role, String authorization) throws ApiException { - okhttp3.Call localVarCall = addCollaboratorInstancesInstanceIdCollaboratorsAccountIdPutValidateBeforeCall(instanceId, accountId, schemaId, role, authorization, null); - Type localVarReturnType = new TypeToken(){}.getType(); - return localVarApiClient.execute(localVarCall, localVarReturnType); - } - - /** - * Add Collaborator (asynchronously) - * - * @param instanceId (required) - * @param accountId (required) - * @param schemaId (required) - * @param role (optional, default to read) - * @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 addCollaboratorInstancesInstanceIdCollaboratorsAccountIdPutAsync(UUID instanceId, UUID accountId, UUID schemaId, String role, String authorization, final ApiCallback _callback) throws ApiException { - - okhttp3.Call localVarCall = addCollaboratorInstancesInstanceIdCollaboratorsAccountIdPutValidateBeforeCall(instanceId, accountId, schemaId, role, authorization, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); - localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); - return localVarCall; - } - /** - * Build call for addOrganizationMemberAccessV2OrganizationsOrganizationIdMembersAccountIdPut - * @param organizationId (required) - * @param accountId (required) - * @param addOrganizationMemberRequestBody (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 addOrganizationMemberAccessV2OrganizationsOrganizationIdMembersAccountIdPutCall(UUID organizationId, UUID accountId, AddOrganizationMemberRequestBody addOrganizationMemberRequestBody, 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 = addOrganizationMemberRequestBody; - - // create path and map variables - String localVarPath = "/access_v2/organizations/{organization_id}/members/{account_id}" - .replace("{" + "organization_id" + "}", localVarApiClient.escapeString(organizationId.toString())) - .replace("{" + "account_id" + "}", localVarApiClient.escapeString(accountId.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, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); - } - - @SuppressWarnings("rawtypes") - private okhttp3.Call addOrganizationMemberAccessV2OrganizationsOrganizationIdMembersAccountIdPutValidateBeforeCall(UUID organizationId, UUID accountId, AddOrganizationMemberRequestBody addOrganizationMemberRequestBody, String authorization, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'organizationId' is set - if (organizationId == null) { - throw new ApiException("Missing the required parameter 'organizationId' when calling addOrganizationMemberAccessV2OrganizationsOrganizationIdMembersAccountIdPut(Async)"); - } - - // verify the required parameter 'accountId' is set - if (accountId == null) { - throw new ApiException("Missing the required parameter 'accountId' when calling addOrganizationMemberAccessV2OrganizationsOrganizationIdMembersAccountIdPut(Async)"); - } - - // verify the required parameter 'addOrganizationMemberRequestBody' is set - if (addOrganizationMemberRequestBody == null) { - throw new ApiException("Missing the required parameter 'addOrganizationMemberRequestBody' when calling addOrganizationMemberAccessV2OrganizationsOrganizationIdMembersAccountIdPut(Async)"); - } - - return addOrganizationMemberAccessV2OrganizationsOrganizationIdMembersAccountIdPutCall(organizationId, accountId, addOrganizationMemberRequestBody, authorization, _callback); - - } - - /** - * Add Organization Member - * Add a member to an organization. Parameters: - **organization_id**: UUID of the organization to add the member to - **account_id**: UUID of the account to add as a member - **body**: Request body containing member details - **role**: Role of the member in the organization Returns: - **201**: Organization member added successfully - * @param organizationId (required) - * @param accountId (required) - * @param addOrganizationMemberRequestBody (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 addOrganizationMemberAccessV2OrganizationsOrganizationIdMembersAccountIdPut(UUID organizationId, UUID accountId, AddOrganizationMemberRequestBody addOrganizationMemberRequestBody, String authorization) throws ApiException { - ApiResponse localVarResp = addOrganizationMemberAccessV2OrganizationsOrganizationIdMembersAccountIdPutWithHttpInfo(organizationId, accountId, addOrganizationMemberRequestBody, authorization); - return localVarResp.getData(); - } - - /** - * Add Organization Member - * Add a member to an organization. Parameters: - **organization_id**: UUID of the organization to add the member to - **account_id**: UUID of the account to add as a member - **body**: Request body containing member details - **role**: Role of the member in the organization Returns: - **201**: Organization member added successfully - * @param organizationId (required) - * @param accountId (required) - * @param addOrganizationMemberRequestBody (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 addOrganizationMemberAccessV2OrganizationsOrganizationIdMembersAccountIdPutWithHttpInfo(UUID organizationId, UUID accountId, AddOrganizationMemberRequestBody addOrganizationMemberRequestBody, String authorization) throws ApiException { - okhttp3.Call localVarCall = addOrganizationMemberAccessV2OrganizationsOrganizationIdMembersAccountIdPutValidateBeforeCall(organizationId, accountId, addOrganizationMemberRequestBody, authorization, null); - Type localVarReturnType = new TypeToken(){}.getType(); - return localVarApiClient.execute(localVarCall, localVarReturnType); - } - - /** - * Add Organization Member (asynchronously) - * Add a member to an organization. Parameters: - **organization_id**: UUID of the organization to add the member to - **account_id**: UUID of the account to add as a member - **body**: Request body containing member details - **role**: Role of the member in the organization Returns: - **201**: Organization member added successfully - * @param organizationId (required) - * @param accountId (required) - * @param addOrganizationMemberRequestBody (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 addOrganizationMemberAccessV2OrganizationsOrganizationIdMembersAccountIdPutAsync(UUID organizationId, UUID accountId, AddOrganizationMemberRequestBody addOrganizationMemberRequestBody, String authorization, final ApiCallback _callback) throws ApiException { - - okhttp3.Call localVarCall = addOrganizationMemberAccessV2OrganizationsOrganizationIdMembersAccountIdPutValidateBeforeCall(organizationId, accountId, addOrganizationMemberRequestBody, authorization, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); - localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); - return localVarCall; - } - /** - * Build call for addSpaceCollaboratorAccessV2SpacesSpaceIdCollaboratorsPut - * @param spaceId (required) - * @param addSpaceCollaboratorRequestBody (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 addSpaceCollaboratorAccessV2SpacesSpaceIdCollaboratorsPutCall(UUID spaceId, AddSpaceCollaboratorRequestBody addSpaceCollaboratorRequestBody, 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 = addSpaceCollaboratorRequestBody; - - // create path and map variables - String localVarPath = "/access_v2/spaces/{space_id}/collaborators" - .replace("{" + "space_id" + "}", localVarApiClient.escapeString(spaceId.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, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); - } - - @SuppressWarnings("rawtypes") - 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)"); - } - - // verify the required parameter 'addSpaceCollaboratorRequestBody' is set - if (addSpaceCollaboratorRequestBody == null) { - throw new ApiException("Missing the required parameter 'addSpaceCollaboratorRequestBody' when calling addSpaceCollaboratorAccessV2SpacesSpaceIdCollaboratorsPut(Async)"); - } - - return addSpaceCollaboratorAccessV2SpacesSpaceIdCollaboratorsPutCall(spaceId, addSpaceCollaboratorRequestBody, authorization, _callback); - - } - - /** - * Add Space Collaborator - * Add a collaborator (account or team) to a space. Parameters: - **space_id**: ID of the space to add the collaborator to - **body**: Request body containing collaborator details - **account_id**: UUID of the account to add (mutually exclusive with team_id) - **team_id**: UUID of the team to add (mutually exclusive with account_id) - **role**: Role of the collaborator Returns: - **201**: Collaborator added to space successfully - **400**: Invalid input (e.g., both account_id and team_id provided) - * @param spaceId (required) - * @param addSpaceCollaboratorRequestBody (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 addSpaceCollaboratorAccessV2SpacesSpaceIdCollaboratorsPut(UUID spaceId, AddSpaceCollaboratorRequestBody addSpaceCollaboratorRequestBody, String authorization) throws ApiException { - ApiResponse localVarResp = addSpaceCollaboratorAccessV2SpacesSpaceIdCollaboratorsPutWithHttpInfo(spaceId, addSpaceCollaboratorRequestBody, authorization); - return localVarResp.getData(); - } - - /** - * Add Space Collaborator - * Add a collaborator (account or team) to a space. Parameters: - **space_id**: ID of the space to add the collaborator to - **body**: Request body containing collaborator details - **account_id**: UUID of the account to add (mutually exclusive with team_id) - **team_id**: UUID of the team to add (mutually exclusive with account_id) - **role**: Role of the collaborator Returns: - **201**: Collaborator added to space successfully - **400**: Invalid input (e.g., both account_id and team_id provided) - * @param spaceId (required) - * @param addSpaceCollaboratorRequestBody (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 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); - } - - /** - * Add Space Collaborator (asynchronously) - * Add a collaborator (account or team) to a space. Parameters: - **space_id**: ID of the space to add the collaborator to - **body**: Request body containing collaborator details - **account_id**: UUID of the account to add (mutually exclusive with team_id) - **team_id**: UUID of the team to add (mutually exclusive with account_id) - **role**: Role of the collaborator Returns: - **201**: Collaborator added to space successfully - **400**: Invalid input (e.g., both account_id and team_id provided) - * @param spaceId (required) - * @param addSpaceCollaboratorRequestBody (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 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(); - localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); - return localVarCall; - } - /** - * Build call for addTeamMemberAccessV2TeamsTeamIdMembersAccountIdPut - * @param teamId (required) - * @param accountId (required) - * @param addTeamMemberRequestBody (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 addTeamMemberAccessV2TeamsTeamIdMembersAccountIdPutCall(UUID teamId, UUID accountId, AddTeamMemberRequestBody addTeamMemberRequestBody, 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 = addTeamMemberRequestBody; - - // create path and map variables - String localVarPath = "/access_v2/teams/{team_id}/members/{account_id}" - .replace("{" + "team_id" + "}", localVarApiClient.escapeString(teamId.toString())) - .replace("{" + "account_id" + "}", localVarApiClient.escapeString(accountId.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, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); - } - - @SuppressWarnings("rawtypes") - private okhttp3.Call addTeamMemberAccessV2TeamsTeamIdMembersAccountIdPutValidateBeforeCall(UUID teamId, UUID accountId, AddTeamMemberRequestBody addTeamMemberRequestBody, String authorization, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'teamId' is set - if (teamId == null) { - throw new ApiException("Missing the required parameter 'teamId' when calling addTeamMemberAccessV2TeamsTeamIdMembersAccountIdPut(Async)"); - } - - // verify the required parameter 'accountId' is set - if (accountId == null) { - throw new ApiException("Missing the required parameter 'accountId' when calling addTeamMemberAccessV2TeamsTeamIdMembersAccountIdPut(Async)"); - } - - // verify the required parameter 'addTeamMemberRequestBody' is set - if (addTeamMemberRequestBody == null) { - throw new ApiException("Missing the required parameter 'addTeamMemberRequestBody' when calling addTeamMemberAccessV2TeamsTeamIdMembersAccountIdPut(Async)"); - } - - return addTeamMemberAccessV2TeamsTeamIdMembersAccountIdPutCall(teamId, accountId, addTeamMemberRequestBody, authorization, _callback); - - } - - /** - * Add Team Member - * Add a member to a team. Parameters: - **team_id**: UUID of the team to add the member to - **account_id**: UUID of the account to add as a member - **body**: Request body containing member details - **role**: Role of the member in the team Returns: - **201**: Team member added successfully - * @param teamId (required) - * @param accountId (required) - * @param addTeamMemberRequestBody (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 addTeamMemberAccessV2TeamsTeamIdMembersAccountIdPut(UUID teamId, UUID accountId, AddTeamMemberRequestBody addTeamMemberRequestBody, String authorization) throws ApiException { - ApiResponse localVarResp = addTeamMemberAccessV2TeamsTeamIdMembersAccountIdPutWithHttpInfo(teamId, accountId, addTeamMemberRequestBody, authorization); - return localVarResp.getData(); - } - - /** - * Add Team Member - * Add a member to a team. Parameters: - **team_id**: UUID of the team to add the member to - **account_id**: UUID of the account to add as a member - **body**: Request body containing member details - **role**: Role of the member in the team Returns: - **201**: Team member added successfully - * @param teamId (required) - * @param accountId (required) - * @param addTeamMemberRequestBody (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 addTeamMemberAccessV2TeamsTeamIdMembersAccountIdPutWithHttpInfo(UUID teamId, UUID accountId, AddTeamMemberRequestBody addTeamMemberRequestBody, String authorization) throws ApiException { - okhttp3.Call localVarCall = addTeamMemberAccessV2TeamsTeamIdMembersAccountIdPutValidateBeforeCall(teamId, accountId, addTeamMemberRequestBody, authorization, null); - Type localVarReturnType = new TypeToken(){}.getType(); - return localVarApiClient.execute(localVarCall, localVarReturnType); - } - - /** - * Add Team Member (asynchronously) - * Add a member to a team. Parameters: - **team_id**: UUID of the team to add the member to - **account_id**: UUID of the account to add as a member - **body**: Request body containing member details - **role**: Role of the member in the team Returns: - **201**: Team member added successfully - * @param teamId (required) - * @param accountId (required) - * @param addTeamMemberRequestBody (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 addTeamMemberAccessV2TeamsTeamIdMembersAccountIdPutAsync(UUID teamId, UUID accountId, AddTeamMemberRequestBody addTeamMemberRequestBody, String authorization, final ApiCallback _callback) throws ApiException { - - okhttp3.Call localVarCall = addTeamMemberAccessV2TeamsTeamIdMembersAccountIdPutValidateBeforeCall(teamId, accountId, addTeamMemberRequestBody, authorization, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); - localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); - return localVarCall; - } - /** - * Build call for attachLabelInstancesInstanceIdModulesModuleNameModelNameIdLabelFieldLabelIdPut - * @param moduleName (required) - * @param modelName (required) - * @param id (required) - * @param labelField (required) - * @param labelId (required) - * @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 attachLabelInstancesInstanceIdModulesModuleNameModelNameIdLabelFieldLabelIdPutCall(String moduleName, String modelName, Integer id, String labelField, Integer labelId, 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}/modules/{module_name}/{model_name}/{id}/{label_field}/{label_id}" - .replace("{" + "module_name" + "}", localVarApiClient.escapeString(moduleName.toString())) - .replace("{" + "model_name" + "}", localVarApiClient.escapeString(modelName.toString())) - .replace("{" + "id" + "}", localVarApiClient.escapeString(id.toString())) - .replace("{" + "label_field" + "}", localVarApiClient.escapeString(labelField.toString())) - .replace("{" + "label_id" + "}", localVarApiClient.escapeString(labelId.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 (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, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); - } - - @SuppressWarnings("rawtypes") - private okhttp3.Call attachLabelInstancesInstanceIdModulesModuleNameModelNameIdLabelFieldLabelIdPutValidateBeforeCall(String moduleName, String modelName, Integer id, String labelField, Integer labelId, UUID instanceId, UUID schemaId, String authorization, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'moduleName' is set - if (moduleName == null) { - throw new ApiException("Missing the required parameter 'moduleName' when calling attachLabelInstancesInstanceIdModulesModuleNameModelNameIdLabelFieldLabelIdPut(Async)"); - } - - // verify the required parameter 'modelName' is set - if (modelName == null) { - throw new ApiException("Missing the required parameter 'modelName' when calling attachLabelInstancesInstanceIdModulesModuleNameModelNameIdLabelFieldLabelIdPut(Async)"); - } - - // verify the required parameter 'id' is set - if (id == null) { - throw new ApiException("Missing the required parameter 'id' when calling attachLabelInstancesInstanceIdModulesModuleNameModelNameIdLabelFieldLabelIdPut(Async)"); - } - - // verify the required parameter 'labelField' is set - if (labelField == null) { - throw new ApiException("Missing the required parameter 'labelField' when calling attachLabelInstancesInstanceIdModulesModuleNameModelNameIdLabelFieldLabelIdPut(Async)"); - } - - // verify the required parameter 'labelId' is set - if (labelId == null) { - throw new ApiException("Missing the required parameter 'labelId' when calling attachLabelInstancesInstanceIdModulesModuleNameModelNameIdLabelFieldLabelIdPut(Async)"); - } - - // verify the required parameter 'instanceId' is set - if (instanceId == null) { - throw new ApiException("Missing the required parameter 'instanceId' when calling attachLabelInstancesInstanceIdModulesModuleNameModelNameIdLabelFieldLabelIdPut(Async)"); - } - - return attachLabelInstancesInstanceIdModulesModuleNameModelNameIdLabelFieldLabelIdPutCall(moduleName, modelName, id, labelField, labelId, instanceId, schemaId, authorization, _callback); - - } - - /** - * Attach Label - * - * @param moduleName (required) - * @param modelName (required) - * @param id (required) - * @param labelField (required) - * @param labelId (required) - * @param instanceId (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 attachLabelInstancesInstanceIdModulesModuleNameModelNameIdLabelFieldLabelIdPut(String moduleName, String modelName, Integer id, String labelField, Integer labelId, UUID instanceId, UUID schemaId, String authorization) throws ApiException { - ApiResponse localVarResp = attachLabelInstancesInstanceIdModulesModuleNameModelNameIdLabelFieldLabelIdPutWithHttpInfo(moduleName, modelName, id, labelField, labelId, instanceId, schemaId, authorization); - return localVarResp.getData(); - } - - /** - * Attach Label - * - * @param moduleName (required) - * @param modelName (required) - * @param id (required) - * @param labelField (required) - * @param labelId (required) - * @param instanceId (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 attachLabelInstancesInstanceIdModulesModuleNameModelNameIdLabelFieldLabelIdPutWithHttpInfo(String moduleName, String modelName, Integer id, String labelField, Integer labelId, UUID instanceId, UUID schemaId, String authorization) throws ApiException { - okhttp3.Call localVarCall = attachLabelInstancesInstanceIdModulesModuleNameModelNameIdLabelFieldLabelIdPutValidateBeforeCall(moduleName, modelName, id, labelField, labelId, instanceId, schemaId, authorization, null); - Type localVarReturnType = new TypeToken(){}.getType(); - return localVarApiClient.execute(localVarCall, localVarReturnType); - } - - /** - * Attach Label (asynchronously) - * - * @param moduleName (required) - * @param modelName (required) - * @param id (required) - * @param labelField (required) - * @param labelId (required) - * @param instanceId (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 attachLabelInstancesInstanceIdModulesModuleNameModelNameIdLabelFieldLabelIdPutAsync(String moduleName, String modelName, Integer id, String labelField, Integer labelId, UUID instanceId, UUID schemaId, String authorization, final ApiCallback _callback) throws ApiException { - - okhttp3.Call localVarCall = attachLabelInstancesInstanceIdModulesModuleNameModelNameIdLabelFieldLabelIdPutValidateBeforeCall(moduleName, modelName, id, labelField, labelId, instanceId, schemaId, authorization, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); - localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); - return localVarCall; - } - /** - * Build call for attachSpaceToInstanceAccessV2SpacesSpaceIdInstancesInstanceIdPut - * @param spaceId (required) - * @param instanceId (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 attachSpaceToInstanceAccessV2SpacesSpaceIdInstancesInstanceIdPutCall(UUID spaceId, UUID instanceId, 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 = "/access_v2/spaces/{space_id}/instances/{instance_id}" - .replace("{" + "space_id" + "}", localVarApiClient.escapeString(spaceId.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(); - - 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, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); - } - - @SuppressWarnings("rawtypes") - 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)"); - } - - // verify the required parameter 'instanceId' is set - if (instanceId == null) { - throw new ApiException("Missing the required parameter 'instanceId' when calling attachSpaceToInstanceAccessV2SpacesSpaceIdInstancesInstanceIdPut(Async)"); - } - - return attachSpaceToInstanceAccessV2SpacesSpaceIdInstancesInstanceIdPutCall(spaceId, instanceId, authorization, _callback); - - } - - /** - * Attach Space To Instance - * Attach a space to a specific instance. Parameters: - **space_id**: ID of the space to attach - **instance_id**: UUID of the instance to attach the space to (from URL path) Returns: - **200**: Space attached to instance successfully Requires admin access to the instance - * @param spaceId (required) - * @param instanceId (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 attachSpaceToInstanceAccessV2SpacesSpaceIdInstancesInstanceIdPut(UUID spaceId, UUID instanceId, String authorization) throws ApiException { - ApiResponse localVarResp = attachSpaceToInstanceAccessV2SpacesSpaceIdInstancesInstanceIdPutWithHttpInfo(spaceId, instanceId, authorization); - return localVarResp.getData(); - } - - /** - * Attach Space To Instance - * Attach a space to a specific instance. Parameters: - **space_id**: ID of the space to attach - **instance_id**: UUID of the instance to attach the space to (from URL path) Returns: - **200**: Space attached to instance successfully Requires admin access to the instance - * @param spaceId (required) - * @param instanceId (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 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); - } - - /** - * Attach Space To Instance (asynchronously) - * Attach a space to a specific instance. Parameters: - **space_id**: ID of the space to attach - **instance_id**: UUID of the instance to attach the space to (from URL path) Returns: - **200**: Space attached to instance successfully Requires admin access to the instance - * @param spaceId (required) - * @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 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 checkCacheAccessDebugCacheAccessGet - * @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 -
- */ - public okhttp3.Call checkCacheAccessDebugCacheAccessGetCall(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 = "/_debug/cache-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 = { - }; - final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - if (localVarContentType != null) { - localVarHeaderParams.put("Content-Type", localVarContentType); - } - - String[] localVarAuthNames = new String[] { }; - return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); - } - - @SuppressWarnings("rawtypes") - private okhttp3.Call checkCacheAccessDebugCacheAccessGetValidateBeforeCall(final ApiCallback _callback) throws ApiException { - return checkCacheAccessDebugCacheAccessGetCall(_callback); - - } - - /** - * Check Cache Access - * - * @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 checkCacheAccessDebugCacheAccessGet() throws ApiException { - ApiResponse localVarResp = checkCacheAccessDebugCacheAccessGetWithHttpInfo(); - return localVarResp.getData(); - } - - /** - * Check Cache Access - * - * @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 checkCacheAccessDebugCacheAccessGetWithHttpInfo() throws ApiException { - okhttp3.Call localVarCall = checkCacheAccessDebugCacheAccessGetValidateBeforeCall(null); - Type localVarReturnType = new TypeToken(){}.getType(); - return localVarApiClient.execute(localVarCall, localVarReturnType); - } - - /** - * Check Cache Access (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 checkCacheAccessDebugCacheAccessGetAsync(final ApiCallback _callback) throws ApiException { - - okhttp3.Call localVarCall = checkCacheAccessDebugCacheAccessGetValidateBeforeCall(_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 checkLambdaAccessDebugLambdaAccessGet - * @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 -
- */ - public okhttp3.Call checkLambdaAccessDebugLambdaAccessGetCall(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 = "/_debug/lambda-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 = { - }; - final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - if (localVarContentType != null) { - localVarHeaderParams.put("Content-Type", localVarContentType); - } - - String[] localVarAuthNames = new String[] { }; - return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); - } - - @SuppressWarnings("rawtypes") - private okhttp3.Call checkLambdaAccessDebugLambdaAccessGetValidateBeforeCall(final ApiCallback _callback) throws ApiException { - return checkLambdaAccessDebugLambdaAccessGetCall(_callback); - - } - - /** - * Check Lambda Access - * - * @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 checkLambdaAccessDebugLambdaAccessGet() throws ApiException { - ApiResponse localVarResp = checkLambdaAccessDebugLambdaAccessGetWithHttpInfo(); - return localVarResp.getData(); - } - - /** - * Check Lambda Access - * - * @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 checkLambdaAccessDebugLambdaAccessGetWithHttpInfo() throws ApiException { - okhttp3.Call localVarCall = checkLambdaAccessDebugLambdaAccessGetValidateBeforeCall(null); - Type localVarReturnType = new TypeToken(){}.getType(); - return localVarApiClient.execute(localVarCall, localVarReturnType); - } - - /** - * Check Lambda Access (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 checkLambdaAccessDebugLambdaAccessGetAsync(final ApiCallback _callback) throws ApiException { - - okhttp3.Call localVarCall = checkLambdaAccessDebugLambdaAccessGetValidateBeforeCall(_callback); - Type localVarReturnType = new TypeToken(){}.getType(); - localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); - return localVarCall; - } - /** - * Build call for createArtifactInstancesInstanceIdArtifactsCreatePost - * @param instanceId (required) - * @param createArtifactRequestBody (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 createArtifactInstancesInstanceIdArtifactsCreatePostCall(UUID instanceId, CreateArtifactRequestBody createArtifactRequestBody, 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 = createArtifactRequestBody; - - // create path and map variables - String localVarPath = "/instances/{instance_id}/artifacts/create" - .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 createArtifactInstancesInstanceIdArtifactsCreatePostValidateBeforeCall(UUID instanceId, CreateArtifactRequestBody createArtifactRequestBody, 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 createArtifactInstancesInstanceIdArtifactsCreatePost(Async)"); - } - - // verify the required parameter 'createArtifactRequestBody' is set - if (createArtifactRequestBody == null) { - throw new ApiException("Missing the required parameter 'createArtifactRequestBody' when calling createArtifactInstancesInstanceIdArtifactsCreatePost(Async)"); - } - - return createArtifactInstancesInstanceIdArtifactsCreatePostCall(instanceId, createArtifactRequestBody, authorization, _callback); - - } - - /** - * Create Artifact - * - * @param instanceId (required) - * @param createArtifactRequestBody (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 createArtifactInstancesInstanceIdArtifactsCreatePost(UUID instanceId, CreateArtifactRequestBody createArtifactRequestBody, String authorization) throws ApiException { - ApiResponse localVarResp = createArtifactInstancesInstanceIdArtifactsCreatePostWithHttpInfo(instanceId, createArtifactRequestBody, authorization); - return localVarResp.getData(); - } - - /** - * Create Artifact - * - * @param instanceId (required) - * @param createArtifactRequestBody (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 createArtifactInstancesInstanceIdArtifactsCreatePostWithHttpInfo(UUID instanceId, CreateArtifactRequestBody createArtifactRequestBody, String authorization) throws ApiException { - okhttp3.Call localVarCall = createArtifactInstancesInstanceIdArtifactsCreatePostValidateBeforeCall(instanceId, createArtifactRequestBody, authorization, null); - Type localVarReturnType = new TypeToken(){}.getType(); - return localVarApiClient.execute(localVarCall, localVarReturnType); - } - - /** - * Create Artifact (asynchronously) - * - * @param instanceId (required) - * @param createArtifactRequestBody (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 createArtifactInstancesInstanceIdArtifactsCreatePostAsync(UUID instanceId, CreateArtifactRequestBody createArtifactRequestBody, String authorization, final ApiCallback _callback) throws ApiException { - - okhttp3.Call localVarCall = createArtifactInstancesInstanceIdArtifactsCreatePostValidateBeforeCall(instanceId, createArtifactRequestBody, 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 storageUid (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 createInstanceInstancesPutCall(String name, String storage, String schemaStr, String dbServerKey, String storageUid, 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"; - - 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)); - } - - if (storage != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("storage", storage)); - } - - if (schemaStr != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("schema_str", schemaStr)); - } - - if (dbServerKey != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("db_server_key", dbServerKey)); - } - - if (storageUid != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("storage_uid", storageUid)); - } - - 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, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); - } - - @SuppressWarnings("rawtypes") - private okhttp3.Call createInstanceInstancesPutValidateBeforeCall(String name, String storage, String schemaStr, String dbServerKey, String storageUid, 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, storageUid, authorization, _callback); - - } - - /** - * Create Instance - * - * @param name (required) - * @param storage (optional, default to create-s3) - * @param schemaStr (optional) - * @param dbServerKey (optional) - * @param storageUid (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 createInstanceInstancesPut(String name, String storage, String schemaStr, String dbServerKey, String storageUid, String authorization) throws ApiException { - ApiResponse localVarResp = createInstanceInstancesPutWithHttpInfo(name, storage, schemaStr, dbServerKey, storageUid, authorization); - return localVarResp.getData(); - } - - /** - * Create Instance - * - * @param name (required) - * @param storage (optional, default to create-s3) - * @param schemaStr (optional) - * @param dbServerKey (optional) - * @param storageUid (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 createInstanceInstancesPutWithHttpInfo(String name, String storage, String schemaStr, String dbServerKey, String storageUid, String authorization) throws ApiException { - okhttp3.Call localVarCall = createInstanceInstancesPutValidateBeforeCall(name, storage, schemaStr, dbServerKey, storageUid, authorization, null); - Type localVarReturnType = new TypeToken(){}.getType(); - return localVarApiClient.execute(localVarCall, localVarReturnType); - } - - /** - * Create Instance (asynchronously) - * - * @param name (required) - * @param storage (optional, default to create-s3) - * @param schemaStr (optional) - * @param dbServerKey (optional) - * @param storageUid (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 createInstanceInstancesPutAsync(String name, String storage, String schemaStr, String dbServerKey, String storageUid, String authorization, final ApiCallback _callback) throws ApiException { - - okhttp3.Call localVarCall = createInstanceInstancesPutValidateBeforeCall(name, storage, schemaStr, dbServerKey, storageUid, authorization, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); - localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); - return localVarCall; - } - /** - * Build call for createRecordsInstancesInstanceIdModulesModuleNameModelNamePut - * @param moduleName (required) - * @param modelName (required) - * @param instanceId (required) - * @param body (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 createRecordsInstancesInstanceIdModulesModuleNameModelNamePutCall(String moduleName, String modelName, UUID instanceId, Object body, 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 = body; - - // create path and map variables - String localVarPath = "/instances/{instance_id}/modules/{module_name}/{model_name}" - .replace("{" + "module_name" + "}", localVarApiClient.escapeString(moduleName.toString())) - .replace("{" + "model_name" + "}", localVarApiClient.escapeString(modelName.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 (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 = { - "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, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); - } - - @SuppressWarnings("rawtypes") - private okhttp3.Call createRecordsInstancesInstanceIdModulesModuleNameModelNamePutValidateBeforeCall(String moduleName, String modelName, UUID instanceId, Object body, UUID schemaId, String authorization, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'moduleName' is set - if (moduleName == null) { - throw new ApiException("Missing the required parameter 'moduleName' when calling createRecordsInstancesInstanceIdModulesModuleNameModelNamePut(Async)"); - } - - // verify the required parameter 'modelName' is set - if (modelName == null) { - throw new ApiException("Missing the required parameter 'modelName' when calling createRecordsInstancesInstanceIdModulesModuleNameModelNamePut(Async)"); - } - - // verify the required parameter 'instanceId' is set - if (instanceId == null) { - throw new ApiException("Missing the required parameter 'instanceId' when calling createRecordsInstancesInstanceIdModulesModuleNameModelNamePut(Async)"); - } - - // verify the required parameter 'body' is set - if (body == null) { - throw new ApiException("Missing the required parameter 'body' when calling createRecordsInstancesInstanceIdModulesModuleNameModelNamePut(Async)"); - } - - return createRecordsInstancesInstanceIdModulesModuleNameModelNamePutCall(moduleName, modelName, instanceId, body, schemaId, authorization, _callback); - - } - - /** - * Create Records - * - * @param moduleName (required) - * @param modelName (required) - * @param instanceId (required) - * @param body (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 createRecordsInstancesInstanceIdModulesModuleNameModelNamePut(String moduleName, String modelName, UUID instanceId, Object body, UUID schemaId, String authorization) throws ApiException { - ApiResponse localVarResp = createRecordsInstancesInstanceIdModulesModuleNameModelNamePutWithHttpInfo(moduleName, modelName, instanceId, body, schemaId, authorization); - return localVarResp.getData(); - } - - /** - * Create Records - * - * @param moduleName (required) - * @param modelName (required) - * @param instanceId (required) - * @param body (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 createRecordsInstancesInstanceIdModulesModuleNameModelNamePutWithHttpInfo(String moduleName, String modelName, UUID instanceId, Object body, UUID schemaId, String authorization) throws ApiException { - okhttp3.Call localVarCall = createRecordsInstancesInstanceIdModulesModuleNameModelNamePutValidateBeforeCall(moduleName, modelName, instanceId, body, schemaId, authorization, null); - Type localVarReturnType = new TypeToken(){}.getType(); - return localVarApiClient.execute(localVarCall, localVarReturnType); - } - - /** - * Create Records (asynchronously) - * - * @param moduleName (required) - * @param modelName (required) - * @param instanceId (required) - * @param body (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 createRecordsInstancesInstanceIdModulesModuleNameModelNamePutAsync(String moduleName, String modelName, UUID instanceId, Object body, UUID schemaId, String authorization, final ApiCallback _callback) throws ApiException { - - okhttp3.Call localVarCall = createRecordsInstancesInstanceIdModulesModuleNameModelNamePutValidateBeforeCall(moduleName, modelName, instanceId, body, schemaId, authorization, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); - localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); - return localVarCall; - } - /** - * Build call for createSpaceAccessV2SpacesPut - * @param createSpaceRequestBody (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 createSpaceAccessV2SpacesPutCall(CreateSpaceRequestBody createSpaceRequestBody, 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 = createSpaceRequestBody; - - // create path and map variables - String localVarPath = "/access_v2/spaces"; - - 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, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); - } - - @SuppressWarnings("rawtypes") - private okhttp3.Call createSpaceAccessV2SpacesPutValidateBeforeCall(CreateSpaceRequestBody createSpaceRequestBody, String authorization, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'createSpaceRequestBody' is set - if (createSpaceRequestBody == null) { - throw new ApiException("Missing the required parameter 'createSpaceRequestBody' when calling createSpaceAccessV2SpacesPut(Async)"); - } - - return createSpaceAccessV2SpacesPutCall(createSpaceRequestBody, authorization, _callback); - - } - - /** - * Create Space - * Create a new space. Parameters: - **body**: Request body containing space details - **name**: Name of the space - **organization_id**: UUID of the organization - **description**: Optional description of the space Returns: - **201**: Space created successfully - * @param createSpaceRequestBody (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 createSpaceAccessV2SpacesPut(CreateSpaceRequestBody createSpaceRequestBody, String authorization) throws ApiException { - ApiResponse localVarResp = createSpaceAccessV2SpacesPutWithHttpInfo(createSpaceRequestBody, authorization); - return localVarResp.getData(); - } - - /** - * Create Space - * Create a new space. Parameters: - **body**: Request body containing space details - **name**: Name of the space - **organization_id**: UUID of the organization - **description**: Optional description of the space Returns: - **201**: Space created successfully - * @param createSpaceRequestBody (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 createSpaceAccessV2SpacesPutWithHttpInfo(CreateSpaceRequestBody createSpaceRequestBody, String authorization) throws ApiException { - okhttp3.Call localVarCall = createSpaceAccessV2SpacesPutValidateBeforeCall(createSpaceRequestBody, authorization, null); - Type localVarReturnType = new TypeToken(){}.getType(); - return localVarApiClient.execute(localVarCall, localVarReturnType); - } - - /** - * Create Space (asynchronously) - * Create a new space. Parameters: - **body**: Request body containing space details - **name**: Name of the space - **organization_id**: UUID of the organization - **description**: Optional description of the space Returns: - **201**: Space created successfully - * @param createSpaceRequestBody (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 createSpaceAccessV2SpacesPutAsync(CreateSpaceRequestBody createSpaceRequestBody, String authorization, final ApiCallback _callback) throws ApiException { - - okhttp3.Call localVarCall = createSpaceAccessV2SpacesPutValidateBeforeCall(createSpaceRequestBody, authorization, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); - localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); - return localVarCall; - } - /** - * Build call for createTeamAccessV2TeamsPut - * @param createTeamRequestBody (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 createTeamAccessV2TeamsPutCall(CreateTeamRequestBody createTeamRequestBody, 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 = createTeamRequestBody; - - // create path and map variables - String localVarPath = "/access_v2/teams"; - - 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, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); - } - - @SuppressWarnings("rawtypes") - private okhttp3.Call createTeamAccessV2TeamsPutValidateBeforeCall(CreateTeamRequestBody createTeamRequestBody, String authorization, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'createTeamRequestBody' is set - if (createTeamRequestBody == null) { - throw new ApiException("Missing the required parameter 'createTeamRequestBody' when calling createTeamAccessV2TeamsPut(Async)"); - } - - return createTeamAccessV2TeamsPutCall(createTeamRequestBody, authorization, _callback); - - } - - /** - * Create Team - * Create a new team. Parameters: - **body**: Request body containing team details - **name**: Name of the team - **organization_id**: UUID of the organization - **description**: Optional description of the team Returns: - **201**: Team created successfully - * @param createTeamRequestBody (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 createTeamAccessV2TeamsPut(CreateTeamRequestBody createTeamRequestBody, String authorization) throws ApiException { - ApiResponse localVarResp = createTeamAccessV2TeamsPutWithHttpInfo(createTeamRequestBody, authorization); - return localVarResp.getData(); - } - - /** - * Create Team - * Create a new team. Parameters: - **body**: Request body containing team details - **name**: Name of the team - **organization_id**: UUID of the organization - **description**: Optional description of the team Returns: - **201**: Team created successfully - * @param createTeamRequestBody (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 createTeamAccessV2TeamsPutWithHttpInfo(CreateTeamRequestBody createTeamRequestBody, String authorization) throws ApiException { - okhttp3.Call localVarCall = createTeamAccessV2TeamsPutValidateBeforeCall(createTeamRequestBody, authorization, null); - Type localVarReturnType = new TypeToken(){}.getType(); - return localVarApiClient.execute(localVarCall, localVarReturnType); - } - - /** - * Create Team (asynchronously) - * Create a new team. Parameters: - **body**: Request body containing team details - **name**: Name of the team - **organization_id**: UUID of the organization - **description**: Optional description of the team Returns: - **201**: Team created successfully - * @param createTeamRequestBody (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 createTeamAccessV2TeamsPutAsync(CreateTeamRequestBody createTeamRequestBody, String authorization, final ApiCallback _callback) throws ApiException { - - okhttp3.Call localVarCall = createTeamAccessV2TeamsPutValidateBeforeCall(createTeamRequestBody, authorization, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); - localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); - return localVarCall; - } - /** - * Build call for createTransformInstancesInstanceIdTransformsPost - * @param instanceId (required) - * @param createTransformRequestBody (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 createTransformInstancesInstanceIdTransformsPostCall(UUID instanceId, CreateTransformRequestBody createTransformRequestBody, 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 = createTransformRequestBody; - - // create path and map variables - String localVarPath = "/instances/{instance_id}/transforms" - .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 createTransformInstancesInstanceIdTransformsPostValidateBeforeCall(UUID instanceId, CreateTransformRequestBody createTransformRequestBody, 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 createTransformInstancesInstanceIdTransformsPost(Async)"); - } - - // verify the required parameter 'createTransformRequestBody' is set - if (createTransformRequestBody == null) { - throw new ApiException("Missing the required parameter 'createTransformRequestBody' when calling createTransformInstancesInstanceIdTransformsPost(Async)"); - } - - return createTransformInstancesInstanceIdTransformsPostCall(instanceId, createTransformRequestBody, authorization, _callback); - - } - - /** - * Create Transform - * - * @param instanceId (required) - * @param createTransformRequestBody (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 createTransformInstancesInstanceIdTransformsPost(UUID instanceId, CreateTransformRequestBody createTransformRequestBody, String authorization) throws ApiException { - ApiResponse localVarResp = createTransformInstancesInstanceIdTransformsPostWithHttpInfo(instanceId, createTransformRequestBody, authorization); - return localVarResp.getData(); - } - - /** - * Create Transform - * - * @param instanceId (required) - * @param createTransformRequestBody (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 createTransformInstancesInstanceIdTransformsPostWithHttpInfo(UUID instanceId, CreateTransformRequestBody createTransformRequestBody, String authorization) throws ApiException { - okhttp3.Call localVarCall = createTransformInstancesInstanceIdTransformsPostValidateBeforeCall(instanceId, createTransformRequestBody, authorization, null); - Type localVarReturnType = new TypeToken(){}.getType(); - return localVarApiClient.execute(localVarCall, localVarReturnType); - } - - /** - * Create Transform (asynchronously) - * - * @param instanceId (required) - * @param createTransformRequestBody (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 createTransformInstancesInstanceIdTransformsPostAsync(UUID instanceId, CreateTransformRequestBody createTransformRequestBody, String authorization, final ApiCallback _callback) throws ApiException { - - okhttp3.Call localVarCall = createTransformInstancesInstanceIdTransformsPostValidateBeforeCall(instanceId, createTransformRequestBody, authorization, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); - localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); - return localVarCall; - } - /** - * Build call for deleteCollaboratorInstancesInstanceIdCollaboratorsAccountIdDelete - * @param instanceId (required) - * @param accountId (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 deleteCollaboratorInstancesInstanceIdCollaboratorsAccountIdDeleteCall(UUID instanceId, UUID accountId, 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}/collaborators/{account_id}" - .replace("{" + "instance_id" + "}", localVarApiClient.escapeString(instanceId.toString())) - .replace("{" + "account_id" + "}", localVarApiClient.escapeString(accountId.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 = { - }; - 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, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); - } - - @SuppressWarnings("rawtypes") - private okhttp3.Call deleteCollaboratorInstancesInstanceIdCollaboratorsAccountIdDeleteValidateBeforeCall(UUID instanceId, UUID accountId, 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 deleteCollaboratorInstancesInstanceIdCollaboratorsAccountIdDelete(Async)"); - } - - // verify the required parameter 'accountId' is set - if (accountId == null) { - throw new ApiException("Missing the required parameter 'accountId' when calling deleteCollaboratorInstancesInstanceIdCollaboratorsAccountIdDelete(Async)"); - } - - return deleteCollaboratorInstancesInstanceIdCollaboratorsAccountIdDeleteCall(instanceId, accountId, authorization, _callback); - - } - - /** - * Delete Collaborator - * - * @param instanceId (required) - * @param accountId (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 deleteCollaboratorInstancesInstanceIdCollaboratorsAccountIdDelete(UUID instanceId, UUID accountId, String authorization) throws ApiException { - ApiResponse localVarResp = deleteCollaboratorInstancesInstanceIdCollaboratorsAccountIdDeleteWithHttpInfo(instanceId, accountId, authorization); - return localVarResp.getData(); - } - - /** - * Delete Collaborator - * - * @param instanceId (required) - * @param accountId (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 deleteCollaboratorInstancesInstanceIdCollaboratorsAccountIdDeleteWithHttpInfo(UUID instanceId, UUID accountId, String authorization) throws ApiException { - okhttp3.Call localVarCall = deleteCollaboratorInstancesInstanceIdCollaboratorsAccountIdDeleteValidateBeforeCall(instanceId, accountId, authorization, null); - Type localVarReturnType = new TypeToken(){}.getType(); - return localVarApiClient.execute(localVarCall, localVarReturnType); - } - - /** - * Delete Collaborator (asynchronously) - * - * @param instanceId (required) - * @param accountId (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 deleteCollaboratorInstancesInstanceIdCollaboratorsAccountIdDeleteAsync(UUID instanceId, UUID accountId, String authorization, final ApiCallback _callback) throws ApiException { - - okhttp3.Call localVarCall = deleteCollaboratorInstancesInstanceIdCollaboratorsAccountIdDeleteValidateBeforeCall(instanceId, accountId, authorization, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); - localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); - return localVarCall; - } - /** - * Build call for deleteInstanceInstancesInstanceIdDelete - * @param instanceId (required) - * @param instanceName (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 deleteInstanceInstancesInstanceIdDeleteCall(UUID instanceId, String instanceName, 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}" - .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 (instanceName != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("instance_name", instanceName)); - } - - 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, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); - } - - @SuppressWarnings("rawtypes") - private okhttp3.Call deleteInstanceInstancesInstanceIdDeleteValidateBeforeCall(UUID instanceId, String instanceName, 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 deleteInstanceInstancesInstanceIdDelete(Async)"); - } - - // verify the required parameter 'instanceName' is set - if (instanceName == null) { - throw new ApiException("Missing the required parameter 'instanceName' when calling deleteInstanceInstancesInstanceIdDelete(Async)"); - } - - return deleteInstanceInstancesInstanceIdDeleteCall(instanceId, instanceName, authorization, _callback); - - } - - /** - * Delete Instance - * - * @param instanceId (required) - * @param instanceName (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 deleteInstanceInstancesInstanceIdDelete(UUID instanceId, String instanceName, String authorization) throws ApiException { - ApiResponse localVarResp = deleteInstanceInstancesInstanceIdDeleteWithHttpInfo(instanceId, instanceName, authorization); - return localVarResp.getData(); - } - - /** - * Delete Instance - * - * @param instanceId (required) - * @param instanceName (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 deleteInstanceInstancesInstanceIdDeleteWithHttpInfo(UUID instanceId, String instanceName, String authorization) throws ApiException { - okhttp3.Call localVarCall = deleteInstanceInstancesInstanceIdDeleteValidateBeforeCall(instanceId, instanceName, authorization, null); - Type localVarReturnType = new TypeToken(){}.getType(); - return localVarApiClient.execute(localVarCall, localVarReturnType); - } - - /** - * Delete Instance (asynchronously) - * - * @param instanceId (required) - * @param instanceName (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 deleteInstanceInstancesInstanceIdDeleteAsync(UUID instanceId, String instanceName, String authorization, final ApiCallback _callback) throws ApiException { - - okhttp3.Call localVarCall = deleteInstanceInstancesInstanceIdDeleteValidateBeforeCall(instanceId, instanceName, authorization, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); - localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); - return localVarCall; - } - /** - * Build call for deleteRecordInstancesInstanceIdModulesModuleNameModelNameUidDelete - * @param moduleName (required) - * @param modelName (required) - * @param uid (required) - * @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 deleteRecordInstancesInstanceIdModulesModuleNameModelNameUidDeleteCall(String moduleName, String modelName, String uid, 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}/modules/{module_name}/{model_name}/{uid}" - .replace("{" + "module_name" + "}", localVarApiClient.escapeString(moduleName.toString())) - .replace("{" + "model_name" + "}", localVarApiClient.escapeString(modelName.toString())) - .replace("{" + "uid" + "}", localVarApiClient.escapeString(uid.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 (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, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); - } - - @SuppressWarnings("rawtypes") - private okhttp3.Call deleteRecordInstancesInstanceIdModulesModuleNameModelNameUidDeleteValidateBeforeCall(String moduleName, String modelName, String uid, UUID instanceId, UUID schemaId, String authorization, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'moduleName' is set - if (moduleName == null) { - throw new ApiException("Missing the required parameter 'moduleName' when calling deleteRecordInstancesInstanceIdModulesModuleNameModelNameUidDelete(Async)"); - } - - // verify the required parameter 'modelName' is set - if (modelName == null) { - throw new ApiException("Missing the required parameter 'modelName' when calling deleteRecordInstancesInstanceIdModulesModuleNameModelNameUidDelete(Async)"); - } - - // verify the required parameter 'uid' is set - if (uid == null) { - throw new ApiException("Missing the required parameter 'uid' when calling deleteRecordInstancesInstanceIdModulesModuleNameModelNameUidDelete(Async)"); - } - - // verify the required parameter 'instanceId' is set - if (instanceId == null) { - throw new ApiException("Missing the required parameter 'instanceId' when calling deleteRecordInstancesInstanceIdModulesModuleNameModelNameUidDelete(Async)"); - } - - return deleteRecordInstancesInstanceIdModulesModuleNameModelNameUidDeleteCall(moduleName, modelName, uid, instanceId, schemaId, authorization, _callback); - - } - - /** - * Delete Record - * - * @param moduleName (required) - * @param modelName (required) - * @param uid (required) - * @param instanceId (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 deleteRecordInstancesInstanceIdModulesModuleNameModelNameUidDelete(String moduleName, String modelName, String uid, UUID instanceId, UUID schemaId, String authorization) throws ApiException { - ApiResponse localVarResp = deleteRecordInstancesInstanceIdModulesModuleNameModelNameUidDeleteWithHttpInfo(moduleName, modelName, uid, instanceId, schemaId, authorization); - return localVarResp.getData(); - } - - /** - * Delete Record - * - * @param moduleName (required) - * @param modelName (required) - * @param uid (required) - * @param instanceId (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 deleteRecordInstancesInstanceIdModulesModuleNameModelNameUidDeleteWithHttpInfo(String moduleName, String modelName, String uid, UUID instanceId, UUID schemaId, String authorization) throws ApiException { - okhttp3.Call localVarCall = deleteRecordInstancesInstanceIdModulesModuleNameModelNameUidDeleteValidateBeforeCall(moduleName, modelName, uid, instanceId, schemaId, authorization, null); - Type localVarReturnType = new TypeToken(){}.getType(); - return localVarApiClient.execute(localVarCall, localVarReturnType); - } - - /** - * Delete Record (asynchronously) - * - * @param moduleName (required) - * @param modelName (required) - * @param uid (required) - * @param instanceId (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 deleteRecordInstancesInstanceIdModulesModuleNameModelNameUidDeleteAsync(String moduleName, String modelName, String uid, UUID instanceId, UUID schemaId, String authorization, final ApiCallback _callback) throws ApiException { - - okhttp3.Call localVarCall = deleteRecordInstancesInstanceIdModulesModuleNameModelNameUidDeleteValidateBeforeCall(moduleName, modelName, uid, instanceId, schemaId, authorization, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); - localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); - return localVarCall; - } - /** - * Build call for deleteSpaceAccessV2SpacesSpaceIdDelete - * @param spaceId (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 deleteSpaceAccessV2SpacesSpaceIdDeleteCall(UUID spaceId, 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 = "/access_v2/spaces/{space_id}" - .replace("{" + "space_id" + "}", localVarApiClient.escapeString(spaceId.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 = { - }; - 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, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); - } - - @SuppressWarnings("rawtypes") - 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)"); - } - - return deleteSpaceAccessV2SpacesSpaceIdDeleteCall(spaceId, authorization, _callback); - - } - - /** - * Delete Space - * Delete a space and detach it from the instance. Parameters: - **space_id**: ID of the space to delete Returns: - **200**: Space deleted successfully - **404**: Space not found - * @param spaceId (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 deleteSpaceAccessV2SpacesSpaceIdDelete(UUID spaceId, String authorization) throws ApiException { - ApiResponse localVarResp = deleteSpaceAccessV2SpacesSpaceIdDeleteWithHttpInfo(spaceId, authorization); - return localVarResp.getData(); - } - - /** - * Delete Space - * Delete a space and detach it from the instance. Parameters: - **space_id**: ID of the space to delete Returns: - **200**: Space deleted successfully - **404**: Space not found - * @param spaceId (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 deleteSpaceAccessV2SpacesSpaceIdDeleteWithHttpInfo(UUID spaceId, String authorization) throws ApiException { - okhttp3.Call localVarCall = deleteSpaceAccessV2SpacesSpaceIdDeleteValidateBeforeCall(spaceId, authorization, null); - Type localVarReturnType = new TypeToken(){}.getType(); - return localVarApiClient.execute(localVarCall, localVarReturnType); - } - - /** - * Delete Space (asynchronously) - * Delete a space and detach it from the instance. Parameters: - **space_id**: ID of the space to delete Returns: - **200**: Space deleted successfully - **404**: Space not found - * @param spaceId (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 deleteSpaceAccessV2SpacesSpaceIdDeleteAsync(UUID spaceId, String authorization, final ApiCallback _callback) throws ApiException { - - okhttp3.Call localVarCall = deleteSpaceAccessV2SpacesSpaceIdDeleteValidateBeforeCall(spaceId, authorization, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); - localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); - return localVarCall; - } - /** - * Build call for deleteTeamAccessV2TeamsTeamIdDelete - * @param teamId (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 deleteTeamAccessV2TeamsTeamIdDeleteCall(UUID teamId, 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 = "/access_v2/teams/{team_id}" - .replace("{" + "team_id" + "}", localVarApiClient.escapeString(teamId.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 = { - }; - 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, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); - } - - @SuppressWarnings("rawtypes") - private okhttp3.Call deleteTeamAccessV2TeamsTeamIdDeleteValidateBeforeCall(UUID teamId, String authorization, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'teamId' is set - if (teamId == null) { - throw new ApiException("Missing the required parameter 'teamId' when calling deleteTeamAccessV2TeamsTeamIdDelete(Async)"); - } - - return deleteTeamAccessV2TeamsTeamIdDeleteCall(teamId, authorization, _callback); - - } - - /** - * Delete Team - * Delete a team. Parameters: - **team_id**: UUID of the team to delete Returns: - **200**: Team deleted successfully - * @param teamId (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 deleteTeamAccessV2TeamsTeamIdDelete(UUID teamId, String authorization) throws ApiException { - ApiResponse localVarResp = deleteTeamAccessV2TeamsTeamIdDeleteWithHttpInfo(teamId, authorization); - return localVarResp.getData(); - } - - /** - * Delete Team - * Delete a team. Parameters: - **team_id**: UUID of the team to delete Returns: - **200**: Team deleted successfully - * @param teamId (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 deleteTeamAccessV2TeamsTeamIdDeleteWithHttpInfo(UUID teamId, String authorization) throws ApiException { - okhttp3.Call localVarCall = deleteTeamAccessV2TeamsTeamIdDeleteValidateBeforeCall(teamId, authorization, null); - Type localVarReturnType = new TypeToken(){}.getType(); - return localVarApiClient.execute(localVarCall, localVarReturnType); - } - - /** - * Delete Team (asynchronously) - * Delete a team. Parameters: - **team_id**: UUID of the team to delete Returns: - **200**: Team deleted successfully - * @param teamId (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 deleteTeamAccessV2TeamsTeamIdDeleteAsync(UUID teamId, String authorization, final ApiCallback _callback) throws ApiException { - - okhttp3.Call localVarCall = deleteTeamAccessV2TeamsTeamIdDeleteValidateBeforeCall(teamId, authorization, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); - localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); - return localVarCall; - } - /** - * Build call for detachLabelInstancesInstanceIdModulesModuleNameModelNameIdLabelFieldLabelIdDelete - * @param moduleName (required) - * @param modelName (required) - * @param id (required) - * @param labelField (required) - * @param labelId (required) - * @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 detachLabelInstancesInstanceIdModulesModuleNameModelNameIdLabelFieldLabelIdDeleteCall(String moduleName, String modelName, Integer id, String labelField, Integer labelId, 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}/modules/{module_name}/{model_name}/{id}/{label_field}/{label_id}" - .replace("{" + "module_name" + "}", localVarApiClient.escapeString(moduleName.toString())) - .replace("{" + "model_name" + "}", localVarApiClient.escapeString(modelName.toString())) - .replace("{" + "id" + "}", localVarApiClient.escapeString(id.toString())) - .replace("{" + "label_field" + "}", localVarApiClient.escapeString(labelField.toString())) - .replace("{" + "label_id" + "}", localVarApiClient.escapeString(labelId.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 (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, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); - } - - @SuppressWarnings("rawtypes") - private okhttp3.Call detachLabelInstancesInstanceIdModulesModuleNameModelNameIdLabelFieldLabelIdDeleteValidateBeforeCall(String moduleName, String modelName, Integer id, String labelField, Integer labelId, UUID instanceId, UUID schemaId, String authorization, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'moduleName' is set - if (moduleName == null) { - throw new ApiException("Missing the required parameter 'moduleName' when calling detachLabelInstancesInstanceIdModulesModuleNameModelNameIdLabelFieldLabelIdDelete(Async)"); - } - - // verify the required parameter 'modelName' is set - if (modelName == null) { - throw new ApiException("Missing the required parameter 'modelName' when calling detachLabelInstancesInstanceIdModulesModuleNameModelNameIdLabelFieldLabelIdDelete(Async)"); - } - - // verify the required parameter 'id' is set - if (id == null) { - throw new ApiException("Missing the required parameter 'id' when calling detachLabelInstancesInstanceIdModulesModuleNameModelNameIdLabelFieldLabelIdDelete(Async)"); - } - - // verify the required parameter 'labelField' is set - if (labelField == null) { - throw new ApiException("Missing the required parameter 'labelField' when calling detachLabelInstancesInstanceIdModulesModuleNameModelNameIdLabelFieldLabelIdDelete(Async)"); - } - - // verify the required parameter 'labelId' is set - if (labelId == null) { - throw new ApiException("Missing the required parameter 'labelId' when calling detachLabelInstancesInstanceIdModulesModuleNameModelNameIdLabelFieldLabelIdDelete(Async)"); - } - - // verify the required parameter 'instanceId' is set - if (instanceId == null) { - throw new ApiException("Missing the required parameter 'instanceId' when calling detachLabelInstancesInstanceIdModulesModuleNameModelNameIdLabelFieldLabelIdDelete(Async)"); - } - - return detachLabelInstancesInstanceIdModulesModuleNameModelNameIdLabelFieldLabelIdDeleteCall(moduleName, modelName, id, labelField, labelId, instanceId, schemaId, authorization, _callback); - - } - - /** - * Detach Label - * - * @param moduleName (required) - * @param modelName (required) - * @param id (required) - * @param labelField (required) - * @param labelId (required) - * @param instanceId (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 detachLabelInstancesInstanceIdModulesModuleNameModelNameIdLabelFieldLabelIdDelete(String moduleName, String modelName, Integer id, String labelField, Integer labelId, UUID instanceId, UUID schemaId, String authorization) throws ApiException { - ApiResponse localVarResp = detachLabelInstancesInstanceIdModulesModuleNameModelNameIdLabelFieldLabelIdDeleteWithHttpInfo(moduleName, modelName, id, labelField, labelId, instanceId, schemaId, authorization); - return localVarResp.getData(); - } - - /** - * Detach Label - * - * @param moduleName (required) - * @param modelName (required) - * @param id (required) - * @param labelField (required) - * @param labelId (required) - * @param instanceId (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 detachLabelInstancesInstanceIdModulesModuleNameModelNameIdLabelFieldLabelIdDeleteWithHttpInfo(String moduleName, String modelName, Integer id, String labelField, Integer labelId, UUID instanceId, UUID schemaId, String authorization) throws ApiException { - okhttp3.Call localVarCall = detachLabelInstancesInstanceIdModulesModuleNameModelNameIdLabelFieldLabelIdDeleteValidateBeforeCall(moduleName, modelName, id, labelField, labelId, instanceId, schemaId, authorization, null); - Type localVarReturnType = new TypeToken(){}.getType(); - return localVarApiClient.execute(localVarCall, localVarReturnType); - } - - /** - * Detach Label (asynchronously) - * - * @param moduleName (required) - * @param modelName (required) - * @param id (required) - * @param labelField (required) - * @param labelId (required) - * @param instanceId (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 detachLabelInstancesInstanceIdModulesModuleNameModelNameIdLabelFieldLabelIdDeleteAsync(String moduleName, String modelName, Integer id, String labelField, Integer labelId, UUID instanceId, UUID schemaId, String authorization, final ApiCallback _callback) throws ApiException { - - okhttp3.Call localVarCall = detachLabelInstancesInstanceIdModulesModuleNameModelNameIdLabelFieldLabelIdDeleteValidateBeforeCall(moduleName, modelName, id, labelField, labelId, instanceId, schemaId, authorization, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); - localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); - return localVarCall; - } - /** - * Build call for detachSpaceFromInstanceAccessV2SpacesSpaceIdInstancesInstanceIdDelete - * @param spaceId (required) - * @param instanceId (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 detachSpaceFromInstanceAccessV2SpacesSpaceIdInstancesInstanceIdDeleteCall(UUID spaceId, UUID instanceId, 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 = "/access_v2/spaces/{space_id}/instances/{instance_id}" - .replace("{" + "space_id" + "}", localVarApiClient.escapeString(spaceId.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(); - - 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, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); - } - - @SuppressWarnings("rawtypes") - 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)"); - } - - // verify the required parameter 'instanceId' is set - if (instanceId == null) { - throw new ApiException("Missing the required parameter 'instanceId' when calling detachSpaceFromInstanceAccessV2SpacesSpaceIdInstancesInstanceIdDelete(Async)"); - } - - return detachSpaceFromInstanceAccessV2SpacesSpaceIdInstancesInstanceIdDeleteCall(spaceId, instanceId, authorization, _callback); - - } - - /** - * Detach Space From Instance - * Detach a space from a specific instance. Parameters: - **space_id**: ID of the space to detach - **instance_id**: UUID of the instance to detach the space from (from URL path) Returns: - **200**: Space detached from instance successfully Requires admin access to the instance - * @param spaceId (required) - * @param instanceId (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 detachSpaceFromInstanceAccessV2SpacesSpaceIdInstancesInstanceIdDelete(UUID spaceId, UUID instanceId, String authorization) throws ApiException { - ApiResponse localVarResp = detachSpaceFromInstanceAccessV2SpacesSpaceIdInstancesInstanceIdDeleteWithHttpInfo(spaceId, instanceId, authorization); - return localVarResp.getData(); - } - - /** - * Detach Space From Instance - * Detach a space from a specific instance. Parameters: - **space_id**: ID of the space to detach - **instance_id**: UUID of the instance to detach the space from (from URL path) Returns: - **200**: Space detached from instance successfully Requires admin access to the instance - * @param spaceId (required) - * @param instanceId (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 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); - } - - /** - * Detach Space From Instance (asynchronously) - * Detach a space from a specific instance. Parameters: - **space_id**: ID of the space to detach - **instance_id**: UUID of the instance to detach the space from (from URL path) Returns: - **200**: Space detached from instance successfully Requires admin access to the instance - * @param spaceId (required) - * @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 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(); - localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); - return localVarCall; - } - /** - * Build call for getCallerAccountAccountGet - * @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 getCallerAccountAccountGetCall(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 = "/account"; - - 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 = { - }; - 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 getCallerAccountAccountGetValidateBeforeCall(String authorization, final ApiCallback _callback) throws ApiException { - return getCallerAccountAccountGetCall(authorization, _callback); - - } - - /** - * Get Caller Account - * - * @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 getCallerAccountAccountGet(String authorization) throws ApiException { - ApiResponse localVarResp = getCallerAccountAccountGetWithHttpInfo(authorization); - return localVarResp.getData(); - } - - /** - * Get Caller Account - * - * @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 getCallerAccountAccountGetWithHttpInfo(String authorization) throws ApiException { - okhttp3.Call localVarCall = getCallerAccountAccountGetValidateBeforeCall(authorization, null); - Type localVarReturnType = new TypeToken(){}.getType(); - return localVarApiClient.execute(localVarCall, localVarReturnType); - } - - /** - * Get Caller Account (asynchronously) - * - * @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 getCallerAccountAccountGetAsync(String authorization, final ApiCallback _callback) throws ApiException { - - okhttp3.Call localVarCall = getCallerAccountAccountGetValidateBeforeCall(authorization, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); - localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); - return localVarCall; - } - /** - * Build call for getDbTokenAccessV2InstancesInstanceIdDbTokenGet - * @param instanceId (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 getDbTokenAccessV2InstancesInstanceIdDbTokenGetCall(UUID instanceId, 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 = "/access_v2/instances/{instance_id}/db_token" - .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 = { - }; - 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 getDbTokenAccessV2InstancesInstanceIdDbTokenGetValidateBeforeCall(UUID instanceId, 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 getDbTokenAccessV2InstancesInstanceIdDbTokenGet(Async)"); - } - - return getDbTokenAccessV2InstancesInstanceIdDbTokenGetCall(instanceId, authorization, _callback); - - } - - /** - * Get Db Token - * Get a database token for the specified instance. This token can be used to authenticate with the instance's database. Parameters: - **instance_id**: UUID of the instance to get the token for (from URL path) Returns: - **200**: Database token retrieved successfully - **token**: The database token - **401**: Unauthorized - * @param instanceId (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 getDbTokenAccessV2InstancesInstanceIdDbTokenGet(UUID instanceId, String authorization) throws ApiException { - ApiResponse localVarResp = getDbTokenAccessV2InstancesInstanceIdDbTokenGetWithHttpInfo(instanceId, authorization); - return localVarResp.getData(); - } - - /** - * Get Db Token - * Get a database token for the specified instance. This token can be used to authenticate with the instance's database. Parameters: - **instance_id**: UUID of the instance to get the token for (from URL path) Returns: - **200**: Database token retrieved successfully - **token**: The database token - **401**: Unauthorized - * @param instanceId (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 getDbTokenAccessV2InstancesInstanceIdDbTokenGetWithHttpInfo(UUID instanceId, String authorization) throws ApiException { - okhttp3.Call localVarCall = getDbTokenAccessV2InstancesInstanceIdDbTokenGetValidateBeforeCall(instanceId, authorization, null); - Type localVarReturnType = new TypeToken(){}.getType(); - return localVarApiClient.execute(localVarCall, localVarReturnType); - } - - /** - * Get Db Token (asynchronously) - * Get a database token for the specified instance. This token can be used to authenticate with the instance's database. Parameters: - **instance_id**: UUID of the instance to get the token for (from URL path) Returns: - **200**: Database token retrieved successfully - **token**: The database token - **401**: Unauthorized - * @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 getDbTokenAccessV2InstancesInstanceIdDbTokenGetAsync(UUID instanceId, String authorization, final ApiCallback _callback) throws ApiException { - - okhttp3.Call localVarCall = getDbTokenAccessV2InstancesInstanceIdDbTokenGetValidateBeforeCall(instanceId, authorization, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); - localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); - return localVarCall; - } - /** - * Build call for getInstanceStatisticsInstancesInstanceIdStatisticsGet - * @param instanceId (required) - * @param q In ${module}.${model} format (case-sensitive) (optional) - * @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 getInstanceStatisticsInstancesInstanceIdStatisticsGetCall(UUID instanceId, List q, 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}/statistics" - .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 (q != null) { - localVarCollectionQueryParams.addAll(localVarApiClient.parameterToPairs("multi", "q", q)); - } - - 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 getInstanceStatisticsInstancesInstanceIdStatisticsGetValidateBeforeCall(UUID instanceId, List q, 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 getInstanceStatisticsInstancesInstanceIdStatisticsGet(Async)"); - } - - return getInstanceStatisticsInstancesInstanceIdStatisticsGetCall(instanceId, q, schemaId, authorization, _callback); - - } - - /** - * Get Instance Statistics - * - * @param instanceId (required) - * @param q In ${module}.${model} format (case-sensitive) (optional) - * @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 getInstanceStatisticsInstancesInstanceIdStatisticsGet(UUID instanceId, List q, UUID schemaId, String authorization) throws ApiException { - ApiResponse localVarResp = getInstanceStatisticsInstancesInstanceIdStatisticsGetWithHttpInfo(instanceId, q, schemaId, authorization); - return localVarResp.getData(); - } - - /** - * Get Instance Statistics - * - * @param instanceId (required) - * @param q In ${module}.${model} format (case-sensitive) (optional) - * @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 getInstanceStatisticsInstancesInstanceIdStatisticsGetWithHttpInfo(UUID instanceId, List q, UUID schemaId, String authorization) throws ApiException { - okhttp3.Call localVarCall = getInstanceStatisticsInstancesInstanceIdStatisticsGetValidateBeforeCall(instanceId, q, schemaId, authorization, null); - Type localVarReturnType = new TypeToken(){}.getType(); - return localVarApiClient.execute(localVarCall, localVarReturnType); - } - - /** - * Get Instance Statistics (asynchronously) - * - * @param instanceId (required) - * @param q In ${module}.${model} format (case-sensitive) (optional) - * @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 getInstanceStatisticsInstancesInstanceIdStatisticsGetAsync(UUID instanceId, List q, UUID schemaId, String authorization, final ApiCallback _callback) throws ApiException { - - okhttp3.Call localVarCall = getInstanceStatisticsInstancesInstanceIdStatisticsGetValidateBeforeCall(instanceId, q, schemaId, authorization, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); - localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); - return localVarCall; - } - /** - * 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 - * @http.response.details - - - - -
Response Details
Status Code Description Response Headers
200 Successful Response -
- */ - public okhttp3.Call getIpDebugIpGetCall(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 = "/_debug/ip"; - - 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 = { - }; - final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - if (localVarContentType != null) { - localVarHeaderParams.put("Content-Type", localVarContentType); - } - - 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); - } - - @SuppressWarnings("rawtypes") - private okhttp3.Call getNonEmptyTablesInstancesInstanceIdNonEmptyTablesGetValidateBeforeCall(UUID instanceId, 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 getNonEmptyTablesInstancesInstanceIdNonEmptyTablesGet(Async)"); - } - - return getNonEmptyTablesInstancesInstanceIdNonEmptyTablesGetCall(instanceId, schemaId, authorization, _callback); - - } - - /** - * Get Non Empty Tables - * - * @param instanceId (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 getNonEmptyTablesInstancesInstanceIdNonEmptyTablesGet(UUID instanceId, UUID schemaId, String authorization) throws ApiException { - ApiResponse localVarResp = getNonEmptyTablesInstancesInstanceIdNonEmptyTablesGetWithHttpInfo(instanceId, schemaId, authorization); - return localVarResp.getData(); - } - - /** - * Get Non Empty Tables - * - * @param instanceId (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 getNonEmptyTablesInstancesInstanceIdNonEmptyTablesGetWithHttpInfo(UUID instanceId, UUID schemaId, String authorization) throws ApiException { - okhttp3.Call localVarCall = getNonEmptyTablesInstancesInstanceIdNonEmptyTablesGetValidateBeforeCall(instanceId, schemaId, authorization, null); - Type localVarReturnType = new TypeToken(){}.getType(); - return localVarApiClient.execute(localVarCall, localVarReturnType); - } - - /** - * Get Non Empty Tables (asynchronously) - * - * @param instanceId (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 getNonEmptyTablesInstancesInstanceIdNonEmptyTablesGetAsync(UUID instanceId, UUID schemaId, String authorization, final ApiCallback _callback) throws ApiException { - - okhttp3.Call localVarCall = getNonEmptyTablesInstancesInstanceIdNonEmptyTablesGetValidateBeforeCall(instanceId, schemaId, authorization, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); - localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); - return localVarCall; - } - /** - * Build call for getOrganizationAccessV2OrganizationsOrganizationIdGet - * @param organizationId (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 getOrganizationAccessV2OrganizationsOrganizationIdGetCall(UUID organizationId, 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 = "/access_v2/organizations/{organization_id}" - .replace("{" + "organization_id" + "}", localVarApiClient.escapeString(organizationId.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 = { - }; - 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 getOrganizationAccessV2OrganizationsOrganizationIdGetValidateBeforeCall(UUID organizationId, String authorization, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'organizationId' is set - if (organizationId == null) { - throw new ApiException("Missing the required parameter 'organizationId' when calling getOrganizationAccessV2OrganizationsOrganizationIdGet(Async)"); - } - - return getOrganizationAccessV2OrganizationsOrganizationIdGetCall(organizationId, authorization, _callback); - - } - - /** - * Get Organization - * Get details of a specific organization. Parameters: - **organization_id**: UUID of the organization to retrieve Returns: - **200**: Organization details retrieved successfully - **404**: Organization not found - * @param organizationId (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 getOrganizationAccessV2OrganizationsOrganizationIdGet(UUID organizationId, String authorization) throws ApiException { - ApiResponse localVarResp = getOrganizationAccessV2OrganizationsOrganizationIdGetWithHttpInfo(organizationId, authorization); - return localVarResp.getData(); - } - - /** - * Get Organization - * Get details of a specific organization. Parameters: - **organization_id**: UUID of the organization to retrieve Returns: - **200**: Organization details retrieved successfully - **404**: Organization not found - * @param organizationId (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 getOrganizationAccessV2OrganizationsOrganizationIdGetWithHttpInfo(UUID organizationId, String authorization) throws ApiException { - okhttp3.Call localVarCall = getOrganizationAccessV2OrganizationsOrganizationIdGetValidateBeforeCall(organizationId, authorization, null); - Type localVarReturnType = new TypeToken(){}.getType(); - return localVarApiClient.execute(localVarCall, localVarReturnType); - } - - /** - * Get Organization (asynchronously) - * Get details of a specific organization. Parameters: - **organization_id**: UUID of the organization to retrieve Returns: - **200**: Organization details retrieved successfully - **404**: Organization not found - * @param organizationId (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 getOrganizationAccessV2OrganizationsOrganizationIdGetAsync(UUID organizationId, String authorization, final ApiCallback _callback) throws ApiException { - - okhttp3.Call localVarCall = getOrganizationAccessV2OrganizationsOrganizationIdGetValidateBeforeCall(organizationId, authorization, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); - localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); - return localVarCall; - } - /** - * Build call for getRecordInstancesInstanceIdModulesModuleNameModelNameIdOrUidPost - * @param moduleName (required) - * @param modelName (required) - * @param idOrUid (required) - * @param instanceId (required) - * @param limitToMany (optional, default to 10) - * @param includeForeignKeys (optional, default to false) - * @param schemaId (optional) - * @param authorization (optional) - * @param getRecordRequestBody (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 getRecordInstancesInstanceIdModulesModuleNameModelNameIdOrUidPostCall(String moduleName, String modelName, String idOrUid, UUID instanceId, Integer limitToMany, Boolean includeForeignKeys, UUID schemaId, String authorization, GetRecordRequestBody getRecordRequestBody, 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 = getRecordRequestBody; - - // create path and map variables - String localVarPath = "/instances/{instance_id}/modules/{module_name}/{model_name}/{id_or_uid}" - .replace("{" + "module_name" + "}", localVarApiClient.escapeString(moduleName.toString())) - .replace("{" + "model_name" + "}", localVarApiClient.escapeString(modelName.toString())) - .replace("{" + "id_or_uid" + "}", localVarApiClient.escapeString(idOrUid.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 (limitToMany != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("limit_to_many", limitToMany)); - } - - if (includeForeignKeys != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("include_foreign_keys", includeForeignKeys)); - } - - 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 = { - "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 getRecordInstancesInstanceIdModulesModuleNameModelNameIdOrUidPostValidateBeforeCall(String moduleName, String modelName, String idOrUid, UUID instanceId, Integer limitToMany, Boolean includeForeignKeys, UUID schemaId, String authorization, GetRecordRequestBody getRecordRequestBody, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'moduleName' is set - if (moduleName == null) { - throw new ApiException("Missing the required parameter 'moduleName' when calling getRecordInstancesInstanceIdModulesModuleNameModelNameIdOrUidPost(Async)"); - } - - // verify the required parameter 'modelName' is set - if (modelName == null) { - throw new ApiException("Missing the required parameter 'modelName' when calling getRecordInstancesInstanceIdModulesModuleNameModelNameIdOrUidPost(Async)"); - } - - // verify the required parameter 'idOrUid' is set - if (idOrUid == null) { - throw new ApiException("Missing the required parameter 'idOrUid' when calling getRecordInstancesInstanceIdModulesModuleNameModelNameIdOrUidPost(Async)"); - } - - // verify the required parameter 'instanceId' is set - if (instanceId == null) { - throw new ApiException("Missing the required parameter 'instanceId' when calling getRecordInstancesInstanceIdModulesModuleNameModelNameIdOrUidPost(Async)"); - } - - return getRecordInstancesInstanceIdModulesModuleNameModelNameIdOrUidPostCall(moduleName, modelName, idOrUid, instanceId, limitToMany, includeForeignKeys, schemaId, authorization, getRecordRequestBody, _callback); - - } - - /** - * Get Record - * - * @param moduleName (required) - * @param modelName (required) - * @param idOrUid (required) - * @param instanceId (required) - * @param limitToMany (optional, default to 10) - * @param includeForeignKeys (optional, default to false) - * @param schemaId (optional) - * @param authorization (optional) - * @param getRecordRequestBody (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 getRecordInstancesInstanceIdModulesModuleNameModelNameIdOrUidPost(String moduleName, String modelName, String idOrUid, UUID instanceId, Integer limitToMany, Boolean includeForeignKeys, UUID schemaId, String authorization, GetRecordRequestBody getRecordRequestBody) throws ApiException { - ApiResponse localVarResp = getRecordInstancesInstanceIdModulesModuleNameModelNameIdOrUidPostWithHttpInfo(moduleName, modelName, idOrUid, instanceId, limitToMany, includeForeignKeys, schemaId, authorization, getRecordRequestBody); - return localVarResp.getData(); - } - - /** - * Get Record - * - * @param moduleName (required) - * @param modelName (required) - * @param idOrUid (required) - * @param instanceId (required) - * @param limitToMany (optional, default to 10) - * @param includeForeignKeys (optional, default to false) - * @param schemaId (optional) - * @param authorization (optional) - * @param getRecordRequestBody (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 getRecordInstancesInstanceIdModulesModuleNameModelNameIdOrUidPostWithHttpInfo(String moduleName, String modelName, String idOrUid, UUID instanceId, Integer limitToMany, Boolean includeForeignKeys, UUID schemaId, String authorization, GetRecordRequestBody getRecordRequestBody) throws ApiException { - okhttp3.Call localVarCall = getRecordInstancesInstanceIdModulesModuleNameModelNameIdOrUidPostValidateBeforeCall(moduleName, modelName, idOrUid, instanceId, limitToMany, includeForeignKeys, schemaId, authorization, getRecordRequestBody, null); - Type localVarReturnType = new TypeToken(){}.getType(); - return localVarApiClient.execute(localVarCall, localVarReturnType); - } - - /** - * Get Record (asynchronously) - * - * @param moduleName (required) - * @param modelName (required) - * @param idOrUid (required) - * @param instanceId (required) - * @param limitToMany (optional, default to 10) - * @param includeForeignKeys (optional, default to false) - * @param schemaId (optional) - * @param authorization (optional) - * @param getRecordRequestBody (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 getRecordInstancesInstanceIdModulesModuleNameModelNameIdOrUidPostAsync(String moduleName, String modelName, String idOrUid, UUID instanceId, Integer limitToMany, Boolean includeForeignKeys, UUID schemaId, String authorization, GetRecordRequestBody getRecordRequestBody, final ApiCallback _callback) throws ApiException { - - okhttp3.Call localVarCall = getRecordInstancesInstanceIdModulesModuleNameModelNameIdOrUidPostValidateBeforeCall(moduleName, modelName, idOrUid, instanceId, limitToMany, includeForeignKeys, schemaId, authorization, getRecordRequestBody, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); - localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); - return localVarCall; - } - /** - * Build call for getRecordsInstancesInstanceIdModulesModuleNameModelNamePost - * @param moduleName (required) - * @param modelName (required) - * @param instanceId (required) - * @param limit (optional, default to 50) - * @param offset (optional, default to 0) - * @param limitToMany (optional, default to 10) - * @param includeForeignKeys (optional, default to false) - * @param schemaId (optional) - * @param authorization (optional) - * @param getRecordsRequestBody (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 getRecordsInstancesInstanceIdModulesModuleNameModelNamePostCall(String moduleName, String modelName, UUID instanceId, Integer limit, Integer offset, Integer limitToMany, Boolean includeForeignKeys, UUID schemaId, String authorization, GetRecordsRequestBody getRecordsRequestBody, 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 = getRecordsRequestBody; - - // create path and map variables - String localVarPath = "/instances/{instance_id}/modules/{module_name}/{model_name}" - .replace("{" + "module_name" + "}", localVarApiClient.escapeString(moduleName.toString())) - .replace("{" + "model_name" + "}", localVarApiClient.escapeString(modelName.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 (limit != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("limit", limit)); - } - - if (offset != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("offset", offset)); - } - - if (limitToMany != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("limit_to_many", limitToMany)); - } - - if (includeForeignKeys != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("include_foreign_keys", includeForeignKeys)); - } - - 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 = { - "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 getRecordsInstancesInstanceIdModulesModuleNameModelNamePostValidateBeforeCall(String moduleName, String modelName, UUID instanceId, Integer limit, Integer offset, Integer limitToMany, Boolean includeForeignKeys, UUID schemaId, String authorization, GetRecordsRequestBody getRecordsRequestBody, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'moduleName' is set - if (moduleName == null) { - throw new ApiException("Missing the required parameter 'moduleName' when calling getRecordsInstancesInstanceIdModulesModuleNameModelNamePost(Async)"); - } - - // verify the required parameter 'modelName' is set - if (modelName == null) { - throw new ApiException("Missing the required parameter 'modelName' when calling getRecordsInstancesInstanceIdModulesModuleNameModelNamePost(Async)"); - } - - // verify the required parameter 'instanceId' is set - if (instanceId == null) { - throw new ApiException("Missing the required parameter 'instanceId' when calling getRecordsInstancesInstanceIdModulesModuleNameModelNamePost(Async)"); - } - - return getRecordsInstancesInstanceIdModulesModuleNameModelNamePostCall(moduleName, modelName, instanceId, limit, offset, limitToMany, includeForeignKeys, schemaId, authorization, getRecordsRequestBody, _callback); - - } - - /** - * Get Records - * - * @param moduleName (required) - * @param modelName (required) - * @param instanceId (required) - * @param limit (optional, default to 50) - * @param offset (optional, default to 0) - * @param limitToMany (optional, default to 10) - * @param includeForeignKeys (optional, default to false) - * @param schemaId (optional) - * @param authorization (optional) - * @param getRecordsRequestBody (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 getRecordsInstancesInstanceIdModulesModuleNameModelNamePost(String moduleName, String modelName, UUID instanceId, Integer limit, Integer offset, Integer limitToMany, Boolean includeForeignKeys, UUID schemaId, String authorization, GetRecordsRequestBody getRecordsRequestBody) throws ApiException { - ApiResponse localVarResp = getRecordsInstancesInstanceIdModulesModuleNameModelNamePostWithHttpInfo(moduleName, modelName, instanceId, limit, offset, limitToMany, includeForeignKeys, schemaId, authorization, getRecordsRequestBody); - return localVarResp.getData(); - } - - /** - * Get Records - * - * @param moduleName (required) - * @param modelName (required) - * @param instanceId (required) - * @param limit (optional, default to 50) - * @param offset (optional, default to 0) - * @param limitToMany (optional, default to 10) - * @param includeForeignKeys (optional, default to false) - * @param schemaId (optional) - * @param authorization (optional) - * @param getRecordsRequestBody (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 getRecordsInstancesInstanceIdModulesModuleNameModelNamePostWithHttpInfo(String moduleName, String modelName, UUID instanceId, Integer limit, Integer offset, Integer limitToMany, Boolean includeForeignKeys, UUID schemaId, String authorization, GetRecordsRequestBody getRecordsRequestBody) throws ApiException { - okhttp3.Call localVarCall = getRecordsInstancesInstanceIdModulesModuleNameModelNamePostValidateBeforeCall(moduleName, modelName, instanceId, limit, offset, limitToMany, includeForeignKeys, schemaId, authorization, getRecordsRequestBody, null); - Type localVarReturnType = new TypeToken(){}.getType(); - return localVarApiClient.execute(localVarCall, localVarReturnType); - } - - /** - * Get Records (asynchronously) - * - * @param moduleName (required) - * @param modelName (required) - * @param instanceId (required) - * @param limit (optional, default to 50) - * @param offset (optional, default to 0) - * @param limitToMany (optional, default to 10) - * @param includeForeignKeys (optional, default to false) - * @param schemaId (optional) - * @param authorization (optional) - * @param getRecordsRequestBody (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 getRecordsInstancesInstanceIdModulesModuleNameModelNamePostAsync(String moduleName, String modelName, UUID instanceId, Integer limit, Integer offset, Integer limitToMany, Boolean includeForeignKeys, UUID schemaId, String authorization, GetRecordsRequestBody getRecordsRequestBody, final ApiCallback _callback) throws ApiException { - - okhttp3.Call localVarCall = getRecordsInstancesInstanceIdModulesModuleNameModelNamePostValidateBeforeCall(moduleName, modelName, instanceId, limit, offset, limitToMany, includeForeignKeys, schemaId, authorization, getRecordsRequestBody, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); - localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); - return localVarCall; - } - /** - * Build call for getRelationCountsInstancesInstanceIdModulesModuleNameModelNameIdCountsGet - * @param moduleName (required) - * @param modelName (required) - * @param id (required) - * @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 getRelationCountsInstancesInstanceIdModulesModuleNameModelNameIdCountsGetCall(String moduleName, String modelName, Integer id, 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}/modules/{module_name}/{model_name}/{id}/counts" - .replace("{" + "module_name" + "}", localVarApiClient.escapeString(moduleName.toString())) - .replace("{" + "model_name" + "}", localVarApiClient.escapeString(modelName.toString())) - .replace("{" + "id" + "}", localVarApiClient.escapeString(id.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 (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 getRelationCountsInstancesInstanceIdModulesModuleNameModelNameIdCountsGetValidateBeforeCall(String moduleName, String modelName, Integer id, UUID instanceId, UUID schemaId, String authorization, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'moduleName' is set - if (moduleName == null) { - throw new ApiException("Missing the required parameter 'moduleName' when calling getRelationCountsInstancesInstanceIdModulesModuleNameModelNameIdCountsGet(Async)"); - } - - // verify the required parameter 'modelName' is set - if (modelName == null) { - throw new ApiException("Missing the required parameter 'modelName' when calling getRelationCountsInstancesInstanceIdModulesModuleNameModelNameIdCountsGet(Async)"); - } - - // verify the required parameter 'id' is set - if (id == null) { - throw new ApiException("Missing the required parameter 'id' when calling getRelationCountsInstancesInstanceIdModulesModuleNameModelNameIdCountsGet(Async)"); - } - - // verify the required parameter 'instanceId' is set - if (instanceId == null) { - throw new ApiException("Missing the required parameter 'instanceId' when calling getRelationCountsInstancesInstanceIdModulesModuleNameModelNameIdCountsGet(Async)"); - } - - return getRelationCountsInstancesInstanceIdModulesModuleNameModelNameIdCountsGetCall(moduleName, modelName, id, instanceId, schemaId, authorization, _callback); - - } - - /** - * Get Relation Counts - * - * @param moduleName (required) - * @param modelName (required) - * @param id (required) - * @param instanceId (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 getRelationCountsInstancesInstanceIdModulesModuleNameModelNameIdCountsGet(String moduleName, String modelName, Integer id, UUID instanceId, UUID schemaId, String authorization) throws ApiException { - ApiResponse localVarResp = getRelationCountsInstancesInstanceIdModulesModuleNameModelNameIdCountsGetWithHttpInfo(moduleName, modelName, id, instanceId, schemaId, authorization); - return localVarResp.getData(); - } - - /** - * Get Relation Counts - * - * @param moduleName (required) - * @param modelName (required) - * @param id (required) - * @param instanceId (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 getRelationCountsInstancesInstanceIdModulesModuleNameModelNameIdCountsGetWithHttpInfo(String moduleName, String modelName, Integer id, UUID instanceId, UUID schemaId, String authorization) throws ApiException { - okhttp3.Call localVarCall = getRelationCountsInstancesInstanceIdModulesModuleNameModelNameIdCountsGetValidateBeforeCall(moduleName, modelName, id, instanceId, schemaId, authorization, null); - Type localVarReturnType = new TypeToken(){}.getType(); - return localVarApiClient.execute(localVarCall, localVarReturnType); - } - - /** - * Get Relation Counts (asynchronously) - * - * @param moduleName (required) - * @param modelName (required) - * @param id (required) - * @param instanceId (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 getRelationCountsInstancesInstanceIdModulesModuleNameModelNameIdCountsGetAsync(String moduleName, String modelName, Integer id, UUID instanceId, UUID schemaId, String authorization, final ApiCallback _callback) throws ApiException { - - okhttp3.Call localVarCall = getRelationCountsInstancesInstanceIdModulesModuleNameModelNameIdCountsGetValidateBeforeCall(moduleName, modelName, id, instanceId, schemaId, authorization, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); - localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); - return localVarCall; - } - /** - * Build call for getRelationsInstancesInstanceIdSchemaModuleNameModelNameGet - * @param moduleName (required) - * @param modelName (required) - * @param instanceId (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 getRelationsInstancesInstanceIdSchemaModuleNameModelNameGetCall(String moduleName, String modelName, UUID instanceId, 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}/schema/{module_name}/{model_name}" - .replace("{" + "module_name" + "}", localVarApiClient.escapeString(moduleName.toString())) - .replace("{" + "model_name" + "}", localVarApiClient.escapeString(modelName.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(); - - 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 getRelationsInstancesInstanceIdSchemaModuleNameModelNameGetValidateBeforeCall(String moduleName, String modelName, UUID instanceId, String authorization, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'moduleName' is set - if (moduleName == null) { - throw new ApiException("Missing the required parameter 'moduleName' when calling getRelationsInstancesInstanceIdSchemaModuleNameModelNameGet(Async)"); - } - - // verify the required parameter 'modelName' is set - if (modelName == null) { - throw new ApiException("Missing the required parameter 'modelName' when calling getRelationsInstancesInstanceIdSchemaModuleNameModelNameGet(Async)"); - } - - // verify the required parameter 'instanceId' is set - if (instanceId == null) { - throw new ApiException("Missing the required parameter 'instanceId' when calling getRelationsInstancesInstanceIdSchemaModuleNameModelNameGet(Async)"); - } - - return getRelationsInstancesInstanceIdSchemaModuleNameModelNameGetCall(moduleName, modelName, instanceId, authorization, _callback); - - } - - /** - * Get Relations - * - * @param moduleName (required) - * @param modelName (required) - * @param instanceId (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 getRelationsInstancesInstanceIdSchemaModuleNameModelNameGet(String moduleName, String modelName, UUID instanceId, String authorization) throws ApiException { - ApiResponse localVarResp = getRelationsInstancesInstanceIdSchemaModuleNameModelNameGetWithHttpInfo(moduleName, modelName, instanceId, authorization); - return localVarResp.getData(); - } - - /** - * Get Relations - * - * @param moduleName (required) - * @param modelName (required) - * @param instanceId (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 getRelationsInstancesInstanceIdSchemaModuleNameModelNameGetWithHttpInfo(String moduleName, String modelName, UUID instanceId, String authorization) throws ApiException { - okhttp3.Call localVarCall = getRelationsInstancesInstanceIdSchemaModuleNameModelNameGetValidateBeforeCall(moduleName, modelName, instanceId, authorization, null); - Type localVarReturnType = new TypeToken(){}.getType(); - return localVarApiClient.execute(localVarCall, localVarReturnType); - } - - /** - * Get Relations (asynchronously) - * - * @param moduleName (required) - * @param modelName (required) - * @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 getRelationsInstancesInstanceIdSchemaModuleNameModelNameGetAsync(String moduleName, String modelName, UUID instanceId, String authorization, final ApiCallback _callback) throws ApiException { - - okhttp3.Call localVarCall = getRelationsInstancesInstanceIdSchemaModuleNameModelNameGetValidateBeforeCall(moduleName, modelName, instanceId, authorization, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); - localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); - return localVarCall; - } - /** - * Build call for getSchemaInstancesInstanceIdSchemaGet - * @param instanceId (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 getSchemaInstancesInstanceIdSchemaGetCall(UUID instanceId, 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}/schema" - .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 = { - }; - 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 getSchemaInstancesInstanceIdSchemaGetValidateBeforeCall(UUID instanceId, 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 getSchemaInstancesInstanceIdSchemaGet(Async)"); - } - - return getSchemaInstancesInstanceIdSchemaGetCall(instanceId, authorization, _callback); - - } - - /** - * Get Schema - * - * @param instanceId (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 getSchemaInstancesInstanceIdSchemaGet(UUID instanceId, String authorization) throws ApiException { - ApiResponse localVarResp = getSchemaInstancesInstanceIdSchemaGetWithHttpInfo(instanceId, authorization); - return localVarResp.getData(); - } - - /** - * Get Schema - * - * @param instanceId (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 getSchemaInstancesInstanceIdSchemaGetWithHttpInfo(UUID instanceId, String authorization) throws ApiException { - okhttp3.Call localVarCall = getSchemaInstancesInstanceIdSchemaGetValidateBeforeCall(instanceId, authorization, null); - Type localVarReturnType = new TypeToken(){}.getType(); - return localVarApiClient.execute(localVarCall, localVarReturnType); - } - - /** - * Get Schema (asynchronously) - * - * @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 getSchemaInstancesInstanceIdSchemaGetAsync(UUID instanceId, String authorization, final ApiCallback _callback) throws ApiException { - - okhttp3.Call localVarCall = getSchemaInstancesInstanceIdSchemaGetValidateBeforeCall(instanceId, authorization, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); - localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); - return localVarCall; - } - /** - * Build call for getSpaceAccessV2SpacesSpaceIdGet - * @param spaceId (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 getSpaceAccessV2SpacesSpaceIdGetCall(UUID spaceId, 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 = "/access_v2/spaces/{space_id}" - .replace("{" + "space_id" + "}", localVarApiClient.escapeString(spaceId.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 = { - }; - 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 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)"); - } - - return getSpaceAccessV2SpacesSpaceIdGetCall(spaceId, authorization, _callback); - - } - - /** - * Get Space - * Get details of a specific space. Parameters: - **space_id**: ID of the space to retrieve Returns: - **200**: Space details retrieved successfully - **404**: Space not found - * @param spaceId (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 getSpaceAccessV2SpacesSpaceIdGet(UUID spaceId, String authorization) throws ApiException { - ApiResponse localVarResp = getSpaceAccessV2SpacesSpaceIdGetWithHttpInfo(spaceId, authorization); - return localVarResp.getData(); - } - - /** - * Get Space - * Get details of a specific space. Parameters: - **space_id**: ID of the space to retrieve Returns: - **200**: Space details retrieved successfully - **404**: Space not found - * @param spaceId (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 getSpaceAccessV2SpacesSpaceIdGetWithHttpInfo(UUID spaceId, String authorization) throws ApiException { - okhttp3.Call localVarCall = getSpaceAccessV2SpacesSpaceIdGetValidateBeforeCall(spaceId, authorization, null); - Type localVarReturnType = new TypeToken(){}.getType(); - return localVarApiClient.execute(localVarCall, localVarReturnType); - } - - /** - * Get Space (asynchronously) - * Get details of a specific space. Parameters: - **space_id**: ID of the space to retrieve Returns: - **200**: Space details retrieved successfully - **404**: Space not found - * @param spaceId (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 getSpaceAccessV2SpacesSpaceIdGetAsync(UUID spaceId, String authorization, final ApiCallback _callback) throws ApiException { - - okhttp3.Call localVarCall = getSpaceAccessV2SpacesSpaceIdGetValidateBeforeCall(spaceId, authorization, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); - localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); - return localVarCall; - } - /** - * Build call for getTeamAccessV2TeamsTeamIdGet - * @param teamId (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 getTeamAccessV2TeamsTeamIdGetCall(UUID teamId, 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 = "/access_v2/teams/{team_id}" - .replace("{" + "team_id" + "}", localVarApiClient.escapeString(teamId.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 = { - }; - 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 getTeamAccessV2TeamsTeamIdGetValidateBeforeCall(UUID teamId, String authorization, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'teamId' is set - if (teamId == null) { - throw new ApiException("Missing the required parameter 'teamId' when calling getTeamAccessV2TeamsTeamIdGet(Async)"); - } - - return getTeamAccessV2TeamsTeamIdGetCall(teamId, authorization, _callback); - - } - - /** - * Get Team - * Get details of a specific team. Parameters: - **team_id**: UUID of the team to retrieve Returns: - **200**: Team details retrieved successfully - **404**: Team not found - * @param teamId (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 getTeamAccessV2TeamsTeamIdGet(UUID teamId, String authorization) throws ApiException { - ApiResponse localVarResp = getTeamAccessV2TeamsTeamIdGetWithHttpInfo(teamId, authorization); - return localVarResp.getData(); - } - - /** - * Get Team - * Get details of a specific team. Parameters: - **team_id**: UUID of the team to retrieve Returns: - **200**: Team details retrieved successfully - **404**: Team not found - * @param teamId (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 getTeamAccessV2TeamsTeamIdGetWithHttpInfo(UUID teamId, String authorization) throws ApiException { - okhttp3.Call localVarCall = getTeamAccessV2TeamsTeamIdGetValidateBeforeCall(teamId, authorization, null); - Type localVarReturnType = new TypeToken(){}.getType(); - return localVarApiClient.execute(localVarCall, localVarReturnType); - } - - /** - * Get Team (asynchronously) - * Get details of a specific team. Parameters: - **team_id**: UUID of the team to retrieve Returns: - **200**: Team details retrieved successfully - **404**: Team not found - * @param teamId (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 getTeamAccessV2TeamsTeamIdGetAsync(UUID teamId, String authorization, final ApiCallback _callback) throws ApiException { - - okhttp3.Call localVarCall = getTeamAccessV2TeamsTeamIdGetValidateBeforeCall(teamId, authorization, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); - 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) - * @param modelName (required) - * @param fieldPath (required) - * @param instanceId (required) - * @param limit (optional, default to 50) - * @param offset (optional, default to 0) - * @param schemaId (optional) - * @param authorization (optional) - * @param getValuesRequestBody (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 getValuesInstancesInstanceIdModulesModuleNameModelNameFieldsFieldPathPostCall(String moduleName, String modelName, String fieldPath, UUID instanceId, Integer limit, Integer offset, UUID schemaId, String authorization, GetValuesRequestBody getValuesRequestBody, 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 = getValuesRequestBody; - - // create path and map variables - String localVarPath = "/instances/{instance_id}/modules/{module_name}/{model_name}/fields/{field_path}" - .replace("{" + "module_name" + "}", localVarApiClient.escapeString(moduleName.toString())) - .replace("{" + "model_name" + "}", localVarApiClient.escapeString(modelName.toString())) - .replace("{" + "field_path" + "}", localVarApiClient.escapeString(fieldPath.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 (limit != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("limit", limit)); - } - - if (offset != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("offset", offset)); - } - - 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 = { - "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 getValuesInstancesInstanceIdModulesModuleNameModelNameFieldsFieldPathPostValidateBeforeCall(String moduleName, String modelName, String fieldPath, UUID instanceId, Integer limit, Integer offset, UUID schemaId, String authorization, GetValuesRequestBody getValuesRequestBody, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'moduleName' is set - if (moduleName == null) { - throw new ApiException("Missing the required parameter 'moduleName' when calling getValuesInstancesInstanceIdModulesModuleNameModelNameFieldsFieldPathPost(Async)"); - } - - // verify the required parameter 'modelName' is set - if (modelName == null) { - throw new ApiException("Missing the required parameter 'modelName' when calling getValuesInstancesInstanceIdModulesModuleNameModelNameFieldsFieldPathPost(Async)"); - } - - // verify the required parameter 'fieldPath' is set - if (fieldPath == null) { - throw new ApiException("Missing the required parameter 'fieldPath' when calling getValuesInstancesInstanceIdModulesModuleNameModelNameFieldsFieldPathPost(Async)"); - } - - // verify the required parameter 'instanceId' is set - if (instanceId == null) { - throw new ApiException("Missing the required parameter 'instanceId' when calling getValuesInstancesInstanceIdModulesModuleNameModelNameFieldsFieldPathPost(Async)"); - } - - return getValuesInstancesInstanceIdModulesModuleNameModelNameFieldsFieldPathPostCall(moduleName, modelName, fieldPath, instanceId, limit, offset, schemaId, authorization, getValuesRequestBody, _callback); - - } - - /** - * Get Values - * - * @param moduleName (required) - * @param modelName (required) - * @param fieldPath (required) - * @param instanceId (required) - * @param limit (optional, default to 50) - * @param offset (optional, default to 0) - * @param schemaId (optional) - * @param authorization (optional) - * @param getValuesRequestBody (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 getValuesInstancesInstanceIdModulesModuleNameModelNameFieldsFieldPathPost(String moduleName, String modelName, String fieldPath, UUID instanceId, Integer limit, Integer offset, UUID schemaId, String authorization, GetValuesRequestBody getValuesRequestBody) throws ApiException { - ApiResponse localVarResp = getValuesInstancesInstanceIdModulesModuleNameModelNameFieldsFieldPathPostWithHttpInfo(moduleName, modelName, fieldPath, instanceId, limit, offset, schemaId, authorization, getValuesRequestBody); - return localVarResp.getData(); - } - - /** - * Get Values - * - * @param moduleName (required) - * @param modelName (required) - * @param fieldPath (required) - * @param instanceId (required) - * @param limit (optional, default to 50) - * @param offset (optional, default to 0) - * @param schemaId (optional) - * @param authorization (optional) - * @param getValuesRequestBody (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 getValuesInstancesInstanceIdModulesModuleNameModelNameFieldsFieldPathPostWithHttpInfo(String moduleName, String modelName, String fieldPath, UUID instanceId, Integer limit, Integer offset, UUID schemaId, String authorization, GetValuesRequestBody getValuesRequestBody) throws ApiException { - okhttp3.Call localVarCall = getValuesInstancesInstanceIdModulesModuleNameModelNameFieldsFieldPathPostValidateBeforeCall(moduleName, modelName, fieldPath, instanceId, limit, offset, schemaId, authorization, getValuesRequestBody, null); - Type localVarReturnType = new TypeToken(){}.getType(); - return localVarApiClient.execute(localVarCall, localVarReturnType); - } - - /** - * Get Values (asynchronously) - * - * @param moduleName (required) - * @param modelName (required) - * @param fieldPath (required) - * @param instanceId (required) - * @param limit (optional, default to 50) - * @param offset (optional, default to 0) - * @param schemaId (optional) - * @param authorization (optional) - * @param getValuesRequestBody (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 getValuesInstancesInstanceIdModulesModuleNameModelNameFieldsFieldPathPostAsync(String moduleName, String modelName, String fieldPath, UUID instanceId, Integer limit, Integer offset, UUID schemaId, String authorization, GetValuesRequestBody getValuesRequestBody, final ApiCallback _callback) throws ApiException { - - okhttp3.Call localVarCall = getValuesInstancesInstanceIdModulesModuleNameModelNameFieldsFieldPathPostValidateBeforeCall(moduleName, modelName, fieldPath, instanceId, limit, offset, schemaId, authorization, getValuesRequestBody, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); - localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); - return localVarCall; - } - /** - * Build call for grantS3PermissionsStoragesS3BucketNamePermissionsPut - * @param bucketName (required) - * @param s3PermissionsRequest (required) - * @param awsAccountId (optional, default to 767398070972) - * @param awsUserName (optional, default to lamin-manager) - * @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 grantS3PermissionsStoragesS3BucketNamePermissionsPutCall(String bucketName, S3PermissionsRequest s3PermissionsRequest, String awsAccountId, String awsUserName, 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 = s3PermissionsRequest; - - // create path and map variables - String localVarPath = "/storages/s3/{bucket_name}/permissions" - .replace("{" + "bucket_name" + "}", localVarApiClient.escapeString(bucketName.toString())); - - List localVarQueryParams = new ArrayList(); - List localVarCollectionQueryParams = new ArrayList(); - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); - - if (awsAccountId != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("aws_account_id", awsAccountId)); - } - - if (awsUserName != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("aws_user_name", awsUserName)); - } - - 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, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); - } - - @SuppressWarnings("rawtypes") - private okhttp3.Call grantS3PermissionsStoragesS3BucketNamePermissionsPutValidateBeforeCall(String bucketName, S3PermissionsRequest s3PermissionsRequest, String awsAccountId, String awsUserName, String authorization, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'bucketName' is set - if (bucketName == null) { - throw new ApiException("Missing the required parameter 'bucketName' when calling grantS3PermissionsStoragesS3BucketNamePermissionsPut(Async)"); - } - - // verify the required parameter 's3PermissionsRequest' is set - if (s3PermissionsRequest == null) { - throw new ApiException("Missing the required parameter 's3PermissionsRequest' when calling grantS3PermissionsStoragesS3BucketNamePermissionsPut(Async)"); - } - - return grantS3PermissionsStoragesS3BucketNamePermissionsPutCall(bucketName, s3PermissionsRequest, awsAccountId, awsUserName, authorization, _callback); - - } - - /** - * Grant S3 Permissions - * - * @param bucketName (required) - * @param s3PermissionsRequest (required) - * @param awsAccountId (optional, default to 767398070972) - * @param awsUserName (optional, default to lamin-manager) - * @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 grantS3PermissionsStoragesS3BucketNamePermissionsPut(String bucketName, S3PermissionsRequest s3PermissionsRequest, String awsAccountId, String awsUserName, String authorization) throws ApiException { - ApiResponse localVarResp = grantS3PermissionsStoragesS3BucketNamePermissionsPutWithHttpInfo(bucketName, s3PermissionsRequest, awsAccountId, awsUserName, authorization); - return localVarResp.getData(); - } - - /** - * Grant S3 Permissions - * - * @param bucketName (required) - * @param s3PermissionsRequest (required) - * @param awsAccountId (optional, default to 767398070972) - * @param awsUserName (optional, default to lamin-manager) - * @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 grantS3PermissionsStoragesS3BucketNamePermissionsPutWithHttpInfo(String bucketName, S3PermissionsRequest s3PermissionsRequest, String awsAccountId, String awsUserName, String authorization) throws ApiException { - okhttp3.Call localVarCall = grantS3PermissionsStoragesS3BucketNamePermissionsPutValidateBeforeCall(bucketName, s3PermissionsRequest, awsAccountId, awsUserName, authorization, null); - Type localVarReturnType = new TypeToken(){}.getType(); - return localVarApiClient.execute(localVarCall, localVarReturnType); - } - - /** - * Grant S3 Permissions (asynchronously) - * - * @param bucketName (required) - * @param s3PermissionsRequest (required) - * @param awsAccountId (optional, default to 767398070972) - * @param awsUserName (optional, default to lamin-manager) - * @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 grantS3PermissionsStoragesS3BucketNamePermissionsPutAsync(String bucketName, S3PermissionsRequest s3PermissionsRequest, String awsAccountId, String awsUserName, String authorization, final ApiCallback _callback) throws ApiException { - - okhttp3.Call localVarCall = grantS3PermissionsStoragesS3BucketNamePermissionsPutValidateBeforeCall(bucketName, s3PermissionsRequest, awsAccountId, awsUserName, authorization, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); - localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); - return localVarCall; - } - /** - * Build call for groupByInstancesInstanceIdModulesModuleNameModelNameGroupByPost - * @param moduleName (required) - * @param modelName (required) - * @param instanceId (required) - * @param groupByRequestBody (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 groupByInstancesInstanceIdModulesModuleNameModelNameGroupByPostCall(String moduleName, String modelName, UUID instanceId, GroupByRequestBody groupByRequestBody, 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 = groupByRequestBody; - - // create path and map variables - String localVarPath = "/instances/{instance_id}/modules/{module_name}/{model_name}/group-by" - .replace("{" + "module_name" + "}", localVarApiClient.escapeString(moduleName.toString())) - .replace("{" + "model_name" + "}", localVarApiClient.escapeString(modelName.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 (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 = { - "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 groupByInstancesInstanceIdModulesModuleNameModelNameGroupByPostValidateBeforeCall(String moduleName, String modelName, UUID instanceId, GroupByRequestBody groupByRequestBody, UUID schemaId, String authorization, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'moduleName' is set - if (moduleName == null) { - throw new ApiException("Missing the required parameter 'moduleName' when calling groupByInstancesInstanceIdModulesModuleNameModelNameGroupByPost(Async)"); - } - - // verify the required parameter 'modelName' is set - if (modelName == null) { - throw new ApiException("Missing the required parameter 'modelName' when calling groupByInstancesInstanceIdModulesModuleNameModelNameGroupByPost(Async)"); - } - - // verify the required parameter 'instanceId' is set - if (instanceId == null) { - throw new ApiException("Missing the required parameter 'instanceId' when calling groupByInstancesInstanceIdModulesModuleNameModelNameGroupByPost(Async)"); - } - - // verify the required parameter 'groupByRequestBody' is set - if (groupByRequestBody == null) { - throw new ApiException("Missing the required parameter 'groupByRequestBody' when calling groupByInstancesInstanceIdModulesModuleNameModelNameGroupByPost(Async)"); - } - - return groupByInstancesInstanceIdModulesModuleNameModelNameGroupByPostCall(moduleName, modelName, instanceId, groupByRequestBody, schemaId, authorization, _callback); - - } - - /** - * Group By - * - * @param moduleName (required) - * @param modelName (required) - * @param instanceId (required) - * @param groupByRequestBody (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 groupByInstancesInstanceIdModulesModuleNameModelNameGroupByPost(String moduleName, String modelName, UUID instanceId, GroupByRequestBody groupByRequestBody, UUID schemaId, String authorization) throws ApiException { - ApiResponse localVarResp = groupByInstancesInstanceIdModulesModuleNameModelNameGroupByPostWithHttpInfo(moduleName, modelName, instanceId, groupByRequestBody, schemaId, authorization); - return localVarResp.getData(); - } - - /** - * Group By - * - * @param moduleName (required) - * @param modelName (required) - * @param instanceId (required) - * @param groupByRequestBody (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 groupByInstancesInstanceIdModulesModuleNameModelNameGroupByPostWithHttpInfo(String moduleName, String modelName, UUID instanceId, GroupByRequestBody groupByRequestBody, UUID schemaId, String authorization) throws ApiException { - okhttp3.Call localVarCall = groupByInstancesInstanceIdModulesModuleNameModelNameGroupByPostValidateBeforeCall(moduleName, modelName, instanceId, groupByRequestBody, schemaId, authorization, null); - Type localVarReturnType = new TypeToken(){}.getType(); - return localVarApiClient.execute(localVarCall, localVarReturnType); - } - - /** - * Group By (asynchronously) - * - * @param moduleName (required) - * @param modelName (required) - * @param instanceId (required) - * @param groupByRequestBody (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 groupByInstancesInstanceIdModulesModuleNameModelNameGroupByPostAsync(String moduleName, String modelName, UUID instanceId, GroupByRequestBody groupByRequestBody, UUID schemaId, String authorization, final ApiCallback _callback) throws ApiException { - - okhttp3.Call localVarCall = groupByInstancesInstanceIdModulesModuleNameModelNameGroupByPostValidateBeforeCall(moduleName, modelName, instanceId, groupByRequestBody, schemaId, authorization, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); - localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); - return localVarCall; - } - /** - * Build call for listCollaboratorsAccessV2InstancesInstanceIdCollaboratorsGet - * @param instanceId (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 listCollaboratorsAccessV2InstancesInstanceIdCollaboratorsGetCall(UUID instanceId, 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 = "/access_v2/instances/{instance_id}/collaborators" - .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 = { - }; - 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 listCollaboratorsAccessV2InstancesInstanceIdCollaboratorsGetValidateBeforeCall(UUID instanceId, 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 listCollaboratorsAccessV2InstancesInstanceIdCollaboratorsGet(Async)"); - } - - return listCollaboratorsAccessV2InstancesInstanceIdCollaboratorsGetCall(instanceId, authorization, _callback); - - } - - /** - * 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 Requires read access to the instance - * @param instanceId (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 listCollaboratorsAccessV2InstancesInstanceIdCollaboratorsGet(UUID instanceId, String authorization) throws ApiException { - ApiResponse localVarResp = listCollaboratorsAccessV2InstancesInstanceIdCollaboratorsGetWithHttpInfo(instanceId, authorization); - return localVarResp.getData(); - } - - /** - * 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 Requires read access to the instance - * @param instanceId (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 listCollaboratorsAccessV2InstancesInstanceIdCollaboratorsGetWithHttpInfo(UUID instanceId, String authorization) throws ApiException { - okhttp3.Call localVarCall = listCollaboratorsAccessV2InstancesInstanceIdCollaboratorsGetValidateBeforeCall(instanceId, authorization, null); - Type localVarReturnType = new TypeToken(){}.getType(); - return localVarApiClient.execute(localVarCall, localVarReturnType); - } - - /** - * 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 - * @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 listDirectoryInstancesInstanceIdEntityTypeGetAsync(String entityType, UUID instanceId, String path, UUID schemaId, String authorization, final ApiCallback _callback) throws ApiException { - - okhttp3.Call localVarCall = listDirectoryInstancesInstanceIdEntityTypeGetValidateBeforeCall(entityType, instanceId, path, schemaId, authorization, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); - localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); - return localVarCall; - } - /** - * Build call for listInstanceSpacesAccessV2SpacesInstancesInstanceIdGet - * @param instanceId (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 listInstanceSpacesAccessV2SpacesInstancesInstanceIdGetCall(UUID instanceId, 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 = "/access_v2/spaces/instances/{instance_id}" - .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 = { - }; - 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 listInstanceSpacesAccessV2SpacesInstancesInstanceIdGetValidateBeforeCall(UUID instanceId, 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 listInstanceSpacesAccessV2SpacesInstancesInstanceIdGet(Async)"); - } - - return listInstanceSpacesAccessV2SpacesInstancesInstanceIdGetCall(instanceId, authorization, _callback); - - } - - /** - * List Instance Spaces - * List all spaces attached to an instance. Parameters: - **instance_id**: UUID of the instance to list spaces for (from URL path) Returns: - **200**: List of spaces attached to the instance retrieved successfully - * @param instanceId (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 listInstanceSpacesAccessV2SpacesInstancesInstanceIdGet(UUID instanceId, String authorization) throws ApiException { - ApiResponse localVarResp = listInstanceSpacesAccessV2SpacesInstancesInstanceIdGetWithHttpInfo(instanceId, authorization); - return localVarResp.getData(); - } - - /** - * List Instance Spaces - * List all spaces attached to an instance. Parameters: - **instance_id**: UUID of the instance to list spaces for (from URL path) Returns: - **200**: List of spaces attached to the instance retrieved successfully - * @param instanceId (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 listInstanceSpacesAccessV2SpacesInstancesInstanceIdGetWithHttpInfo(UUID instanceId, String authorization) throws ApiException { - okhttp3.Call localVarCall = listInstanceSpacesAccessV2SpacesInstancesInstanceIdGetValidateBeforeCall(instanceId, authorization, null); - Type localVarReturnType = new TypeToken(){}.getType(); - return localVarApiClient.execute(localVarCall, localVarReturnType); - } - - /** - * List Instance Spaces (asynchronously) - * List all spaces attached to an instance. Parameters: - **instance_id**: UUID of the instance to list spaces for (from URL path) Returns: - **200**: List of spaces attached to the instance retrieved successfully - * @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 listInstanceSpacesAccessV2SpacesInstancesInstanceIdGetAsync(UUID instanceId, String authorization, final ApiCallback _callback) throws ApiException { - - okhttp3.Call localVarCall = listInstanceSpacesAccessV2SpacesInstancesInstanceIdGetValidateBeforeCall(instanceId, authorization, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); - localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); - return localVarCall; - } - /** - * Build call for listInstancesUsingSpaceAccessV2SpacesSpaceIdInstancesGet - * @param spaceId (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 listInstancesUsingSpaceAccessV2SpacesSpaceIdInstancesGetCall(UUID spaceId, 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 = "/access_v2/spaces/{space_id}/instances" - .replace("{" + "space_id" + "}", localVarApiClient.escapeString(spaceId.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 = { - }; - 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 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)"); - } - - return listInstancesUsingSpaceAccessV2SpacesSpaceIdInstancesGetCall(spaceId, authorization, _callback); - - } - - /** - * List Instances Using Space - * List all instances that have this space attached. Parameters: - **space_id**: ID of the space to check Returns: - **200**: List of instances using the space retrieved successfully - * @param spaceId (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 listInstancesUsingSpaceAccessV2SpacesSpaceIdInstancesGet(UUID spaceId, String authorization) throws ApiException { - ApiResponse localVarResp = listInstancesUsingSpaceAccessV2SpacesSpaceIdInstancesGetWithHttpInfo(spaceId, authorization); - return localVarResp.getData(); - } - - /** - * List Instances Using Space - * List all instances that have this space attached. Parameters: - **space_id**: ID of the space to check Returns: - **200**: List of instances using the space retrieved successfully - * @param spaceId (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 listInstancesUsingSpaceAccessV2SpacesSpaceIdInstancesGetWithHttpInfo(UUID spaceId, String authorization) throws ApiException { - okhttp3.Call localVarCall = listInstancesUsingSpaceAccessV2SpacesSpaceIdInstancesGetValidateBeforeCall(spaceId, authorization, null); - Type localVarReturnType = new TypeToken(){}.getType(); - return localVarApiClient.execute(localVarCall, localVarReturnType); - } - - /** - * List Instances Using Space (asynchronously) - * List all instances that have this space attached. Parameters: - **space_id**: ID of the space to check Returns: - **200**: List of instances using the space retrieved successfully - * @param spaceId (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 listInstancesUsingSpaceAccessV2SpacesSpaceIdInstancesGetAsync(UUID spaceId, String authorization, final ApiCallback _callback) throws ApiException { - - okhttp3.Call localVarCall = listInstancesUsingSpaceAccessV2SpacesSpaceIdInstancesGetValidateBeforeCall(spaceId, authorization, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); - localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); - return localVarCall; - } - /** - * Build call for listOrganizationMembersAccessV2OrganizationsOrganizationIdMembersGet - * @param organizationId (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 listOrganizationMembersAccessV2OrganizationsOrganizationIdMembersGetCall(UUID organizationId, 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 = "/access_v2/organizations/{organization_id}/members" - .replace("{" + "organization_id" + "}", localVarApiClient.escapeString(organizationId.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 = { - }; - 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 listOrganizationMembersAccessV2OrganizationsOrganizationIdMembersGetValidateBeforeCall(UUID organizationId, String authorization, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'organizationId' is set - if (organizationId == null) { - throw new ApiException("Missing the required parameter 'organizationId' when calling listOrganizationMembersAccessV2OrganizationsOrganizationIdMembersGet(Async)"); - } - - return listOrganizationMembersAccessV2OrganizationsOrganizationIdMembersGetCall(organizationId, authorization, _callback); - - } - - /** - * List Organization Members - * List all members of an organization. Parameters: - **organization_id**: UUID of the organization to list members for Returns: - **200**: List of organization members retrieved successfully - * @param organizationId (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 listOrganizationMembersAccessV2OrganizationsOrganizationIdMembersGet(UUID organizationId, String authorization) throws ApiException { - ApiResponse localVarResp = listOrganizationMembersAccessV2OrganizationsOrganizationIdMembersGetWithHttpInfo(organizationId, authorization); - return localVarResp.getData(); - } - - /** - * List Organization Members - * List all members of an organization. Parameters: - **organization_id**: UUID of the organization to list members for Returns: - **200**: List of organization members retrieved successfully - * @param organizationId (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 listOrganizationMembersAccessV2OrganizationsOrganizationIdMembersGetWithHttpInfo(UUID organizationId, String authorization) throws ApiException { - okhttp3.Call localVarCall = listOrganizationMembersAccessV2OrganizationsOrganizationIdMembersGetValidateBeforeCall(organizationId, authorization, null); - Type localVarReturnType = new TypeToken(){}.getType(); - return localVarApiClient.execute(localVarCall, localVarReturnType); - } - - /** - * List Organization Members (asynchronously) - * List all members of an organization. Parameters: - **organization_id**: UUID of the organization to list members for Returns: - **200**: List of organization members retrieved successfully - * @param organizationId (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 listOrganizationMembersAccessV2OrganizationsOrganizationIdMembersGetAsync(UUID organizationId, String authorization, final ApiCallback _callback) throws ApiException { - - okhttp3.Call localVarCall = listOrganizationMembersAccessV2OrganizationsOrganizationIdMembersGetValidateBeforeCall(organizationId, authorization, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); - localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); - return localVarCall; - } - /** - * Build call for listOrganizationSpacesAccessV2SpacesOrganizationsOrganizationIdGet - * @param organizationId (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 listOrganizationSpacesAccessV2SpacesOrganizationsOrganizationIdGetCall(UUID organizationId, 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 = "/access_v2/spaces/organizations/{organization_id}" - .replace("{" + "organization_id" + "}", localVarApiClient.escapeString(organizationId.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 = { - }; - 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 listOrganizationSpacesAccessV2SpacesOrganizationsOrganizationIdGetValidateBeforeCall(UUID organizationId, String authorization, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'organizationId' is set - if (organizationId == null) { - throw new ApiException("Missing the required parameter 'organizationId' when calling listOrganizationSpacesAccessV2SpacesOrganizationsOrganizationIdGet(Async)"); - } - - return listOrganizationSpacesAccessV2SpacesOrganizationsOrganizationIdGetCall(organizationId, authorization, _callback); - - } - - /** - * List Organization Spaces - * List all spaces in an organization. Parameters: - **organization_id**: UUID of the organization to list spaces for Returns: - **200**: List of spaces retrieved successfully - * @param organizationId (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 listOrganizationSpacesAccessV2SpacesOrganizationsOrganizationIdGet(UUID organizationId, String authorization) throws ApiException { - ApiResponse localVarResp = listOrganizationSpacesAccessV2SpacesOrganizationsOrganizationIdGetWithHttpInfo(organizationId, authorization); - return localVarResp.getData(); - } - - /** - * List Organization Spaces - * List all spaces in an organization. Parameters: - **organization_id**: UUID of the organization to list spaces for Returns: - **200**: List of spaces retrieved successfully - * @param organizationId (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 listOrganizationSpacesAccessV2SpacesOrganizationsOrganizationIdGetWithHttpInfo(UUID organizationId, String authorization) throws ApiException { - okhttp3.Call localVarCall = listOrganizationSpacesAccessV2SpacesOrganizationsOrganizationIdGetValidateBeforeCall(organizationId, authorization, null); - Type localVarReturnType = new TypeToken(){}.getType(); - return localVarApiClient.execute(localVarCall, localVarReturnType); - } - - /** - * List Organization Spaces (asynchronously) - * List all spaces in an organization. Parameters: - **organization_id**: UUID of the organization to list spaces for Returns: - **200**: List of spaces retrieved successfully - * @param organizationId (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 listOrganizationSpacesAccessV2SpacesOrganizationsOrganizationIdGetAsync(UUID organizationId, String authorization, final ApiCallback _callback) throws ApiException { - - okhttp3.Call localVarCall = listOrganizationSpacesAccessV2SpacesOrganizationsOrganizationIdGetValidateBeforeCall(organizationId, authorization, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); - localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); - return localVarCall; - } - /** - * Build call for listOrganizationTeamsAccessV2TeamsOrganizationsOrganizationIdGet - * @param organizationId (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 listOrganizationTeamsAccessV2TeamsOrganizationsOrganizationIdGetCall(UUID organizationId, 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 = "/access_v2/teams/organizations/{organization_id}" - .replace("{" + "organization_id" + "}", localVarApiClient.escapeString(organizationId.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 = { - }; - 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 listOrganizationTeamsAccessV2TeamsOrganizationsOrganizationIdGetValidateBeforeCall(UUID organizationId, String authorization, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'organizationId' is set - if (organizationId == null) { - throw new ApiException("Missing the required parameter 'organizationId' when calling listOrganizationTeamsAccessV2TeamsOrganizationsOrganizationIdGet(Async)"); - } - - return listOrganizationTeamsAccessV2TeamsOrganizationsOrganizationIdGetCall(organizationId, authorization, _callback); - - } - - /** - * List Organization Teams - * List all teams in an organization. Parameters: - **organization_id**: UUID of the organization to list teams for Returns: - **200**: List of teams retrieved successfully - * @param organizationId (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 listOrganizationTeamsAccessV2TeamsOrganizationsOrganizationIdGet(UUID organizationId, String authorization) throws ApiException { - ApiResponse localVarResp = listOrganizationTeamsAccessV2TeamsOrganizationsOrganizationIdGetWithHttpInfo(organizationId, authorization); - return localVarResp.getData(); - } - - /** - * List Organization Teams - * List all teams in an organization. Parameters: - **organization_id**: UUID of the organization to list teams for Returns: - **200**: List of teams retrieved successfully - * @param organizationId (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 listOrganizationTeamsAccessV2TeamsOrganizationsOrganizationIdGetWithHttpInfo(UUID organizationId, String authorization) throws ApiException { - okhttp3.Call localVarCall = listOrganizationTeamsAccessV2TeamsOrganizationsOrganizationIdGetValidateBeforeCall(organizationId, authorization, null); - Type localVarReturnType = new TypeToken(){}.getType(); - return localVarApiClient.execute(localVarCall, localVarReturnType); - } - - /** - * List Organization Teams (asynchronously) - * List all teams in an organization. Parameters: - **organization_id**: UUID of the organization to list teams for Returns: - **200**: List of teams retrieved successfully - * @param organizationId (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 listOrganizationTeamsAccessV2TeamsOrganizationsOrganizationIdGetAsync(UUID organizationId, String authorization, final ApiCallback _callback) throws ApiException { - - okhttp3.Call localVarCall = listOrganizationTeamsAccessV2TeamsOrganizationsOrganizationIdGetValidateBeforeCall(organizationId, authorization, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); - localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); - return localVarCall; - } - /** - * Build call for listSpaceCollaboratorsAccessV2SpacesSpaceIdCollaboratorsGet - * @param spaceId (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 listSpaceCollaboratorsAccessV2SpacesSpaceIdCollaboratorsGetCall(UUID spaceId, 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 = "/access_v2/spaces/{space_id}/collaborators" - .replace("{" + "space_id" + "}", localVarApiClient.escapeString(spaceId.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 = { - }; - 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 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)"); - } - - return listSpaceCollaboratorsAccessV2SpacesSpaceIdCollaboratorsGetCall(spaceId, authorization, _callback); - - } - - /** - * List Space Collaborators - * List all collaborators of a space. Parameters: - **space_id**: ID of the space to list collaborators for Returns: - **200**: List of space collaborators retrieved successfully - * @param spaceId (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 listSpaceCollaboratorsAccessV2SpacesSpaceIdCollaboratorsGet(UUID spaceId, String authorization) throws ApiException { - ApiResponse localVarResp = listSpaceCollaboratorsAccessV2SpacesSpaceIdCollaboratorsGetWithHttpInfo(spaceId, authorization); - return localVarResp.getData(); - } - - /** - * List Space Collaborators - * List all collaborators of a space. Parameters: - **space_id**: ID of the space to list collaborators for Returns: - **200**: List of space collaborators retrieved successfully - * @param spaceId (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 listSpaceCollaboratorsAccessV2SpacesSpaceIdCollaboratorsGetWithHttpInfo(UUID spaceId, String authorization) throws ApiException { - okhttp3.Call localVarCall = listSpaceCollaboratorsAccessV2SpacesSpaceIdCollaboratorsGetValidateBeforeCall(spaceId, authorization, null); - Type localVarReturnType = new TypeToken(){}.getType(); - return localVarApiClient.execute(localVarCall, localVarReturnType); - } - - /** - * List Space Collaborators (asynchronously) - * List all collaborators of a space. Parameters: - **space_id**: ID of the space to list collaborators for Returns: - **200**: List of space collaborators retrieved successfully - * @param spaceId (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 listSpaceCollaboratorsAccessV2SpacesSpaceIdCollaboratorsGetAsync(UUID spaceId, String authorization, final ApiCallback _callback) throws ApiException { - - okhttp3.Call localVarCall = listSpaceCollaboratorsAccessV2SpacesSpaceIdCollaboratorsGetValidateBeforeCall(spaceId, authorization, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); - localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); - return localVarCall; - } - /** - * Build call for listTeamMembersAccessV2TeamsTeamIdMembersGet - * @param teamId (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 listTeamMembersAccessV2TeamsTeamIdMembersGetCall(UUID teamId, 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 = "/access_v2/teams/{team_id}/members" - .replace("{" + "team_id" + "}", localVarApiClient.escapeString(teamId.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 = { - }; - 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 listTeamMembersAccessV2TeamsTeamIdMembersGetValidateBeforeCall(UUID teamId, String authorization, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'teamId' is set - if (teamId == null) { - throw new ApiException("Missing the required parameter 'teamId' when calling listTeamMembersAccessV2TeamsTeamIdMembersGet(Async)"); - } - - return listTeamMembersAccessV2TeamsTeamIdMembersGetCall(teamId, authorization, _callback); - - } - - /** - * List Team Members - * List all members of a team. Parameters: - **team_id**: UUID of the team to list members for Returns: - **200**: List of team members retrieved successfully - * @param teamId (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 listTeamMembersAccessV2TeamsTeamIdMembersGet(UUID teamId, String authorization) throws ApiException { - ApiResponse localVarResp = listTeamMembersAccessV2TeamsTeamIdMembersGetWithHttpInfo(teamId, authorization); - return localVarResp.getData(); - } - - /** - * List Team Members - * List all members of a team. Parameters: - **team_id**: UUID of the team to list members for Returns: - **200**: List of team members retrieved successfully - * @param teamId (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 listTeamMembersAccessV2TeamsTeamIdMembersGetWithHttpInfo(UUID teamId, String authorization) throws ApiException { - okhttp3.Call localVarCall = listTeamMembersAccessV2TeamsTeamIdMembersGetValidateBeforeCall(teamId, authorization, null); - Type localVarReturnType = new TypeToken(){}.getType(); - return localVarApiClient.execute(localVarCall, localVarReturnType); - } - - /** - * List Team Members (asynchronously) - * List all members of a team. Parameters: - **team_id**: UUID of the team to list members for Returns: - **200**: List of team members retrieved successfully - * @param teamId (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 listTeamMembersAccessV2TeamsTeamIdMembersGetAsync(UUID teamId, String authorization, final ApiCallback _callback) throws ApiException { - - okhttp3.Call localVarCall = listTeamMembersAccessV2TeamsTeamIdMembersGetValidateBeforeCall(teamId, authorization, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); - localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); - return localVarCall; - } - /** - * Build call for moveRecordToSpaceAccessV2SpacesSpaceIdRecordAttachmentsPut - * @param instanceDbSpaceId (required) - * @param attachSpaceToRecordRequestBody (required) - * @param instanceId (optional) - * @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 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[] { }; - - // Determine Base Path to Use - if (localCustomBaseUrl != null){ - basePath = localCustomBaseUrl; - } else if ( localBasePaths.length > 0 ) { - basePath = localBasePaths[localHostIndex]; - } else { - basePath = null; - } - - Object localVarPostBody = attachSpaceToRecordRequestBody; - - // create path and map variables - String localVarPath = "/access_v2/spaces/{space_id}/record-attachments"; - - List localVarQueryParams = new ArrayList(); - List localVarCollectionQueryParams = new ArrayList(); - Map localVarHeaderParams = new HashMap(); - 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)); - } - - 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 = { - "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, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); - } - - @SuppressWarnings("rawtypes") - 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 - if (attachSpaceToRecordRequestBody == null) { - throw new ApiException("Missing the required parameter 'attachSpaceToRecordRequestBody' when calling moveRecordToSpaceAccessV2SpacesSpaceIdRecordAttachmentsPut(Async)"); - } - - 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 instanceDbSpaceId (required) - * @param attachSpaceToRecordRequestBody (required) - * @param instanceId (optional) - * @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 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 instanceDbSpaceId (required) - * @param attachSpaceToRecordRequestBody (required) - * @param instanceId (optional) - * @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 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); - } - - /** - * 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 instanceDbSpaceId (required) - * @param attachSpaceToRecordRequestBody (required) - * @param instanceId (optional) - * @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 moveRecordToSpaceAccessV2SpacesSpaceIdRecordAttachmentsPutAsync(Integer instanceDbSpaceId, AttachSpaceToRecordRequestBody attachSpaceToRecordRequestBody, UUID instanceId, UUID schemaId, String authorization, final ApiCallback _callback) throws ApiException { - - okhttp3.Call localVarCall = moveRecordToSpaceAccessV2SpacesSpaceIdRecordAttachmentsPutValidateBeforeCall(instanceDbSpaceId, attachSpaceToRecordRequestBody, instanceId, schemaId, authorization, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); - localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); - return localVarCall; - } - /** - * Build call for proxyS3S3PathGet - * @param path (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 proxyS3S3PathGetCall(String path, 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 = "/s3/{path}" - .replace("{" + "path" + "}", localVarApiClient.escapeString(path.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 = { - }; - final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - if (localVarContentType != null) { - localVarHeaderParams.put("Content-Type", localVarContentType); - } - - String[] localVarAuthNames = new String[] { }; - return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); - } - - @SuppressWarnings("rawtypes") - private okhttp3.Call proxyS3S3PathGetValidateBeforeCall(String path, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'path' is set - if (path == null) { - throw new ApiException("Missing the required parameter 'path' when calling proxyS3S3PathGet(Async)"); - } - - return proxyS3S3PathGetCall(path, _callback); - - } - - /** - * Proxy S3 - * - * @param path (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 proxyS3S3PathGet(String path) throws ApiException { - ApiResponse localVarResp = proxyS3S3PathGetWithHttpInfo(path); - return localVarResp.getData(); - } - - /** - * Proxy S3 - * - * @param path (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 proxyS3S3PathGetWithHttpInfo(String path) throws ApiException { - okhttp3.Call localVarCall = proxyS3S3PathGetValidateBeforeCall(path, null); - Type localVarReturnType = new TypeToken(){}.getType(); - return localVarApiClient.execute(localVarCall, localVarReturnType); - } - - /** - * Proxy S3 (asynchronously) - * - * @param path (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 proxyS3S3PathGetAsync(String path, final ApiCallback _callback) throws ApiException { - - okhttp3.Call localVarCall = proxyS3S3PathGetValidateBeforeCall(path, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); - localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); - return localVarCall; - } - /** - * Build call for proxyS3S3PathGet_0 - * @param path (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 proxyS3S3PathGet_0Call(String path, 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 = "/s3/{path}" - .replace("{" + "path" + "}", localVarApiClient.escapeString(path.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 = { - }; - final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - if (localVarContentType != null) { - localVarHeaderParams.put("Content-Type", localVarContentType); - } - - String[] localVarAuthNames = new String[] { }; - return localVarApiClient.buildCall(basePath, localVarPath, "HEAD", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); - } - - @SuppressWarnings("rawtypes") - private okhttp3.Call proxyS3S3PathGet_0ValidateBeforeCall(String path, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'path' is set - if (path == null) { - throw new ApiException("Missing the required parameter 'path' when calling proxyS3S3PathGet_0(Async)"); - } - - return proxyS3S3PathGet_0Call(path, _callback); - - } - - /** - * Proxy S3 - * - * @param path (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 proxyS3S3PathGet_0(String path) throws ApiException { - ApiResponse localVarResp = proxyS3S3PathGet_0WithHttpInfo(path); - return localVarResp.getData(); - } - - /** - * Proxy S3 - * - * @param path (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 proxyS3S3PathGet_0WithHttpInfo(String path) throws ApiException { - okhttp3.Call localVarCall = proxyS3S3PathGet_0ValidateBeforeCall(path, null); - Type localVarReturnType = new TypeToken(){}.getType(); - return localVarApiClient.execute(localVarCall, localVarReturnType); - } - - /** - * Proxy S3 (asynchronously) - * - * @param path (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 proxyS3S3PathGet_0Async(String path, final ApiCallback _callback) throws ApiException { - - okhttp3.Call localVarCall = proxyS3S3PathGet_0ValidateBeforeCall(path, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); - localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); - return localVarCall; - } - /** - * Build call for proxyS3S3PathGet_1 - * @param path (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 proxyS3S3PathGet_1Call(String path, 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 = "/s3/{path}" - .replace("{" + "path" + "}", localVarApiClient.escapeString(path.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 = { - }; - final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - if (localVarContentType != null) { - localVarHeaderParams.put("Content-Type", localVarContentType); - } - - String[] localVarAuthNames = new String[] { }; - return localVarApiClient.buildCall(basePath, localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); - } - - @SuppressWarnings("rawtypes") - private okhttp3.Call proxyS3S3PathGet_1ValidateBeforeCall(String path, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'path' is set - if (path == null) { - throw new ApiException("Missing the required parameter 'path' when calling proxyS3S3PathGet_1(Async)"); - } - - return proxyS3S3PathGet_1Call(path, _callback); - - } - - /** - * Proxy S3 - * - * @param path (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 proxyS3S3PathGet_1(String path) throws ApiException { - ApiResponse localVarResp = proxyS3S3PathGet_1WithHttpInfo(path); - return localVarResp.getData(); - } - - /** - * Proxy S3 - * - * @param path (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 proxyS3S3PathGet_1WithHttpInfo(String path) throws ApiException { - okhttp3.Call localVarCall = proxyS3S3PathGet_1ValidateBeforeCall(path, null); - Type localVarReturnType = new TypeToken(){}.getType(); - return localVarApiClient.execute(localVarCall, localVarReturnType); - } - - /** - * Proxy S3 (asynchronously) - * - * @param path (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 proxyS3S3PathGet_1Async(String path, final ApiCallback _callback) throws ApiException { - - okhttp3.Call localVarCall = proxyS3S3PathGet_1ValidateBeforeCall(path, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); - localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); - return localVarCall; - } - /** - * Build call for proxyS3S3PathGet_2 - * @param path (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 proxyS3S3PathGet_2Call(String path, 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 = "/s3/{path}" - .replace("{" + "path" + "}", localVarApiClient.escapeString(path.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 = { - }; - 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 proxyS3S3PathGet_2ValidateBeforeCall(String path, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'path' is set - if (path == null) { - throw new ApiException("Missing the required parameter 'path' when calling proxyS3S3PathGet_2(Async)"); - } - - return proxyS3S3PathGet_2Call(path, _callback); - - } - - /** - * Proxy S3 - * - * @param path (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 proxyS3S3PathGet_2(String path) throws ApiException { - ApiResponse localVarResp = proxyS3S3PathGet_2WithHttpInfo(path); - return localVarResp.getData(); - } - - /** - * Proxy S3 - * - * @param path (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 proxyS3S3PathGet_2WithHttpInfo(String path) throws ApiException { - okhttp3.Call localVarCall = proxyS3S3PathGet_2ValidateBeforeCall(path, null); - Type localVarReturnType = new TypeToken(){}.getType(); - return localVarApiClient.execute(localVarCall, localVarReturnType); - } - - /** - * Proxy S3 (asynchronously) - * - * @param path (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 proxyS3S3PathGet_2Async(String path, final ApiCallback _callback) throws ApiException { - - okhttp3.Call localVarCall = proxyS3S3PathGet_2ValidateBeforeCall(path, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); - localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); - return localVarCall; - } - /** - * Build call for proxyS3S3PathGet_3 - * @param path (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 proxyS3S3PathGet_3Call(String path, 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 = "/s3/{path}" - .replace("{" + "path" + "}", localVarApiClient.escapeString(path.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 = { - }; - final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - if (localVarContentType != null) { - localVarHeaderParams.put("Content-Type", localVarContentType); - } - - String[] localVarAuthNames = new String[] { }; - return localVarApiClient.buildCall(basePath, localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); - } - - @SuppressWarnings("rawtypes") - private okhttp3.Call proxyS3S3PathGet_3ValidateBeforeCall(String path, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'path' is set - if (path == null) { - throw new ApiException("Missing the required parameter 'path' when calling proxyS3S3PathGet_3(Async)"); - } - - return proxyS3S3PathGet_3Call(path, _callback); - - } - - /** - * Proxy S3 - * - * @param path (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 proxyS3S3PathGet_3(String path) throws ApiException { - ApiResponse localVarResp = proxyS3S3PathGet_3WithHttpInfo(path); - return localVarResp.getData(); - } - - /** - * Proxy S3 - * - * @param path (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 proxyS3S3PathGet_3WithHttpInfo(String path) throws ApiException { - okhttp3.Call localVarCall = proxyS3S3PathGet_3ValidateBeforeCall(path, null); - Type localVarReturnType = new TypeToken(){}.getType(); - return localVarApiClient.execute(localVarCall, localVarReturnType); - } - - /** - * Proxy S3 (asynchronously) - * - * @param path (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 proxyS3S3PathGet_3Async(String path, final ApiCallback _callback) throws ApiException { - - okhttp3.Call localVarCall = proxyS3S3PathGet_3ValidateBeforeCall(path, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); - localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); - return localVarCall; - } - /** - * Build call for registerDbServerDbServerRegisterPost - * @param registerDbServerBody (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 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) - * @param accountId (optional) - * @param teamId (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 removeCollaboratorAccessV2InstancesInstanceIdCollaboratorsDeleteCall(UUID instanceId, UUID accountId, UUID teamId, 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 = "/access_v2/instances/{instance_id}/collaborators" - .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 (accountId != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("account_id", accountId)); - } - - if (teamId != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("team_id", teamId)); - } - - 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, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); - } - - @SuppressWarnings("rawtypes") - private okhttp3.Call removeCollaboratorAccessV2InstancesInstanceIdCollaboratorsDeleteValidateBeforeCall(UUID instanceId, UUID accountId, UUID teamId, 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 removeCollaboratorAccessV2InstancesInstanceIdCollaboratorsDelete(Async)"); - } - - return removeCollaboratorAccessV2InstancesInstanceIdCollaboratorsDeleteCall(instanceId, accountId, teamId, authorization, _callback); - - } - - /** - * 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) Requires admin access to the instance - * @param instanceId (required) - * @param accountId (optional) - * @param teamId (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 removeCollaboratorAccessV2InstancesInstanceIdCollaboratorsDelete(UUID instanceId, UUID accountId, UUID teamId, String authorization) throws ApiException { - ApiResponse localVarResp = removeCollaboratorAccessV2InstancesInstanceIdCollaboratorsDeleteWithHttpInfo(instanceId, accountId, teamId, authorization); - return localVarResp.getData(); - } - - /** - * 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) Requires admin access to the instance - * @param instanceId (required) - * @param accountId (optional) - * @param teamId (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 removeCollaboratorAccessV2InstancesInstanceIdCollaboratorsDeleteWithHttpInfo(UUID instanceId, UUID accountId, UUID teamId, String authorization) throws ApiException { - okhttp3.Call localVarCall = removeCollaboratorAccessV2InstancesInstanceIdCollaboratorsDeleteValidateBeforeCall(instanceId, accountId, teamId, authorization, null); - Type localVarReturnType = new TypeToken(){}.getType(); - return localVarApiClient.execute(localVarCall, localVarReturnType); - } - - /** - * 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) Requires admin access to the instance - * @param instanceId (required) - * @param accountId (optional) - * @param teamId (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 removeCollaboratorAccessV2InstancesInstanceIdCollaboratorsDeleteAsync(UUID instanceId, UUID accountId, UUID teamId, String authorization, final ApiCallback _callback) throws ApiException { - - okhttp3.Call localVarCall = removeCollaboratorAccessV2InstancesInstanceIdCollaboratorsDeleteValidateBeforeCall(instanceId, accountId, teamId, authorization, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); - localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); - return localVarCall; - } - /** - * Build call for removeOrganizationMemberAccessV2OrganizationsOrganizationIdMembersAccountIdDelete - * @param organizationId (required) - * @param accountId (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 removeOrganizationMemberAccessV2OrganizationsOrganizationIdMembersAccountIdDeleteCall(UUID organizationId, UUID accountId, 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 = "/access_v2/organizations/{organization_id}/members/{account_id}" - .replace("{" + "organization_id" + "}", localVarApiClient.escapeString(organizationId.toString())) - .replace("{" + "account_id" + "}", localVarApiClient.escapeString(accountId.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 = { - }; - 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, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); - } - - @SuppressWarnings("rawtypes") - private okhttp3.Call removeOrganizationMemberAccessV2OrganizationsOrganizationIdMembersAccountIdDeleteValidateBeforeCall(UUID organizationId, UUID accountId, String authorization, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'organizationId' is set - if (organizationId == null) { - throw new ApiException("Missing the required parameter 'organizationId' when calling removeOrganizationMemberAccessV2OrganizationsOrganizationIdMembersAccountIdDelete(Async)"); - } - - // verify the required parameter 'accountId' is set - if (accountId == null) { - throw new ApiException("Missing the required parameter 'accountId' when calling removeOrganizationMemberAccessV2OrganizationsOrganizationIdMembersAccountIdDelete(Async)"); - } - - return removeOrganizationMemberAccessV2OrganizationsOrganizationIdMembersAccountIdDeleteCall(organizationId, accountId, authorization, _callback); - - } - - /** - * Remove Organization Member - * Remove a member from an organization. Parameters: - **organization_id**: UUID of the organization to remove the member from - **account_id**: UUID of the account to remove from the organization Returns: - **200**: Organization member removed successfully - **404**: Member not found in organization - * @param organizationId (required) - * @param accountId (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 removeOrganizationMemberAccessV2OrganizationsOrganizationIdMembersAccountIdDelete(UUID organizationId, UUID accountId, String authorization) throws ApiException { - ApiResponse localVarResp = removeOrganizationMemberAccessV2OrganizationsOrganizationIdMembersAccountIdDeleteWithHttpInfo(organizationId, accountId, authorization); - return localVarResp.getData(); - } - - /** - * Remove Organization Member - * Remove a member from an organization. Parameters: - **organization_id**: UUID of the organization to remove the member from - **account_id**: UUID of the account to remove from the organization Returns: - **200**: Organization member removed successfully - **404**: Member not found in organization - * @param organizationId (required) - * @param accountId (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 removeOrganizationMemberAccessV2OrganizationsOrganizationIdMembersAccountIdDeleteWithHttpInfo(UUID organizationId, UUID accountId, String authorization) throws ApiException { - okhttp3.Call localVarCall = removeOrganizationMemberAccessV2OrganizationsOrganizationIdMembersAccountIdDeleteValidateBeforeCall(organizationId, accountId, authorization, null); - Type localVarReturnType = new TypeToken(){}.getType(); - return localVarApiClient.execute(localVarCall, localVarReturnType); - } - - /** - * Remove Organization Member (asynchronously) - * Remove a member from an organization. Parameters: - **organization_id**: UUID of the organization to remove the member from - **account_id**: UUID of the account to remove from the organization Returns: - **200**: Organization member removed successfully - **404**: Member not found in organization - * @param organizationId (required) - * @param accountId (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 removeOrganizationMemberAccessV2OrganizationsOrganizationIdMembersAccountIdDeleteAsync(UUID organizationId, UUID accountId, String authorization, final ApiCallback _callback) throws ApiException { - - okhttp3.Call localVarCall = removeOrganizationMemberAccessV2OrganizationsOrganizationIdMembersAccountIdDeleteValidateBeforeCall(organizationId, accountId, authorization, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); - localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); - return localVarCall; - } - /** - * Build call for removeSpaceCollaboratorAccessV2SpacesSpaceIdCollaboratorsDelete - * @param spaceId (required) - * @param accountId (optional) - * @param teamId (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 removeSpaceCollaboratorAccessV2SpacesSpaceIdCollaboratorsDeleteCall(UUID spaceId, UUID accountId, UUID teamId, 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 = "/access_v2/spaces/{space_id}/collaborators" - .replace("{" + "space_id" + "}", localVarApiClient.escapeString(spaceId.toString())); - - List localVarQueryParams = new ArrayList(); - List localVarCollectionQueryParams = new ArrayList(); - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); - - if (accountId != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("account_id", accountId)); - } - - if (teamId != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("team_id", teamId)); - } - - 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, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); - } - - @SuppressWarnings("rawtypes") - 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)"); - } - - return removeSpaceCollaboratorAccessV2SpacesSpaceIdCollaboratorsDeleteCall(spaceId, accountId, teamId, authorization, _callback); - - } - - /** - * Remove Space Collaborator - * Remove a collaborator (account or team) from a space. Parameters: - **space_id**: ID of the space to remove the collaborator from - **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 from space successfully - **400**: Invalid input (e.g., both account_id and team_id provided or neither provided) - * @param spaceId (required) - * @param accountId (optional) - * @param teamId (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 removeSpaceCollaboratorAccessV2SpacesSpaceIdCollaboratorsDelete(UUID spaceId, UUID accountId, UUID teamId, String authorization) throws ApiException { - ApiResponse localVarResp = removeSpaceCollaboratorAccessV2SpacesSpaceIdCollaboratorsDeleteWithHttpInfo(spaceId, accountId, teamId, authorization); - return localVarResp.getData(); - } - - /** - * Remove Space Collaborator - * Remove a collaborator (account or team) from a space. Parameters: - **space_id**: ID of the space to remove the collaborator from - **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 from space successfully - **400**: Invalid input (e.g., both account_id and team_id provided or neither provided) - * @param spaceId (required) - * @param accountId (optional) - * @param teamId (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 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); - } - - /** - * Remove Space Collaborator (asynchronously) - * Remove a collaborator (account or team) from a space. Parameters: - **space_id**: ID of the space to remove the collaborator from - **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 from space successfully - **400**: Invalid input (e.g., both account_id and team_id provided or neither provided) - * @param spaceId (required) - * @param accountId (optional) - * @param teamId (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 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(); - localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); - return localVarCall; - } - /** - * Build call for removeTeamMemberAccessV2TeamsTeamIdMembersAccountIdDelete - * @param teamId (required) - * @param accountId (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 removeTeamMemberAccessV2TeamsTeamIdMembersAccountIdDeleteCall(UUID teamId, UUID accountId, 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 = "/access_v2/teams/{team_id}/members/{account_id}" - .replace("{" + "team_id" + "}", localVarApiClient.escapeString(teamId.toString())) - .replace("{" + "account_id" + "}", localVarApiClient.escapeString(accountId.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 = { - }; - 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, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); - } - - @SuppressWarnings("rawtypes") - private okhttp3.Call removeTeamMemberAccessV2TeamsTeamIdMembersAccountIdDeleteValidateBeforeCall(UUID teamId, UUID accountId, String authorization, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'teamId' is set - if (teamId == null) { - throw new ApiException("Missing the required parameter 'teamId' when calling removeTeamMemberAccessV2TeamsTeamIdMembersAccountIdDelete(Async)"); - } - - // verify the required parameter 'accountId' is set - if (accountId == null) { - throw new ApiException("Missing the required parameter 'accountId' when calling removeTeamMemberAccessV2TeamsTeamIdMembersAccountIdDelete(Async)"); - } - - return removeTeamMemberAccessV2TeamsTeamIdMembersAccountIdDeleteCall(teamId, accountId, authorization, _callback); - - } - - /** - * Remove Team Member - * Remove a member from a team. Parameters: - **team_id**: UUID of the team to remove the member from - **account_id**: UUID of the account to remove from the team Returns: - **200**: Team member removed successfully - **404**: Member not found in team - * @param teamId (required) - * @param accountId (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 removeTeamMemberAccessV2TeamsTeamIdMembersAccountIdDelete(UUID teamId, UUID accountId, String authorization) throws ApiException { - ApiResponse localVarResp = removeTeamMemberAccessV2TeamsTeamIdMembersAccountIdDeleteWithHttpInfo(teamId, accountId, authorization); - return localVarResp.getData(); - } - - /** - * Remove Team Member - * Remove a member from a team. Parameters: - **team_id**: UUID of the team to remove the member from - **account_id**: UUID of the account to remove from the team Returns: - **200**: Team member removed successfully - **404**: Member not found in team - * @param teamId (required) - * @param accountId (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 removeTeamMemberAccessV2TeamsTeamIdMembersAccountIdDeleteWithHttpInfo(UUID teamId, UUID accountId, String authorization) throws ApiException { - okhttp3.Call localVarCall = removeTeamMemberAccessV2TeamsTeamIdMembersAccountIdDeleteValidateBeforeCall(teamId, accountId, authorization, null); - Type localVarReturnType = new TypeToken(){}.getType(); - return localVarApiClient.execute(localVarCall, localVarReturnType); - } - - /** - * Remove Team Member (asynchronously) - * Remove a member from a team. Parameters: - **team_id**: UUID of the team to remove the member from - **account_id**: UUID of the account to remove from the team Returns: - **200**: Team member removed successfully - **404**: Member not found in team - * @param teamId (required) - * @param accountId (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 removeTeamMemberAccessV2TeamsTeamIdMembersAccountIdDeleteAsync(UUID teamId, UUID accountId, String authorization, final ApiCallback _callback) throws ApiException { - - okhttp3.Call localVarCall = removeTeamMemberAccessV2TeamsTeamIdMembersAccountIdDeleteValidateBeforeCall(teamId, accountId, authorization, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); - localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); - return localVarCall; - } - /** - * Build call for transferOwnershipInstancesInstanceIdOwnerHandlePatch - * @param handle (required) - * @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 transferOwnershipInstancesInstanceIdOwnerHandlePatchCall(String handle, 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}/owner/{handle}" - .replace("{" + "handle" + "}", localVarApiClient.escapeString(handle.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 (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, "PATCH", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); - } - - @SuppressWarnings("rawtypes") - private okhttp3.Call transferOwnershipInstancesInstanceIdOwnerHandlePatchValidateBeforeCall(String handle, UUID instanceId, UUID schemaId, String authorization, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'handle' is set - if (handle == null) { - throw new ApiException("Missing the required parameter 'handle' when calling transferOwnershipInstancesInstanceIdOwnerHandlePatch(Async)"); - } - - // verify the required parameter 'instanceId' is set - if (instanceId == null) { - throw new ApiException("Missing the required parameter 'instanceId' when calling transferOwnershipInstancesInstanceIdOwnerHandlePatch(Async)"); - } - - return transferOwnershipInstancesInstanceIdOwnerHandlePatchCall(handle, instanceId, schemaId, authorization, _callback); - - } - - /** - * Transfer Ownership - * - * @param handle (required) - * @param instanceId (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 transferOwnershipInstancesInstanceIdOwnerHandlePatch(String handle, UUID instanceId, UUID schemaId, String authorization) throws ApiException { - ApiResponse localVarResp = transferOwnershipInstancesInstanceIdOwnerHandlePatchWithHttpInfo(handle, instanceId, schemaId, authorization); - return localVarResp.getData(); - } - - /** - * Transfer Ownership - * - * @param handle (required) - * @param instanceId (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 transferOwnershipInstancesInstanceIdOwnerHandlePatchWithHttpInfo(String handle, UUID instanceId, UUID schemaId, String authorization) throws ApiException { - okhttp3.Call localVarCall = transferOwnershipInstancesInstanceIdOwnerHandlePatchValidateBeforeCall(handle, instanceId, schemaId, authorization, null); - Type localVarReturnType = new TypeToken(){}.getType(); - return localVarApiClient.execute(localVarCall, localVarReturnType); - } - - /** - * Transfer Ownership (asynchronously) - * - * @param handle (required) - * @param instanceId (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 transferOwnershipInstancesInstanceIdOwnerHandlePatchAsync(String handle, UUID instanceId, UUID schemaId, String authorization, final ApiCallback _callback) throws ApiException { - - okhttp3.Call localVarCall = transferOwnershipInstancesInstanceIdOwnerHandlePatchValidateBeforeCall(handle, instanceId, schemaId, authorization, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); - localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); - return localVarCall; - } - /** - * Build call for updateCollaboratorAccessV2InstancesInstanceIdCollaboratorsPatch - * @param instanceId (required) - * @param updateCollaboratorRequestBody (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 updateCollaboratorAccessV2InstancesInstanceIdCollaboratorsPatchCall(UUID instanceId, UpdateCollaboratorRequestBody updateCollaboratorRequestBody, 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 = updateCollaboratorRequestBody; - - // create path and map variables - String localVarPath = "/access_v2/instances/{instance_id}/collaborators" - .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, "PATCH", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); - } - - @SuppressWarnings("rawtypes") - private okhttp3.Call updateCollaboratorAccessV2InstancesInstanceIdCollaboratorsPatchValidateBeforeCall(UUID instanceId, UpdateCollaboratorRequestBody updateCollaboratorRequestBody, 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 updateCollaboratorAccessV2InstancesInstanceIdCollaboratorsPatch(Async)"); - } - - // verify the required parameter 'updateCollaboratorRequestBody' is set - if (updateCollaboratorRequestBody == null) { - throw new ApiException("Missing the required parameter 'updateCollaboratorRequestBody' when calling updateCollaboratorAccessV2InstancesInstanceIdCollaboratorsPatch(Async)"); - } - - return updateCollaboratorAccessV2InstancesInstanceIdCollaboratorsPatchCall(instanceId, updateCollaboratorRequestBody, authorization, _callback); - - } - - /** - * 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) Requires admin access to the instance - * @param instanceId (required) - * @param updateCollaboratorRequestBody (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 updateCollaboratorAccessV2InstancesInstanceIdCollaboratorsPatch(UUID instanceId, UpdateCollaboratorRequestBody updateCollaboratorRequestBody, String authorization) throws ApiException { - ApiResponse localVarResp = updateCollaboratorAccessV2InstancesInstanceIdCollaboratorsPatchWithHttpInfo(instanceId, updateCollaboratorRequestBody, authorization); - return localVarResp.getData(); - } - - /** - * 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) Requires admin access to the instance - * @param instanceId (required) - * @param updateCollaboratorRequestBody (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 updateCollaboratorAccessV2InstancesInstanceIdCollaboratorsPatchWithHttpInfo(UUID instanceId, UpdateCollaboratorRequestBody updateCollaboratorRequestBody, String authorization) throws ApiException { - okhttp3.Call localVarCall = updateCollaboratorAccessV2InstancesInstanceIdCollaboratorsPatchValidateBeforeCall(instanceId, updateCollaboratorRequestBody, authorization, null); - Type localVarReturnType = new TypeToken(){}.getType(); - return localVarApiClient.execute(localVarCall, localVarReturnType); - } - - /** - * 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) Requires admin access to the instance - * @param instanceId (required) - * @param updateCollaboratorRequestBody (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 updateCollaboratorAccessV2InstancesInstanceIdCollaboratorsPatchAsync(UUID instanceId, UpdateCollaboratorRequestBody updateCollaboratorRequestBody, String authorization, final ApiCallback _callback) throws ApiException { - - okhttp3.Call localVarCall = updateCollaboratorAccessV2InstancesInstanceIdCollaboratorsPatchValidateBeforeCall(instanceId, updateCollaboratorRequestBody, authorization, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); - localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); - return localVarCall; - } - /** - * Build call for updateCollaboratorInstancesInstanceIdCollaboratorsAccountIdPatch - * @param instanceId (required) - * @param accountId (required) - * @param role (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 updateCollaboratorInstancesInstanceIdCollaboratorsAccountIdPatchCall(UUID instanceId, UUID accountId, String role, 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}/collaborators/{account_id}" - .replace("{" + "instance_id" + "}", localVarApiClient.escapeString(instanceId.toString())) - .replace("{" + "account_id" + "}", localVarApiClient.escapeString(accountId.toString())); - - List localVarQueryParams = new ArrayList(); - List localVarCollectionQueryParams = new ArrayList(); - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); - - if (role != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("role", role)); - } - - 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, "PATCH", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); - } - - @SuppressWarnings("rawtypes") - private okhttp3.Call updateCollaboratorInstancesInstanceIdCollaboratorsAccountIdPatchValidateBeforeCall(UUID instanceId, UUID accountId, String role, 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 updateCollaboratorInstancesInstanceIdCollaboratorsAccountIdPatch(Async)"); - } - - // verify the required parameter 'accountId' is set - if (accountId == null) { - throw new ApiException("Missing the required parameter 'accountId' when calling updateCollaboratorInstancesInstanceIdCollaboratorsAccountIdPatch(Async)"); - } - - // verify the required parameter 'role' is set - if (role == null) { - throw new ApiException("Missing the required parameter 'role' when calling updateCollaboratorInstancesInstanceIdCollaboratorsAccountIdPatch(Async)"); - } - - return updateCollaboratorInstancesInstanceIdCollaboratorsAccountIdPatchCall(instanceId, accountId, role, authorization, _callback); - - } - - /** - * Update Collaborator - * - * @param instanceId (required) - * @param accountId (required) - * @param role (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 updateCollaboratorInstancesInstanceIdCollaboratorsAccountIdPatch(UUID instanceId, UUID accountId, String role, String authorization) throws ApiException { - ApiResponse localVarResp = updateCollaboratorInstancesInstanceIdCollaboratorsAccountIdPatchWithHttpInfo(instanceId, accountId, role, authorization); - return localVarResp.getData(); - } - - /** - * Update Collaborator - * - * @param instanceId (required) - * @param accountId (required) - * @param role (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 updateCollaboratorInstancesInstanceIdCollaboratorsAccountIdPatchWithHttpInfo(UUID instanceId, UUID accountId, String role, String authorization) throws ApiException { - okhttp3.Call localVarCall = updateCollaboratorInstancesInstanceIdCollaboratorsAccountIdPatchValidateBeforeCall(instanceId, accountId, role, authorization, null); - Type localVarReturnType = new TypeToken(){}.getType(); - return localVarApiClient.execute(localVarCall, localVarReturnType); - } - - /** - * Update Collaborator (asynchronously) - * - * @param instanceId (required) - * @param accountId (required) - * @param role (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 updateCollaboratorInstancesInstanceIdCollaboratorsAccountIdPatchAsync(UUID instanceId, UUID accountId, String role, String authorization, final ApiCallback _callback) throws ApiException { - - okhttp3.Call localVarCall = updateCollaboratorInstancesInstanceIdCollaboratorsAccountIdPatchValidateBeforeCall(instanceId, accountId, role, authorization, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); - localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); - return localVarCall; - } - /** - * Build call for updateOrganizationMemberAccessV2OrganizationsOrganizationIdMembersAccountIdPatch - * @param organizationId (required) - * @param accountId (required) - * @param updateOrganizationMemberRequestBody (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 updateOrganizationMemberAccessV2OrganizationsOrganizationIdMembersAccountIdPatchCall(UUID organizationId, UUID accountId, UpdateOrganizationMemberRequestBody updateOrganizationMemberRequestBody, 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 = updateOrganizationMemberRequestBody; - - // create path and map variables - String localVarPath = "/access_v2/organizations/{organization_id}/members/{account_id}" - .replace("{" + "organization_id" + "}", localVarApiClient.escapeString(organizationId.toString())) - .replace("{" + "account_id" + "}", localVarApiClient.escapeString(accountId.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, "PATCH", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); - } - - @SuppressWarnings("rawtypes") - private okhttp3.Call updateOrganizationMemberAccessV2OrganizationsOrganizationIdMembersAccountIdPatchValidateBeforeCall(UUID organizationId, UUID accountId, UpdateOrganizationMemberRequestBody updateOrganizationMemberRequestBody, String authorization, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'organizationId' is set - if (organizationId == null) { - throw new ApiException("Missing the required parameter 'organizationId' when calling updateOrganizationMemberAccessV2OrganizationsOrganizationIdMembersAccountIdPatch(Async)"); - } - - // verify the required parameter 'accountId' is set - if (accountId == null) { - throw new ApiException("Missing the required parameter 'accountId' when calling updateOrganizationMemberAccessV2OrganizationsOrganizationIdMembersAccountIdPatch(Async)"); - } - - // verify the required parameter 'updateOrganizationMemberRequestBody' is set - if (updateOrganizationMemberRequestBody == null) { - throw new ApiException("Missing the required parameter 'updateOrganizationMemberRequestBody' when calling updateOrganizationMemberAccessV2OrganizationsOrganizationIdMembersAccountIdPatch(Async)"); - } - - return updateOrganizationMemberAccessV2OrganizationsOrganizationIdMembersAccountIdPatchCall(organizationId, accountId, updateOrganizationMemberRequestBody, authorization, _callback); - - } - - /** - * Update Organization Member - * Update an organization member's details. Parameters: - **organization_id**: UUID of the organization the member belongs to - **account_id**: UUID of the account to update - **body**: Request body containing updated member details - **role**: Role of the member in the organization Returns: - **200**: Organization member updated successfully - **404**: Member not found in organization - * @param organizationId (required) - * @param accountId (required) - * @param updateOrganizationMemberRequestBody (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 updateOrganizationMemberAccessV2OrganizationsOrganizationIdMembersAccountIdPatch(UUID organizationId, UUID accountId, UpdateOrganizationMemberRequestBody updateOrganizationMemberRequestBody, String authorization) throws ApiException { - ApiResponse localVarResp = updateOrganizationMemberAccessV2OrganizationsOrganizationIdMembersAccountIdPatchWithHttpInfo(organizationId, accountId, updateOrganizationMemberRequestBody, authorization); - return localVarResp.getData(); - } - - /** - * Update Organization Member - * Update an organization member's details. Parameters: - **organization_id**: UUID of the organization the member belongs to - **account_id**: UUID of the account to update - **body**: Request body containing updated member details - **role**: Role of the member in the organization Returns: - **200**: Organization member updated successfully - **404**: Member not found in organization - * @param organizationId (required) - * @param accountId (required) - * @param updateOrganizationMemberRequestBody (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 updateOrganizationMemberAccessV2OrganizationsOrganizationIdMembersAccountIdPatchWithHttpInfo(UUID organizationId, UUID accountId, UpdateOrganizationMemberRequestBody updateOrganizationMemberRequestBody, String authorization) throws ApiException { - okhttp3.Call localVarCall = updateOrganizationMemberAccessV2OrganizationsOrganizationIdMembersAccountIdPatchValidateBeforeCall(organizationId, accountId, updateOrganizationMemberRequestBody, authorization, null); - Type localVarReturnType = new TypeToken(){}.getType(); - return localVarApiClient.execute(localVarCall, localVarReturnType); - } - - /** - * Update Organization Member (asynchronously) - * Update an organization member's details. Parameters: - **organization_id**: UUID of the organization the member belongs to - **account_id**: UUID of the account to update - **body**: Request body containing updated member details - **role**: Role of the member in the organization Returns: - **200**: Organization member updated successfully - **404**: Member not found in organization - * @param organizationId (required) - * @param accountId (required) - * @param updateOrganizationMemberRequestBody (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 updateOrganizationMemberAccessV2OrganizationsOrganizationIdMembersAccountIdPatchAsync(UUID organizationId, UUID accountId, UpdateOrganizationMemberRequestBody updateOrganizationMemberRequestBody, String authorization, final ApiCallback _callback) throws ApiException { - - okhttp3.Call localVarCall = updateOrganizationMemberAccessV2OrganizationsOrganizationIdMembersAccountIdPatchValidateBeforeCall(organizationId, accountId, updateOrganizationMemberRequestBody, authorization, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); - localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); - return localVarCall; - } - /** - * Build call for updateRecordInstancesInstanceIdModulesModuleNameModelNameUidPatch - * @param moduleName (required) - * @param modelName (required) - * @param uid (required) - * @param instanceId (required) - * @param body (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 updateRecordInstancesInstanceIdModulesModuleNameModelNameUidPatchCall(String moduleName, String modelName, String uid, UUID instanceId, Object body, 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 = body; - - // create path and map variables - String localVarPath = "/instances/{instance_id}/modules/{module_name}/{model_name}/{uid}" - .replace("{" + "module_name" + "}", localVarApiClient.escapeString(moduleName.toString())) - .replace("{" + "model_name" + "}", localVarApiClient.escapeString(modelName.toString())) - .replace("{" + "uid" + "}", localVarApiClient.escapeString(uid.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 (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 = { - "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, "PATCH", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); - } - - @SuppressWarnings("rawtypes") - private okhttp3.Call updateRecordInstancesInstanceIdModulesModuleNameModelNameUidPatchValidateBeforeCall(String moduleName, String modelName, String uid, UUID instanceId, Object body, UUID schemaId, String authorization, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'moduleName' is set - if (moduleName == null) { - throw new ApiException("Missing the required parameter 'moduleName' when calling updateRecordInstancesInstanceIdModulesModuleNameModelNameUidPatch(Async)"); - } - - // verify the required parameter 'modelName' is set - if (modelName == null) { - throw new ApiException("Missing the required parameter 'modelName' when calling updateRecordInstancesInstanceIdModulesModuleNameModelNameUidPatch(Async)"); - } - - // verify the required parameter 'uid' is set - if (uid == null) { - throw new ApiException("Missing the required parameter 'uid' when calling updateRecordInstancesInstanceIdModulesModuleNameModelNameUidPatch(Async)"); - } - - // verify the required parameter 'instanceId' is set - if (instanceId == null) { - throw new ApiException("Missing the required parameter 'instanceId' when calling updateRecordInstancesInstanceIdModulesModuleNameModelNameUidPatch(Async)"); - } - - // verify the required parameter 'body' is set - if (body == null) { - throw new ApiException("Missing the required parameter 'body' when calling updateRecordInstancesInstanceIdModulesModuleNameModelNameUidPatch(Async)"); - } - - return updateRecordInstancesInstanceIdModulesModuleNameModelNameUidPatchCall(moduleName, modelName, uid, instanceId, body, schemaId, authorization, _callback); - - } - - /** - * Update Record - * - * @param moduleName (required) - * @param modelName (required) - * @param uid (required) - * @param instanceId (required) - * @param body (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 updateRecordInstancesInstanceIdModulesModuleNameModelNameUidPatch(String moduleName, String modelName, String uid, UUID instanceId, Object body, UUID schemaId, String authorization) throws ApiException { - ApiResponse localVarResp = updateRecordInstancesInstanceIdModulesModuleNameModelNameUidPatchWithHttpInfo(moduleName, modelName, uid, instanceId, body, schemaId, authorization); - return localVarResp.getData(); - } - - /** - * Update Record - * - * @param moduleName (required) - * @param modelName (required) - * @param uid (required) - * @param instanceId (required) - * @param body (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 updateRecordInstancesInstanceIdModulesModuleNameModelNameUidPatchWithHttpInfo(String moduleName, String modelName, String uid, UUID instanceId, Object body, UUID schemaId, String authorization) throws ApiException { - okhttp3.Call localVarCall = updateRecordInstancesInstanceIdModulesModuleNameModelNameUidPatchValidateBeforeCall(moduleName, modelName, uid, instanceId, body, schemaId, authorization, null); - Type localVarReturnType = new TypeToken(){}.getType(); - return localVarApiClient.execute(localVarCall, localVarReturnType); - } - - /** - * Update Record (asynchronously) - * - * @param moduleName (required) - * @param modelName (required) - * @param uid (required) - * @param instanceId (required) - * @param body (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 updateRecordInstancesInstanceIdModulesModuleNameModelNameUidPatchAsync(String moduleName, String modelName, String uid, UUID instanceId, Object body, UUID schemaId, String authorization, final ApiCallback _callback) throws ApiException { - - okhttp3.Call localVarCall = updateRecordInstancesInstanceIdModulesModuleNameModelNameUidPatchValidateBeforeCall(moduleName, modelName, uid, instanceId, body, schemaId, authorization, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); - localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); - return localVarCall; - } - /** - * Build call for updateSpaceAccessV2SpacesSpaceIdPatch - * @param spaceId (required) - * @param updateSpaceRequestBody (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 updateSpaceAccessV2SpacesSpaceIdPatchCall(UUID spaceId, UpdateSpaceRequestBody updateSpaceRequestBody, 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 = updateSpaceRequestBody; - - // create path and map variables - String localVarPath = "/access_v2/spaces/{space_id}" - .replace("{" + "space_id" + "}", localVarApiClient.escapeString(spaceId.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, "PATCH", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); - } - - @SuppressWarnings("rawtypes") - 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)"); - } - - // verify the required parameter 'updateSpaceRequestBody' is set - if (updateSpaceRequestBody == null) { - throw new ApiException("Missing the required parameter 'updateSpaceRequestBody' when calling updateSpaceAccessV2SpacesSpaceIdPatch(Async)"); - } - - return updateSpaceAccessV2SpacesSpaceIdPatchCall(spaceId, updateSpaceRequestBody, authorization, _callback); - - } - - /** - * Update Space - * Update a space's details. Parameters: - **space_id**: ID of the space to update - **body**: Request body containing updated space details - **name**: Optional new name for the space - **description**: Optional new description for the space Returns: - **200**: Space updated successfully - * @param spaceId (required) - * @param updateSpaceRequestBody (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 updateSpaceAccessV2SpacesSpaceIdPatch(UUID spaceId, UpdateSpaceRequestBody updateSpaceRequestBody, String authorization) throws ApiException { - ApiResponse localVarResp = updateSpaceAccessV2SpacesSpaceIdPatchWithHttpInfo(spaceId, updateSpaceRequestBody, authorization); - return localVarResp.getData(); - } - - /** - * Update Space - * Update a space's details. Parameters: - **space_id**: ID of the space to update - **body**: Request body containing updated space details - **name**: Optional new name for the space - **description**: Optional new description for the space Returns: - **200**: Space updated successfully - * @param spaceId (required) - * @param updateSpaceRequestBody (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 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); - } - - /** - * Update Space (asynchronously) - * Update a space's details. Parameters: - **space_id**: ID of the space to update - **body**: Request body containing updated space details - **name**: Optional new name for the space - **description**: Optional new description for the space Returns: - **200**: Space updated successfully - * @param spaceId (required) - * @param updateSpaceRequestBody (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 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(); - localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); - return localVarCall; - } - /** - * Build call for updateSpaceCollaboratorAccessV2SpacesSpaceIdCollaboratorsPatch - * @param spaceId (required) - * @param updateSpaceCollaboratorRequestBody (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 updateSpaceCollaboratorAccessV2SpacesSpaceIdCollaboratorsPatchCall(UUID spaceId, UpdateSpaceCollaboratorRequestBody updateSpaceCollaboratorRequestBody, 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 = updateSpaceCollaboratorRequestBody; - - // create path and map variables - String localVarPath = "/access_v2/spaces/{space_id}/collaborators" - .replace("{" + "space_id" + "}", localVarApiClient.escapeString(spaceId.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, "PATCH", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); - } - - @SuppressWarnings("rawtypes") - 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)"); - } - - // verify the required parameter 'updateSpaceCollaboratorRequestBody' is set - if (updateSpaceCollaboratorRequestBody == null) { - throw new ApiException("Missing the required parameter 'updateSpaceCollaboratorRequestBody' when calling updateSpaceCollaboratorAccessV2SpacesSpaceIdCollaboratorsPatch(Async)"); - } - - return updateSpaceCollaboratorAccessV2SpacesSpaceIdCollaboratorsPatchCall(spaceId, updateSpaceCollaboratorRequestBody, authorization, _callback); - - } - - /** - * Update Space Collaborator - * Update a collaborator's permissions in a space. Parameters: - **space_id**: ID of the space to update the collaborator in - **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 in space - * @param spaceId (required) - * @param updateSpaceCollaboratorRequestBody (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 updateSpaceCollaboratorAccessV2SpacesSpaceIdCollaboratorsPatch(UUID spaceId, UpdateSpaceCollaboratorRequestBody updateSpaceCollaboratorRequestBody, String authorization) throws ApiException { - ApiResponse localVarResp = updateSpaceCollaboratorAccessV2SpacesSpaceIdCollaboratorsPatchWithHttpInfo(spaceId, updateSpaceCollaboratorRequestBody, authorization); - return localVarResp.getData(); - } - - /** - * Update Space Collaborator - * Update a collaborator's permissions in a space. Parameters: - **space_id**: ID of the space to update the collaborator in - **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 in space - * @param spaceId (required) - * @param updateSpaceCollaboratorRequestBody (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 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); - } - - /** - * Update Space Collaborator (asynchronously) - * Update a collaborator's permissions in a space. Parameters: - **space_id**: ID of the space to update the collaborator in - **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 in space - * @param spaceId (required) - * @param updateSpaceCollaboratorRequestBody (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 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(); - localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); - return localVarCall; - } - /** - * Build call for updateTeamAccessV2TeamsTeamIdPatch - * @param teamId (required) - * @param updateTeamRequestBody (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 updateTeamAccessV2TeamsTeamIdPatchCall(UUID teamId, UpdateTeamRequestBody updateTeamRequestBody, 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 = updateTeamRequestBody; - - // create path and map variables - String localVarPath = "/access_v2/teams/{team_id}" - .replace("{" + "team_id" + "}", localVarApiClient.escapeString(teamId.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, "PATCH", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); - } - - @SuppressWarnings("rawtypes") - private okhttp3.Call updateTeamAccessV2TeamsTeamIdPatchValidateBeforeCall(UUID teamId, UpdateTeamRequestBody updateTeamRequestBody, String authorization, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'teamId' is set - if (teamId == null) { - throw new ApiException("Missing the required parameter 'teamId' when calling updateTeamAccessV2TeamsTeamIdPatch(Async)"); - } - - // verify the required parameter 'updateTeamRequestBody' is set - if (updateTeamRequestBody == null) { - throw new ApiException("Missing the required parameter 'updateTeamRequestBody' when calling updateTeamAccessV2TeamsTeamIdPatch(Async)"); - } - - return updateTeamAccessV2TeamsTeamIdPatchCall(teamId, updateTeamRequestBody, authorization, _callback); - - } - - /** - * Update Team - * Update a team's details. Parameters: - **team_id**: UUID of the team to update - **body**: Request body containing updated team details - **name**: Optional new name for the team - **description**: Optional new description for the team Returns: - **200**: Team updated successfully - * @param teamId (required) - * @param updateTeamRequestBody (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 updateTeamAccessV2TeamsTeamIdPatch(UUID teamId, UpdateTeamRequestBody updateTeamRequestBody, String authorization) throws ApiException { - ApiResponse localVarResp = updateTeamAccessV2TeamsTeamIdPatchWithHttpInfo(teamId, updateTeamRequestBody, authorization); - return localVarResp.getData(); - } - - /** - * Update Team - * Update a team's details. Parameters: - **team_id**: UUID of the team to update - **body**: Request body containing updated team details - **name**: Optional new name for the team - **description**: Optional new description for the team Returns: - **200**: Team updated successfully - * @param teamId (required) - * @param updateTeamRequestBody (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 updateTeamAccessV2TeamsTeamIdPatchWithHttpInfo(UUID teamId, UpdateTeamRequestBody updateTeamRequestBody, String authorization) throws ApiException { - okhttp3.Call localVarCall = updateTeamAccessV2TeamsTeamIdPatchValidateBeforeCall(teamId, updateTeamRequestBody, authorization, null); - Type localVarReturnType = new TypeToken(){}.getType(); - return localVarApiClient.execute(localVarCall, localVarReturnType); - } - - /** - * Update Team (asynchronously) - * Update a team's details. Parameters: - **team_id**: UUID of the team to update - **body**: Request body containing updated team details - **name**: Optional new name for the team - **description**: Optional new description for the team Returns: - **200**: Team updated successfully - * @param teamId (required) - * @param updateTeamRequestBody (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 updateTeamAccessV2TeamsTeamIdPatchAsync(UUID teamId, UpdateTeamRequestBody updateTeamRequestBody, String authorization, final ApiCallback _callback) throws ApiException { - - okhttp3.Call localVarCall = updateTeamAccessV2TeamsTeamIdPatchValidateBeforeCall(teamId, updateTeamRequestBody, authorization, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); - localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); - return localVarCall; - } - /** - * Build call for updateTeamMemberAccessV2TeamsTeamIdMembersAccountIdPatch - * @param teamId (required) - * @param accountId (required) - * @param updateTeamMemberRequestBody (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 updateTeamMemberAccessV2TeamsTeamIdMembersAccountIdPatchCall(UUID teamId, UUID accountId, UpdateTeamMemberRequestBody updateTeamMemberRequestBody, 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 = updateTeamMemberRequestBody; - - // create path and map variables - String localVarPath = "/access_v2/teams/{team_id}/members/{account_id}" - .replace("{" + "team_id" + "}", localVarApiClient.escapeString(teamId.toString())) - .replace("{" + "account_id" + "}", localVarApiClient.escapeString(accountId.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, "PATCH", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); - } - - @SuppressWarnings("rawtypes") - private okhttp3.Call updateTeamMemberAccessV2TeamsTeamIdMembersAccountIdPatchValidateBeforeCall(UUID teamId, UUID accountId, UpdateTeamMemberRequestBody updateTeamMemberRequestBody, String authorization, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'teamId' is set - if (teamId == null) { - throw new ApiException("Missing the required parameter 'teamId' when calling updateTeamMemberAccessV2TeamsTeamIdMembersAccountIdPatch(Async)"); - } - - // verify the required parameter 'accountId' is set - if (accountId == null) { - throw new ApiException("Missing the required parameter 'accountId' when calling updateTeamMemberAccessV2TeamsTeamIdMembersAccountIdPatch(Async)"); - } - - // verify the required parameter 'updateTeamMemberRequestBody' is set - if (updateTeamMemberRequestBody == null) { - throw new ApiException("Missing the required parameter 'updateTeamMemberRequestBody' when calling updateTeamMemberAccessV2TeamsTeamIdMembersAccountIdPatch(Async)"); - } - - return updateTeamMemberAccessV2TeamsTeamIdMembersAccountIdPatchCall(teamId, accountId, updateTeamMemberRequestBody, authorization, _callback); - - } - - /** - * Update Team Member - * Update a team member's details. Parameters: - **team_id**: UUID of the team the member belongs to - **account_id**: UUID of the account to update - **body**: Request body containing updated member details - **role**: Role of the member in the team Returns: - **200**: Team member updated successfully - **404**: Member not found in team - * @param teamId (required) - * @param accountId (required) - * @param updateTeamMemberRequestBody (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 updateTeamMemberAccessV2TeamsTeamIdMembersAccountIdPatch(UUID teamId, UUID accountId, UpdateTeamMemberRequestBody updateTeamMemberRequestBody, String authorization) throws ApiException { - ApiResponse localVarResp = updateTeamMemberAccessV2TeamsTeamIdMembersAccountIdPatchWithHttpInfo(teamId, accountId, updateTeamMemberRequestBody, authorization); - return localVarResp.getData(); - } - - /** - * Update Team Member - * Update a team member's details. Parameters: - **team_id**: UUID of the team the member belongs to - **account_id**: UUID of the account to update - **body**: Request body containing updated member details - **role**: Role of the member in the team Returns: - **200**: Team member updated successfully - **404**: Member not found in team - * @param teamId (required) - * @param accountId (required) - * @param updateTeamMemberRequestBody (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 updateTeamMemberAccessV2TeamsTeamIdMembersAccountIdPatchWithHttpInfo(UUID teamId, UUID accountId, UpdateTeamMemberRequestBody updateTeamMemberRequestBody, String authorization) throws ApiException { - okhttp3.Call localVarCall = updateTeamMemberAccessV2TeamsTeamIdMembersAccountIdPatchValidateBeforeCall(teamId, accountId, updateTeamMemberRequestBody, authorization, null); - Type localVarReturnType = new TypeToken(){}.getType(); - return localVarApiClient.execute(localVarCall, localVarReturnType); - } - - /** - * Update Team Member (asynchronously) - * Update a team member's details. Parameters: - **team_id**: UUID of the team the member belongs to - **account_id**: UUID of the account to update - **body**: Request body containing updated member details - **role**: Role of the member in the team Returns: - **200**: Team member updated successfully - **404**: Member not found in team - * @param teamId (required) - * @param accountId (required) - * @param updateTeamMemberRequestBody (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 updateTeamMemberAccessV2TeamsTeamIdMembersAccountIdPatchAsync(UUID teamId, UUID accountId, UpdateTeamMemberRequestBody updateTeamMemberRequestBody, String authorization, final ApiCallback _callback) throws ApiException { - - okhttp3.Call localVarCall = updateTeamMemberAccessV2TeamsTeamIdMembersAccountIdPatchValidateBeforeCall(teamId, accountId, updateTeamMemberRequestBody, authorization, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); - localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); - return localVarCall; - } - /** - * Build call for uploadArtifactInstancesInstanceIdArtifactsUploadPost - * @param instanceId (required) - * @param _file (required) - * @param authorization (optional) - * @param kwargs (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 uploadArtifactInstancesInstanceIdArtifactsUploadPostCall(UUID instanceId, File _file, String authorization, String kwargs, 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}/artifacts/upload" - .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 (_file != null) { - localVarFormParams.put("file", _file); - } - - if (kwargs != null) { - localVarFormParams.put("kwargs", kwargs); - } - - final String[] localVarAccepts = { - "application/json" - }; - final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) { - localVarHeaderParams.put("Accept", localVarAccept); - } - - final String[] localVarContentTypes = { - "multipart/form-data" - }; - 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 uploadArtifactInstancesInstanceIdArtifactsUploadPostValidateBeforeCall(UUID instanceId, File _file, String authorization, String kwargs, 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 uploadArtifactInstancesInstanceIdArtifactsUploadPost(Async)"); - } - - // verify the required parameter '_file' is set - if (_file == null) { - throw new ApiException("Missing the required parameter '_file' when calling uploadArtifactInstancesInstanceIdArtifactsUploadPost(Async)"); - } - - return uploadArtifactInstancesInstanceIdArtifactsUploadPostCall(instanceId, _file, authorization, kwargs, _callback); - - } - - /** - * Upload Artifact - * - * @param instanceId (required) - * @param _file (required) - * @param authorization (optional) - * @param kwargs (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 uploadArtifactInstancesInstanceIdArtifactsUploadPost(UUID instanceId, File _file, String authorization, String kwargs) throws ApiException { - ApiResponse localVarResp = uploadArtifactInstancesInstanceIdArtifactsUploadPostWithHttpInfo(instanceId, _file, authorization, kwargs); - return localVarResp.getData(); - } - - /** - * Upload Artifact - * - * @param instanceId (required) - * @param _file (required) - * @param authorization (optional) - * @param kwargs (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 uploadArtifactInstancesInstanceIdArtifactsUploadPostWithHttpInfo(UUID instanceId, File _file, String authorization, String kwargs) throws ApiException { - okhttp3.Call localVarCall = uploadArtifactInstancesInstanceIdArtifactsUploadPostValidateBeforeCall(instanceId, _file, authorization, kwargs, null); - Type localVarReturnType = new TypeToken(){}.getType(); - return localVarApiClient.execute(localVarCall, localVarReturnType); - } - - /** - * Upload Artifact (asynchronously) - * - * @param instanceId (required) - * @param _file (required) - * @param authorization (optional) - * @param kwargs (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 uploadArtifactInstancesInstanceIdArtifactsUploadPostAsync(UUID instanceId, File _file, String authorization, String kwargs, final ApiCallback _callback) throws ApiException { - - okhttp3.Call localVarCall = uploadArtifactInstancesInstanceIdArtifactsUploadPostValidateBeforeCall(instanceId, _file, authorization, kwargs, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); - localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); - return localVarCall; - } - /** - * Build call for upsertRecordsInstancesInstanceIdModulesModuleNameModelNameUpsertPut - * @param moduleName (required) - * @param modelName (required) - * @param instanceId (required) - * @param body (required) - * @param conflictColumns (optional) - * @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 upsertRecordsInstancesInstanceIdModulesModuleNameModelNameUpsertPutCall(String moduleName, String modelName, UUID instanceId, Object body, List conflictColumns, 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 = body; - - // create path and map variables - String localVarPath = "/instances/{instance_id}/modules/{module_name}/{model_name}/upsert" - .replace("{" + "module_name" + "}", localVarApiClient.escapeString(moduleName.toString())) - .replace("{" + "model_name" + "}", localVarApiClient.escapeString(modelName.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 (conflictColumns != null) { - localVarCollectionQueryParams.addAll(localVarApiClient.parameterToPairs("multi", "conflict_columns", conflictColumns)); - } - - 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 = { - "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, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); - } - - @SuppressWarnings("rawtypes") - private okhttp3.Call upsertRecordsInstancesInstanceIdModulesModuleNameModelNameUpsertPutValidateBeforeCall(String moduleName, String modelName, UUID instanceId, Object body, List conflictColumns, UUID schemaId, String authorization, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'moduleName' is set - if (moduleName == null) { - throw new ApiException("Missing the required parameter 'moduleName' when calling upsertRecordsInstancesInstanceIdModulesModuleNameModelNameUpsertPut(Async)"); - } - - // verify the required parameter 'modelName' is set - if (modelName == null) { - throw new ApiException("Missing the required parameter 'modelName' when calling upsertRecordsInstancesInstanceIdModulesModuleNameModelNameUpsertPut(Async)"); - } - - // verify the required parameter 'instanceId' is set - if (instanceId == null) { - throw new ApiException("Missing the required parameter 'instanceId' when calling upsertRecordsInstancesInstanceIdModulesModuleNameModelNameUpsertPut(Async)"); - } - - // verify the required parameter 'body' is set - if (body == null) { - throw new ApiException("Missing the required parameter 'body' when calling upsertRecordsInstancesInstanceIdModulesModuleNameModelNameUpsertPut(Async)"); - } - - return upsertRecordsInstancesInstanceIdModulesModuleNameModelNameUpsertPutCall(moduleName, modelName, instanceId, body, conflictColumns, schemaId, authorization, _callback); - - } - - /** - * Upsert Records - * - * @param moduleName (required) - * @param modelName (required) - * @param instanceId (required) - * @param body (required) - * @param conflictColumns (optional) - * @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 upsertRecordsInstancesInstanceIdModulesModuleNameModelNameUpsertPut(String moduleName, String modelName, UUID instanceId, Object body, List conflictColumns, UUID schemaId, String authorization) throws ApiException { - ApiResponse localVarResp = upsertRecordsInstancesInstanceIdModulesModuleNameModelNameUpsertPutWithHttpInfo(moduleName, modelName, instanceId, body, conflictColumns, schemaId, authorization); - return localVarResp.getData(); - } - - /** - * Upsert Records - * - * @param moduleName (required) - * @param modelName (required) - * @param instanceId (required) - * @param body (required) - * @param conflictColumns (optional) - * @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 upsertRecordsInstancesInstanceIdModulesModuleNameModelNameUpsertPutWithHttpInfo(String moduleName, String modelName, UUID instanceId, Object body, List conflictColumns, UUID schemaId, String authorization) throws ApiException { - okhttp3.Call localVarCall = upsertRecordsInstancesInstanceIdModulesModuleNameModelNameUpsertPutValidateBeforeCall(moduleName, modelName, instanceId, body, conflictColumns, schemaId, authorization, null); - Type localVarReturnType = new TypeToken(){}.getType(); - return localVarApiClient.execute(localVarCall, localVarReturnType); - } - - /** - * Upsert Records (asynchronously) - * - * @param moduleName (required) - * @param modelName (required) - * @param instanceId (required) - * @param body (required) - * @param conflictColumns (optional) - * @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 upsertRecordsInstancesInstanceIdModulesModuleNameModelNameUpsertPutAsync(String moduleName, String modelName, UUID instanceId, Object body, List conflictColumns, UUID schemaId, String authorization, final ApiCallback _callback) throws ApiException { - - okhttp3.Call localVarCall = upsertRecordsInstancesInstanceIdModulesModuleNameModelNameUpsertPutValidateBeforeCall(moduleName, modelName, instanceId, body, conflictColumns, schemaId, authorization, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); - localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); - return localVarCall; - } -} diff --git a/src/main/java/ai/lamin/lamin_api_client/api/HealthChecksApi.java b/src/main/java/ai/lamin/lamin_api_client/api/HealthChecksApi.java new file mode 100644 index 0000000..41764af --- /dev/null +++ b/src/main/java/ai/lamin/lamin_api_client/api/HealthChecksApi.java @@ -0,0 +1,191 @@ +/* + * 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.api; + +import ai.lamin.lamin_api_client.ApiCallback; +import ai.lamin.lamin_api_client.ApiClient; +import ai.lamin.lamin_api_client.ApiException; +import ai.lamin.lamin_api_client.ApiResponse; +import ai.lamin.lamin_api_client.Configuration; +import ai.lamin.lamin_api_client.Pair; +import ai.lamin.lamin_api_client.ProgressRequestBody; +import ai.lamin.lamin_api_client.ProgressResponseBody; + +import com.google.gson.reflect.TypeToken; + +import java.io.IOException; + + + +import java.lang.reflect.Type; +import java.util.ArrayList; +import java.util.HashMap; +import java.util.List; +import java.util.Map; + +public class HealthChecksApi { + private ApiClient localVarApiClient; + private int localHostIndex; + private String localCustomBaseUrl; + + public HealthChecksApi() { + this(Configuration.getDefaultApiClient()); + } + + public HealthChecksApi(ApiClient apiClient) { + this.localVarApiClient = apiClient; + } + + public ApiClient getApiClient() { + return localVarApiClient; + } + + public void setApiClient(ApiClient apiClient) { + this.localVarApiClient = apiClient; + } + + public int getHostIndex() { + return localHostIndex; + } + + public void setHostIndex(int hostIndex) { + this.localHostIndex = hostIndex; + } + + public String getCustomBaseUrl() { + return localCustomBaseUrl; + } + + public void setCustomBaseUrl(String customBaseUrl) { + this.localCustomBaseUrl = customBaseUrl; + } + + /** + * Build call for healthCheckHealthGet + * @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 -
+ */ + public okhttp3.Call healthCheckHealthGetCall(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 = "/health"; + + 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 = { + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] { }; + return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call healthCheckHealthGetValidateBeforeCall(final ApiCallback _callback) throws ApiException { + return healthCheckHealthGetCall(_callback); + + } + + /** + * Health Check + * + * @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 healthCheckHealthGet() throws ApiException { + ApiResponse localVarResp = healthCheckHealthGetWithHttpInfo(); + return localVarResp.getData(); + } + + /** + * Health Check + * + * @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 healthCheckHealthGetWithHttpInfo() throws ApiException { + okhttp3.Call localVarCall = healthCheckHealthGetValidateBeforeCall(null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * Health Check (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 healthCheckHealthGetAsync(final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = healthCheckHealthGetValidateBeforeCall(_callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } +} diff --git a/src/main/java/ai/lamin/lamin_api_client/api/InstanceArtifactsApi.java b/src/main/java/ai/lamin/lamin_api_client/api/InstanceArtifactsApi.java new file mode 100644 index 0000000..372a0b3 --- /dev/null +++ b/src/main/java/ai/lamin/lamin_api_client/api/InstanceArtifactsApi.java @@ -0,0 +1,390 @@ +/* + * 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.api; + +import ai.lamin.lamin_api_client.ApiCallback; +import ai.lamin.lamin_api_client.ApiClient; +import ai.lamin.lamin_api_client.ApiException; +import ai.lamin.lamin_api_client.ApiResponse; +import ai.lamin.lamin_api_client.Configuration; +import ai.lamin.lamin_api_client.Pair; +import ai.lamin.lamin_api_client.ProgressRequestBody; +import ai.lamin.lamin_api_client.ProgressResponseBody; + +import com.google.gson.reflect.TypeToken; + +import java.io.IOException; + + +import ai.lamin.lamin_api_client.model.CreateArtifactRequestBody; +import java.io.File; +import ai.lamin.lamin_api_client.model.HTTPValidationError; +import java.util.UUID; + +import java.lang.reflect.Type; +import java.util.ArrayList; +import java.util.HashMap; +import java.util.List; +import java.util.Map; + +public class InstanceArtifactsApi { + private ApiClient localVarApiClient; + private int localHostIndex; + private String localCustomBaseUrl; + + public InstanceArtifactsApi() { + this(Configuration.getDefaultApiClient()); + } + + public InstanceArtifactsApi(ApiClient apiClient) { + this.localVarApiClient = apiClient; + } + + public ApiClient getApiClient() { + return localVarApiClient; + } + + public void setApiClient(ApiClient apiClient) { + this.localVarApiClient = apiClient; + } + + public int getHostIndex() { + return localHostIndex; + } + + public void setHostIndex(int hostIndex) { + this.localHostIndex = hostIndex; + } + + public String getCustomBaseUrl() { + return localCustomBaseUrl; + } + + public void setCustomBaseUrl(String customBaseUrl) { + this.localCustomBaseUrl = customBaseUrl; + } + + /** + * Build call for createArtifactInstancesInstanceIdArtifactsCreatePost + * @param instanceId (required) + * @param createArtifactRequestBody (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 createArtifactInstancesInstanceIdArtifactsCreatePostCall(UUID instanceId, CreateArtifactRequestBody createArtifactRequestBody, 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 = createArtifactRequestBody; + + // create path and map variables + String localVarPath = "/instances/{instance_id}/artifacts/create" + .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 createArtifactInstancesInstanceIdArtifactsCreatePostValidateBeforeCall(UUID instanceId, CreateArtifactRequestBody createArtifactRequestBody, 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 createArtifactInstancesInstanceIdArtifactsCreatePost(Async)"); + } + + // verify the required parameter 'createArtifactRequestBody' is set + if (createArtifactRequestBody == null) { + throw new ApiException("Missing the required parameter 'createArtifactRequestBody' when calling createArtifactInstancesInstanceIdArtifactsCreatePost(Async)"); + } + + return createArtifactInstancesInstanceIdArtifactsCreatePostCall(instanceId, createArtifactRequestBody, authorization, _callback); + + } + + /** + * Create Artifact + * + * @param instanceId (required) + * @param createArtifactRequestBody (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 createArtifactInstancesInstanceIdArtifactsCreatePost(UUID instanceId, CreateArtifactRequestBody createArtifactRequestBody, String authorization) throws ApiException { + ApiResponse localVarResp = createArtifactInstancesInstanceIdArtifactsCreatePostWithHttpInfo(instanceId, createArtifactRequestBody, authorization); + return localVarResp.getData(); + } + + /** + * Create Artifact + * + * @param instanceId (required) + * @param createArtifactRequestBody (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 createArtifactInstancesInstanceIdArtifactsCreatePostWithHttpInfo(UUID instanceId, CreateArtifactRequestBody createArtifactRequestBody, String authorization) throws ApiException { + okhttp3.Call localVarCall = createArtifactInstancesInstanceIdArtifactsCreatePostValidateBeforeCall(instanceId, createArtifactRequestBody, authorization, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * Create Artifact (asynchronously) + * + * @param instanceId (required) + * @param createArtifactRequestBody (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 createArtifactInstancesInstanceIdArtifactsCreatePostAsync(UUID instanceId, CreateArtifactRequestBody createArtifactRequestBody, String authorization, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = createArtifactInstancesInstanceIdArtifactsCreatePostValidateBeforeCall(instanceId, createArtifactRequestBody, authorization, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + /** + * Build call for uploadArtifactInstancesInstanceIdArtifactsUploadPost + * @param instanceId (required) + * @param _file (required) + * @param authorization (optional) + * @param kwargs (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 uploadArtifactInstancesInstanceIdArtifactsUploadPostCall(UUID instanceId, File _file, String authorization, String kwargs, 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}/artifacts/upload" + .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 (_file != null) { + localVarFormParams.put("file", _file); + } + + if (kwargs != null) { + localVarFormParams.put("kwargs", kwargs); + } + + final String[] localVarAccepts = { + "application/json" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + "multipart/form-data" + }; + 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 uploadArtifactInstancesInstanceIdArtifactsUploadPostValidateBeforeCall(UUID instanceId, File _file, String authorization, String kwargs, 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 uploadArtifactInstancesInstanceIdArtifactsUploadPost(Async)"); + } + + // verify the required parameter '_file' is set + if (_file == null) { + throw new ApiException("Missing the required parameter '_file' when calling uploadArtifactInstancesInstanceIdArtifactsUploadPost(Async)"); + } + + return uploadArtifactInstancesInstanceIdArtifactsUploadPostCall(instanceId, _file, authorization, kwargs, _callback); + + } + + /** + * Upload Artifact + * + * @param instanceId (required) + * @param _file (required) + * @param authorization (optional) + * @param kwargs (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 uploadArtifactInstancesInstanceIdArtifactsUploadPost(UUID instanceId, File _file, String authorization, String kwargs) throws ApiException { + ApiResponse localVarResp = uploadArtifactInstancesInstanceIdArtifactsUploadPostWithHttpInfo(instanceId, _file, authorization, kwargs); + return localVarResp.getData(); + } + + /** + * Upload Artifact + * + * @param instanceId (required) + * @param _file (required) + * @param authorization (optional) + * @param kwargs (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 uploadArtifactInstancesInstanceIdArtifactsUploadPostWithHttpInfo(UUID instanceId, File _file, String authorization, String kwargs) throws ApiException { + okhttp3.Call localVarCall = uploadArtifactInstancesInstanceIdArtifactsUploadPostValidateBeforeCall(instanceId, _file, authorization, kwargs, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * Upload Artifact (asynchronously) + * + * @param instanceId (required) + * @param _file (required) + * @param authorization (optional) + * @param kwargs (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 uploadArtifactInstancesInstanceIdArtifactsUploadPostAsync(UUID instanceId, File _file, String authorization, String kwargs, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = uploadArtifactInstancesInstanceIdArtifactsUploadPostValidateBeforeCall(instanceId, _file, authorization, kwargs, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } +} diff --git a/src/main/java/ai/lamin/lamin_api_client/api/InstanceDbTokenApi.java b/src/main/java/ai/lamin/lamin_api_client/api/InstanceDbTokenApi.java new file mode 100644 index 0000000..100d6f8 --- /dev/null +++ b/src/main/java/ai/lamin/lamin_api_client/api/InstanceDbTokenApi.java @@ -0,0 +1,216 @@ +/* + * 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.api; + +import ai.lamin.lamin_api_client.ApiCallback; +import ai.lamin.lamin_api_client.ApiClient; +import ai.lamin.lamin_api_client.ApiException; +import ai.lamin.lamin_api_client.ApiResponse; +import ai.lamin.lamin_api_client.Configuration; +import ai.lamin.lamin_api_client.Pair; +import ai.lamin.lamin_api_client.ProgressRequestBody; +import ai.lamin.lamin_api_client.ProgressResponseBody; + +import com.google.gson.reflect.TypeToken; + +import java.io.IOException; + + +import ai.lamin.lamin_api_client.model.HTTPValidationError; +import java.util.UUID; + +import java.lang.reflect.Type; +import java.util.ArrayList; +import java.util.HashMap; +import java.util.List; +import java.util.Map; + +public class InstanceDbTokenApi { + private ApiClient localVarApiClient; + private int localHostIndex; + private String localCustomBaseUrl; + + public InstanceDbTokenApi() { + this(Configuration.getDefaultApiClient()); + } + + public InstanceDbTokenApi(ApiClient apiClient) { + this.localVarApiClient = apiClient; + } + + public ApiClient getApiClient() { + return localVarApiClient; + } + + public void setApiClient(ApiClient apiClient) { + this.localVarApiClient = apiClient; + } + + public int getHostIndex() { + return localHostIndex; + } + + public void setHostIndex(int hostIndex) { + this.localHostIndex = hostIndex; + } + + public String getCustomBaseUrl() { + return localCustomBaseUrl; + } + + public void setCustomBaseUrl(String customBaseUrl) { + this.localCustomBaseUrl = customBaseUrl; + } + + /** + * Build call for getDbTokenInstancesInstanceIdDbTokenGet + * @param instanceId (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 getDbTokenInstancesInstanceIdDbTokenGetCall(UUID instanceId, 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}/db_token" + .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 = { + }; + 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 getDbTokenInstancesInstanceIdDbTokenGetValidateBeforeCall(UUID instanceId, 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 getDbTokenInstancesInstanceIdDbTokenGet(Async)"); + } + + return getDbTokenInstancesInstanceIdDbTokenGetCall(instanceId, authorization, _callback); + + } + + /** + * Get Db Token + * Get a database token for the specified instance. This token can be used to authenticate with the instance's database. Parameters: - **instance_id**: UUID of the instance to get the token for (from URL path) Returns: - **200**: Database token retrieved successfully - **token**: The database token - **401**: Unauthorized + * @param instanceId (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 getDbTokenInstancesInstanceIdDbTokenGet(UUID instanceId, String authorization) throws ApiException { + ApiResponse localVarResp = getDbTokenInstancesInstanceIdDbTokenGetWithHttpInfo(instanceId, authorization); + return localVarResp.getData(); + } + + /** + * Get Db Token + * Get a database token for the specified instance. This token can be used to authenticate with the instance's database. Parameters: - **instance_id**: UUID of the instance to get the token for (from URL path) Returns: - **200**: Database token retrieved successfully - **token**: The database token - **401**: Unauthorized + * @param instanceId (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 getDbTokenInstancesInstanceIdDbTokenGetWithHttpInfo(UUID instanceId, String authorization) throws ApiException { + okhttp3.Call localVarCall = getDbTokenInstancesInstanceIdDbTokenGetValidateBeforeCall(instanceId, authorization, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * Get Db Token (asynchronously) + * Get a database token for the specified instance. This token can be used to authenticate with the instance's database. Parameters: - **instance_id**: UUID of the instance to get the token for (from URL path) Returns: - **200**: Database token retrieved successfully - **token**: The database token - **401**: Unauthorized + * @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 getDbTokenInstancesInstanceIdDbTokenGetAsync(UUID instanceId, String authorization, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = getDbTokenInstancesInstanceIdDbTokenGetValidateBeforeCall(instanceId, authorization, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } +} diff --git a/src/main/java/ai/lamin/lamin_api_client/api/InstanceFeaturesApi.java b/src/main/java/ai/lamin/lamin_api_client/api/InstanceFeaturesApi.java new file mode 100644 index 0000000..d7956ba --- /dev/null +++ b/src/main/java/ai/lamin/lamin_api_client/api/InstanceFeaturesApi.java @@ -0,0 +1,258 @@ +/* + * 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.api; + +import ai.lamin.lamin_api_client.ApiCallback; +import ai.lamin.lamin_api_client.ApiClient; +import ai.lamin.lamin_api_client.ApiException; +import ai.lamin.lamin_api_client.ApiResponse; +import ai.lamin.lamin_api_client.Configuration; +import ai.lamin.lamin_api_client.Pair; +import ai.lamin.lamin_api_client.ProgressRequestBody; +import ai.lamin.lamin_api_client.ProgressResponseBody; + +import com.google.gson.reflect.TypeToken; + +import java.io.IOException; + + +import ai.lamin.lamin_api_client.model.GetRecordsRequestBody; +import ai.lamin.lamin_api_client.model.HTTPValidationError; +import java.util.UUID; + +import java.lang.reflect.Type; +import java.util.ArrayList; +import java.util.HashMap; +import java.util.List; +import java.util.Map; + +public class InstanceFeaturesApi { + private ApiClient localVarApiClient; + private int localHostIndex; + private String localCustomBaseUrl; + + public InstanceFeaturesApi() { + this(Configuration.getDefaultApiClient()); + } + + public InstanceFeaturesApi(ApiClient apiClient) { + this.localVarApiClient = apiClient; + } + + public ApiClient getApiClient() { + return localVarApiClient; + } + + public void setApiClient(ApiClient apiClient) { + this.localVarApiClient = apiClient; + } + + public int getHostIndex() { + return localHostIndex; + } + + public void setHostIndex(int hostIndex) { + this.localHostIndex = hostIndex; + } + + public String getCustomBaseUrl() { + return localCustomBaseUrl; + } + + public void setCustomBaseUrl(String customBaseUrl) { + this.localCustomBaseUrl = customBaseUrl; + } + + /** + * Build call for queryLinkedFeaturesInstancesInstanceIdModulesModuleNameModelNameQueryFeaturesPost + * @param moduleName (required) + * @param modelName (required) + * @param instanceId (required) + * @param limit (optional, default to 50) + * @param offset (optional, default to 0) + * @param authorization (optional) + * @param getRecordsRequestBody (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 queryLinkedFeaturesInstancesInstanceIdModulesModuleNameModelNameQueryFeaturesPostCall(String moduleName, String modelName, UUID instanceId, Integer limit, Integer offset, String authorization, GetRecordsRequestBody getRecordsRequestBody, 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 = getRecordsRequestBody; + + // create path and map variables + String localVarPath = "/instances/{instance_id}/modules/{module_name}/{model_name}/query_features" + .replace("{" + "module_name" + "}", localVarApiClient.escapeString(moduleName.toString())) + .replace("{" + "model_name" + "}", localVarApiClient.escapeString(modelName.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 (limit != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("limit", limit)); + } + + if (offset != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("offset", offset)); + } + + 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 queryLinkedFeaturesInstancesInstanceIdModulesModuleNameModelNameQueryFeaturesPostValidateBeforeCall(String moduleName, String modelName, UUID instanceId, Integer limit, Integer offset, String authorization, GetRecordsRequestBody getRecordsRequestBody, final ApiCallback _callback) throws ApiException { + // verify the required parameter 'moduleName' is set + if (moduleName == null) { + throw new ApiException("Missing the required parameter 'moduleName' when calling queryLinkedFeaturesInstancesInstanceIdModulesModuleNameModelNameQueryFeaturesPost(Async)"); + } + + // verify the required parameter 'modelName' is set + if (modelName == null) { + throw new ApiException("Missing the required parameter 'modelName' when calling queryLinkedFeaturesInstancesInstanceIdModulesModuleNameModelNameQueryFeaturesPost(Async)"); + } + + // verify the required parameter 'instanceId' is set + if (instanceId == null) { + throw new ApiException("Missing the required parameter 'instanceId' when calling queryLinkedFeaturesInstancesInstanceIdModulesModuleNameModelNameQueryFeaturesPost(Async)"); + } + + return queryLinkedFeaturesInstancesInstanceIdModulesModuleNameModelNameQueryFeaturesPostCall(moduleName, modelName, instanceId, limit, offset, authorization, getRecordsRequestBody, _callback); + + } + + /** + * Query Linked Features + * Queries and returns a flat list of all unique Feature records associated with a set of filtered primary model records. + * @param moduleName (required) + * @param modelName (required) + * @param instanceId (required) + * @param limit (optional, default to 50) + * @param offset (optional, default to 0) + * @param authorization (optional) + * @param getRecordsRequestBody (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 queryLinkedFeaturesInstancesInstanceIdModulesModuleNameModelNameQueryFeaturesPost(String moduleName, String modelName, UUID instanceId, Integer limit, Integer offset, String authorization, GetRecordsRequestBody getRecordsRequestBody) throws ApiException { + ApiResponse localVarResp = queryLinkedFeaturesInstancesInstanceIdModulesModuleNameModelNameQueryFeaturesPostWithHttpInfo(moduleName, modelName, instanceId, limit, offset, authorization, getRecordsRequestBody); + return localVarResp.getData(); + } + + /** + * Query Linked Features + * Queries and returns a flat list of all unique Feature records associated with a set of filtered primary model records. + * @param moduleName (required) + * @param modelName (required) + * @param instanceId (required) + * @param limit (optional, default to 50) + * @param offset (optional, default to 0) + * @param authorization (optional) + * @param getRecordsRequestBody (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 queryLinkedFeaturesInstancesInstanceIdModulesModuleNameModelNameQueryFeaturesPostWithHttpInfo(String moduleName, String modelName, UUID instanceId, Integer limit, Integer offset, String authorization, GetRecordsRequestBody getRecordsRequestBody) throws ApiException { + okhttp3.Call localVarCall = queryLinkedFeaturesInstancesInstanceIdModulesModuleNameModelNameQueryFeaturesPostValidateBeforeCall(moduleName, modelName, instanceId, limit, offset, authorization, getRecordsRequestBody, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * Query Linked Features (asynchronously) + * Queries and returns a flat list of all unique Feature records associated with a set of filtered primary model records. + * @param moduleName (required) + * @param modelName (required) + * @param instanceId (required) + * @param limit (optional, default to 50) + * @param offset (optional, default to 0) + * @param authorization (optional) + * @param getRecordsRequestBody (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 queryLinkedFeaturesInstancesInstanceIdModulesModuleNameModelNameQueryFeaturesPostAsync(String moduleName, String modelName, UUID instanceId, Integer limit, Integer offset, String authorization, GetRecordsRequestBody getRecordsRequestBody, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = queryLinkedFeaturesInstancesInstanceIdModulesModuleNameModelNameQueryFeaturesPostValidateBeforeCall(moduleName, modelName, instanceId, limit, offset, authorization, getRecordsRequestBody, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } +} diff --git a/src/main/java/ai/lamin/lamin_api_client/api/InstanceFileExplorerApi.java b/src/main/java/ai/lamin/lamin_api_client/api/InstanceFileExplorerApi.java new file mode 100644 index 0000000..c528fd9 --- /dev/null +++ b/src/main/java/ai/lamin/lamin_api_client/api/InstanceFileExplorerApi.java @@ -0,0 +1,387 @@ +/* + * 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.api; + +import ai.lamin.lamin_api_client.ApiCallback; +import ai.lamin.lamin_api_client.ApiClient; +import ai.lamin.lamin_api_client.ApiException; +import ai.lamin.lamin_api_client.ApiResponse; +import ai.lamin.lamin_api_client.Configuration; +import ai.lamin.lamin_api_client.Pair; +import ai.lamin.lamin_api_client.ProgressRequestBody; +import ai.lamin.lamin_api_client.ProgressResponseBody; + +import com.google.gson.reflect.TypeToken; + +import java.io.IOException; + + +import ai.lamin.lamin_api_client.model.HTTPValidationError; +import java.util.UUID; + +import java.lang.reflect.Type; +import java.util.ArrayList; +import java.util.HashMap; +import java.util.List; +import java.util.Map; + +public class InstanceFileExplorerApi { + private ApiClient localVarApiClient; + private int localHostIndex; + private String localCustomBaseUrl; + + public InstanceFileExplorerApi() { + this(Configuration.getDefaultApiClient()); + } + + public InstanceFileExplorerApi(ApiClient apiClient) { + this.localVarApiClient = apiClient; + } + + public ApiClient getApiClient() { + return localVarApiClient; + } + + public void setApiClient(ApiClient apiClient) { + this.localVarApiClient = apiClient; + } + + public int getHostIndex() { + return localHostIndex; + } + + public void setHostIndex(int hostIndex) { + this.localHostIndex = hostIndex; + } + + public String getCustomBaseUrl() { + return localCustomBaseUrl; + } + + public void setCustomBaseUrl(String customBaseUrl) { + this.localCustomBaseUrl = customBaseUrl; + } + + /** + * Build call for getTreeInstancesInstanceIdFilesTreeGet + * @param instanceId (required) + * @param entityType (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 getTreeInstancesInstanceIdFilesTreeGetCall(UUID instanceId, String entityType, 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}/files/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)); + } + + 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 getTreeInstancesInstanceIdFilesTreeGetValidateBeforeCall(UUID instanceId, String entityType, 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 getTreeInstancesInstanceIdFilesTreeGet(Async)"); + } + + // verify the required parameter 'entityType' is set + if (entityType == null) { + throw new ApiException("Missing the required parameter 'entityType' when calling getTreeInstancesInstanceIdFilesTreeGet(Async)"); + } + + return getTreeInstancesInstanceIdFilesTreeGetCall(instanceId, entityType, authorization, _callback); + + } + + /** + * Get Tree + * + * @param instanceId (required) + * @param entityType (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 getTreeInstancesInstanceIdFilesTreeGet(UUID instanceId, String entityType, String authorization) throws ApiException { + ApiResponse localVarResp = getTreeInstancesInstanceIdFilesTreeGetWithHttpInfo(instanceId, entityType, authorization); + return localVarResp.getData(); + } + + /** + * Get Tree + * + * @param instanceId (required) + * @param entityType (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 getTreeInstancesInstanceIdFilesTreeGetWithHttpInfo(UUID instanceId, String entityType, String authorization) throws ApiException { + okhttp3.Call localVarCall = getTreeInstancesInstanceIdFilesTreeGetValidateBeforeCall(instanceId, entityType, authorization, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * Get Tree (asynchronously) + * + * @param instanceId (required) + * @param entityType (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 getTreeInstancesInstanceIdFilesTreeGetAsync(UUID instanceId, String entityType, String authorization, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = getTreeInstancesInstanceIdFilesTreeGetValidateBeforeCall(instanceId, entityType, authorization, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + /** + * Build call for listDirectoryInstancesInstanceIdFilesEntityTypeGet + * @param entityType (required) + * @param instanceId (required) + * @param path (optional, default to ) + * @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 listDirectoryInstancesInstanceIdFilesEntityTypeGetCall(String entityType, UUID instanceId, String path, 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}/files/{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)); + } + + 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 listDirectoryInstancesInstanceIdFilesEntityTypeGetValidateBeforeCall(String entityType, UUID instanceId, String path, 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 listDirectoryInstancesInstanceIdFilesEntityTypeGet(Async)"); + } + + // verify the required parameter 'instanceId' is set + if (instanceId == null) { + throw new ApiException("Missing the required parameter 'instanceId' when calling listDirectoryInstancesInstanceIdFilesEntityTypeGet(Async)"); + } + + return listDirectoryInstancesInstanceIdFilesEntityTypeGetCall(entityType, instanceId, path, authorization, _callback); + + } + + /** + * List Directory + * + * @param entityType (required) + * @param instanceId (required) + * @param path (optional, default to ) + * @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 listDirectoryInstancesInstanceIdFilesEntityTypeGet(String entityType, UUID instanceId, String path, String authorization) throws ApiException { + ApiResponse localVarResp = listDirectoryInstancesInstanceIdFilesEntityTypeGetWithHttpInfo(entityType, instanceId, path, authorization); + return localVarResp.getData(); + } + + /** + * List Directory + * + * @param entityType (required) + * @param instanceId (required) + * @param path (optional, default to ) + * @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 listDirectoryInstancesInstanceIdFilesEntityTypeGetWithHttpInfo(String entityType, UUID instanceId, String path, String authorization) throws ApiException { + okhttp3.Call localVarCall = listDirectoryInstancesInstanceIdFilesEntityTypeGetValidateBeforeCall(entityType, instanceId, path, 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 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 listDirectoryInstancesInstanceIdFilesEntityTypeGetAsync(String entityType, UUID instanceId, String path, String authorization, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = listDirectoryInstancesInstanceIdFilesEntityTypeGetValidateBeforeCall(entityType, instanceId, path, authorization, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } +} diff --git a/src/main/java/ai/lamin/lamin_api_client/api/InstanceFormsApi.java b/src/main/java/ai/lamin/lamin_api_client/api/InstanceFormsApi.java new file mode 100644 index 0000000..bc52417 --- /dev/null +++ b/src/main/java/ai/lamin/lamin_api_client/api/InstanceFormsApi.java @@ -0,0 +1,227 @@ +/* + * 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.api; + +import ai.lamin.lamin_api_client.ApiCallback; +import ai.lamin.lamin_api_client.ApiClient; +import ai.lamin.lamin_api_client.ApiException; +import ai.lamin.lamin_api_client.ApiResponse; +import ai.lamin.lamin_api_client.Configuration; +import ai.lamin.lamin_api_client.Pair; +import ai.lamin.lamin_api_client.ProgressRequestBody; +import ai.lamin.lamin_api_client.ProgressResponseBody; + +import com.google.gson.reflect.TypeToken; + +import java.io.IOException; + + +import ai.lamin.lamin_api_client.model.HTTPValidationError; +import ai.lamin.lamin_api_client.model.RegisterFormRequest; +import java.util.UUID; + +import java.lang.reflect.Type; +import java.util.ArrayList; +import java.util.HashMap; +import java.util.List; +import java.util.Map; + +public class InstanceFormsApi { + private ApiClient localVarApiClient; + private int localHostIndex; + private String localCustomBaseUrl; + + public InstanceFormsApi() { + this(Configuration.getDefaultApiClient()); + } + + public InstanceFormsApi(ApiClient apiClient) { + this.localVarApiClient = apiClient; + } + + public ApiClient getApiClient() { + return localVarApiClient; + } + + public void setApiClient(ApiClient apiClient) { + this.localVarApiClient = apiClient; + } + + public int getHostIndex() { + return localHostIndex; + } + + public void setHostIndex(int hostIndex) { + this.localHostIndex = hostIndex; + } + + public String getCustomBaseUrl() { + return localCustomBaseUrl; + } + + public void setCustomBaseUrl(String customBaseUrl) { + this.localCustomBaseUrl = customBaseUrl; + } + + /** + * 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: - **200**: 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: - **200**: 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: - **200**: 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; + } +} diff --git a/src/main/java/ai/lamin/lamin_api_client/api/InstanceFunctionsApi.java b/src/main/java/ai/lamin/lamin_api_client/api/InstanceFunctionsApi.java new file mode 100644 index 0000000..cee55d7 --- /dev/null +++ b/src/main/java/ai/lamin/lamin_api_client/api/InstanceFunctionsApi.java @@ -0,0 +1,227 @@ +/* + * 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.api; + +import ai.lamin.lamin_api_client.ApiCallback; +import ai.lamin.lamin_api_client.ApiClient; +import ai.lamin.lamin_api_client.ApiException; +import ai.lamin.lamin_api_client.ApiResponse; +import ai.lamin.lamin_api_client.Configuration; +import ai.lamin.lamin_api_client.Pair; +import ai.lamin.lamin_api_client.ProgressRequestBody; +import ai.lamin.lamin_api_client.ProgressResponseBody; + +import com.google.gson.reflect.TypeToken; + +import java.io.IOException; + + +import ai.lamin.lamin_api_client.model.ExecuteFunctionRequestBody; +import ai.lamin.lamin_api_client.model.HTTPValidationError; +import java.util.UUID; + +import java.lang.reflect.Type; +import java.util.ArrayList; +import java.util.HashMap; +import java.util.List; +import java.util.Map; + +public class InstanceFunctionsApi { + private ApiClient localVarApiClient; + private int localHostIndex; + private String localCustomBaseUrl; + + public InstanceFunctionsApi() { + this(Configuration.getDefaultApiClient()); + } + + public InstanceFunctionsApi(ApiClient apiClient) { + this.localVarApiClient = apiClient; + } + + public ApiClient getApiClient() { + return localVarApiClient; + } + + public void setApiClient(ApiClient apiClient) { + this.localVarApiClient = apiClient; + } + + public int getHostIndex() { + return localHostIndex; + } + + public void setHostIndex(int hostIndex) { + this.localHostIndex = hostIndex; + } + + public String getCustomBaseUrl() { + return localCustomBaseUrl; + } + + public void setCustomBaseUrl(String customBaseUrl) { + this.localCustomBaseUrl = customBaseUrl; + } + + /** + * Build call for executeFunctionInstancesInstanceIdFunctionExecutePost + * @param instanceId (required) + * @param executeFunctionRequestBody (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 executeFunctionInstancesInstanceIdFunctionExecutePostCall(UUID instanceId, ExecuteFunctionRequestBody executeFunctionRequestBody, 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 = executeFunctionRequestBody; + + // create path and map variables + String localVarPath = "/instances/{instance_id}/function/execute" + .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 executeFunctionInstancesInstanceIdFunctionExecutePostValidateBeforeCall(UUID instanceId, ExecuteFunctionRequestBody executeFunctionRequestBody, 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 executeFunctionInstancesInstanceIdFunctionExecutePost(Async)"); + } + + // verify the required parameter 'executeFunctionRequestBody' is set + if (executeFunctionRequestBody == null) { + throw new ApiException("Missing the required parameter 'executeFunctionRequestBody' when calling executeFunctionInstancesInstanceIdFunctionExecutePost(Async)"); + } + + return executeFunctionInstancesInstanceIdFunctionExecutePostCall(instanceId, executeFunctionRequestBody, authorization, _callback); + + } + + /** + * Execute Function + * + * @param instanceId (required) + * @param executeFunctionRequestBody (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 executeFunctionInstancesInstanceIdFunctionExecutePost(UUID instanceId, ExecuteFunctionRequestBody executeFunctionRequestBody, String authorization) throws ApiException { + ApiResponse localVarResp = executeFunctionInstancesInstanceIdFunctionExecutePostWithHttpInfo(instanceId, executeFunctionRequestBody, authorization); + return localVarResp.getData(); + } + + /** + * Execute Function + * + * @param instanceId (required) + * @param executeFunctionRequestBody (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 executeFunctionInstancesInstanceIdFunctionExecutePostWithHttpInfo(UUID instanceId, ExecuteFunctionRequestBody executeFunctionRequestBody, String authorization) throws ApiException { + okhttp3.Call localVarCall = executeFunctionInstancesInstanceIdFunctionExecutePostValidateBeforeCall(instanceId, executeFunctionRequestBody, authorization, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * Execute Function (asynchronously) + * + * @param instanceId (required) + * @param executeFunctionRequestBody (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 executeFunctionInstancesInstanceIdFunctionExecutePostAsync(UUID instanceId, ExecuteFunctionRequestBody executeFunctionRequestBody, String authorization, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = executeFunctionInstancesInstanceIdFunctionExecutePostValidateBeforeCall(instanceId, executeFunctionRequestBody, authorization, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } +} diff --git a/src/main/java/ai/lamin/lamin_api_client/api/InstanceLabelsApi.java b/src/main/java/ai/lamin/lamin_api_client/api/InstanceLabelsApi.java new file mode 100644 index 0000000..f3b8a71 --- /dev/null +++ b/src/main/java/ai/lamin/lamin_api_client/api/InstanceLabelsApi.java @@ -0,0 +1,456 @@ +/* + * 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.api; + +import ai.lamin.lamin_api_client.ApiCallback; +import ai.lamin.lamin_api_client.ApiClient; +import ai.lamin.lamin_api_client.ApiException; +import ai.lamin.lamin_api_client.ApiResponse; +import ai.lamin.lamin_api_client.Configuration; +import ai.lamin.lamin_api_client.Pair; +import ai.lamin.lamin_api_client.ProgressRequestBody; +import ai.lamin.lamin_api_client.ProgressResponseBody; + +import com.google.gson.reflect.TypeToken; + +import java.io.IOException; + + +import ai.lamin.lamin_api_client.model.HTTPValidationError; +import java.util.UUID; + +import java.lang.reflect.Type; +import java.util.ArrayList; +import java.util.HashMap; +import java.util.List; +import java.util.Map; + +public class InstanceLabelsApi { + private ApiClient localVarApiClient; + private int localHostIndex; + private String localCustomBaseUrl; + + public InstanceLabelsApi() { + this(Configuration.getDefaultApiClient()); + } + + public InstanceLabelsApi(ApiClient apiClient) { + this.localVarApiClient = apiClient; + } + + public ApiClient getApiClient() { + return localVarApiClient; + } + + public void setApiClient(ApiClient apiClient) { + this.localVarApiClient = apiClient; + } + + public int getHostIndex() { + return localHostIndex; + } + + public void setHostIndex(int hostIndex) { + this.localHostIndex = hostIndex; + } + + public String getCustomBaseUrl() { + return localCustomBaseUrl; + } + + public void setCustomBaseUrl(String customBaseUrl) { + this.localCustomBaseUrl = customBaseUrl; + } + + /** + * Build call for attachLabelInstancesInstanceIdModulesModuleNameModelNameIdLabelFieldLabelIdPut + * @param moduleName (required) + * @param modelName (required) + * @param id (required) + * @param labelField (required) + * @param labelId (required) + * @param instanceId (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 attachLabelInstancesInstanceIdModulesModuleNameModelNameIdLabelFieldLabelIdPutCall(String moduleName, String modelName, Integer id, String labelField, Integer labelId, UUID instanceId, 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}/modules/{module_name}/{model_name}/{id}/{label_field}/{label_id}" + .replace("{" + "module_name" + "}", localVarApiClient.escapeString(moduleName.toString())) + .replace("{" + "model_name" + "}", localVarApiClient.escapeString(modelName.toString())) + .replace("{" + "id" + "}", localVarApiClient.escapeString(id.toString())) + .replace("{" + "label_field" + "}", localVarApiClient.escapeString(labelField.toString())) + .replace("{" + "label_id" + "}", localVarApiClient.escapeString(labelId.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(); + + 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, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call attachLabelInstancesInstanceIdModulesModuleNameModelNameIdLabelFieldLabelIdPutValidateBeforeCall(String moduleName, String modelName, Integer id, String labelField, Integer labelId, UUID instanceId, String authorization, final ApiCallback _callback) throws ApiException { + // verify the required parameter 'moduleName' is set + if (moduleName == null) { + throw new ApiException("Missing the required parameter 'moduleName' when calling attachLabelInstancesInstanceIdModulesModuleNameModelNameIdLabelFieldLabelIdPut(Async)"); + } + + // verify the required parameter 'modelName' is set + if (modelName == null) { + throw new ApiException("Missing the required parameter 'modelName' when calling attachLabelInstancesInstanceIdModulesModuleNameModelNameIdLabelFieldLabelIdPut(Async)"); + } + + // verify the required parameter 'id' is set + if (id == null) { + throw new ApiException("Missing the required parameter 'id' when calling attachLabelInstancesInstanceIdModulesModuleNameModelNameIdLabelFieldLabelIdPut(Async)"); + } + + // verify the required parameter 'labelField' is set + if (labelField == null) { + throw new ApiException("Missing the required parameter 'labelField' when calling attachLabelInstancesInstanceIdModulesModuleNameModelNameIdLabelFieldLabelIdPut(Async)"); + } + + // verify the required parameter 'labelId' is set + if (labelId == null) { + throw new ApiException("Missing the required parameter 'labelId' when calling attachLabelInstancesInstanceIdModulesModuleNameModelNameIdLabelFieldLabelIdPut(Async)"); + } + + // verify the required parameter 'instanceId' is set + if (instanceId == null) { + throw new ApiException("Missing the required parameter 'instanceId' when calling attachLabelInstancesInstanceIdModulesModuleNameModelNameIdLabelFieldLabelIdPut(Async)"); + } + + return attachLabelInstancesInstanceIdModulesModuleNameModelNameIdLabelFieldLabelIdPutCall(moduleName, modelName, id, labelField, labelId, instanceId, authorization, _callback); + + } + + /** + * Attach Label + * + * @param moduleName (required) + * @param modelName (required) + * @param id (required) + * @param labelField (required) + * @param labelId (required) + * @param instanceId (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 attachLabelInstancesInstanceIdModulesModuleNameModelNameIdLabelFieldLabelIdPut(String moduleName, String modelName, Integer id, String labelField, Integer labelId, UUID instanceId, String authorization) throws ApiException { + ApiResponse localVarResp = attachLabelInstancesInstanceIdModulesModuleNameModelNameIdLabelFieldLabelIdPutWithHttpInfo(moduleName, modelName, id, labelField, labelId, instanceId, authorization); + return localVarResp.getData(); + } + + /** + * Attach Label + * + * @param moduleName (required) + * @param modelName (required) + * @param id (required) + * @param labelField (required) + * @param labelId (required) + * @param instanceId (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 attachLabelInstancesInstanceIdModulesModuleNameModelNameIdLabelFieldLabelIdPutWithHttpInfo(String moduleName, String modelName, Integer id, String labelField, Integer labelId, UUID instanceId, String authorization) throws ApiException { + okhttp3.Call localVarCall = attachLabelInstancesInstanceIdModulesModuleNameModelNameIdLabelFieldLabelIdPutValidateBeforeCall(moduleName, modelName, id, labelField, labelId, instanceId, authorization, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * Attach Label (asynchronously) + * + * @param moduleName (required) + * @param modelName (required) + * @param id (required) + * @param labelField (required) + * @param labelId (required) + * @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 attachLabelInstancesInstanceIdModulesModuleNameModelNameIdLabelFieldLabelIdPutAsync(String moduleName, String modelName, Integer id, String labelField, Integer labelId, UUID instanceId, String authorization, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = attachLabelInstancesInstanceIdModulesModuleNameModelNameIdLabelFieldLabelIdPutValidateBeforeCall(moduleName, modelName, id, labelField, labelId, instanceId, authorization, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + /** + * Build call for detachLabelInstancesInstanceIdModulesModuleNameModelNameIdLabelFieldLabelIdDelete + * @param moduleName (required) + * @param modelName (required) + * @param id (required) + * @param labelField (required) + * @param labelId (required) + * @param instanceId (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 detachLabelInstancesInstanceIdModulesModuleNameModelNameIdLabelFieldLabelIdDeleteCall(String moduleName, String modelName, Integer id, String labelField, Integer labelId, UUID instanceId, 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}/modules/{module_name}/{model_name}/{id}/{label_field}/{label_id}" + .replace("{" + "module_name" + "}", localVarApiClient.escapeString(moduleName.toString())) + .replace("{" + "model_name" + "}", localVarApiClient.escapeString(modelName.toString())) + .replace("{" + "id" + "}", localVarApiClient.escapeString(id.toString())) + .replace("{" + "label_field" + "}", localVarApiClient.escapeString(labelField.toString())) + .replace("{" + "label_id" + "}", localVarApiClient.escapeString(labelId.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(); + + 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, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call detachLabelInstancesInstanceIdModulesModuleNameModelNameIdLabelFieldLabelIdDeleteValidateBeforeCall(String moduleName, String modelName, Integer id, String labelField, Integer labelId, UUID instanceId, String authorization, final ApiCallback _callback) throws ApiException { + // verify the required parameter 'moduleName' is set + if (moduleName == null) { + throw new ApiException("Missing the required parameter 'moduleName' when calling detachLabelInstancesInstanceIdModulesModuleNameModelNameIdLabelFieldLabelIdDelete(Async)"); + } + + // verify the required parameter 'modelName' is set + if (modelName == null) { + throw new ApiException("Missing the required parameter 'modelName' when calling detachLabelInstancesInstanceIdModulesModuleNameModelNameIdLabelFieldLabelIdDelete(Async)"); + } + + // verify the required parameter 'id' is set + if (id == null) { + throw new ApiException("Missing the required parameter 'id' when calling detachLabelInstancesInstanceIdModulesModuleNameModelNameIdLabelFieldLabelIdDelete(Async)"); + } + + // verify the required parameter 'labelField' is set + if (labelField == null) { + throw new ApiException("Missing the required parameter 'labelField' when calling detachLabelInstancesInstanceIdModulesModuleNameModelNameIdLabelFieldLabelIdDelete(Async)"); + } + + // verify the required parameter 'labelId' is set + if (labelId == null) { + throw new ApiException("Missing the required parameter 'labelId' when calling detachLabelInstancesInstanceIdModulesModuleNameModelNameIdLabelFieldLabelIdDelete(Async)"); + } + + // verify the required parameter 'instanceId' is set + if (instanceId == null) { + throw new ApiException("Missing the required parameter 'instanceId' when calling detachLabelInstancesInstanceIdModulesModuleNameModelNameIdLabelFieldLabelIdDelete(Async)"); + } + + return detachLabelInstancesInstanceIdModulesModuleNameModelNameIdLabelFieldLabelIdDeleteCall(moduleName, modelName, id, labelField, labelId, instanceId, authorization, _callback); + + } + + /** + * Detach Label + * + * @param moduleName (required) + * @param modelName (required) + * @param id (required) + * @param labelField (required) + * @param labelId (required) + * @param instanceId (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 detachLabelInstancesInstanceIdModulesModuleNameModelNameIdLabelFieldLabelIdDelete(String moduleName, String modelName, Integer id, String labelField, Integer labelId, UUID instanceId, String authorization) throws ApiException { + ApiResponse localVarResp = detachLabelInstancesInstanceIdModulesModuleNameModelNameIdLabelFieldLabelIdDeleteWithHttpInfo(moduleName, modelName, id, labelField, labelId, instanceId, authorization); + return localVarResp.getData(); + } + + /** + * Detach Label + * + * @param moduleName (required) + * @param modelName (required) + * @param id (required) + * @param labelField (required) + * @param labelId (required) + * @param instanceId (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 detachLabelInstancesInstanceIdModulesModuleNameModelNameIdLabelFieldLabelIdDeleteWithHttpInfo(String moduleName, String modelName, Integer id, String labelField, Integer labelId, UUID instanceId, String authorization) throws ApiException { + okhttp3.Call localVarCall = detachLabelInstancesInstanceIdModulesModuleNameModelNameIdLabelFieldLabelIdDeleteValidateBeforeCall(moduleName, modelName, id, labelField, labelId, instanceId, authorization, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * Detach Label (asynchronously) + * + * @param moduleName (required) + * @param modelName (required) + * @param id (required) + * @param labelField (required) + * @param labelId (required) + * @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 detachLabelInstancesInstanceIdModulesModuleNameModelNameIdLabelFieldLabelIdDeleteAsync(String moduleName, String modelName, Integer id, String labelField, Integer labelId, UUID instanceId, String authorization, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = detachLabelInstancesInstanceIdModulesModuleNameModelNameIdLabelFieldLabelIdDeleteValidateBeforeCall(moduleName, modelName, id, labelField, labelId, instanceId, authorization, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } +} diff --git a/src/main/java/ai/lamin/lamin_api_client/api/InstanceRecordsApi.java b/src/main/java/ai/lamin/lamin_api_client/api/InstanceRecordsApi.java new file mode 100644 index 0000000..aff51dd --- /dev/null +++ b/src/main/java/ai/lamin/lamin_api_client/api/InstanceRecordsApi.java @@ -0,0 +1,2228 @@ +/* + * 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.api; + +import ai.lamin.lamin_api_client.ApiCallback; +import ai.lamin.lamin_api_client.ApiClient; +import ai.lamin.lamin_api_client.ApiException; +import ai.lamin.lamin_api_client.ApiResponse; +import ai.lamin.lamin_api_client.Configuration; +import ai.lamin.lamin_api_client.Pair; +import ai.lamin.lamin_api_client.ProgressRequestBody; +import ai.lamin.lamin_api_client.ProgressResponseBody; + +import com.google.gson.reflect.TypeToken; + +import java.io.IOException; + + +import ai.lamin.lamin_api_client.model.BatchDeleteBody; +import ai.lamin.lamin_api_client.model.BatchDeleteResponse; +import ai.lamin.lamin_api_client.model.BatchSyncLinksBody; +import ai.lamin.lamin_api_client.model.BatchSyncResponse; +import ai.lamin.lamin_api_client.model.BatchUpdateBody; +import ai.lamin.lamin_api_client.model.Body; +import ai.lamin.lamin_api_client.model.ExportRecordsRequestBody; +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.HTTPValidationError; +import ai.lamin.lamin_api_client.model.Request; +import java.util.UUID; + +import java.lang.reflect.Type; +import java.util.ArrayList; +import java.util.HashMap; +import java.util.List; +import java.util.Map; + +public class InstanceRecordsApi { + private ApiClient localVarApiClient; + private int localHostIndex; + private String localCustomBaseUrl; + + public InstanceRecordsApi() { + this(Configuration.getDefaultApiClient()); + } + + public InstanceRecordsApi(ApiClient apiClient) { + this.localVarApiClient = apiClient; + } + + public ApiClient getApiClient() { + return localVarApiClient; + } + + public void setApiClient(ApiClient apiClient) { + this.localVarApiClient = apiClient; + } + + public int getHostIndex() { + return localHostIndex; + } + + public void setHostIndex(int hostIndex) { + this.localHostIndex = hostIndex; + } + + public String getCustomBaseUrl() { + return localCustomBaseUrl; + } + + public void setCustomBaseUrl(String customBaseUrl) { + this.localCustomBaseUrl = customBaseUrl; + } + + /** + * Build call for batchDeleteRecordsInstancesInstanceIdModulesModuleNameModelNameBatchDeletePost + * @param moduleName (required) + * @param modelName (required) + * @param instanceId (required) + * @param batchDeleteBody (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 batchDeleteRecordsInstancesInstanceIdModulesModuleNameModelNameBatchDeletePostCall(String moduleName, String modelName, UUID instanceId, BatchDeleteBody batchDeleteBody, 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 = batchDeleteBody; + + // create path and map variables + String localVarPath = "/instances/{instance_id}/modules/{module_name}/{model_name}/batch-delete" + .replace("{" + "module_name" + "}", localVarApiClient.escapeString(moduleName.toString())) + .replace("{" + "model_name" + "}", localVarApiClient.escapeString(modelName.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(); + + 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 batchDeleteRecordsInstancesInstanceIdModulesModuleNameModelNameBatchDeletePostValidateBeforeCall(String moduleName, String modelName, UUID instanceId, BatchDeleteBody batchDeleteBody, String authorization, final ApiCallback _callback) throws ApiException { + // verify the required parameter 'moduleName' is set + if (moduleName == null) { + throw new ApiException("Missing the required parameter 'moduleName' when calling batchDeleteRecordsInstancesInstanceIdModulesModuleNameModelNameBatchDeletePost(Async)"); + } + + // verify the required parameter 'modelName' is set + if (modelName == null) { + throw new ApiException("Missing the required parameter 'modelName' when calling batchDeleteRecordsInstancesInstanceIdModulesModuleNameModelNameBatchDeletePost(Async)"); + } + + // verify the required parameter 'instanceId' is set + if (instanceId == null) { + throw new ApiException("Missing the required parameter 'instanceId' when calling batchDeleteRecordsInstancesInstanceIdModulesModuleNameModelNameBatchDeletePost(Async)"); + } + + // verify the required parameter 'batchDeleteBody' is set + if (batchDeleteBody == null) { + throw new ApiException("Missing the required parameter 'batchDeleteBody' when calling batchDeleteRecordsInstancesInstanceIdModulesModuleNameModelNameBatchDeletePost(Async)"); + } + + return batchDeleteRecordsInstancesInstanceIdModulesModuleNameModelNameBatchDeletePostCall(moduleName, modelName, instanceId, batchDeleteBody, authorization, _callback); + + } + + /** + * Batch Delete Records + * + * @param moduleName (required) + * @param modelName (required) + * @param instanceId (required) + * @param batchDeleteBody (required) + * @param authorization (optional) + * @return BatchDeleteResponse + * @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 BatchDeleteResponse batchDeleteRecordsInstancesInstanceIdModulesModuleNameModelNameBatchDeletePost(String moduleName, String modelName, UUID instanceId, BatchDeleteBody batchDeleteBody, String authorization) throws ApiException { + ApiResponse localVarResp = batchDeleteRecordsInstancesInstanceIdModulesModuleNameModelNameBatchDeletePostWithHttpInfo(moduleName, modelName, instanceId, batchDeleteBody, authorization); + return localVarResp.getData(); + } + + /** + * Batch Delete Records + * + * @param moduleName (required) + * @param modelName (required) + * @param instanceId (required) + * @param batchDeleteBody (required) + * @param authorization (optional) + * @return ApiResponse<BatchDeleteResponse> + * @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 batchDeleteRecordsInstancesInstanceIdModulesModuleNameModelNameBatchDeletePostWithHttpInfo(String moduleName, String modelName, UUID instanceId, BatchDeleteBody batchDeleteBody, String authorization) throws ApiException { + okhttp3.Call localVarCall = batchDeleteRecordsInstancesInstanceIdModulesModuleNameModelNameBatchDeletePostValidateBeforeCall(moduleName, modelName, instanceId, batchDeleteBody, authorization, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * Batch Delete Records (asynchronously) + * + * @param moduleName (required) + * @param modelName (required) + * @param instanceId (required) + * @param batchDeleteBody (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 batchDeleteRecordsInstancesInstanceIdModulesModuleNameModelNameBatchDeletePostAsync(String moduleName, String modelName, UUID instanceId, BatchDeleteBody batchDeleteBody, String authorization, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = batchDeleteRecordsInstancesInstanceIdModulesModuleNameModelNameBatchDeletePostValidateBeforeCall(moduleName, modelName, instanceId, batchDeleteBody, authorization, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + /** + * Build call for batchSyncLinksInstancesInstanceIdModulesModuleNameModelNameBatchSyncLinksPut + * @param moduleName (required) + * @param modelName (required) + * @param instanceId (required) + * @param batchSyncLinksBody (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 batchSyncLinksInstancesInstanceIdModulesModuleNameModelNameBatchSyncLinksPutCall(String moduleName, String modelName, UUID instanceId, BatchSyncLinksBody batchSyncLinksBody, 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 = batchSyncLinksBody; + + // create path and map variables + String localVarPath = "/instances/{instance_id}/modules/{module_name}/{model_name}/batch-sync-links" + .replace("{" + "module_name" + "}", localVarApiClient.escapeString(moduleName.toString())) + .replace("{" + "model_name" + "}", localVarApiClient.escapeString(modelName.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(); + + 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, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call batchSyncLinksInstancesInstanceIdModulesModuleNameModelNameBatchSyncLinksPutValidateBeforeCall(String moduleName, String modelName, UUID instanceId, BatchSyncLinksBody batchSyncLinksBody, String authorization, final ApiCallback _callback) throws ApiException { + // verify the required parameter 'moduleName' is set + if (moduleName == null) { + throw new ApiException("Missing the required parameter 'moduleName' when calling batchSyncLinksInstancesInstanceIdModulesModuleNameModelNameBatchSyncLinksPut(Async)"); + } + + // verify the required parameter 'modelName' is set + if (modelName == null) { + throw new ApiException("Missing the required parameter 'modelName' when calling batchSyncLinksInstancesInstanceIdModulesModuleNameModelNameBatchSyncLinksPut(Async)"); + } + + // verify the required parameter 'instanceId' is set + if (instanceId == null) { + throw new ApiException("Missing the required parameter 'instanceId' when calling batchSyncLinksInstancesInstanceIdModulesModuleNameModelNameBatchSyncLinksPut(Async)"); + } + + // verify the required parameter 'batchSyncLinksBody' is set + if (batchSyncLinksBody == null) { + throw new ApiException("Missing the required parameter 'batchSyncLinksBody' when calling batchSyncLinksInstancesInstanceIdModulesModuleNameModelNameBatchSyncLinksPut(Async)"); + } + + return batchSyncLinksInstancesInstanceIdModulesModuleNameModelNameBatchSyncLinksPutCall(moduleName, modelName, instanceId, batchSyncLinksBody, authorization, _callback); + + } + + /** + * Synchronize sets of links for multiple scopes in a single call + * + * @param moduleName (required) + * @param modelName (required) + * @param instanceId (required) + * @param batchSyncLinksBody (required) + * @param authorization (optional) + * @return BatchSyncResponse + * @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 BatchSyncResponse batchSyncLinksInstancesInstanceIdModulesModuleNameModelNameBatchSyncLinksPut(String moduleName, String modelName, UUID instanceId, BatchSyncLinksBody batchSyncLinksBody, String authorization) throws ApiException { + ApiResponse localVarResp = batchSyncLinksInstancesInstanceIdModulesModuleNameModelNameBatchSyncLinksPutWithHttpInfo(moduleName, modelName, instanceId, batchSyncLinksBody, authorization); + return localVarResp.getData(); + } + + /** + * Synchronize sets of links for multiple scopes in a single call + * + * @param moduleName (required) + * @param modelName (required) + * @param instanceId (required) + * @param batchSyncLinksBody (required) + * @param authorization (optional) + * @return ApiResponse<BatchSyncResponse> + * @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 batchSyncLinksInstancesInstanceIdModulesModuleNameModelNameBatchSyncLinksPutWithHttpInfo(String moduleName, String modelName, UUID instanceId, BatchSyncLinksBody batchSyncLinksBody, String authorization) throws ApiException { + okhttp3.Call localVarCall = batchSyncLinksInstancesInstanceIdModulesModuleNameModelNameBatchSyncLinksPutValidateBeforeCall(moduleName, modelName, instanceId, batchSyncLinksBody, authorization, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * Synchronize sets of links for multiple scopes in a single call (asynchronously) + * + * @param moduleName (required) + * @param modelName (required) + * @param instanceId (required) + * @param batchSyncLinksBody (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 batchSyncLinksInstancesInstanceIdModulesModuleNameModelNameBatchSyncLinksPutAsync(String moduleName, String modelName, UUID instanceId, BatchSyncLinksBody batchSyncLinksBody, String authorization, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = batchSyncLinksInstancesInstanceIdModulesModuleNameModelNameBatchSyncLinksPutValidateBeforeCall(moduleName, modelName, instanceId, batchSyncLinksBody, authorization, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + /** + * Build call for batchUpdateRecordsInstancesInstanceIdModulesModuleNameModelNameBatchUpdatePatch + * @param moduleName (required) + * @param modelName (required) + * @param instanceId (required) + * @param batchUpdateBody (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 update. Returns a list of the full, updated records. -
422 A record in the payload is missing a required index key. -
+ */ + public okhttp3.Call batchUpdateRecordsInstancesInstanceIdModulesModuleNameModelNameBatchUpdatePatchCall(String moduleName, String modelName, UUID instanceId, BatchUpdateBody batchUpdateBody, 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 = batchUpdateBody; + + // create path and map variables + String localVarPath = "/instances/{instance_id}/modules/{module_name}/{model_name}/batch-update" + .replace("{" + "module_name" + "}", localVarApiClient.escapeString(moduleName.toString())) + .replace("{" + "model_name" + "}", localVarApiClient.escapeString(modelName.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(); + + 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, "PATCH", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call batchUpdateRecordsInstancesInstanceIdModulesModuleNameModelNameBatchUpdatePatchValidateBeforeCall(String moduleName, String modelName, UUID instanceId, BatchUpdateBody batchUpdateBody, String authorization, final ApiCallback _callback) throws ApiException { + // verify the required parameter 'moduleName' is set + if (moduleName == null) { + throw new ApiException("Missing the required parameter 'moduleName' when calling batchUpdateRecordsInstancesInstanceIdModulesModuleNameModelNameBatchUpdatePatch(Async)"); + } + + // verify the required parameter 'modelName' is set + if (modelName == null) { + throw new ApiException("Missing the required parameter 'modelName' when calling batchUpdateRecordsInstancesInstanceIdModulesModuleNameModelNameBatchUpdatePatch(Async)"); + } + + // verify the required parameter 'instanceId' is set + if (instanceId == null) { + throw new ApiException("Missing the required parameter 'instanceId' when calling batchUpdateRecordsInstancesInstanceIdModulesModuleNameModelNameBatchUpdatePatch(Async)"); + } + + // verify the required parameter 'batchUpdateBody' is set + if (batchUpdateBody == null) { + throw new ApiException("Missing the required parameter 'batchUpdateBody' when calling batchUpdateRecordsInstancesInstanceIdModulesModuleNameModelNameBatchUpdatePatch(Async)"); + } + + return batchUpdateRecordsInstancesInstanceIdModulesModuleNameModelNameBatchUpdatePatchCall(moduleName, modelName, instanceId, batchUpdateBody, authorization, _callback); + + } + + /** + * Update one or more records in a batch + * Partially updates multiple records in a single request. This endpoint processes a list of records, updating each one in the database. It is designed to handle heterogeneous partial updates, meaning each record in the batch can update a different set of fields. + * @param moduleName (required) + * @param modelName (required) + * @param instanceId (required) + * @param batchUpdateBody (required) + * @param authorization (optional) + * @return List<Map<String, 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 update. Returns a list of the full, updated records. -
422 A record in the payload is missing a required index key. -
+ */ + public List> batchUpdateRecordsInstancesInstanceIdModulesModuleNameModelNameBatchUpdatePatch(String moduleName, String modelName, UUID instanceId, BatchUpdateBody batchUpdateBody, String authorization) throws ApiException { + ApiResponse>> localVarResp = batchUpdateRecordsInstancesInstanceIdModulesModuleNameModelNameBatchUpdatePatchWithHttpInfo(moduleName, modelName, instanceId, batchUpdateBody, authorization); + return localVarResp.getData(); + } + + /** + * Update one or more records in a batch + * Partially updates multiple records in a single request. This endpoint processes a list of records, updating each one in the database. It is designed to handle heterogeneous partial updates, meaning each record in the batch can update a different set of fields. + * @param moduleName (required) + * @param modelName (required) + * @param instanceId (required) + * @param batchUpdateBody (required) + * @param authorization (optional) + * @return ApiResponse<List<Map<String, 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 update. Returns a list of the full, updated records. -
422 A record in the payload is missing a required index key. -
+ */ + public ApiResponse>> batchUpdateRecordsInstancesInstanceIdModulesModuleNameModelNameBatchUpdatePatchWithHttpInfo(String moduleName, String modelName, UUID instanceId, BatchUpdateBody batchUpdateBody, String authorization) throws ApiException { + okhttp3.Call localVarCall = batchUpdateRecordsInstancesInstanceIdModulesModuleNameModelNameBatchUpdatePatchValidateBeforeCall(moduleName, modelName, instanceId, batchUpdateBody, authorization, null); + Type localVarReturnType = new TypeToken>>(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * Update one or more records in a batch (asynchronously) + * Partially updates multiple records in a single request. This endpoint processes a list of records, updating each one in the database. It is designed to handle heterogeneous partial updates, meaning each record in the batch can update a different set of fields. + * @param moduleName (required) + * @param modelName (required) + * @param instanceId (required) + * @param batchUpdateBody (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 update. Returns a list of the full, updated records. -
422 A record in the payload is missing a required index key. -
+ */ + public okhttp3.Call batchUpdateRecordsInstancesInstanceIdModulesModuleNameModelNameBatchUpdatePatchAsync(String moduleName, String modelName, UUID instanceId, BatchUpdateBody batchUpdateBody, String authorization, final ApiCallback>> _callback) throws ApiException { + + okhttp3.Call localVarCall = batchUpdateRecordsInstancesInstanceIdModulesModuleNameModelNameBatchUpdatePatchValidateBeforeCall(moduleName, modelName, instanceId, batchUpdateBody, authorization, _callback); + Type localVarReturnType = new TypeToken>>(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + /** + * Build call for createRecordsInstancesInstanceIdModulesModuleNameModelNamePut + * @param moduleName (required) + * @param modelName (required) + * @param instanceId (required) + * @param body (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 createRecordsInstancesInstanceIdModulesModuleNameModelNamePutCall(String moduleName, String modelName, UUID instanceId, Object body, 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 = body; + + // create path and map variables + String localVarPath = "/instances/{instance_id}/modules/{module_name}/{model_name}" + .replace("{" + "module_name" + "}", localVarApiClient.escapeString(moduleName.toString())) + .replace("{" + "model_name" + "}", localVarApiClient.escapeString(modelName.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(); + + 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, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call createRecordsInstancesInstanceIdModulesModuleNameModelNamePutValidateBeforeCall(String moduleName, String modelName, UUID instanceId, Object body, String authorization, final ApiCallback _callback) throws ApiException { + // verify the required parameter 'moduleName' is set + if (moduleName == null) { + throw new ApiException("Missing the required parameter 'moduleName' when calling createRecordsInstancesInstanceIdModulesModuleNameModelNamePut(Async)"); + } + + // verify the required parameter 'modelName' is set + if (modelName == null) { + throw new ApiException("Missing the required parameter 'modelName' when calling createRecordsInstancesInstanceIdModulesModuleNameModelNamePut(Async)"); + } + + // verify the required parameter 'instanceId' is set + if (instanceId == null) { + throw new ApiException("Missing the required parameter 'instanceId' when calling createRecordsInstancesInstanceIdModulesModuleNameModelNamePut(Async)"); + } + + // verify the required parameter 'body' is set + if (body == null) { + throw new ApiException("Missing the required parameter 'body' when calling createRecordsInstancesInstanceIdModulesModuleNameModelNamePut(Async)"); + } + + return createRecordsInstancesInstanceIdModulesModuleNameModelNamePutCall(moduleName, modelName, instanceId, body, authorization, _callback); + + } + + /** + * Create Records + * + * @param moduleName (required) + * @param modelName (required) + * @param instanceId (required) + * @param body (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 createRecordsInstancesInstanceIdModulesModuleNameModelNamePut(String moduleName, String modelName, UUID instanceId, Object body, String authorization) throws ApiException { + ApiResponse localVarResp = createRecordsInstancesInstanceIdModulesModuleNameModelNamePutWithHttpInfo(moduleName, modelName, instanceId, body, authorization); + return localVarResp.getData(); + } + + /** + * Create Records + * + * @param moduleName (required) + * @param modelName (required) + * @param instanceId (required) + * @param body (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 createRecordsInstancesInstanceIdModulesModuleNameModelNamePutWithHttpInfo(String moduleName, String modelName, UUID instanceId, Object body, String authorization) throws ApiException { + okhttp3.Call localVarCall = createRecordsInstancesInstanceIdModulesModuleNameModelNamePutValidateBeforeCall(moduleName, modelName, instanceId, body, authorization, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * Create Records (asynchronously) + * + * @param moduleName (required) + * @param modelName (required) + * @param instanceId (required) + * @param body (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 createRecordsInstancesInstanceIdModulesModuleNameModelNamePutAsync(String moduleName, String modelName, UUID instanceId, Object body, String authorization, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = createRecordsInstancesInstanceIdModulesModuleNameModelNamePutValidateBeforeCall(moduleName, modelName, instanceId, body, authorization, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + /** + * Build call for deleteRecordInstancesInstanceIdModulesModuleNameModelNameUidDelete + * @param moduleName (required) + * @param modelName (required) + * @param uid (required) + * @param instanceId (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 deleteRecordInstancesInstanceIdModulesModuleNameModelNameUidDeleteCall(String moduleName, String modelName, String uid, UUID instanceId, 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}/modules/{module_name}/{model_name}/{uid}" + .replace("{" + "module_name" + "}", localVarApiClient.escapeString(moduleName.toString())) + .replace("{" + "model_name" + "}", localVarApiClient.escapeString(modelName.toString())) + .replace("{" + "uid" + "}", localVarApiClient.escapeString(uid.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(); + + 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, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call deleteRecordInstancesInstanceIdModulesModuleNameModelNameUidDeleteValidateBeforeCall(String moduleName, String modelName, String uid, UUID instanceId, String authorization, final ApiCallback _callback) throws ApiException { + // verify the required parameter 'moduleName' is set + if (moduleName == null) { + throw new ApiException("Missing the required parameter 'moduleName' when calling deleteRecordInstancesInstanceIdModulesModuleNameModelNameUidDelete(Async)"); + } + + // verify the required parameter 'modelName' is set + if (modelName == null) { + throw new ApiException("Missing the required parameter 'modelName' when calling deleteRecordInstancesInstanceIdModulesModuleNameModelNameUidDelete(Async)"); + } + + // verify the required parameter 'uid' is set + if (uid == null) { + throw new ApiException("Missing the required parameter 'uid' when calling deleteRecordInstancesInstanceIdModulesModuleNameModelNameUidDelete(Async)"); + } + + // verify the required parameter 'instanceId' is set + if (instanceId == null) { + throw new ApiException("Missing the required parameter 'instanceId' when calling deleteRecordInstancesInstanceIdModulesModuleNameModelNameUidDelete(Async)"); + } + + return deleteRecordInstancesInstanceIdModulesModuleNameModelNameUidDeleteCall(moduleName, modelName, uid, instanceId, authorization, _callback); + + } + + /** + * Delete Record + * + * @param moduleName (required) + * @param modelName (required) + * @param uid (required) + * @param instanceId (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 deleteRecordInstancesInstanceIdModulesModuleNameModelNameUidDelete(String moduleName, String modelName, String uid, UUID instanceId, String authorization) throws ApiException { + ApiResponse localVarResp = deleteRecordInstancesInstanceIdModulesModuleNameModelNameUidDeleteWithHttpInfo(moduleName, modelName, uid, instanceId, authorization); + return localVarResp.getData(); + } + + /** + * Delete Record + * + * @param moduleName (required) + * @param modelName (required) + * @param uid (required) + * @param instanceId (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 deleteRecordInstancesInstanceIdModulesModuleNameModelNameUidDeleteWithHttpInfo(String moduleName, String modelName, String uid, UUID instanceId, String authorization) throws ApiException { + okhttp3.Call localVarCall = deleteRecordInstancesInstanceIdModulesModuleNameModelNameUidDeleteValidateBeforeCall(moduleName, modelName, uid, instanceId, authorization, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * Delete Record (asynchronously) + * + * @param moduleName (required) + * @param modelName (required) + * @param uid (required) + * @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 deleteRecordInstancesInstanceIdModulesModuleNameModelNameUidDeleteAsync(String moduleName, String modelName, String uid, UUID instanceId, String authorization, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = deleteRecordInstancesInstanceIdModulesModuleNameModelNameUidDeleteValidateBeforeCall(moduleName, modelName, uid, instanceId, authorization, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + /** + * Build call for exportRecordsInstancesInstanceIdRecordsUidExportPost + * @param uid (required) + * @param instanceId (required) + * @param authorization (optional) + * @param exportRecordsRequestBody (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 exportRecordsInstancesInstanceIdRecordsUidExportPostCall(String uid, UUID instanceId, String authorization, ExportRecordsRequestBody exportRecordsRequestBody, 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 = exportRecordsRequestBody; + + // create path and map variables + String localVarPath = "/instances/{instance_id}/records/{uid}/export" + .replace("{" + "uid" + "}", localVarApiClient.escapeString(uid.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(); + + 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 exportRecordsInstancesInstanceIdRecordsUidExportPostValidateBeforeCall(String uid, UUID instanceId, String authorization, ExportRecordsRequestBody exportRecordsRequestBody, final ApiCallback _callback) throws ApiException { + // verify the required parameter 'uid' is set + if (uid == null) { + throw new ApiException("Missing the required parameter 'uid' when calling exportRecordsInstancesInstanceIdRecordsUidExportPost(Async)"); + } + + // verify the required parameter 'instanceId' is set + if (instanceId == null) { + throw new ApiException("Missing the required parameter 'instanceId' when calling exportRecordsInstancesInstanceIdRecordsUidExportPost(Async)"); + } + + return exportRecordsInstancesInstanceIdRecordsUidExportPostCall(uid, instanceId, authorization, exportRecordsRequestBody, _callback); + + } + + /** + * Export Records + * + * @param uid (required) + * @param instanceId (required) + * @param authorization (optional) + * @param exportRecordsRequestBody (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 exportRecordsInstancesInstanceIdRecordsUidExportPost(String uid, UUID instanceId, String authorization, ExportRecordsRequestBody exportRecordsRequestBody) throws ApiException { + ApiResponse localVarResp = exportRecordsInstancesInstanceIdRecordsUidExportPostWithHttpInfo(uid, instanceId, authorization, exportRecordsRequestBody); + return localVarResp.getData(); + } + + /** + * Export Records + * + * @param uid (required) + * @param instanceId (required) + * @param authorization (optional) + * @param exportRecordsRequestBody (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 exportRecordsInstancesInstanceIdRecordsUidExportPostWithHttpInfo(String uid, UUID instanceId, String authorization, ExportRecordsRequestBody exportRecordsRequestBody) throws ApiException { + okhttp3.Call localVarCall = exportRecordsInstancesInstanceIdRecordsUidExportPostValidateBeforeCall(uid, instanceId, authorization, exportRecordsRequestBody, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * Export Records (asynchronously) + * + * @param uid (required) + * @param instanceId (required) + * @param authorization (optional) + * @param exportRecordsRequestBody (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 exportRecordsInstancesInstanceIdRecordsUidExportPostAsync(String uid, UUID instanceId, String authorization, ExportRecordsRequestBody exportRecordsRequestBody, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = exportRecordsInstancesInstanceIdRecordsUidExportPostValidateBeforeCall(uid, instanceId, authorization, exportRecordsRequestBody, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + /** + * Build call for getRecordInstancesInstanceIdModulesModuleNameModelNameIdOrUidPost + * @param moduleName (required) + * @param modelName (required) + * @param idOrUid (required) + * @param instanceId (required) + * @param limitToMany (optional, default to 10) + * @param includeForeignKeys (optional, default to false) + * @param authorization (optional) + * @param getRecordRequestBody (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 getRecordInstancesInstanceIdModulesModuleNameModelNameIdOrUidPostCall(String moduleName, String modelName, String idOrUid, UUID instanceId, Integer limitToMany, Boolean includeForeignKeys, String authorization, GetRecordRequestBody getRecordRequestBody, 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 = getRecordRequestBody; + + // create path and map variables + String localVarPath = "/instances/{instance_id}/modules/{module_name}/{model_name}/{id_or_uid}" + .replace("{" + "module_name" + "}", localVarApiClient.escapeString(moduleName.toString())) + .replace("{" + "model_name" + "}", localVarApiClient.escapeString(modelName.toString())) + .replace("{" + "id_or_uid" + "}", localVarApiClient.escapeString(idOrUid.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 (limitToMany != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("limit_to_many", limitToMany)); + } + + if (includeForeignKeys != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("include_foreign_keys", includeForeignKeys)); + } + + 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 getRecordInstancesInstanceIdModulesModuleNameModelNameIdOrUidPostValidateBeforeCall(String moduleName, String modelName, String idOrUid, UUID instanceId, Integer limitToMany, Boolean includeForeignKeys, String authorization, GetRecordRequestBody getRecordRequestBody, final ApiCallback _callback) throws ApiException { + // verify the required parameter 'moduleName' is set + if (moduleName == null) { + throw new ApiException("Missing the required parameter 'moduleName' when calling getRecordInstancesInstanceIdModulesModuleNameModelNameIdOrUidPost(Async)"); + } + + // verify the required parameter 'modelName' is set + if (modelName == null) { + throw new ApiException("Missing the required parameter 'modelName' when calling getRecordInstancesInstanceIdModulesModuleNameModelNameIdOrUidPost(Async)"); + } + + // verify the required parameter 'idOrUid' is set + if (idOrUid == null) { + throw new ApiException("Missing the required parameter 'idOrUid' when calling getRecordInstancesInstanceIdModulesModuleNameModelNameIdOrUidPost(Async)"); + } + + // verify the required parameter 'instanceId' is set + if (instanceId == null) { + throw new ApiException("Missing the required parameter 'instanceId' when calling getRecordInstancesInstanceIdModulesModuleNameModelNameIdOrUidPost(Async)"); + } + + return getRecordInstancesInstanceIdModulesModuleNameModelNameIdOrUidPostCall(moduleName, modelName, idOrUid, instanceId, limitToMany, includeForeignKeys, authorization, getRecordRequestBody, _callback); + + } + + /** + * Get Record + * + * @param moduleName (required) + * @param modelName (required) + * @param idOrUid (required) + * @param instanceId (required) + * @param limitToMany (optional, default to 10) + * @param includeForeignKeys (optional, default to false) + * @param authorization (optional) + * @param getRecordRequestBody (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 getRecordInstancesInstanceIdModulesModuleNameModelNameIdOrUidPost(String moduleName, String modelName, String idOrUid, UUID instanceId, Integer limitToMany, Boolean includeForeignKeys, String authorization, GetRecordRequestBody getRecordRequestBody) throws ApiException { + ApiResponse localVarResp = getRecordInstancesInstanceIdModulesModuleNameModelNameIdOrUidPostWithHttpInfo(moduleName, modelName, idOrUid, instanceId, limitToMany, includeForeignKeys, authorization, getRecordRequestBody); + return localVarResp.getData(); + } + + /** + * Get Record + * + * @param moduleName (required) + * @param modelName (required) + * @param idOrUid (required) + * @param instanceId (required) + * @param limitToMany (optional, default to 10) + * @param includeForeignKeys (optional, default to false) + * @param authorization (optional) + * @param getRecordRequestBody (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 getRecordInstancesInstanceIdModulesModuleNameModelNameIdOrUidPostWithHttpInfo(String moduleName, String modelName, String idOrUid, UUID instanceId, Integer limitToMany, Boolean includeForeignKeys, String authorization, GetRecordRequestBody getRecordRequestBody) throws ApiException { + okhttp3.Call localVarCall = getRecordInstancesInstanceIdModulesModuleNameModelNameIdOrUidPostValidateBeforeCall(moduleName, modelName, idOrUid, instanceId, limitToMany, includeForeignKeys, authorization, getRecordRequestBody, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * Get Record (asynchronously) + * + * @param moduleName (required) + * @param modelName (required) + * @param idOrUid (required) + * @param instanceId (required) + * @param limitToMany (optional, default to 10) + * @param includeForeignKeys (optional, default to false) + * @param authorization (optional) + * @param getRecordRequestBody (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 getRecordInstancesInstanceIdModulesModuleNameModelNameIdOrUidPostAsync(String moduleName, String modelName, String idOrUid, UUID instanceId, Integer limitToMany, Boolean includeForeignKeys, String authorization, GetRecordRequestBody getRecordRequestBody, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = getRecordInstancesInstanceIdModulesModuleNameModelNameIdOrUidPostValidateBeforeCall(moduleName, modelName, idOrUid, instanceId, limitToMany, includeForeignKeys, authorization, getRecordRequestBody, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + /** + * Build call for getRecordsInstancesInstanceIdModulesModuleNameModelNamePost + * @param moduleName (required) + * @param modelName (required) + * @param instanceId (required) + * @param limit (optional, default to 50) + * @param offset (optional, default to 0) + * @param limitToMany (optional, default to 10) + * @param includeForeignKeys (optional, default to false) + * @param authorization (optional) + * @param getRecordsRequestBody (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 getRecordsInstancesInstanceIdModulesModuleNameModelNamePostCall(String moduleName, String modelName, UUID instanceId, Integer limit, Integer offset, Integer limitToMany, Boolean includeForeignKeys, String authorization, GetRecordsRequestBody getRecordsRequestBody, 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 = getRecordsRequestBody; + + // create path and map variables + String localVarPath = "/instances/{instance_id}/modules/{module_name}/{model_name}" + .replace("{" + "module_name" + "}", localVarApiClient.escapeString(moduleName.toString())) + .replace("{" + "model_name" + "}", localVarApiClient.escapeString(modelName.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 (limit != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("limit", limit)); + } + + if (offset != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("offset", offset)); + } + + if (limitToMany != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("limit_to_many", limitToMany)); + } + + if (includeForeignKeys != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("include_foreign_keys", includeForeignKeys)); + } + + 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 getRecordsInstancesInstanceIdModulesModuleNameModelNamePostValidateBeforeCall(String moduleName, String modelName, UUID instanceId, Integer limit, Integer offset, Integer limitToMany, Boolean includeForeignKeys, String authorization, GetRecordsRequestBody getRecordsRequestBody, final ApiCallback _callback) throws ApiException { + // verify the required parameter 'moduleName' is set + if (moduleName == null) { + throw new ApiException("Missing the required parameter 'moduleName' when calling getRecordsInstancesInstanceIdModulesModuleNameModelNamePost(Async)"); + } + + // verify the required parameter 'modelName' is set + if (modelName == null) { + throw new ApiException("Missing the required parameter 'modelName' when calling getRecordsInstancesInstanceIdModulesModuleNameModelNamePost(Async)"); + } + + // verify the required parameter 'instanceId' is set + if (instanceId == null) { + throw new ApiException("Missing the required parameter 'instanceId' when calling getRecordsInstancesInstanceIdModulesModuleNameModelNamePost(Async)"); + } + + return getRecordsInstancesInstanceIdModulesModuleNameModelNamePostCall(moduleName, modelName, instanceId, limit, offset, limitToMany, includeForeignKeys, authorization, getRecordsRequestBody, _callback); + + } + + /** + * Get Records + * + * @param moduleName (required) + * @param modelName (required) + * @param instanceId (required) + * @param limit (optional, default to 50) + * @param offset (optional, default to 0) + * @param limitToMany (optional, default to 10) + * @param includeForeignKeys (optional, default to false) + * @param authorization (optional) + * @param getRecordsRequestBody (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 getRecordsInstancesInstanceIdModulesModuleNameModelNamePost(String moduleName, String modelName, UUID instanceId, Integer limit, Integer offset, Integer limitToMany, Boolean includeForeignKeys, String authorization, GetRecordsRequestBody getRecordsRequestBody) throws ApiException { + ApiResponse localVarResp = getRecordsInstancesInstanceIdModulesModuleNameModelNamePostWithHttpInfo(moduleName, modelName, instanceId, limit, offset, limitToMany, includeForeignKeys, authorization, getRecordsRequestBody); + return localVarResp.getData(); + } + + /** + * Get Records + * + * @param moduleName (required) + * @param modelName (required) + * @param instanceId (required) + * @param limit (optional, default to 50) + * @param offset (optional, default to 0) + * @param limitToMany (optional, default to 10) + * @param includeForeignKeys (optional, default to false) + * @param authorization (optional) + * @param getRecordsRequestBody (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 getRecordsInstancesInstanceIdModulesModuleNameModelNamePostWithHttpInfo(String moduleName, String modelName, UUID instanceId, Integer limit, Integer offset, Integer limitToMany, Boolean includeForeignKeys, String authorization, GetRecordsRequestBody getRecordsRequestBody) throws ApiException { + okhttp3.Call localVarCall = getRecordsInstancesInstanceIdModulesModuleNameModelNamePostValidateBeforeCall(moduleName, modelName, instanceId, limit, offset, limitToMany, includeForeignKeys, authorization, getRecordsRequestBody, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * Get Records (asynchronously) + * + * @param moduleName (required) + * @param modelName (required) + * @param instanceId (required) + * @param limit (optional, default to 50) + * @param offset (optional, default to 0) + * @param limitToMany (optional, default to 10) + * @param includeForeignKeys (optional, default to false) + * @param authorization (optional) + * @param getRecordsRequestBody (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 getRecordsInstancesInstanceIdModulesModuleNameModelNamePostAsync(String moduleName, String modelName, UUID instanceId, Integer limit, Integer offset, Integer limitToMany, Boolean includeForeignKeys, String authorization, GetRecordsRequestBody getRecordsRequestBody, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = getRecordsInstancesInstanceIdModulesModuleNameModelNamePostValidateBeforeCall(moduleName, modelName, instanceId, limit, offset, limitToMany, includeForeignKeys, authorization, getRecordsRequestBody, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + /** + * Build call for getRelativesInstancesInstanceIdModulesModuleNameModelNameRelativesPost + * @param moduleName (required) + * @param modelName (required) + * @param instanceId (required) + * @param request (required) + * @param limit The maximum number of relative records to return. (optional, default to 100) + * @param offset The offset for paginating through the results. (optional, default to 0) + * @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 getRelativesInstancesInstanceIdModulesModuleNameModelNameRelativesPostCall(String moduleName, String modelName, UUID instanceId, Request request, Integer limit, Integer offset, 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 = request; + + // create path and map variables + String localVarPath = "/instances/{instance_id}/modules/{module_name}/{model_name}/relatives" + .replace("{" + "module_name" + "}", localVarApiClient.escapeString(moduleName.toString())) + .replace("{" + "model_name" + "}", localVarApiClient.escapeString(modelName.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 (limit != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("limit", limit)); + } + + if (offset != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("offset", offset)); + } + + 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 getRelativesInstancesInstanceIdModulesModuleNameModelNameRelativesPostValidateBeforeCall(String moduleName, String modelName, UUID instanceId, Request request, Integer limit, Integer offset, String authorization, final ApiCallback _callback) throws ApiException { + // verify the required parameter 'moduleName' is set + if (moduleName == null) { + throw new ApiException("Missing the required parameter 'moduleName' when calling getRelativesInstancesInstanceIdModulesModuleNameModelNameRelativesPost(Async)"); + } + + // verify the required parameter 'modelName' is set + if (modelName == null) { + throw new ApiException("Missing the required parameter 'modelName' when calling getRelativesInstancesInstanceIdModulesModuleNameModelNameRelativesPost(Async)"); + } + + // verify the required parameter 'instanceId' is set + if (instanceId == null) { + throw new ApiException("Missing the required parameter 'instanceId' when calling getRelativesInstancesInstanceIdModulesModuleNameModelNameRelativesPost(Async)"); + } + + // verify the required parameter 'request' is set + if (request == null) { + throw new ApiException("Missing the required parameter 'request' when calling getRelativesInstancesInstanceIdModulesModuleNameModelNameRelativesPost(Async)"); + } + + return getRelativesInstancesInstanceIdModulesModuleNameModelNameRelativesPostCall(moduleName, modelName, instanceId, request, limit, offset, authorization, _callback); + + } + + /** + * Get and query hierarchical relatives of records + * Finds and queries all relatives (ancestors or descendants) for a given set of records. This endpoint first performs a recursive traversal to identify a complete set of related records. It then applies standard query parameters (filter, sort, search, select, etc.) to that set. **Traversal Strategies:** The endpoint intelligently discovers the relationship structure from the schema: 1. **ManyToMany Graph:** It first looks for an explicit `parents` or `children` relationship field, which is assumed to be a Directed Acyclic Graph (DAG). 2. **ForeignKey Tree:** If a ManyToMany field is not found, it falls back to traversing a self-referential `type` field, which is assumed to represent a parent-pointer tree. + * @param moduleName (required) + * @param modelName (required) + * @param instanceId (required) + * @param request (required) + * @param limit The maximum number of relative records to return. (optional, default to 100) + * @param offset The offset for paginating through the results. (optional, default to 0) + * @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 getRelativesInstancesInstanceIdModulesModuleNameModelNameRelativesPost(String moduleName, String modelName, UUID instanceId, Request request, Integer limit, Integer offset, String authorization) throws ApiException { + ApiResponse localVarResp = getRelativesInstancesInstanceIdModulesModuleNameModelNameRelativesPostWithHttpInfo(moduleName, modelName, instanceId, request, limit, offset, authorization); + return localVarResp.getData(); + } + + /** + * Get and query hierarchical relatives of records + * Finds and queries all relatives (ancestors or descendants) for a given set of records. This endpoint first performs a recursive traversal to identify a complete set of related records. It then applies standard query parameters (filter, sort, search, select, etc.) to that set. **Traversal Strategies:** The endpoint intelligently discovers the relationship structure from the schema: 1. **ManyToMany Graph:** It first looks for an explicit `parents` or `children` relationship field, which is assumed to be a Directed Acyclic Graph (DAG). 2. **ForeignKey Tree:** If a ManyToMany field is not found, it falls back to traversing a self-referential `type` field, which is assumed to represent a parent-pointer tree. + * @param moduleName (required) + * @param modelName (required) + * @param instanceId (required) + * @param request (required) + * @param limit The maximum number of relative records to return. (optional, default to 100) + * @param offset The offset for paginating through the results. (optional, default to 0) + * @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 getRelativesInstancesInstanceIdModulesModuleNameModelNameRelativesPostWithHttpInfo(String moduleName, String modelName, UUID instanceId, Request request, Integer limit, Integer offset, String authorization) throws ApiException { + okhttp3.Call localVarCall = getRelativesInstancesInstanceIdModulesModuleNameModelNameRelativesPostValidateBeforeCall(moduleName, modelName, instanceId, request, limit, offset, authorization, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * Get and query hierarchical relatives of records (asynchronously) + * Finds and queries all relatives (ancestors or descendants) for a given set of records. This endpoint first performs a recursive traversal to identify a complete set of related records. It then applies standard query parameters (filter, sort, search, select, etc.) to that set. **Traversal Strategies:** The endpoint intelligently discovers the relationship structure from the schema: 1. **ManyToMany Graph:** It first looks for an explicit `parents` or `children` relationship field, which is assumed to be a Directed Acyclic Graph (DAG). 2. **ForeignKey Tree:** If a ManyToMany field is not found, it falls back to traversing a self-referential `type` field, which is assumed to represent a parent-pointer tree. + * @param moduleName (required) + * @param modelName (required) + * @param instanceId (required) + * @param request (required) + * @param limit The maximum number of relative records to return. (optional, default to 100) + * @param offset The offset for paginating through the results. (optional, default to 0) + * @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 getRelativesInstancesInstanceIdModulesModuleNameModelNameRelativesPostAsync(String moduleName, String modelName, UUID instanceId, Request request, Integer limit, Integer offset, String authorization, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = getRelativesInstancesInstanceIdModulesModuleNameModelNameRelativesPostValidateBeforeCall(moduleName, modelName, instanceId, request, limit, offset, authorization, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + /** + * Build call for getValuesInstancesInstanceIdModulesModuleNameModelNameFieldsFieldPathPost + * @param moduleName (required) + * @param modelName (required) + * @param fieldPath (required) + * @param instanceId (required) + * @param limit (optional, default to 50) + * @param offset (optional, default to 0) + * @param authorization (optional) + * @param getValuesRequestBody (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 getValuesInstancesInstanceIdModulesModuleNameModelNameFieldsFieldPathPostCall(String moduleName, String modelName, String fieldPath, UUID instanceId, Integer limit, Integer offset, String authorization, GetValuesRequestBody getValuesRequestBody, 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 = getValuesRequestBody; + + // create path and map variables + String localVarPath = "/instances/{instance_id}/modules/{module_name}/{model_name}/fields/{field_path}" + .replace("{" + "module_name" + "}", localVarApiClient.escapeString(moduleName.toString())) + .replace("{" + "model_name" + "}", localVarApiClient.escapeString(modelName.toString())) + .replace("{" + "field_path" + "}", localVarApiClient.escapeString(fieldPath.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 (limit != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("limit", limit)); + } + + if (offset != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("offset", offset)); + } + + 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 getValuesInstancesInstanceIdModulesModuleNameModelNameFieldsFieldPathPostValidateBeforeCall(String moduleName, String modelName, String fieldPath, UUID instanceId, Integer limit, Integer offset, String authorization, GetValuesRequestBody getValuesRequestBody, final ApiCallback _callback) throws ApiException { + // verify the required parameter 'moduleName' is set + if (moduleName == null) { + throw new ApiException("Missing the required parameter 'moduleName' when calling getValuesInstancesInstanceIdModulesModuleNameModelNameFieldsFieldPathPost(Async)"); + } + + // verify the required parameter 'modelName' is set + if (modelName == null) { + throw new ApiException("Missing the required parameter 'modelName' when calling getValuesInstancesInstanceIdModulesModuleNameModelNameFieldsFieldPathPost(Async)"); + } + + // verify the required parameter 'fieldPath' is set + if (fieldPath == null) { + throw new ApiException("Missing the required parameter 'fieldPath' when calling getValuesInstancesInstanceIdModulesModuleNameModelNameFieldsFieldPathPost(Async)"); + } + + // verify the required parameter 'instanceId' is set + if (instanceId == null) { + throw new ApiException("Missing the required parameter 'instanceId' when calling getValuesInstancesInstanceIdModulesModuleNameModelNameFieldsFieldPathPost(Async)"); + } + + return getValuesInstancesInstanceIdModulesModuleNameModelNameFieldsFieldPathPostCall(moduleName, modelName, fieldPath, instanceId, limit, offset, authorization, getValuesRequestBody, _callback); + + } + + /** + * Get Values + * + * @param moduleName (required) + * @param modelName (required) + * @param fieldPath (required) + * @param instanceId (required) + * @param limit (optional, default to 50) + * @param offset (optional, default to 0) + * @param authorization (optional) + * @param getValuesRequestBody (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 getValuesInstancesInstanceIdModulesModuleNameModelNameFieldsFieldPathPost(String moduleName, String modelName, String fieldPath, UUID instanceId, Integer limit, Integer offset, String authorization, GetValuesRequestBody getValuesRequestBody) throws ApiException { + ApiResponse localVarResp = getValuesInstancesInstanceIdModulesModuleNameModelNameFieldsFieldPathPostWithHttpInfo(moduleName, modelName, fieldPath, instanceId, limit, offset, authorization, getValuesRequestBody); + return localVarResp.getData(); + } + + /** + * Get Values + * + * @param moduleName (required) + * @param modelName (required) + * @param fieldPath (required) + * @param instanceId (required) + * @param limit (optional, default to 50) + * @param offset (optional, default to 0) + * @param authorization (optional) + * @param getValuesRequestBody (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 getValuesInstancesInstanceIdModulesModuleNameModelNameFieldsFieldPathPostWithHttpInfo(String moduleName, String modelName, String fieldPath, UUID instanceId, Integer limit, Integer offset, String authorization, GetValuesRequestBody getValuesRequestBody) throws ApiException { + okhttp3.Call localVarCall = getValuesInstancesInstanceIdModulesModuleNameModelNameFieldsFieldPathPostValidateBeforeCall(moduleName, modelName, fieldPath, instanceId, limit, offset, authorization, getValuesRequestBody, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * Get Values (asynchronously) + * + * @param moduleName (required) + * @param modelName (required) + * @param fieldPath (required) + * @param instanceId (required) + * @param limit (optional, default to 50) + * @param offset (optional, default to 0) + * @param authorization (optional) + * @param getValuesRequestBody (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 getValuesInstancesInstanceIdModulesModuleNameModelNameFieldsFieldPathPostAsync(String moduleName, String modelName, String fieldPath, UUID instanceId, Integer limit, Integer offset, String authorization, GetValuesRequestBody getValuesRequestBody, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = getValuesInstancesInstanceIdModulesModuleNameModelNameFieldsFieldPathPostValidateBeforeCall(moduleName, modelName, fieldPath, instanceId, limit, offset, authorization, getValuesRequestBody, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + /** + * Build call for updateRecordInstancesInstanceIdModulesModuleNameModelNameUidPatch + * @param moduleName (required) + * @param modelName (required) + * @param uid (required) + * @param instanceId (required) + * @param body (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 updateRecordInstancesInstanceIdModulesModuleNameModelNameUidPatchCall(String moduleName, String modelName, String uid, UUID instanceId, Object body, 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 = body; + + // create path and map variables + String localVarPath = "/instances/{instance_id}/modules/{module_name}/{model_name}/{uid}" + .replace("{" + "module_name" + "}", localVarApiClient.escapeString(moduleName.toString())) + .replace("{" + "model_name" + "}", localVarApiClient.escapeString(modelName.toString())) + .replace("{" + "uid" + "}", localVarApiClient.escapeString(uid.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(); + + 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, "PATCH", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call updateRecordInstancesInstanceIdModulesModuleNameModelNameUidPatchValidateBeforeCall(String moduleName, String modelName, String uid, UUID instanceId, Object body, String authorization, final ApiCallback _callback) throws ApiException { + // verify the required parameter 'moduleName' is set + if (moduleName == null) { + throw new ApiException("Missing the required parameter 'moduleName' when calling updateRecordInstancesInstanceIdModulesModuleNameModelNameUidPatch(Async)"); + } + + // verify the required parameter 'modelName' is set + if (modelName == null) { + throw new ApiException("Missing the required parameter 'modelName' when calling updateRecordInstancesInstanceIdModulesModuleNameModelNameUidPatch(Async)"); + } + + // verify the required parameter 'uid' is set + if (uid == null) { + throw new ApiException("Missing the required parameter 'uid' when calling updateRecordInstancesInstanceIdModulesModuleNameModelNameUidPatch(Async)"); + } + + // verify the required parameter 'instanceId' is set + if (instanceId == null) { + throw new ApiException("Missing the required parameter 'instanceId' when calling updateRecordInstancesInstanceIdModulesModuleNameModelNameUidPatch(Async)"); + } + + // verify the required parameter 'body' is set + if (body == null) { + throw new ApiException("Missing the required parameter 'body' when calling updateRecordInstancesInstanceIdModulesModuleNameModelNameUidPatch(Async)"); + } + + return updateRecordInstancesInstanceIdModulesModuleNameModelNameUidPatchCall(moduleName, modelName, uid, instanceId, body, authorization, _callback); + + } + + /** + * Update Record + * + * @param moduleName (required) + * @param modelName (required) + * @param uid (required) + * @param instanceId (required) + * @param body (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 updateRecordInstancesInstanceIdModulesModuleNameModelNameUidPatch(String moduleName, String modelName, String uid, UUID instanceId, Object body, String authorization) throws ApiException { + ApiResponse localVarResp = updateRecordInstancesInstanceIdModulesModuleNameModelNameUidPatchWithHttpInfo(moduleName, modelName, uid, instanceId, body, authorization); + return localVarResp.getData(); + } + + /** + * Update Record + * + * @param moduleName (required) + * @param modelName (required) + * @param uid (required) + * @param instanceId (required) + * @param body (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 updateRecordInstancesInstanceIdModulesModuleNameModelNameUidPatchWithHttpInfo(String moduleName, String modelName, String uid, UUID instanceId, Object body, String authorization) throws ApiException { + okhttp3.Call localVarCall = updateRecordInstancesInstanceIdModulesModuleNameModelNameUidPatchValidateBeforeCall(moduleName, modelName, uid, instanceId, body, authorization, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * Update Record (asynchronously) + * + * @param moduleName (required) + * @param modelName (required) + * @param uid (required) + * @param instanceId (required) + * @param body (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 updateRecordInstancesInstanceIdModulesModuleNameModelNameUidPatchAsync(String moduleName, String modelName, String uid, UUID instanceId, Object body, String authorization, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = updateRecordInstancesInstanceIdModulesModuleNameModelNameUidPatchValidateBeforeCall(moduleName, modelName, uid, instanceId, body, authorization, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + /** + * Build call for upsertRecordsInstancesInstanceIdModulesModuleNameModelNameUpsertPut + * @param moduleName (required) + * @param modelName (required) + * @param instanceId (required) + * @param conflictColumns A list of column names that define the unique key for conflict resolution. This must correspond to a unique constraint or index in the database. (required) + * @param body (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. Returns a list of the full, upserted records as they exist in the database. -
400 The 'conflict_columns' query parameter was not provided. -
404 The specified module or model name was not found. -
422 The request payload is invalid (e.g., a record is missing a required conflict key, or the conflict key is not a valid unique constraint in the database). -
+ */ + public okhttp3.Call upsertRecordsInstancesInstanceIdModulesModuleNameModelNameUpsertPutCall(String moduleName, String modelName, UUID instanceId, List conflictColumns, Body body, 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 = body; + + // create path and map variables + String localVarPath = "/instances/{instance_id}/modules/{module_name}/{model_name}/upsert" + .replace("{" + "module_name" + "}", localVarApiClient.escapeString(moduleName.toString())) + .replace("{" + "model_name" + "}", localVarApiClient.escapeString(modelName.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 (conflictColumns != null) { + localVarCollectionQueryParams.addAll(localVarApiClient.parameterToPairs("multi", "conflict_columns", conflictColumns)); + } + + 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, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call upsertRecordsInstancesInstanceIdModulesModuleNameModelNameUpsertPutValidateBeforeCall(String moduleName, String modelName, UUID instanceId, List conflictColumns, Body body, String authorization, final ApiCallback _callback) throws ApiException { + // verify the required parameter 'moduleName' is set + if (moduleName == null) { + throw new ApiException("Missing the required parameter 'moduleName' when calling upsertRecordsInstancesInstanceIdModulesModuleNameModelNameUpsertPut(Async)"); + } + + // verify the required parameter 'modelName' is set + if (modelName == null) { + throw new ApiException("Missing the required parameter 'modelName' when calling upsertRecordsInstancesInstanceIdModulesModuleNameModelNameUpsertPut(Async)"); + } + + // verify the required parameter 'instanceId' is set + if (instanceId == null) { + throw new ApiException("Missing the required parameter 'instanceId' when calling upsertRecordsInstancesInstanceIdModulesModuleNameModelNameUpsertPut(Async)"); + } + + // verify the required parameter 'conflictColumns' is set + if (conflictColumns == null) { + throw new ApiException("Missing the required parameter 'conflictColumns' when calling upsertRecordsInstancesInstanceIdModulesModuleNameModelNameUpsertPut(Async)"); + } + + // verify the required parameter 'body' is set + if (body == null) { + throw new ApiException("Missing the required parameter 'body' when calling upsertRecordsInstancesInstanceIdModulesModuleNameModelNameUpsertPut(Async)"); + } + + return upsertRecordsInstancesInstanceIdModulesModuleNameModelNameUpsertPutCall(moduleName, modelName, instanceId, conflictColumns, body, authorization, _callback); + + } + + /** + * Upsert one or more records + * Insert new records or update existing ones based on a conflict key. + * @param moduleName (required) + * @param modelName (required) + * @param instanceId (required) + * @param conflictColumns A list of column names that define the unique key for conflict resolution. This must correspond to a unique constraint or index in the database. (required) + * @param body (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. Returns a list of the full, upserted records as they exist in the database. -
400 The 'conflict_columns' query parameter was not provided. -
404 The specified module or model name was not found. -
422 The request payload is invalid (e.g., a record is missing a required conflict key, or the conflict key is not a valid unique constraint in the database). -
+ */ + public Object upsertRecordsInstancesInstanceIdModulesModuleNameModelNameUpsertPut(String moduleName, String modelName, UUID instanceId, List conflictColumns, Body body, String authorization) throws ApiException { + ApiResponse localVarResp = upsertRecordsInstancesInstanceIdModulesModuleNameModelNameUpsertPutWithHttpInfo(moduleName, modelName, instanceId, conflictColumns, body, authorization); + return localVarResp.getData(); + } + + /** + * Upsert one or more records + * Insert new records or update existing ones based on a conflict key. + * @param moduleName (required) + * @param modelName (required) + * @param instanceId (required) + * @param conflictColumns A list of column names that define the unique key for conflict resolution. This must correspond to a unique constraint or index in the database. (required) + * @param body (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. Returns a list of the full, upserted records as they exist in the database. -
400 The 'conflict_columns' query parameter was not provided. -
404 The specified module or model name was not found. -
422 The request payload is invalid (e.g., a record is missing a required conflict key, or the conflict key is not a valid unique constraint in the database). -
+ */ + public ApiResponse upsertRecordsInstancesInstanceIdModulesModuleNameModelNameUpsertPutWithHttpInfo(String moduleName, String modelName, UUID instanceId, List conflictColumns, Body body, String authorization) throws ApiException { + okhttp3.Call localVarCall = upsertRecordsInstancesInstanceIdModulesModuleNameModelNameUpsertPutValidateBeforeCall(moduleName, modelName, instanceId, conflictColumns, body, authorization, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * Upsert one or more records (asynchronously) + * Insert new records or update existing ones based on a conflict key. + * @param moduleName (required) + * @param modelName (required) + * @param instanceId (required) + * @param conflictColumns A list of column names that define the unique key for conflict resolution. This must correspond to a unique constraint or index in the database. (required) + * @param body (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. Returns a list of the full, upserted records as they exist in the database. -
400 The 'conflict_columns' query parameter was not provided. -
404 The specified module or model name was not found. -
422 The request payload is invalid (e.g., a record is missing a required conflict key, or the conflict key is not a valid unique constraint in the database). -
+ */ + public okhttp3.Call upsertRecordsInstancesInstanceIdModulesModuleNameModelNameUpsertPutAsync(String moduleName, String modelName, UUID instanceId, List conflictColumns, Body body, String authorization, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = upsertRecordsInstancesInstanceIdModulesModuleNameModelNameUpsertPutValidateBeforeCall(moduleName, modelName, instanceId, conflictColumns, body, authorization, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } +} diff --git a/src/main/java/ai/lamin/lamin_api_client/api/InstanceSchemaApi.java b/src/main/java/ai/lamin/lamin_api_client/api/InstanceSchemaApi.java new file mode 100644 index 0000000..0952b6e --- /dev/null +++ b/src/main/java/ai/lamin/lamin_api_client/api/InstanceSchemaApi.java @@ -0,0 +1,376 @@ +/* + * 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.api; + +import ai.lamin.lamin_api_client.ApiCallback; +import ai.lamin.lamin_api_client.ApiClient; +import ai.lamin.lamin_api_client.ApiException; +import ai.lamin.lamin_api_client.ApiResponse; +import ai.lamin.lamin_api_client.Configuration; +import ai.lamin.lamin_api_client.Pair; +import ai.lamin.lamin_api_client.ProgressRequestBody; +import ai.lamin.lamin_api_client.ProgressResponseBody; + +import com.google.gson.reflect.TypeToken; + +import java.io.IOException; + + +import ai.lamin.lamin_api_client.model.HTTPValidationError; +import java.util.UUID; + +import java.lang.reflect.Type; +import java.util.ArrayList; +import java.util.HashMap; +import java.util.List; +import java.util.Map; + +public class InstanceSchemaApi { + private ApiClient localVarApiClient; + private int localHostIndex; + private String localCustomBaseUrl; + + public InstanceSchemaApi() { + this(Configuration.getDefaultApiClient()); + } + + public InstanceSchemaApi(ApiClient apiClient) { + this.localVarApiClient = apiClient; + } + + public ApiClient getApiClient() { + return localVarApiClient; + } + + public void setApiClient(ApiClient apiClient) { + this.localVarApiClient = apiClient; + } + + public int getHostIndex() { + return localHostIndex; + } + + public void setHostIndex(int hostIndex) { + this.localHostIndex = hostIndex; + } + + public String getCustomBaseUrl() { + return localCustomBaseUrl; + } + + public void setCustomBaseUrl(String customBaseUrl) { + this.localCustomBaseUrl = customBaseUrl; + } + + /** + * Build call for getRelationsInstancesInstanceIdSchemaModuleNameModelNameGet + * @param moduleName (required) + * @param modelName (required) + * @param instanceId (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 getRelationsInstancesInstanceIdSchemaModuleNameModelNameGetCall(String moduleName, String modelName, UUID instanceId, 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}/schema/{module_name}/{model_name}" + .replace("{" + "module_name" + "}", localVarApiClient.escapeString(moduleName.toString())) + .replace("{" + "model_name" + "}", localVarApiClient.escapeString(modelName.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(); + + 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 getRelationsInstancesInstanceIdSchemaModuleNameModelNameGetValidateBeforeCall(String moduleName, String modelName, UUID instanceId, String authorization, final ApiCallback _callback) throws ApiException { + // verify the required parameter 'moduleName' is set + if (moduleName == null) { + throw new ApiException("Missing the required parameter 'moduleName' when calling getRelationsInstancesInstanceIdSchemaModuleNameModelNameGet(Async)"); + } + + // verify the required parameter 'modelName' is set + if (modelName == null) { + throw new ApiException("Missing the required parameter 'modelName' when calling getRelationsInstancesInstanceIdSchemaModuleNameModelNameGet(Async)"); + } + + // verify the required parameter 'instanceId' is set + if (instanceId == null) { + throw new ApiException("Missing the required parameter 'instanceId' when calling getRelationsInstancesInstanceIdSchemaModuleNameModelNameGet(Async)"); + } + + return getRelationsInstancesInstanceIdSchemaModuleNameModelNameGetCall(moduleName, modelName, instanceId, authorization, _callback); + + } + + /** + * Get Relations + * + * @param moduleName (required) + * @param modelName (required) + * @param instanceId (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 getRelationsInstancesInstanceIdSchemaModuleNameModelNameGet(String moduleName, String modelName, UUID instanceId, String authorization) throws ApiException { + ApiResponse localVarResp = getRelationsInstancesInstanceIdSchemaModuleNameModelNameGetWithHttpInfo(moduleName, modelName, instanceId, authorization); + return localVarResp.getData(); + } + + /** + * Get Relations + * + * @param moduleName (required) + * @param modelName (required) + * @param instanceId (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 getRelationsInstancesInstanceIdSchemaModuleNameModelNameGetWithHttpInfo(String moduleName, String modelName, UUID instanceId, String authorization) throws ApiException { + okhttp3.Call localVarCall = getRelationsInstancesInstanceIdSchemaModuleNameModelNameGetValidateBeforeCall(moduleName, modelName, instanceId, authorization, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * Get Relations (asynchronously) + * + * @param moduleName (required) + * @param modelName (required) + * @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 getRelationsInstancesInstanceIdSchemaModuleNameModelNameGetAsync(String moduleName, String modelName, UUID instanceId, String authorization, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = getRelationsInstancesInstanceIdSchemaModuleNameModelNameGetValidateBeforeCall(moduleName, modelName, instanceId, authorization, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + /** + * Build call for getSchemaInstancesInstanceIdSchemaGet + * @param instanceId (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 getSchemaInstancesInstanceIdSchemaGetCall(UUID instanceId, 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}/schema" + .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 = { + }; + 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 getSchemaInstancesInstanceIdSchemaGetValidateBeforeCall(UUID instanceId, 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 getSchemaInstancesInstanceIdSchemaGet(Async)"); + } + + return getSchemaInstancesInstanceIdSchemaGetCall(instanceId, authorization, _callback); + + } + + /** + * Get Schema + * + * @param instanceId (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 getSchemaInstancesInstanceIdSchemaGet(UUID instanceId, String authorization) throws ApiException { + ApiResponse localVarResp = getSchemaInstancesInstanceIdSchemaGetWithHttpInfo(instanceId, authorization); + return localVarResp.getData(); + } + + /** + * Get Schema + * + * @param instanceId (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 getSchemaInstancesInstanceIdSchemaGetWithHttpInfo(UUID instanceId, String authorization) throws ApiException { + okhttp3.Call localVarCall = getSchemaInstancesInstanceIdSchemaGetValidateBeforeCall(instanceId, authorization, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * Get Schema (asynchronously) + * + * @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 getSchemaInstancesInstanceIdSchemaGetAsync(UUID instanceId, String authorization, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = getSchemaInstancesInstanceIdSchemaGetValidateBeforeCall(instanceId, authorization, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } +} diff --git a/src/main/java/ai/lamin/lamin_api_client/api/InstanceSearchApi.java b/src/main/java/ai/lamin/lamin_api_client/api/InstanceSearchApi.java new file mode 100644 index 0000000..2ebd668 --- /dev/null +++ b/src/main/java/ai/lamin/lamin_api_client/api/InstanceSearchApi.java @@ -0,0 +1,229 @@ +/* + * 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.api; + +import ai.lamin.lamin_api_client.ApiCallback; +import ai.lamin.lamin_api_client.ApiClient; +import ai.lamin.lamin_api_client.ApiException; +import ai.lamin.lamin_api_client.ApiResponse; +import ai.lamin.lamin_api_client.Configuration; +import ai.lamin.lamin_api_client.Pair; +import ai.lamin.lamin_api_client.ProgressRequestBody; +import ai.lamin.lamin_api_client.ProgressResponseBody; + +import com.google.gson.reflect.TypeToken; + +import java.io.IOException; + + +import ai.lamin.lamin_api_client.model.HTTPValidationError; +import java.util.UUID; + +import java.lang.reflect.Type; +import java.util.ArrayList; +import java.util.HashMap; +import java.util.List; +import java.util.Map; + +public class InstanceSearchApi { + private ApiClient localVarApiClient; + private int localHostIndex; + private String localCustomBaseUrl; + + public InstanceSearchApi() { + this(Configuration.getDefaultApiClient()); + } + + public InstanceSearchApi(ApiClient apiClient) { + this.localVarApiClient = apiClient; + } + + public ApiClient getApiClient() { + return localVarApiClient; + } + + public void setApiClient(ApiClient apiClient) { + this.localVarApiClient = apiClient; + } + + public int getHostIndex() { + return localHostIndex; + } + + public void setHostIndex(int hostIndex) { + this.localHostIndex = hostIndex; + } + + public String getCustomBaseUrl() { + return localCustomBaseUrl; + } + + public void setCustomBaseUrl(String customBaseUrl) { + this.localCustomBaseUrl = customBaseUrl; + } + + /** + * Build call for globalSearchInstancesInstanceIdSearchGet + * @param instanceId (required) + * @param searchTerm (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 globalSearchInstancesInstanceIdSearchGetCall(UUID instanceId, String searchTerm, 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}/search" + .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 (searchTerm != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("search_term", searchTerm)); + } + + 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 globalSearchInstancesInstanceIdSearchGetValidateBeforeCall(UUID instanceId, String searchTerm, 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 globalSearchInstancesInstanceIdSearchGet(Async)"); + } + + // verify the required parameter 'searchTerm' is set + if (searchTerm == null) { + throw new ApiException("Missing the required parameter 'searchTerm' when calling globalSearchInstancesInstanceIdSearchGet(Async)"); + } + + return globalSearchInstancesInstanceIdSearchGetCall(instanceId, searchTerm, authorization, _callback); + + } + + /** + * Global Search + * + * @param instanceId (required) + * @param searchTerm (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 globalSearchInstancesInstanceIdSearchGet(UUID instanceId, String searchTerm, String authorization) throws ApiException { + ApiResponse localVarResp = globalSearchInstancesInstanceIdSearchGetWithHttpInfo(instanceId, searchTerm, authorization); + return localVarResp.getData(); + } + + /** + * Global Search + * + * @param instanceId (required) + * @param searchTerm (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 globalSearchInstancesInstanceIdSearchGetWithHttpInfo(UUID instanceId, String searchTerm, String authorization) throws ApiException { + okhttp3.Call localVarCall = globalSearchInstancesInstanceIdSearchGetValidateBeforeCall(instanceId, searchTerm, authorization, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * Global Search (asynchronously) + * + * @param instanceId (required) + * @param searchTerm (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 globalSearchInstancesInstanceIdSearchGetAsync(UUID instanceId, String searchTerm, String authorization, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = globalSearchInstancesInstanceIdSearchGetValidateBeforeCall(instanceId, searchTerm, authorization, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } +} diff --git a/src/main/java/ai/lamin/lamin_api_client/api/InstanceStatisticsApi.java b/src/main/java/ai/lamin/lamin_api_client/api/InstanceStatisticsApi.java new file mode 100644 index 0000000..4ba10a8 --- /dev/null +++ b/src/main/java/ai/lamin/lamin_api_client/api/InstanceStatisticsApi.java @@ -0,0 +1,732 @@ +/* + * 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.api; + +import ai.lamin.lamin_api_client.ApiCallback; +import ai.lamin.lamin_api_client.ApiClient; +import ai.lamin.lamin_api_client.ApiException; +import ai.lamin.lamin_api_client.ApiResponse; +import ai.lamin.lamin_api_client.Configuration; +import ai.lamin.lamin_api_client.Pair; +import ai.lamin.lamin_api_client.ProgressRequestBody; +import ai.lamin.lamin_api_client.ProgressResponseBody; + +import com.google.gson.reflect.TypeToken; + +import java.io.IOException; + + +import ai.lamin.lamin_api_client.model.ErrorDetail; +import ai.lamin.lamin_api_client.model.GroupByRequestBody; +import ai.lamin.lamin_api_client.model.HTTPValidationError; +import ai.lamin.lamin_api_client.model.NonEmptyTablesResponse; +import ai.lamin.lamin_api_client.model.StatisticsResponse; +import java.util.UUID; + +import java.lang.reflect.Type; +import java.util.ArrayList; +import java.util.HashMap; +import java.util.List; +import java.util.Map; + +public class InstanceStatisticsApi { + private ApiClient localVarApiClient; + private int localHostIndex; + private String localCustomBaseUrl; + + public InstanceStatisticsApi() { + this(Configuration.getDefaultApiClient()); + } + + public InstanceStatisticsApi(ApiClient apiClient) { + this.localVarApiClient = apiClient; + } + + public ApiClient getApiClient() { + return localVarApiClient; + } + + public void setApiClient(ApiClient apiClient) { + this.localVarApiClient = apiClient; + } + + public int getHostIndex() { + return localHostIndex; + } + + public void setHostIndex(int hostIndex) { + this.localHostIndex = hostIndex; + } + + public String getCustomBaseUrl() { + return localCustomBaseUrl; + } + + public void setCustomBaseUrl(String customBaseUrl) { + this.localCustomBaseUrl = customBaseUrl; + } + + /** + * Build call for getInstanceStatisticsInstancesInstanceIdStatisticsGet + * @param instanceId (required) + * @param q A list of models in \"${module}.${model}\" format (case-sensitive). If omitted, statistics for all primary tables are returned. (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 -
400 Invalid model name format provided. -
403 Read access denied to the instance. -
404 Instance or requested model not found. -
422 Validation Error -
+ */ + public okhttp3.Call getInstanceStatisticsInstancesInstanceIdStatisticsGetCall(UUID instanceId, List q, 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}/statistics" + .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 (q != null) { + localVarCollectionQueryParams.addAll(localVarApiClient.parameterToPairs("multi", "q", q)); + } + + 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 getInstanceStatisticsInstancesInstanceIdStatisticsGetValidateBeforeCall(UUID instanceId, List q, 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 getInstanceStatisticsInstancesInstanceIdStatisticsGet(Async)"); + } + + return getInstanceStatisticsInstancesInstanceIdStatisticsGetCall(instanceId, q, authorization, _callback); + + } + + /** + * Get Approximate Table Row Counts and Artifact Size + * Retrieves instance statistics, including artifact size and table row counts. This endpoint uses a hybrid approach optimized for both accuracy and performance: - **Row Counts (`counts`)**: Uses a hybrid counting strategy: - For small tables (≤ 2000 estimated rows): **Exact counts** using `COUNT(*)` to ensure accuracy for small datasets. - For larger tables: **Fast approximations** based on PostgreSQL statistics catalog (`pg_class.reltuples`) for near-instant retrieval. These stats are updated periodically by database operations like `ANALYZE` and `AUTOVACUUM`. - **Artifact Size (`instance_size`)**: This is an **exact** real-time calculation, derived by performing a `SUM(size)` on the artifact table. + * @param instanceId (required) + * @param q A list of models in \"${module}.${model}\" format (case-sensitive). If omitted, statistics for all primary tables are returned. (optional) + * @param authorization (optional) + * @return StatisticsResponse + * @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 -
400 Invalid model name format provided. -
403 Read access denied to the instance. -
404 Instance or requested model not found. -
422 Validation Error -
+ */ + public StatisticsResponse getInstanceStatisticsInstancesInstanceIdStatisticsGet(UUID instanceId, List q, String authorization) throws ApiException { + ApiResponse localVarResp = getInstanceStatisticsInstancesInstanceIdStatisticsGetWithHttpInfo(instanceId, q, authorization); + return localVarResp.getData(); + } + + /** + * Get Approximate Table Row Counts and Artifact Size + * Retrieves instance statistics, including artifact size and table row counts. This endpoint uses a hybrid approach optimized for both accuracy and performance: - **Row Counts (`counts`)**: Uses a hybrid counting strategy: - For small tables (≤ 2000 estimated rows): **Exact counts** using `COUNT(*)` to ensure accuracy for small datasets. - For larger tables: **Fast approximations** based on PostgreSQL statistics catalog (`pg_class.reltuples`) for near-instant retrieval. These stats are updated periodically by database operations like `ANALYZE` and `AUTOVACUUM`. - **Artifact Size (`instance_size`)**: This is an **exact** real-time calculation, derived by performing a `SUM(size)` on the artifact table. + * @param instanceId (required) + * @param q A list of models in \"${module}.${model}\" format (case-sensitive). If omitted, statistics for all primary tables are returned. (optional) + * @param authorization (optional) + * @return ApiResponse<StatisticsResponse> + * @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 -
400 Invalid model name format provided. -
403 Read access denied to the instance. -
404 Instance or requested model not found. -
422 Validation Error -
+ */ + public ApiResponse getInstanceStatisticsInstancesInstanceIdStatisticsGetWithHttpInfo(UUID instanceId, List q, String authorization) throws ApiException { + okhttp3.Call localVarCall = getInstanceStatisticsInstancesInstanceIdStatisticsGetValidateBeforeCall(instanceId, q, authorization, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * Get Approximate Table Row Counts and Artifact Size (asynchronously) + * Retrieves instance statistics, including artifact size and table row counts. This endpoint uses a hybrid approach optimized for both accuracy and performance: - **Row Counts (`counts`)**: Uses a hybrid counting strategy: - For small tables (≤ 2000 estimated rows): **Exact counts** using `COUNT(*)` to ensure accuracy for small datasets. - For larger tables: **Fast approximations** based on PostgreSQL statistics catalog (`pg_class.reltuples`) for near-instant retrieval. These stats are updated periodically by database operations like `ANALYZE` and `AUTOVACUUM`. - **Artifact Size (`instance_size`)**: This is an **exact** real-time calculation, derived by performing a `SUM(size)` on the artifact table. + * @param instanceId (required) + * @param q A list of models in \"${module}.${model}\" format (case-sensitive). If omitted, statistics for all primary tables are returned. (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 -
400 Invalid model name format provided. -
403 Read access denied to the instance. -
404 Instance or requested model not found. -
422 Validation Error -
+ */ + public okhttp3.Call getInstanceStatisticsInstancesInstanceIdStatisticsGetAsync(UUID instanceId, List q, String authorization, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = getInstanceStatisticsInstancesInstanceIdStatisticsGetValidateBeforeCall(instanceId, q, authorization, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + /** + * Build call for getNonEmptyTablesInstancesInstanceIdNonEmptyTablesGet + * @param instanceId (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 -
403 Read access denied to the instance. -
404 Instance not accessible. -
500 Internal server error, such as a missing schema or database connection failure. -
422 Validation Error -
+ */ + public okhttp3.Call getNonEmptyTablesInstancesInstanceIdNonEmptyTablesGetCall(UUID instanceId, 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(); + + 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 getNonEmptyTablesInstancesInstanceIdNonEmptyTablesGetValidateBeforeCall(UUID instanceId, 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 getNonEmptyTablesInstancesInstanceIdNonEmptyTablesGet(Async)"); + } + + return getNonEmptyTablesInstancesInstanceIdNonEmptyTablesGetCall(instanceId, authorization, _callback); + + } + + /** + * List Non-Empty Data Tables by Module + * Analyzes the instance's database schema to identify all tables that contain data. This endpoint uses a hybrid approach optimized for both accuracy and performance: - **For small tables (≤ 2000 estimated rows)**: **Exact non-empty check** using `COUNT(*) > 0` to ensure accuracy for small datasets. - **For larger tables (> 2000 estimated rows)**: **Fast approximation** based on PostgreSQL statistics catalog (`pg_class.reltuples > 0`) for near-instant retrieval. These stats are updated periodically by database operations like `ANALYZE` and `AUTOVACUUM`. **Accuracy Note**: - Small tables: Guaranteed accurate non-empty detection - Large tables: May have acceptable false positives if all rows are deleted but space hasn't been reclaimed until `VACUUM FULL` or `TRUNCATE` is run. + * @param instanceId (required) + * @param authorization (optional) + * @return NonEmptyTablesResponse + * @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 -
403 Read access denied to the instance. -
404 Instance not accessible. -
500 Internal server error, such as a missing schema or database connection failure. -
422 Validation Error -
+ */ + public NonEmptyTablesResponse getNonEmptyTablesInstancesInstanceIdNonEmptyTablesGet(UUID instanceId, String authorization) throws ApiException { + ApiResponse localVarResp = getNonEmptyTablesInstancesInstanceIdNonEmptyTablesGetWithHttpInfo(instanceId, authorization); + return localVarResp.getData(); + } + + /** + * List Non-Empty Data Tables by Module + * Analyzes the instance's database schema to identify all tables that contain data. This endpoint uses a hybrid approach optimized for both accuracy and performance: - **For small tables (≤ 2000 estimated rows)**: **Exact non-empty check** using `COUNT(*) > 0` to ensure accuracy for small datasets. - **For larger tables (> 2000 estimated rows)**: **Fast approximation** based on PostgreSQL statistics catalog (`pg_class.reltuples > 0`) for near-instant retrieval. These stats are updated periodically by database operations like `ANALYZE` and `AUTOVACUUM`. **Accuracy Note**: - Small tables: Guaranteed accurate non-empty detection - Large tables: May have acceptable false positives if all rows are deleted but space hasn't been reclaimed until `VACUUM FULL` or `TRUNCATE` is run. + * @param instanceId (required) + * @param authorization (optional) + * @return ApiResponse<NonEmptyTablesResponse> + * @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 -
403 Read access denied to the instance. -
404 Instance not accessible. -
500 Internal server error, such as a missing schema or database connection failure. -
422 Validation Error -
+ */ + public ApiResponse getNonEmptyTablesInstancesInstanceIdNonEmptyTablesGetWithHttpInfo(UUID instanceId, String authorization) throws ApiException { + okhttp3.Call localVarCall = getNonEmptyTablesInstancesInstanceIdNonEmptyTablesGetValidateBeforeCall(instanceId, authorization, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * List Non-Empty Data Tables by Module (asynchronously) + * Analyzes the instance's database schema to identify all tables that contain data. This endpoint uses a hybrid approach optimized for both accuracy and performance: - **For small tables (≤ 2000 estimated rows)**: **Exact non-empty check** using `COUNT(*) > 0` to ensure accuracy for small datasets. - **For larger tables (> 2000 estimated rows)**: **Fast approximation** based on PostgreSQL statistics catalog (`pg_class.reltuples > 0`) for near-instant retrieval. These stats are updated periodically by database operations like `ANALYZE` and `AUTOVACUUM`. **Accuracy Note**: - Small tables: Guaranteed accurate non-empty detection - Large tables: May have acceptable false positives if all rows are deleted but space hasn't been reclaimed until `VACUUM FULL` or `TRUNCATE` is run. + * @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 -
403 Read access denied to the instance. -
404 Instance not accessible. -
500 Internal server error, such as a missing schema or database connection failure. -
422 Validation Error -
+ */ + public okhttp3.Call getNonEmptyTablesInstancesInstanceIdNonEmptyTablesGetAsync(UUID instanceId, String authorization, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = getNonEmptyTablesInstancesInstanceIdNonEmptyTablesGetValidateBeforeCall(instanceId, authorization, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + /** + * Build call for getRelationCountsInstancesInstanceIdModulesModuleNameModelNameIdCountsGet + * @param moduleName (required) + * @param modelName (required) + * @param id (required) + * @param instanceId (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 getRelationCountsInstancesInstanceIdModulesModuleNameModelNameIdCountsGetCall(String moduleName, String modelName, Integer id, UUID instanceId, 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}/modules/{module_name}/{model_name}/{id}/counts" + .replace("{" + "module_name" + "}", localVarApiClient.escapeString(moduleName.toString())) + .replace("{" + "model_name" + "}", localVarApiClient.escapeString(modelName.toString())) + .replace("{" + "id" + "}", localVarApiClient.escapeString(id.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(); + + 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 getRelationCountsInstancesInstanceIdModulesModuleNameModelNameIdCountsGetValidateBeforeCall(String moduleName, String modelName, Integer id, UUID instanceId, String authorization, final ApiCallback _callback) throws ApiException { + // verify the required parameter 'moduleName' is set + if (moduleName == null) { + throw new ApiException("Missing the required parameter 'moduleName' when calling getRelationCountsInstancesInstanceIdModulesModuleNameModelNameIdCountsGet(Async)"); + } + + // verify the required parameter 'modelName' is set + if (modelName == null) { + throw new ApiException("Missing the required parameter 'modelName' when calling getRelationCountsInstancesInstanceIdModulesModuleNameModelNameIdCountsGet(Async)"); + } + + // verify the required parameter 'id' is set + if (id == null) { + throw new ApiException("Missing the required parameter 'id' when calling getRelationCountsInstancesInstanceIdModulesModuleNameModelNameIdCountsGet(Async)"); + } + + // verify the required parameter 'instanceId' is set + if (instanceId == null) { + throw new ApiException("Missing the required parameter 'instanceId' when calling getRelationCountsInstancesInstanceIdModulesModuleNameModelNameIdCountsGet(Async)"); + } + + return getRelationCountsInstancesInstanceIdModulesModuleNameModelNameIdCountsGetCall(moduleName, modelName, id, instanceId, authorization, _callback); + + } + + /** + * Get Relation Counts + * + * @param moduleName (required) + * @param modelName (required) + * @param id (required) + * @param instanceId (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 getRelationCountsInstancesInstanceIdModulesModuleNameModelNameIdCountsGet(String moduleName, String modelName, Integer id, UUID instanceId, String authorization) throws ApiException { + ApiResponse localVarResp = getRelationCountsInstancesInstanceIdModulesModuleNameModelNameIdCountsGetWithHttpInfo(moduleName, modelName, id, instanceId, authorization); + return localVarResp.getData(); + } + + /** + * Get Relation Counts + * + * @param moduleName (required) + * @param modelName (required) + * @param id (required) + * @param instanceId (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 getRelationCountsInstancesInstanceIdModulesModuleNameModelNameIdCountsGetWithHttpInfo(String moduleName, String modelName, Integer id, UUID instanceId, String authorization) throws ApiException { + okhttp3.Call localVarCall = getRelationCountsInstancesInstanceIdModulesModuleNameModelNameIdCountsGetValidateBeforeCall(moduleName, modelName, id, instanceId, authorization, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * Get Relation Counts (asynchronously) + * + * @param moduleName (required) + * @param modelName (required) + * @param id (required) + * @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 getRelationCountsInstancesInstanceIdModulesModuleNameModelNameIdCountsGetAsync(String moduleName, String modelName, Integer id, UUID instanceId, String authorization, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = getRelationCountsInstancesInstanceIdModulesModuleNameModelNameIdCountsGetValidateBeforeCall(moduleName, modelName, id, instanceId, authorization, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + /** + * Build call for groupByInstancesInstanceIdModulesModuleNameModelNameGroupByPost + * @param moduleName (required) + * @param modelName (required) + * @param instanceId (required) + * @param groupByRequestBody (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 groupByInstancesInstanceIdModulesModuleNameModelNameGroupByPostCall(String moduleName, String modelName, UUID instanceId, GroupByRequestBody groupByRequestBody, 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 = groupByRequestBody; + + // create path and map variables + String localVarPath = "/instances/{instance_id}/modules/{module_name}/{model_name}/group-by" + .replace("{" + "module_name" + "}", localVarApiClient.escapeString(moduleName.toString())) + .replace("{" + "model_name" + "}", localVarApiClient.escapeString(modelName.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(); + + 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 groupByInstancesInstanceIdModulesModuleNameModelNameGroupByPostValidateBeforeCall(String moduleName, String modelName, UUID instanceId, GroupByRequestBody groupByRequestBody, String authorization, final ApiCallback _callback) throws ApiException { + // verify the required parameter 'moduleName' is set + if (moduleName == null) { + throw new ApiException("Missing the required parameter 'moduleName' when calling groupByInstancesInstanceIdModulesModuleNameModelNameGroupByPost(Async)"); + } + + // verify the required parameter 'modelName' is set + if (modelName == null) { + throw new ApiException("Missing the required parameter 'modelName' when calling groupByInstancesInstanceIdModulesModuleNameModelNameGroupByPost(Async)"); + } + + // verify the required parameter 'instanceId' is set + if (instanceId == null) { + throw new ApiException("Missing the required parameter 'instanceId' when calling groupByInstancesInstanceIdModulesModuleNameModelNameGroupByPost(Async)"); + } + + // verify the required parameter 'groupByRequestBody' is set + if (groupByRequestBody == null) { + throw new ApiException("Missing the required parameter 'groupByRequestBody' when calling groupByInstancesInstanceIdModulesModuleNameModelNameGroupByPost(Async)"); + } + + return groupByInstancesInstanceIdModulesModuleNameModelNameGroupByPostCall(moduleName, modelName, instanceId, groupByRequestBody, authorization, _callback); + + } + + /** + * Group By + * + * @param moduleName (required) + * @param modelName (required) + * @param instanceId (required) + * @param groupByRequestBody (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 groupByInstancesInstanceIdModulesModuleNameModelNameGroupByPost(String moduleName, String modelName, UUID instanceId, GroupByRequestBody groupByRequestBody, String authorization) throws ApiException { + ApiResponse localVarResp = groupByInstancesInstanceIdModulesModuleNameModelNameGroupByPostWithHttpInfo(moduleName, modelName, instanceId, groupByRequestBody, authorization); + return localVarResp.getData(); + } + + /** + * Group By + * + * @param moduleName (required) + * @param modelName (required) + * @param instanceId (required) + * @param groupByRequestBody (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 groupByInstancesInstanceIdModulesModuleNameModelNameGroupByPostWithHttpInfo(String moduleName, String modelName, UUID instanceId, GroupByRequestBody groupByRequestBody, String authorization) throws ApiException { + okhttp3.Call localVarCall = groupByInstancesInstanceIdModulesModuleNameModelNameGroupByPostValidateBeforeCall(moduleName, modelName, instanceId, groupByRequestBody, authorization, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * Group By (asynchronously) + * + * @param moduleName (required) + * @param modelName (required) + * @param instanceId (required) + * @param groupByRequestBody (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 groupByInstancesInstanceIdModulesModuleNameModelNameGroupByPostAsync(String moduleName, String modelName, UUID instanceId, GroupByRequestBody groupByRequestBody, String authorization, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = groupByInstancesInstanceIdModulesModuleNameModelNameGroupByPostValidateBeforeCall(moduleName, modelName, instanceId, groupByRequestBody, authorization, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } +} diff --git a/src/main/java/ai/lamin/lamin_api_client/api/InstanceTransformsApi.java b/src/main/java/ai/lamin/lamin_api_client/api/InstanceTransformsApi.java new file mode 100644 index 0000000..bf4e63c --- /dev/null +++ b/src/main/java/ai/lamin/lamin_api_client/api/InstanceTransformsApi.java @@ -0,0 +1,227 @@ +/* + * 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.api; + +import ai.lamin.lamin_api_client.ApiCallback; +import ai.lamin.lamin_api_client.ApiClient; +import ai.lamin.lamin_api_client.ApiException; +import ai.lamin.lamin_api_client.ApiResponse; +import ai.lamin.lamin_api_client.Configuration; +import ai.lamin.lamin_api_client.Pair; +import ai.lamin.lamin_api_client.ProgressRequestBody; +import ai.lamin.lamin_api_client.ProgressResponseBody; + +import com.google.gson.reflect.TypeToken; + +import java.io.IOException; + + +import ai.lamin.lamin_api_client.model.CreateTransformRequestBody; +import ai.lamin.lamin_api_client.model.HTTPValidationError; +import java.util.UUID; + +import java.lang.reflect.Type; +import java.util.ArrayList; +import java.util.HashMap; +import java.util.List; +import java.util.Map; + +public class InstanceTransformsApi { + private ApiClient localVarApiClient; + private int localHostIndex; + private String localCustomBaseUrl; + + public InstanceTransformsApi() { + this(Configuration.getDefaultApiClient()); + } + + public InstanceTransformsApi(ApiClient apiClient) { + this.localVarApiClient = apiClient; + } + + public ApiClient getApiClient() { + return localVarApiClient; + } + + public void setApiClient(ApiClient apiClient) { + this.localVarApiClient = apiClient; + } + + public int getHostIndex() { + return localHostIndex; + } + + public void setHostIndex(int hostIndex) { + this.localHostIndex = hostIndex; + } + + public String getCustomBaseUrl() { + return localCustomBaseUrl; + } + + public void setCustomBaseUrl(String customBaseUrl) { + this.localCustomBaseUrl = customBaseUrl; + } + + /** + * Build call for createTransformInstancesInstanceIdTransformsPost + * @param instanceId (required) + * @param createTransformRequestBody (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 createTransformInstancesInstanceIdTransformsPostCall(UUID instanceId, CreateTransformRequestBody createTransformRequestBody, 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 = createTransformRequestBody; + + // create path and map variables + String localVarPath = "/instances/{instance_id}/transforms" + .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 createTransformInstancesInstanceIdTransformsPostValidateBeforeCall(UUID instanceId, CreateTransformRequestBody createTransformRequestBody, 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 createTransformInstancesInstanceIdTransformsPost(Async)"); + } + + // verify the required parameter 'createTransformRequestBody' is set + if (createTransformRequestBody == null) { + throw new ApiException("Missing the required parameter 'createTransformRequestBody' when calling createTransformInstancesInstanceIdTransformsPost(Async)"); + } + + return createTransformInstancesInstanceIdTransformsPostCall(instanceId, createTransformRequestBody, authorization, _callback); + + } + + /** + * Create Transform + * + * @param instanceId (required) + * @param createTransformRequestBody (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 createTransformInstancesInstanceIdTransformsPost(UUID instanceId, CreateTransformRequestBody createTransformRequestBody, String authorization) throws ApiException { + ApiResponse localVarResp = createTransformInstancesInstanceIdTransformsPostWithHttpInfo(instanceId, createTransformRequestBody, authorization); + return localVarResp.getData(); + } + + /** + * Create Transform + * + * @param instanceId (required) + * @param createTransformRequestBody (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 createTransformInstancesInstanceIdTransformsPostWithHttpInfo(UUID instanceId, CreateTransformRequestBody createTransformRequestBody, String authorization) throws ApiException { + okhttp3.Call localVarCall = createTransformInstancesInstanceIdTransformsPostValidateBeforeCall(instanceId, createTransformRequestBody, authorization, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * Create Transform (asynchronously) + * + * @param instanceId (required) + * @param createTransformRequestBody (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 createTransformInstancesInstanceIdTransformsPostAsync(UUID instanceId, CreateTransformRequestBody createTransformRequestBody, String authorization, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = createTransformInstancesInstanceIdTransformsPostValidateBeforeCall(instanceId, createTransformRequestBody, authorization, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } +} diff --git a/src/main/java/ai/lamin/lamin_api_client/api/InstancesApi.java b/src/main/java/ai/lamin/lamin_api_client/api/InstancesApi.java new file mode 100644 index 0000000..6f98a6a --- /dev/null +++ b/src/main/java/ai/lamin/lamin_api_client/api/InstancesApi.java @@ -0,0 +1,1313 @@ +/* + * 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.api; + +import ai.lamin.lamin_api_client.ApiCallback; +import ai.lamin.lamin_api_client.ApiClient; +import ai.lamin.lamin_api_client.ApiException; +import ai.lamin.lamin_api_client.ApiResponse; +import ai.lamin.lamin_api_client.Configuration; +import ai.lamin.lamin_api_client.Pair; +import ai.lamin.lamin_api_client.ProgressRequestBody; +import ai.lamin.lamin_api_client.ProgressResponseBody; + +import com.google.gson.reflect.TypeToken; + +import java.io.IOException; + + +import ai.lamin.lamin_api_client.model.AddCollaboratorRequestBody; +import ai.lamin.lamin_api_client.model.HTTPValidationError; +import java.util.UUID; +import ai.lamin.lamin_api_client.model.UpdateCollaboratorRequestBody; + +import java.lang.reflect.Type; +import java.util.ArrayList; +import java.util.HashMap; +import java.util.List; +import java.util.Map; + +public class InstancesApi { + private ApiClient localVarApiClient; + private int localHostIndex; + private String localCustomBaseUrl; + + public InstancesApi() { + this(Configuration.getDefaultApiClient()); + } + + public InstancesApi(ApiClient apiClient) { + this.localVarApiClient = apiClient; + } + + public ApiClient getApiClient() { + return localVarApiClient; + } + + public void setApiClient(ApiClient apiClient) { + this.localVarApiClient = apiClient; + } + + public int getHostIndex() { + return localHostIndex; + } + + public void setHostIndex(int hostIndex) { + this.localHostIndex = hostIndex; + } + + public String getCustomBaseUrl() { + return localCustomBaseUrl; + } + + public void setCustomBaseUrl(String customBaseUrl) { + this.localCustomBaseUrl = customBaseUrl; + } + + /** + * Build call for addCollaboratorInstancesInstanceIdCollaboratorsPut + * @param instanceId (required) + * @param addCollaboratorRequestBody (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 addCollaboratorInstancesInstanceIdCollaboratorsPutCall(UUID instanceId, AddCollaboratorRequestBody addCollaboratorRequestBody, 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 = addCollaboratorRequestBody; + + // create path and map variables + String localVarPath = "/instances/{instance_id}/collaborators" + .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, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call addCollaboratorInstancesInstanceIdCollaboratorsPutValidateBeforeCall(UUID instanceId, AddCollaboratorRequestBody addCollaboratorRequestBody, 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 addCollaboratorInstancesInstanceIdCollaboratorsPut(Async)"); + } + + // verify the required parameter 'addCollaboratorRequestBody' is set + if (addCollaboratorRequestBody == null) { + throw new ApiException("Missing the required parameter 'addCollaboratorRequestBody' when calling addCollaboratorInstancesInstanceIdCollaboratorsPut(Async)"); + } + + return addCollaboratorInstancesInstanceIdCollaboratorsPutCall(instanceId, addCollaboratorRequestBody, authorization, _callback); + + } + + /** + * Add Collaborator + * Add a collaborator (account or team) to an instance. Parameters: - **instance_id**: UUID of the instance to add the collaborator to (from URL path) - **body**: Request body containing collaborator details - **account_id**: UUID of the account to add (mutually exclusive with team_id) - **team_id**: UUID of the team to add (mutually exclusive with account_id) - **role**: Role of the collaborator Returns: - **201**: Collaborator added successfully - **400**: Invalid input (e.g., both account_id and team_id provided) - **409**: Collaborator was already added Requires admin access to the instance + * @param instanceId (required) + * @param addCollaboratorRequestBody (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 addCollaboratorInstancesInstanceIdCollaboratorsPut(UUID instanceId, AddCollaboratorRequestBody addCollaboratorRequestBody, String authorization) throws ApiException { + ApiResponse localVarResp = addCollaboratorInstancesInstanceIdCollaboratorsPutWithHttpInfo(instanceId, addCollaboratorRequestBody, authorization); + return localVarResp.getData(); + } + + /** + * Add Collaborator + * Add a collaborator (account or team) to an instance. Parameters: - **instance_id**: UUID of the instance to add the collaborator to (from URL path) - **body**: Request body containing collaborator details - **account_id**: UUID of the account to add (mutually exclusive with team_id) - **team_id**: UUID of the team to add (mutually exclusive with account_id) - **role**: Role of the collaborator Returns: - **201**: Collaborator added successfully - **400**: Invalid input (e.g., both account_id and team_id provided) - **409**: Collaborator was already added Requires admin access to the instance + * @param instanceId (required) + * @param addCollaboratorRequestBody (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 addCollaboratorInstancesInstanceIdCollaboratorsPutWithHttpInfo(UUID instanceId, AddCollaboratorRequestBody addCollaboratorRequestBody, String authorization) throws ApiException { + okhttp3.Call localVarCall = addCollaboratorInstancesInstanceIdCollaboratorsPutValidateBeforeCall(instanceId, addCollaboratorRequestBody, authorization, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * Add Collaborator (asynchronously) + * Add a collaborator (account or team) to an instance. Parameters: - **instance_id**: UUID of the instance to add the collaborator to (from URL path) - **body**: Request body containing collaborator details - **account_id**: UUID of the account to add (mutually exclusive with team_id) - **team_id**: UUID of the team to add (mutually exclusive with account_id) - **role**: Role of the collaborator Returns: - **201**: Collaborator added successfully - **400**: Invalid input (e.g., both account_id and team_id provided) - **409**: Collaborator was already added Requires admin access to the instance + * @param instanceId (required) + * @param addCollaboratorRequestBody (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 addCollaboratorInstancesInstanceIdCollaboratorsPutAsync(UUID instanceId, AddCollaboratorRequestBody addCollaboratorRequestBody, String authorization, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = addCollaboratorInstancesInstanceIdCollaboratorsPutValidateBeforeCall(instanceId, addCollaboratorRequestBody, 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 dbServerName (optional) + * @param storageUid (optional) + * @param accountId (optional) + * @param instanceId (optional) + * @param authorization (optional) + * @param requestBody (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 createInstanceInstancesPutCall(String name, String storage, String schemaStr, String dbServerName, String storageUid, UUID accountId, UUID instanceId, String authorization, Map requestBody, 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 = requestBody; + + // create path and map variables + String localVarPath = "/instances"; + + 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)); + } + + if (storage != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("storage", storage)); + } + + if (schemaStr != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("schema_str", schemaStr)); + } + + if (dbServerName != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("db_server_name", dbServerName)); + } + + if (storageUid != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("storage_uid", storageUid)); + } + + if (accountId != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("account_id", accountId)); + } + + if (instanceId != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("instance_id", instanceId)); + } + + 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, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call createInstanceInstancesPutValidateBeforeCall(String name, String storage, String schemaStr, String dbServerName, String storageUid, UUID accountId, UUID instanceId, String authorization, Map requestBody, 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, dbServerName, storageUid, accountId, instanceId, authorization, requestBody, _callback); + + } + + /** + * Create Instance + * + * @param name (required) + * @param storage (optional, default to create-s3) + * @param schemaStr (optional) + * @param dbServerName (optional) + * @param storageUid (optional) + * @param accountId (optional) + * @param instanceId (optional) + * @param authorization (optional) + * @param requestBody (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 createInstanceInstancesPut(String name, String storage, String schemaStr, String dbServerName, String storageUid, UUID accountId, UUID instanceId, String authorization, Map requestBody) throws ApiException { + ApiResponse localVarResp = createInstanceInstancesPutWithHttpInfo(name, storage, schemaStr, dbServerName, storageUid, accountId, instanceId, authorization, requestBody); + return localVarResp.getData(); + } + + /** + * Create Instance + * + * @param name (required) + * @param storage (optional, default to create-s3) + * @param schemaStr (optional) + * @param dbServerName (optional) + * @param storageUid (optional) + * @param accountId (optional) + * @param instanceId (optional) + * @param authorization (optional) + * @param requestBody (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 createInstanceInstancesPutWithHttpInfo(String name, String storage, String schemaStr, String dbServerName, String storageUid, UUID accountId, UUID instanceId, String authorization, Map requestBody) throws ApiException { + okhttp3.Call localVarCall = createInstanceInstancesPutValidateBeforeCall(name, storage, schemaStr, dbServerName, storageUid, accountId, instanceId, authorization, requestBody, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * Create Instance (asynchronously) + * + * @param name (required) + * @param storage (optional, default to create-s3) + * @param schemaStr (optional) + * @param dbServerName (optional) + * @param storageUid (optional) + * @param accountId (optional) + * @param instanceId (optional) + * @param authorization (optional) + * @param requestBody (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 createInstanceInstancesPutAsync(String name, String storage, String schemaStr, String dbServerName, String storageUid, UUID accountId, UUID instanceId, String authorization, Map requestBody, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = createInstanceInstancesPutValidateBeforeCall(name, storage, schemaStr, dbServerName, storageUid, accountId, instanceId, authorization, requestBody, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + /** + * Build call for deleteInstanceInstancesInstanceIdDelete + * @param instanceId (required) + * @param instanceName (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 deleteInstanceInstancesInstanceIdDeleteCall(UUID instanceId, String instanceName, 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}" + .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 (instanceName != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("instance_name", instanceName)); + } + + 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, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call deleteInstanceInstancesInstanceIdDeleteValidateBeforeCall(UUID instanceId, String instanceName, 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 deleteInstanceInstancesInstanceIdDelete(Async)"); + } + + // verify the required parameter 'instanceName' is set + if (instanceName == null) { + throw new ApiException("Missing the required parameter 'instanceName' when calling deleteInstanceInstancesInstanceIdDelete(Async)"); + } + + return deleteInstanceInstancesInstanceIdDeleteCall(instanceId, instanceName, authorization, _callback); + + } + + /** + * Delete Instance + * + * @param instanceId (required) + * @param instanceName (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 deleteInstanceInstancesInstanceIdDelete(UUID instanceId, String instanceName, String authorization) throws ApiException { + ApiResponse localVarResp = deleteInstanceInstancesInstanceIdDeleteWithHttpInfo(instanceId, instanceName, authorization); + return localVarResp.getData(); + } + + /** + * Delete Instance + * + * @param instanceId (required) + * @param instanceName (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 deleteInstanceInstancesInstanceIdDeleteWithHttpInfo(UUID instanceId, String instanceName, String authorization) throws ApiException { + okhttp3.Call localVarCall = deleteInstanceInstancesInstanceIdDeleteValidateBeforeCall(instanceId, instanceName, authorization, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * Delete Instance (asynchronously) + * + * @param instanceId (required) + * @param instanceName (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 deleteInstanceInstancesInstanceIdDeleteAsync(UUID instanceId, String instanceName, String authorization, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = deleteInstanceInstancesInstanceIdDeleteValidateBeforeCall(instanceId, instanceName, authorization, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + /** + * Build call for listCollaboratorsInstancesInstanceIdCollaboratorsGet + * @param instanceId (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 listCollaboratorsInstancesInstanceIdCollaboratorsGetCall(UUID instanceId, 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}/collaborators" + .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 = { + }; + 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 listCollaboratorsInstancesInstanceIdCollaboratorsGetValidateBeforeCall(UUID instanceId, 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 listCollaboratorsInstancesInstanceIdCollaboratorsGet(Async)"); + } + + return listCollaboratorsInstancesInstanceIdCollaboratorsGetCall(instanceId, authorization, _callback); + + } + + /** + * 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 Requires read access to the instance + * @param instanceId (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 listCollaboratorsInstancesInstanceIdCollaboratorsGet(UUID instanceId, String authorization) throws ApiException { + ApiResponse localVarResp = listCollaboratorsInstancesInstanceIdCollaboratorsGetWithHttpInfo(instanceId, authorization); + return localVarResp.getData(); + } + + /** + * 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 Requires read access to the instance + * @param instanceId (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 listCollaboratorsInstancesInstanceIdCollaboratorsGetWithHttpInfo(UUID instanceId, String authorization) throws ApiException { + okhttp3.Call localVarCall = listCollaboratorsInstancesInstanceIdCollaboratorsGetValidateBeforeCall(instanceId, authorization, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * 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 listCollaboratorsInstancesInstanceIdCollaboratorsGetAsync(UUID instanceId, String authorization, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = listCollaboratorsInstancesInstanceIdCollaboratorsGetValidateBeforeCall(instanceId, authorization, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + /** + * Build call for migrateInstanceInstancesInstanceIdMigratePost + * @param instanceId (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 migrateInstanceInstancesInstanceIdMigratePostCall(UUID instanceId, 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}/migrate" + .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 = { + }; + 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 migrateInstanceInstancesInstanceIdMigratePostValidateBeforeCall(UUID instanceId, 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 migrateInstanceInstancesInstanceIdMigratePost(Async)"); + } + + return migrateInstanceInstancesInstanceIdMigratePostCall(instanceId, authorization, _callback); + + } + + /** + * Migrate Instance + * + * @param instanceId (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 migrateInstanceInstancesInstanceIdMigratePost(UUID instanceId, String authorization) throws ApiException { + ApiResponse localVarResp = migrateInstanceInstancesInstanceIdMigratePostWithHttpInfo(instanceId, authorization); + return localVarResp.getData(); + } + + /** + * Migrate Instance + * + * @param instanceId (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 migrateInstanceInstancesInstanceIdMigratePostWithHttpInfo(UUID instanceId, String authorization) throws ApiException { + okhttp3.Call localVarCall = migrateInstanceInstancesInstanceIdMigratePostValidateBeforeCall(instanceId, authorization, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * Migrate Instance (asynchronously) + * + * @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 migrateInstanceInstancesInstanceIdMigratePostAsync(UUID instanceId, String authorization, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = migrateInstanceInstancesInstanceIdMigratePostValidateBeforeCall(instanceId, authorization, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + /** + * Build call for removeCollaboratorInstancesInstanceIdCollaboratorsDelete + * @param instanceId (required) + * @param accountId (optional) + * @param teamId (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 removeCollaboratorInstancesInstanceIdCollaboratorsDeleteCall(UUID instanceId, UUID accountId, UUID teamId, 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}/collaborators" + .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 (accountId != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("account_id", accountId)); + } + + if (teamId != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("team_id", teamId)); + } + + 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, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call removeCollaboratorInstancesInstanceIdCollaboratorsDeleteValidateBeforeCall(UUID instanceId, UUID accountId, UUID teamId, 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 removeCollaboratorInstancesInstanceIdCollaboratorsDelete(Async)"); + } + + return removeCollaboratorInstancesInstanceIdCollaboratorsDeleteCall(instanceId, accountId, teamId, authorization, _callback); + + } + + /** + * 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) Requires admin access to the instance + * @param instanceId (required) + * @param accountId (optional) + * @param teamId (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 removeCollaboratorInstancesInstanceIdCollaboratorsDelete(UUID instanceId, UUID accountId, UUID teamId, String authorization) throws ApiException { + ApiResponse localVarResp = removeCollaboratorInstancesInstanceIdCollaboratorsDeleteWithHttpInfo(instanceId, accountId, teamId, authorization); + return localVarResp.getData(); + } + + /** + * 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) Requires admin access to the instance + * @param instanceId (required) + * @param accountId (optional) + * @param teamId (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 removeCollaboratorInstancesInstanceIdCollaboratorsDeleteWithHttpInfo(UUID instanceId, UUID accountId, UUID teamId, String authorization) throws ApiException { + okhttp3.Call localVarCall = removeCollaboratorInstancesInstanceIdCollaboratorsDeleteValidateBeforeCall(instanceId, accountId, teamId, authorization, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * 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) Requires admin access to the instance + * @param instanceId (required) + * @param accountId (optional) + * @param teamId (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 removeCollaboratorInstancesInstanceIdCollaboratorsDeleteAsync(UUID instanceId, UUID accountId, UUID teamId, String authorization, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = removeCollaboratorInstancesInstanceIdCollaboratorsDeleteValidateBeforeCall(instanceId, accountId, teamId, authorization, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + /** + * Build call for transferOwnershipInstancesInstanceIdOwnerHandlePatch + * @param handle (required) + * @param instanceId (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 transferOwnershipInstancesInstanceIdOwnerHandlePatchCall(String handle, UUID instanceId, 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}/owner/{handle}" + .replace("{" + "handle" + "}", localVarApiClient.escapeString(handle.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(); + + 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, "PATCH", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call transferOwnershipInstancesInstanceIdOwnerHandlePatchValidateBeforeCall(String handle, UUID instanceId, String authorization, final ApiCallback _callback) throws ApiException { + // verify the required parameter 'handle' is set + if (handle == null) { + throw new ApiException("Missing the required parameter 'handle' when calling transferOwnershipInstancesInstanceIdOwnerHandlePatch(Async)"); + } + + // verify the required parameter 'instanceId' is set + if (instanceId == null) { + throw new ApiException("Missing the required parameter 'instanceId' when calling transferOwnershipInstancesInstanceIdOwnerHandlePatch(Async)"); + } + + return transferOwnershipInstancesInstanceIdOwnerHandlePatchCall(handle, instanceId, authorization, _callback); + + } + + /** + * Transfer Ownership + * + * @param handle (required) + * @param instanceId (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 transferOwnershipInstancesInstanceIdOwnerHandlePatch(String handle, UUID instanceId, String authorization) throws ApiException { + ApiResponse localVarResp = transferOwnershipInstancesInstanceIdOwnerHandlePatchWithHttpInfo(handle, instanceId, authorization); + return localVarResp.getData(); + } + + /** + * Transfer Ownership + * + * @param handle (required) + * @param instanceId (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 transferOwnershipInstancesInstanceIdOwnerHandlePatchWithHttpInfo(String handle, UUID instanceId, String authorization) throws ApiException { + okhttp3.Call localVarCall = transferOwnershipInstancesInstanceIdOwnerHandlePatchValidateBeforeCall(handle, instanceId, authorization, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * Transfer Ownership (asynchronously) + * + * @param handle (required) + * @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 transferOwnershipInstancesInstanceIdOwnerHandlePatchAsync(String handle, UUID instanceId, String authorization, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = transferOwnershipInstancesInstanceIdOwnerHandlePatchValidateBeforeCall(handle, instanceId, authorization, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + /** + * Build call for updateCollaboratorInstancesInstanceIdCollaboratorsPatch + * @param instanceId (required) + * @param updateCollaboratorRequestBody (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 updateCollaboratorInstancesInstanceIdCollaboratorsPatchCall(UUID instanceId, UpdateCollaboratorRequestBody updateCollaboratorRequestBody, 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 = updateCollaboratorRequestBody; + + // create path and map variables + String localVarPath = "/instances/{instance_id}/collaborators" + .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, "PATCH", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call updateCollaboratorInstancesInstanceIdCollaboratorsPatchValidateBeforeCall(UUID instanceId, UpdateCollaboratorRequestBody updateCollaboratorRequestBody, 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 updateCollaboratorInstancesInstanceIdCollaboratorsPatch(Async)"); + } + + // verify the required parameter 'updateCollaboratorRequestBody' is set + if (updateCollaboratorRequestBody == null) { + throw new ApiException("Missing the required parameter 'updateCollaboratorRequestBody' when calling updateCollaboratorInstancesInstanceIdCollaboratorsPatch(Async)"); + } + + return updateCollaboratorInstancesInstanceIdCollaboratorsPatchCall(instanceId, updateCollaboratorRequestBody, authorization, _callback); + + } + + /** + * 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) Requires admin access to the instance + * @param instanceId (required) + * @param updateCollaboratorRequestBody (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 updateCollaboratorInstancesInstanceIdCollaboratorsPatch(UUID instanceId, UpdateCollaboratorRequestBody updateCollaboratorRequestBody, String authorization) throws ApiException { + ApiResponse localVarResp = updateCollaboratorInstancesInstanceIdCollaboratorsPatchWithHttpInfo(instanceId, updateCollaboratorRequestBody, authorization); + return localVarResp.getData(); + } + + /** + * 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) Requires admin access to the instance + * @param instanceId (required) + * @param updateCollaboratorRequestBody (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 updateCollaboratorInstancesInstanceIdCollaboratorsPatchWithHttpInfo(UUID instanceId, UpdateCollaboratorRequestBody updateCollaboratorRequestBody, String authorization) throws ApiException { + okhttp3.Call localVarCall = updateCollaboratorInstancesInstanceIdCollaboratorsPatchValidateBeforeCall(instanceId, updateCollaboratorRequestBody, authorization, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * 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) Requires admin access to the instance + * @param instanceId (required) + * @param updateCollaboratorRequestBody (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 updateCollaboratorInstancesInstanceIdCollaboratorsPatchAsync(UUID instanceId, UpdateCollaboratorRequestBody updateCollaboratorRequestBody, String authorization, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = updateCollaboratorInstancesInstanceIdCollaboratorsPatchValidateBeforeCall(instanceId, updateCollaboratorRequestBody, authorization, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } +} diff --git a/src/main/java/ai/lamin/lamin_api_client/api/OrganizationsApi.java b/src/main/java/ai/lamin/lamin_api_client/api/OrganizationsApi.java new file mode 100644 index 0000000..810ceff --- /dev/null +++ b/src/main/java/ai/lamin/lamin_api_client/api/OrganizationsApi.java @@ -0,0 +1,868 @@ +/* + * 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.api; + +import ai.lamin.lamin_api_client.ApiCallback; +import ai.lamin.lamin_api_client.ApiClient; +import ai.lamin.lamin_api_client.ApiException; +import ai.lamin.lamin_api_client.ApiResponse; +import ai.lamin.lamin_api_client.Configuration; +import ai.lamin.lamin_api_client.Pair; +import ai.lamin.lamin_api_client.ProgressRequestBody; +import ai.lamin.lamin_api_client.ProgressResponseBody; + +import com.google.gson.reflect.TypeToken; + +import java.io.IOException; + + +import ai.lamin.lamin_api_client.model.AddOrganizationMemberRequestBody; +import ai.lamin.lamin_api_client.model.HTTPValidationError; +import java.util.UUID; +import ai.lamin.lamin_api_client.model.UpdateOrganizationMemberRequestBody; + +import java.lang.reflect.Type; +import java.util.ArrayList; +import java.util.HashMap; +import java.util.List; +import java.util.Map; + +public class OrganizationsApi { + private ApiClient localVarApiClient; + private int localHostIndex; + private String localCustomBaseUrl; + + public OrganizationsApi() { + this(Configuration.getDefaultApiClient()); + } + + public OrganizationsApi(ApiClient apiClient) { + this.localVarApiClient = apiClient; + } + + public ApiClient getApiClient() { + return localVarApiClient; + } + + public void setApiClient(ApiClient apiClient) { + this.localVarApiClient = apiClient; + } + + public int getHostIndex() { + return localHostIndex; + } + + public void setHostIndex(int hostIndex) { + this.localHostIndex = hostIndex; + } + + public String getCustomBaseUrl() { + return localCustomBaseUrl; + } + + public void setCustomBaseUrl(String customBaseUrl) { + this.localCustomBaseUrl = customBaseUrl; + } + + /** + * Build call for addOrganizationMemberOrganizationsOrganizationIdMembersAccountIdPut + * @param organizationId (required) + * @param accountId (required) + * @param addOrganizationMemberRequestBody (required) + * @param instanceId (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 addOrganizationMemberOrganizationsOrganizationIdMembersAccountIdPutCall(UUID organizationId, UUID accountId, AddOrganizationMemberRequestBody addOrganizationMemberRequestBody, UUID instanceId, 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 = addOrganizationMemberRequestBody; + + // create path and map variables + String localVarPath = "/organizations/{organization_id}/members/{account_id}" + .replace("{" + "organization_id" + "}", localVarApiClient.escapeString(organizationId.toString())) + .replace("{" + "account_id" + "}", localVarApiClient.escapeString(accountId.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + if (instanceId != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("instance_id", instanceId)); + } + + 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, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call addOrganizationMemberOrganizationsOrganizationIdMembersAccountIdPutValidateBeforeCall(UUID organizationId, UUID accountId, AddOrganizationMemberRequestBody addOrganizationMemberRequestBody, UUID instanceId, String authorization, final ApiCallback _callback) throws ApiException { + // verify the required parameter 'organizationId' is set + if (organizationId == null) { + throw new ApiException("Missing the required parameter 'organizationId' when calling addOrganizationMemberOrganizationsOrganizationIdMembersAccountIdPut(Async)"); + } + + // verify the required parameter 'accountId' is set + if (accountId == null) { + throw new ApiException("Missing the required parameter 'accountId' when calling addOrganizationMemberOrganizationsOrganizationIdMembersAccountIdPut(Async)"); + } + + // verify the required parameter 'addOrganizationMemberRequestBody' is set + if (addOrganizationMemberRequestBody == null) { + throw new ApiException("Missing the required parameter 'addOrganizationMemberRequestBody' when calling addOrganizationMemberOrganizationsOrganizationIdMembersAccountIdPut(Async)"); + } + + return addOrganizationMemberOrganizationsOrganizationIdMembersAccountIdPutCall(organizationId, accountId, addOrganizationMemberRequestBody, instanceId, authorization, _callback); + + } + + /** + * Add Organization Member + * Add a member to an organization. Parameters: - **organization_id**: UUID of the organization to add the member to - **account_id**: UUID of the account to add as a member - **body**: Request body containing member details - **role**: Role of the member in the organization Returns: - **201**: Organization member added successfully + * @param organizationId (required) + * @param accountId (required) + * @param addOrganizationMemberRequestBody (required) + * @param instanceId (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 addOrganizationMemberOrganizationsOrganizationIdMembersAccountIdPut(UUID organizationId, UUID accountId, AddOrganizationMemberRequestBody addOrganizationMemberRequestBody, UUID instanceId, String authorization) throws ApiException { + ApiResponse localVarResp = addOrganizationMemberOrganizationsOrganizationIdMembersAccountIdPutWithHttpInfo(organizationId, accountId, addOrganizationMemberRequestBody, instanceId, authorization); + return localVarResp.getData(); + } + + /** + * Add Organization Member + * Add a member to an organization. Parameters: - **organization_id**: UUID of the organization to add the member to - **account_id**: UUID of the account to add as a member - **body**: Request body containing member details - **role**: Role of the member in the organization Returns: - **201**: Organization member added successfully + * @param organizationId (required) + * @param accountId (required) + * @param addOrganizationMemberRequestBody (required) + * @param instanceId (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 addOrganizationMemberOrganizationsOrganizationIdMembersAccountIdPutWithHttpInfo(UUID organizationId, UUID accountId, AddOrganizationMemberRequestBody addOrganizationMemberRequestBody, UUID instanceId, String authorization) throws ApiException { + okhttp3.Call localVarCall = addOrganizationMemberOrganizationsOrganizationIdMembersAccountIdPutValidateBeforeCall(organizationId, accountId, addOrganizationMemberRequestBody, instanceId, authorization, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * Add Organization Member (asynchronously) + * Add a member to an organization. Parameters: - **organization_id**: UUID of the organization to add the member to - **account_id**: UUID of the account to add as a member - **body**: Request body containing member details - **role**: Role of the member in the organization Returns: - **201**: Organization member added successfully + * @param organizationId (required) + * @param accountId (required) + * @param addOrganizationMemberRequestBody (required) + * @param instanceId (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 addOrganizationMemberOrganizationsOrganizationIdMembersAccountIdPutAsync(UUID organizationId, UUID accountId, AddOrganizationMemberRequestBody addOrganizationMemberRequestBody, UUID instanceId, String authorization, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = addOrganizationMemberOrganizationsOrganizationIdMembersAccountIdPutValidateBeforeCall(organizationId, accountId, addOrganizationMemberRequestBody, instanceId, authorization, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + /** + * Build call for getOrganizationOrganizationsOrganizationIdGet + * @param organizationId (required) + * @param instanceId (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 getOrganizationOrganizationsOrganizationIdGetCall(UUID organizationId, UUID instanceId, 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 = "/organizations/{organization_id}" + .replace("{" + "organization_id" + "}", localVarApiClient.escapeString(organizationId.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + if (instanceId != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("instance_id", instanceId)); + } + + 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 getOrganizationOrganizationsOrganizationIdGetValidateBeforeCall(UUID organizationId, UUID instanceId, String authorization, final ApiCallback _callback) throws ApiException { + // verify the required parameter 'organizationId' is set + if (organizationId == null) { + throw new ApiException("Missing the required parameter 'organizationId' when calling getOrganizationOrganizationsOrganizationIdGet(Async)"); + } + + return getOrganizationOrganizationsOrganizationIdGetCall(organizationId, instanceId, authorization, _callback); + + } + + /** + * Get Organization + * Get details of a specific organization. Parameters: - **organization_id**: UUID of the organization to retrieve Returns: - **200**: Organization details retrieved successfully - **404**: Organization not found + * @param organizationId (required) + * @param instanceId (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 getOrganizationOrganizationsOrganizationIdGet(UUID organizationId, UUID instanceId, String authorization) throws ApiException { + ApiResponse localVarResp = getOrganizationOrganizationsOrganizationIdGetWithHttpInfo(organizationId, instanceId, authorization); + return localVarResp.getData(); + } + + /** + * Get Organization + * Get details of a specific organization. Parameters: - **organization_id**: UUID of the organization to retrieve Returns: - **200**: Organization details retrieved successfully - **404**: Organization not found + * @param organizationId (required) + * @param instanceId (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 getOrganizationOrganizationsOrganizationIdGetWithHttpInfo(UUID organizationId, UUID instanceId, String authorization) throws ApiException { + okhttp3.Call localVarCall = getOrganizationOrganizationsOrganizationIdGetValidateBeforeCall(organizationId, instanceId, authorization, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * Get Organization (asynchronously) + * Get details of a specific organization. Parameters: - **organization_id**: UUID of the organization to retrieve Returns: - **200**: Organization details retrieved successfully - **404**: Organization not found + * @param organizationId (required) + * @param instanceId (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 getOrganizationOrganizationsOrganizationIdGetAsync(UUID organizationId, UUID instanceId, String authorization, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = getOrganizationOrganizationsOrganizationIdGetValidateBeforeCall(organizationId, instanceId, authorization, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + /** + * Build call for listOrganizationMembersOrganizationsOrganizationIdMembersGet + * @param organizationId (required) + * @param instanceId (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 listOrganizationMembersOrganizationsOrganizationIdMembersGetCall(UUID organizationId, UUID instanceId, 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 = "/organizations/{organization_id}/members" + .replace("{" + "organization_id" + "}", localVarApiClient.escapeString(organizationId.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + if (instanceId != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("instance_id", instanceId)); + } + + 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 listOrganizationMembersOrganizationsOrganizationIdMembersGetValidateBeforeCall(UUID organizationId, UUID instanceId, String authorization, final ApiCallback _callback) throws ApiException { + // verify the required parameter 'organizationId' is set + if (organizationId == null) { + throw new ApiException("Missing the required parameter 'organizationId' when calling listOrganizationMembersOrganizationsOrganizationIdMembersGet(Async)"); + } + + return listOrganizationMembersOrganizationsOrganizationIdMembersGetCall(organizationId, instanceId, authorization, _callback); + + } + + /** + * List Organization Members + * List all members of an organization. Parameters: - **organization_id**: UUID of the organization to list members for Returns: - **200**: List of organization members retrieved successfully + * @param organizationId (required) + * @param instanceId (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 listOrganizationMembersOrganizationsOrganizationIdMembersGet(UUID organizationId, UUID instanceId, String authorization) throws ApiException { + ApiResponse localVarResp = listOrganizationMembersOrganizationsOrganizationIdMembersGetWithHttpInfo(organizationId, instanceId, authorization); + return localVarResp.getData(); + } + + /** + * List Organization Members + * List all members of an organization. Parameters: - **organization_id**: UUID of the organization to list members for Returns: - **200**: List of organization members retrieved successfully + * @param organizationId (required) + * @param instanceId (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 listOrganizationMembersOrganizationsOrganizationIdMembersGetWithHttpInfo(UUID organizationId, UUID instanceId, String authorization) throws ApiException { + okhttp3.Call localVarCall = listOrganizationMembersOrganizationsOrganizationIdMembersGetValidateBeforeCall(organizationId, instanceId, authorization, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * List Organization Members (asynchronously) + * List all members of an organization. Parameters: - **organization_id**: UUID of the organization to list members for Returns: - **200**: List of organization members retrieved successfully + * @param organizationId (required) + * @param instanceId (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 listOrganizationMembersOrganizationsOrganizationIdMembersGetAsync(UUID organizationId, UUID instanceId, String authorization, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = listOrganizationMembersOrganizationsOrganizationIdMembersGetValidateBeforeCall(organizationId, instanceId, authorization, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + /** + * Build call for removeOrganizationMemberOrganizationsOrganizationIdMembersAccountIdDelete + * @param organizationId (required) + * @param accountId (required) + * @param instanceId (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 removeOrganizationMemberOrganizationsOrganizationIdMembersAccountIdDeleteCall(UUID organizationId, UUID accountId, UUID instanceId, 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 = "/organizations/{organization_id}/members/{account_id}" + .replace("{" + "organization_id" + "}", localVarApiClient.escapeString(organizationId.toString())) + .replace("{" + "account_id" + "}", localVarApiClient.escapeString(accountId.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + if (instanceId != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("instance_id", instanceId)); + } + + 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, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call removeOrganizationMemberOrganizationsOrganizationIdMembersAccountIdDeleteValidateBeforeCall(UUID organizationId, UUID accountId, UUID instanceId, String authorization, final ApiCallback _callback) throws ApiException { + // verify the required parameter 'organizationId' is set + if (organizationId == null) { + throw new ApiException("Missing the required parameter 'organizationId' when calling removeOrganizationMemberOrganizationsOrganizationIdMembersAccountIdDelete(Async)"); + } + + // verify the required parameter 'accountId' is set + if (accountId == null) { + throw new ApiException("Missing the required parameter 'accountId' when calling removeOrganizationMemberOrganizationsOrganizationIdMembersAccountIdDelete(Async)"); + } + + return removeOrganizationMemberOrganizationsOrganizationIdMembersAccountIdDeleteCall(organizationId, accountId, instanceId, authorization, _callback); + + } + + /** + * Remove Organization Member + * Remove a member from an organization. Parameters: - **organization_id**: UUID of the organization to remove the member from - **account_id**: UUID of the account to remove from the organization Returns: - **200**: Organization member removed successfully - **404**: Member not found in organization + * @param organizationId (required) + * @param accountId (required) + * @param instanceId (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 removeOrganizationMemberOrganizationsOrganizationIdMembersAccountIdDelete(UUID organizationId, UUID accountId, UUID instanceId, String authorization) throws ApiException { + ApiResponse localVarResp = removeOrganizationMemberOrganizationsOrganizationIdMembersAccountIdDeleteWithHttpInfo(organizationId, accountId, instanceId, authorization); + return localVarResp.getData(); + } + + /** + * Remove Organization Member + * Remove a member from an organization. Parameters: - **organization_id**: UUID of the organization to remove the member from - **account_id**: UUID of the account to remove from the organization Returns: - **200**: Organization member removed successfully - **404**: Member not found in organization + * @param organizationId (required) + * @param accountId (required) + * @param instanceId (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 removeOrganizationMemberOrganizationsOrganizationIdMembersAccountIdDeleteWithHttpInfo(UUID organizationId, UUID accountId, UUID instanceId, String authorization) throws ApiException { + okhttp3.Call localVarCall = removeOrganizationMemberOrganizationsOrganizationIdMembersAccountIdDeleteValidateBeforeCall(organizationId, accountId, instanceId, authorization, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * Remove Organization Member (asynchronously) + * Remove a member from an organization. Parameters: - **organization_id**: UUID of the organization to remove the member from - **account_id**: UUID of the account to remove from the organization Returns: - **200**: Organization member removed successfully - **404**: Member not found in organization + * @param organizationId (required) + * @param accountId (required) + * @param instanceId (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 removeOrganizationMemberOrganizationsOrganizationIdMembersAccountIdDeleteAsync(UUID organizationId, UUID accountId, UUID instanceId, String authorization, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = removeOrganizationMemberOrganizationsOrganizationIdMembersAccountIdDeleteValidateBeforeCall(organizationId, accountId, instanceId, authorization, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + /** + * Build call for updateOrganizationMemberOrganizationsOrganizationIdMembersAccountIdPatch + * @param organizationId (required) + * @param accountId (required) + * @param updateOrganizationMemberRequestBody (required) + * @param instanceId (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 updateOrganizationMemberOrganizationsOrganizationIdMembersAccountIdPatchCall(UUID organizationId, UUID accountId, UpdateOrganizationMemberRequestBody updateOrganizationMemberRequestBody, UUID instanceId, 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 = updateOrganizationMemberRequestBody; + + // create path and map variables + String localVarPath = "/organizations/{organization_id}/members/{account_id}" + .replace("{" + "organization_id" + "}", localVarApiClient.escapeString(organizationId.toString())) + .replace("{" + "account_id" + "}", localVarApiClient.escapeString(accountId.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + if (instanceId != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("instance_id", instanceId)); + } + + 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, "PATCH", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call updateOrganizationMemberOrganizationsOrganizationIdMembersAccountIdPatchValidateBeforeCall(UUID organizationId, UUID accountId, UpdateOrganizationMemberRequestBody updateOrganizationMemberRequestBody, UUID instanceId, String authorization, final ApiCallback _callback) throws ApiException { + // verify the required parameter 'organizationId' is set + if (organizationId == null) { + throw new ApiException("Missing the required parameter 'organizationId' when calling updateOrganizationMemberOrganizationsOrganizationIdMembersAccountIdPatch(Async)"); + } + + // verify the required parameter 'accountId' is set + if (accountId == null) { + throw new ApiException("Missing the required parameter 'accountId' when calling updateOrganizationMemberOrganizationsOrganizationIdMembersAccountIdPatch(Async)"); + } + + // verify the required parameter 'updateOrganizationMemberRequestBody' is set + if (updateOrganizationMemberRequestBody == null) { + throw new ApiException("Missing the required parameter 'updateOrganizationMemberRequestBody' when calling updateOrganizationMemberOrganizationsOrganizationIdMembersAccountIdPatch(Async)"); + } + + return updateOrganizationMemberOrganizationsOrganizationIdMembersAccountIdPatchCall(organizationId, accountId, updateOrganizationMemberRequestBody, instanceId, authorization, _callback); + + } + + /** + * Update Organization Member + * Update an organization member's details. Parameters: - **organization_id**: UUID of the organization the member belongs to - **account_id**: UUID of the account to update - **body**: Request body containing updated member details - **role**: Role of the member in the organization Returns: - **200**: Organization member updated successfully - **404**: Member not found in organization + * @param organizationId (required) + * @param accountId (required) + * @param updateOrganizationMemberRequestBody (required) + * @param instanceId (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 updateOrganizationMemberOrganizationsOrganizationIdMembersAccountIdPatch(UUID organizationId, UUID accountId, UpdateOrganizationMemberRequestBody updateOrganizationMemberRequestBody, UUID instanceId, String authorization) throws ApiException { + ApiResponse localVarResp = updateOrganizationMemberOrganizationsOrganizationIdMembersAccountIdPatchWithHttpInfo(organizationId, accountId, updateOrganizationMemberRequestBody, instanceId, authorization); + return localVarResp.getData(); + } + + /** + * Update Organization Member + * Update an organization member's details. Parameters: - **organization_id**: UUID of the organization the member belongs to - **account_id**: UUID of the account to update - **body**: Request body containing updated member details - **role**: Role of the member in the organization Returns: - **200**: Organization member updated successfully - **404**: Member not found in organization + * @param organizationId (required) + * @param accountId (required) + * @param updateOrganizationMemberRequestBody (required) + * @param instanceId (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 updateOrganizationMemberOrganizationsOrganizationIdMembersAccountIdPatchWithHttpInfo(UUID organizationId, UUID accountId, UpdateOrganizationMemberRequestBody updateOrganizationMemberRequestBody, UUID instanceId, String authorization) throws ApiException { + okhttp3.Call localVarCall = updateOrganizationMemberOrganizationsOrganizationIdMembersAccountIdPatchValidateBeforeCall(organizationId, accountId, updateOrganizationMemberRequestBody, instanceId, authorization, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * Update Organization Member (asynchronously) + * Update an organization member's details. Parameters: - **organization_id**: UUID of the organization the member belongs to - **account_id**: UUID of the account to update - **body**: Request body containing updated member details - **role**: Role of the member in the organization Returns: - **200**: Organization member updated successfully - **404**: Member not found in organization + * @param organizationId (required) + * @param accountId (required) + * @param updateOrganizationMemberRequestBody (required) + * @param instanceId (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 updateOrganizationMemberOrganizationsOrganizationIdMembersAccountIdPatchAsync(UUID organizationId, UUID accountId, UpdateOrganizationMemberRequestBody updateOrganizationMemberRequestBody, UUID instanceId, String authorization, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = updateOrganizationMemberOrganizationsOrganizationIdMembersAccountIdPatchValidateBeforeCall(organizationId, accountId, updateOrganizationMemberRequestBody, instanceId, authorization, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } +} diff --git a/src/main/java/ai/lamin/lamin_api_client/api/SpacesApi.java b/src/main/java/ai/lamin/lamin_api_client/api/SpacesApi.java new file mode 100644 index 0000000..d07b9c2 --- /dev/null +++ b/src/main/java/ai/lamin/lamin_api_client/api/SpacesApi.java @@ -0,0 +1,2208 @@ +/* + * 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.api; + +import ai.lamin.lamin_api_client.ApiCallback; +import ai.lamin.lamin_api_client.ApiClient; +import ai.lamin.lamin_api_client.ApiException; +import ai.lamin.lamin_api_client.ApiResponse; +import ai.lamin.lamin_api_client.Configuration; +import ai.lamin.lamin_api_client.Pair; +import ai.lamin.lamin_api_client.ProgressRequestBody; +import ai.lamin.lamin_api_client.ProgressResponseBody; + +import com.google.gson.reflect.TypeToken; + +import java.io.IOException; + + +import ai.lamin.lamin_api_client.model.AddSpaceCollaboratorRequestBody; +import ai.lamin.lamin_api_client.model.AttachSpaceToRecordRequestBody; +import ai.lamin.lamin_api_client.model.CreateSpaceRequestBody; +import ai.lamin.lamin_api_client.model.HTTPValidationError; +import java.util.UUID; +import ai.lamin.lamin_api_client.model.UpdateSpaceCollaboratorRequestBody; +import ai.lamin.lamin_api_client.model.UpdateSpaceRequestBody; + +import java.lang.reflect.Type; +import java.util.ArrayList; +import java.util.HashMap; +import java.util.List; +import java.util.Map; + +public class SpacesApi { + private ApiClient localVarApiClient; + private int localHostIndex; + private String localCustomBaseUrl; + + public SpacesApi() { + this(Configuration.getDefaultApiClient()); + } + + public SpacesApi(ApiClient apiClient) { + this.localVarApiClient = apiClient; + } + + public ApiClient getApiClient() { + return localVarApiClient; + } + + public void setApiClient(ApiClient apiClient) { + this.localVarApiClient = apiClient; + } + + public int getHostIndex() { + return localHostIndex; + } + + public void setHostIndex(int hostIndex) { + this.localHostIndex = hostIndex; + } + + public String getCustomBaseUrl() { + return localCustomBaseUrl; + } + + public void setCustomBaseUrl(String customBaseUrl) { + this.localCustomBaseUrl = customBaseUrl; + } + + /** + * Build call for addSpaceCollaboratorSpacesSpaceIdCollaboratorsPut + * @param spaceId (required) + * @param addSpaceCollaboratorRequestBody (required) + * @param instanceId (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 addSpaceCollaboratorSpacesSpaceIdCollaboratorsPutCall(UUID spaceId, AddSpaceCollaboratorRequestBody addSpaceCollaboratorRequestBody, UUID instanceId, 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 = addSpaceCollaboratorRequestBody; + + // create path and map variables + String localVarPath = "/spaces/{space_id}/collaborators" + .replace("{" + "space_id" + "}", localVarApiClient.escapeString(spaceId.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + if (instanceId != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("instance_id", instanceId)); + } + + 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, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call addSpaceCollaboratorSpacesSpaceIdCollaboratorsPutValidateBeforeCall(UUID spaceId, AddSpaceCollaboratorRequestBody addSpaceCollaboratorRequestBody, 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 addSpaceCollaboratorSpacesSpaceIdCollaboratorsPut(Async)"); + } + + // verify the required parameter 'addSpaceCollaboratorRequestBody' is set + if (addSpaceCollaboratorRequestBody == null) { + throw new ApiException("Missing the required parameter 'addSpaceCollaboratorRequestBody' when calling addSpaceCollaboratorSpacesSpaceIdCollaboratorsPut(Async)"); + } + + return addSpaceCollaboratorSpacesSpaceIdCollaboratorsPutCall(spaceId, addSpaceCollaboratorRequestBody, instanceId, authorization, _callback); + + } + + /** + * Add Space Collaborator + * Add a collaborator (account or team) to a space. Parameters: - **space_id**: ID of the space to add the collaborator to - **body**: Request body containing collaborator details - **account_id**: UUID of the account to add (mutually exclusive with team_id) - **team_id**: UUID of the team to add (mutually exclusive with account_id) - **role**: Role of the collaborator Returns: - **201**: Collaborator added to space successfully - **400**: Invalid input (e.g., both account_id and team_id provided) + * @param spaceId (required) + * @param addSpaceCollaboratorRequestBody (required) + * @param instanceId (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 addSpaceCollaboratorSpacesSpaceIdCollaboratorsPut(UUID spaceId, AddSpaceCollaboratorRequestBody addSpaceCollaboratorRequestBody, UUID instanceId, String authorization) throws ApiException { + ApiResponse localVarResp = addSpaceCollaboratorSpacesSpaceIdCollaboratorsPutWithHttpInfo(spaceId, addSpaceCollaboratorRequestBody, instanceId, authorization); + return localVarResp.getData(); + } + + /** + * Add Space Collaborator + * Add a collaborator (account or team) to a space. Parameters: - **space_id**: ID of the space to add the collaborator to - **body**: Request body containing collaborator details - **account_id**: UUID of the account to add (mutually exclusive with team_id) - **team_id**: UUID of the team to add (mutually exclusive with account_id) - **role**: Role of the collaborator Returns: - **201**: Collaborator added to space successfully - **400**: Invalid input (e.g., both account_id and team_id provided) + * @param spaceId (required) + * @param addSpaceCollaboratorRequestBody (required) + * @param instanceId (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 addSpaceCollaboratorSpacesSpaceIdCollaboratorsPutWithHttpInfo(UUID spaceId, AddSpaceCollaboratorRequestBody addSpaceCollaboratorRequestBody, UUID instanceId, String authorization) throws ApiException { + okhttp3.Call localVarCall = addSpaceCollaboratorSpacesSpaceIdCollaboratorsPutValidateBeforeCall(spaceId, addSpaceCollaboratorRequestBody, instanceId, authorization, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * Add Space Collaborator (asynchronously) + * Add a collaborator (account or team) to a space. Parameters: - **space_id**: ID of the space to add the collaborator to - **body**: Request body containing collaborator details - **account_id**: UUID of the account to add (mutually exclusive with team_id) - **team_id**: UUID of the team to add (mutually exclusive with account_id) - **role**: Role of the collaborator Returns: - **201**: Collaborator added to space successfully - **400**: Invalid input (e.g., both account_id and team_id provided) + * @param spaceId (required) + * @param addSpaceCollaboratorRequestBody (required) + * @param instanceId (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 addSpaceCollaboratorSpacesSpaceIdCollaboratorsPutAsync(UUID spaceId, AddSpaceCollaboratorRequestBody addSpaceCollaboratorRequestBody, UUID instanceId, String authorization, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = addSpaceCollaboratorSpacesSpaceIdCollaboratorsPutValidateBeforeCall(spaceId, addSpaceCollaboratorRequestBody, instanceId, authorization, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + /** + * Build call for attachSpaceToInstanceSpacesSpaceIdInstancesInstanceIdPut + * @param spaceId (required) + * @param instanceId (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 attachSpaceToInstanceSpacesSpaceIdInstancesInstanceIdPutCall(UUID spaceId, UUID instanceId, 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 = "/spaces/{space_id}/instances/{instance_id}" + .replace("{" + "space_id" + "}", localVarApiClient.escapeString(spaceId.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(); + + 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, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call attachSpaceToInstanceSpacesSpaceIdInstancesInstanceIdPutValidateBeforeCall(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 attachSpaceToInstanceSpacesSpaceIdInstancesInstanceIdPut(Async)"); + } + + // verify the required parameter 'instanceId' is set + if (instanceId == null) { + throw new ApiException("Missing the required parameter 'instanceId' when calling attachSpaceToInstanceSpacesSpaceIdInstancesInstanceIdPut(Async)"); + } + + return attachSpaceToInstanceSpacesSpaceIdInstancesInstanceIdPutCall(spaceId, instanceId, authorization, _callback); + + } + + /** + * Attach Space To Instance + * Attach a space to a specific instance. Parameters: - **space_id**: ID of the space to attach - **instance_id**: UUID of the instance to attach the space to (from URL path) Returns: - **200**: Space attached to instance successfully Requires admin access to the instance + * @param spaceId (required) + * @param instanceId (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 attachSpaceToInstanceSpacesSpaceIdInstancesInstanceIdPut(UUID spaceId, UUID instanceId, String authorization) throws ApiException { + ApiResponse localVarResp = attachSpaceToInstanceSpacesSpaceIdInstancesInstanceIdPutWithHttpInfo(spaceId, instanceId, authorization); + return localVarResp.getData(); + } + + /** + * Attach Space To Instance + * Attach a space to a specific instance. Parameters: - **space_id**: ID of the space to attach - **instance_id**: UUID of the instance to attach the space to (from URL path) Returns: - **200**: Space attached to instance successfully Requires admin access to the instance + * @param spaceId (required) + * @param instanceId (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 attachSpaceToInstanceSpacesSpaceIdInstancesInstanceIdPutWithHttpInfo(UUID spaceId, UUID instanceId, String authorization) throws ApiException { + okhttp3.Call localVarCall = attachSpaceToInstanceSpacesSpaceIdInstancesInstanceIdPutValidateBeforeCall(spaceId, instanceId, authorization, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * Attach Space To Instance (asynchronously) + * Attach a space to a specific instance. Parameters: - **space_id**: ID of the space to attach - **instance_id**: UUID of the instance to attach the space to (from URL path) Returns: - **200**: Space attached to instance successfully Requires admin access to the instance + * @param spaceId (required) + * @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 attachSpaceToInstanceSpacesSpaceIdInstancesInstanceIdPutAsync(UUID spaceId, UUID instanceId, String authorization, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = attachSpaceToInstanceSpacesSpaceIdInstancesInstanceIdPutValidateBeforeCall(spaceId, instanceId, authorization, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + /** + * Build call for createSpaceSpacesPut + * @param createSpaceRequestBody (required) + * @param instanceId (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 createSpaceSpacesPutCall(CreateSpaceRequestBody createSpaceRequestBody, UUID instanceId, 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 = createSpaceRequestBody; + + // create path and map variables + String localVarPath = "/spaces"; + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + if (instanceId != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("instance_id", instanceId)); + } + + 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, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call createSpaceSpacesPutValidateBeforeCall(CreateSpaceRequestBody createSpaceRequestBody, UUID instanceId, String authorization, final ApiCallback _callback) throws ApiException { + // verify the required parameter 'createSpaceRequestBody' is set + if (createSpaceRequestBody == null) { + throw new ApiException("Missing the required parameter 'createSpaceRequestBody' when calling createSpaceSpacesPut(Async)"); + } + + return createSpaceSpacesPutCall(createSpaceRequestBody, instanceId, authorization, _callback); + + } + + /** + * Create Space + * Create a new space. Parameters: - **body**: Request body containing space details - **name**: Name of the space - **organization_id**: UUID of the organization - **description**: Optional description of the space Returns: - **201**: Space created successfully + * @param createSpaceRequestBody (required) + * @param instanceId (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 createSpaceSpacesPut(CreateSpaceRequestBody createSpaceRequestBody, UUID instanceId, String authorization) throws ApiException { + ApiResponse localVarResp = createSpaceSpacesPutWithHttpInfo(createSpaceRequestBody, instanceId, authorization); + return localVarResp.getData(); + } + + /** + * Create Space + * Create a new space. Parameters: - **body**: Request body containing space details - **name**: Name of the space - **organization_id**: UUID of the organization - **description**: Optional description of the space Returns: - **201**: Space created successfully + * @param createSpaceRequestBody (required) + * @param instanceId (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 createSpaceSpacesPutWithHttpInfo(CreateSpaceRequestBody createSpaceRequestBody, UUID instanceId, String authorization) throws ApiException { + okhttp3.Call localVarCall = createSpaceSpacesPutValidateBeforeCall(createSpaceRequestBody, instanceId, authorization, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * Create Space (asynchronously) + * Create a new space. Parameters: - **body**: Request body containing space details - **name**: Name of the space - **organization_id**: UUID of the organization - **description**: Optional description of the space Returns: - **201**: Space created successfully + * @param createSpaceRequestBody (required) + * @param instanceId (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 createSpaceSpacesPutAsync(CreateSpaceRequestBody createSpaceRequestBody, UUID instanceId, String authorization, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = createSpaceSpacesPutValidateBeforeCall(createSpaceRequestBody, instanceId, authorization, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + /** + * Build call for deleteSpaceSpacesSpaceIdDelete + * @param spaceId (required) + * @param instanceId (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 deleteSpaceSpacesSpaceIdDeleteCall(UUID spaceId, UUID instanceId, 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 = "/spaces/{space_id}" + .replace("{" + "space_id" + "}", localVarApiClient.escapeString(spaceId.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + if (instanceId != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("instance_id", instanceId)); + } + + 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, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call deleteSpaceSpacesSpaceIdDeleteValidateBeforeCall(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 deleteSpaceSpacesSpaceIdDelete(Async)"); + } + + return deleteSpaceSpacesSpaceIdDeleteCall(spaceId, instanceId, authorization, _callback); + + } + + /** + * Delete Space + * Delete a space and detach it from the instance. Parameters: - **space_id**: ID of the space to delete Returns: - **200**: Space deleted successfully - **404**: Space not found + * @param spaceId (required) + * @param instanceId (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 deleteSpaceSpacesSpaceIdDelete(UUID spaceId, UUID instanceId, String authorization) throws ApiException { + ApiResponse localVarResp = deleteSpaceSpacesSpaceIdDeleteWithHttpInfo(spaceId, instanceId, authorization); + return localVarResp.getData(); + } + + /** + * Delete Space + * Delete a space and detach it from the instance. Parameters: - **space_id**: ID of the space to delete Returns: - **200**: Space deleted successfully - **404**: Space not found + * @param spaceId (required) + * @param instanceId (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 deleteSpaceSpacesSpaceIdDeleteWithHttpInfo(UUID spaceId, UUID instanceId, String authorization) throws ApiException { + okhttp3.Call localVarCall = deleteSpaceSpacesSpaceIdDeleteValidateBeforeCall(spaceId, instanceId, authorization, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * Delete Space (asynchronously) + * Delete a space and detach it from the instance. Parameters: - **space_id**: ID of the space to delete Returns: - **200**: Space deleted successfully - **404**: Space not found + * @param spaceId (required) + * @param instanceId (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 deleteSpaceSpacesSpaceIdDeleteAsync(UUID spaceId, UUID instanceId, String authorization, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = deleteSpaceSpacesSpaceIdDeleteValidateBeforeCall(spaceId, instanceId, authorization, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + /** + * Build call for detachSpaceFromInstanceSpacesSpaceIdInstancesInstanceIdDelete + * @param spaceId (required) + * @param instanceId (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 detachSpaceFromInstanceSpacesSpaceIdInstancesInstanceIdDeleteCall(UUID spaceId, UUID instanceId, 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 = "/spaces/{space_id}/instances/{instance_id}" + .replace("{" + "space_id" + "}", localVarApiClient.escapeString(spaceId.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(); + + 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, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call detachSpaceFromInstanceSpacesSpaceIdInstancesInstanceIdDeleteValidateBeforeCall(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 detachSpaceFromInstanceSpacesSpaceIdInstancesInstanceIdDelete(Async)"); + } + + // verify the required parameter 'instanceId' is set + if (instanceId == null) { + throw new ApiException("Missing the required parameter 'instanceId' when calling detachSpaceFromInstanceSpacesSpaceIdInstancesInstanceIdDelete(Async)"); + } + + return detachSpaceFromInstanceSpacesSpaceIdInstancesInstanceIdDeleteCall(spaceId, instanceId, authorization, _callback); + + } + + /** + * Detach Space From Instance + * Detach a space from a specific instance. Parameters: - **space_id**: ID of the space to detach - **instance_id**: UUID of the instance to detach the space from (from URL path) Returns: - **200**: Space detached from instance successfully Requires admin access to the instance + * @param spaceId (required) + * @param instanceId (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 detachSpaceFromInstanceSpacesSpaceIdInstancesInstanceIdDelete(UUID spaceId, UUID instanceId, String authorization) throws ApiException { + ApiResponse localVarResp = detachSpaceFromInstanceSpacesSpaceIdInstancesInstanceIdDeleteWithHttpInfo(spaceId, instanceId, authorization); + return localVarResp.getData(); + } + + /** + * Detach Space From Instance + * Detach a space from a specific instance. Parameters: - **space_id**: ID of the space to detach - **instance_id**: UUID of the instance to detach the space from (from URL path) Returns: - **200**: Space detached from instance successfully Requires admin access to the instance + * @param spaceId (required) + * @param instanceId (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 detachSpaceFromInstanceSpacesSpaceIdInstancesInstanceIdDeleteWithHttpInfo(UUID spaceId, UUID instanceId, String authorization) throws ApiException { + okhttp3.Call localVarCall = detachSpaceFromInstanceSpacesSpaceIdInstancesInstanceIdDeleteValidateBeforeCall(spaceId, instanceId, authorization, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * Detach Space From Instance (asynchronously) + * Detach a space from a specific instance. Parameters: - **space_id**: ID of the space to detach - **instance_id**: UUID of the instance to detach the space from (from URL path) Returns: - **200**: Space detached from instance successfully Requires admin access to the instance + * @param spaceId (required) + * @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 detachSpaceFromInstanceSpacesSpaceIdInstancesInstanceIdDeleteAsync(UUID spaceId, UUID instanceId, String authorization, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = detachSpaceFromInstanceSpacesSpaceIdInstancesInstanceIdDeleteValidateBeforeCall(spaceId, instanceId, authorization, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + /** + * Build call for getSpaceSpacesSpaceIdGet + * @param spaceId (required) + * @param instanceId (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 getSpaceSpacesSpaceIdGetCall(UUID spaceId, UUID instanceId, 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 = "/spaces/{space_id}" + .replace("{" + "space_id" + "}", localVarApiClient.escapeString(spaceId.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + if (instanceId != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("instance_id", instanceId)); + } + + 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 getSpaceSpacesSpaceIdGetValidateBeforeCall(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 getSpaceSpacesSpaceIdGet(Async)"); + } + + return getSpaceSpacesSpaceIdGetCall(spaceId, instanceId, authorization, _callback); + + } + + /** + * Get Space + * Get details of a specific space. Parameters: - **space_id**: ID of the space to retrieve Returns: - **200**: Space details retrieved successfully - **404**: Space not found + * @param spaceId (required) + * @param instanceId (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 getSpaceSpacesSpaceIdGet(UUID spaceId, UUID instanceId, String authorization) throws ApiException { + ApiResponse localVarResp = getSpaceSpacesSpaceIdGetWithHttpInfo(spaceId, instanceId, authorization); + return localVarResp.getData(); + } + + /** + * Get Space + * Get details of a specific space. Parameters: - **space_id**: ID of the space to retrieve Returns: - **200**: Space details retrieved successfully - **404**: Space not found + * @param spaceId (required) + * @param instanceId (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 getSpaceSpacesSpaceIdGetWithHttpInfo(UUID spaceId, UUID instanceId, String authorization) throws ApiException { + okhttp3.Call localVarCall = getSpaceSpacesSpaceIdGetValidateBeforeCall(spaceId, instanceId, authorization, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * Get Space (asynchronously) + * Get details of a specific space. Parameters: - **space_id**: ID of the space to retrieve Returns: - **200**: Space details retrieved successfully - **404**: Space not found + * @param spaceId (required) + * @param instanceId (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 getSpaceSpacesSpaceIdGetAsync(UUID spaceId, UUID instanceId, String authorization, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = getSpaceSpacesSpaceIdGetValidateBeforeCall(spaceId, instanceId, authorization, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + /** + * Build call for listInstanceSpacesSpacesInstancesInstanceIdGet + * @param instanceId (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 listInstanceSpacesSpacesInstancesInstanceIdGetCall(UUID instanceId, 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 = "/spaces/instances/{instance_id}" + .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 = { + }; + 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 listInstanceSpacesSpacesInstancesInstanceIdGetValidateBeforeCall(UUID instanceId, 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 listInstanceSpacesSpacesInstancesInstanceIdGet(Async)"); + } + + return listInstanceSpacesSpacesInstancesInstanceIdGetCall(instanceId, authorization, _callback); + + } + + /** + * List Instance Spaces + * List all spaces attached to an instance. Parameters: - **instance_id**: UUID of the instance to list spaces for (from URL path) Returns: - **200**: List of spaces attached to the instance retrieved successfully + * @param instanceId (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 listInstanceSpacesSpacesInstancesInstanceIdGet(UUID instanceId, String authorization) throws ApiException { + ApiResponse localVarResp = listInstanceSpacesSpacesInstancesInstanceIdGetWithHttpInfo(instanceId, authorization); + return localVarResp.getData(); + } + + /** + * List Instance Spaces + * List all spaces attached to an instance. Parameters: - **instance_id**: UUID of the instance to list spaces for (from URL path) Returns: - **200**: List of spaces attached to the instance retrieved successfully + * @param instanceId (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 listInstanceSpacesSpacesInstancesInstanceIdGetWithHttpInfo(UUID instanceId, String authorization) throws ApiException { + okhttp3.Call localVarCall = listInstanceSpacesSpacesInstancesInstanceIdGetValidateBeforeCall(instanceId, authorization, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * List Instance Spaces (asynchronously) + * List all spaces attached to an instance. Parameters: - **instance_id**: UUID of the instance to list spaces for (from URL path) Returns: - **200**: List of spaces attached to the instance retrieved successfully + * @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 listInstanceSpacesSpacesInstancesInstanceIdGetAsync(UUID instanceId, String authorization, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = listInstanceSpacesSpacesInstancesInstanceIdGetValidateBeforeCall(instanceId, authorization, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + /** + * Build call for listInstancesUsingSpaceSpacesSpaceIdInstancesGet + * @param spaceId (required) + * @param instanceId (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 listInstancesUsingSpaceSpacesSpaceIdInstancesGetCall(UUID spaceId, UUID instanceId, 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 = "/spaces/{space_id}/instances" + .replace("{" + "space_id" + "}", localVarApiClient.escapeString(spaceId.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + if (instanceId != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("instance_id", instanceId)); + } + + 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 listInstancesUsingSpaceSpacesSpaceIdInstancesGetValidateBeforeCall(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 listInstancesUsingSpaceSpacesSpaceIdInstancesGet(Async)"); + } + + return listInstancesUsingSpaceSpacesSpaceIdInstancesGetCall(spaceId, instanceId, authorization, _callback); + + } + + /** + * List Instances Using Space + * List all instances that have this space attached. Parameters: - **space_id**: ID of the space to check Returns: - **200**: List of instances using the space retrieved successfully + * @param spaceId (required) + * @param instanceId (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 listInstancesUsingSpaceSpacesSpaceIdInstancesGet(UUID spaceId, UUID instanceId, String authorization) throws ApiException { + ApiResponse localVarResp = listInstancesUsingSpaceSpacesSpaceIdInstancesGetWithHttpInfo(spaceId, instanceId, authorization); + return localVarResp.getData(); + } + + /** + * List Instances Using Space + * List all instances that have this space attached. Parameters: - **space_id**: ID of the space to check Returns: - **200**: List of instances using the space retrieved successfully + * @param spaceId (required) + * @param instanceId (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 listInstancesUsingSpaceSpacesSpaceIdInstancesGetWithHttpInfo(UUID spaceId, UUID instanceId, String authorization) throws ApiException { + okhttp3.Call localVarCall = listInstancesUsingSpaceSpacesSpaceIdInstancesGetValidateBeforeCall(spaceId, instanceId, authorization, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * List Instances Using Space (asynchronously) + * List all instances that have this space attached. Parameters: - **space_id**: ID of the space to check Returns: - **200**: List of instances using the space retrieved successfully + * @param spaceId (required) + * @param instanceId (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 listInstancesUsingSpaceSpacesSpaceIdInstancesGetAsync(UUID spaceId, UUID instanceId, String authorization, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = listInstancesUsingSpaceSpacesSpaceIdInstancesGetValidateBeforeCall(spaceId, instanceId, authorization, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + /** + * Build call for listOrganizationSpacesSpacesOrganizationsOrganizationIdGet + * @param organizationId (required) + * @param instanceId (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 listOrganizationSpacesSpacesOrganizationsOrganizationIdGetCall(UUID organizationId, UUID instanceId, 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 = "/spaces/organizations/{organization_id}" + .replace("{" + "organization_id" + "}", localVarApiClient.escapeString(organizationId.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + if (instanceId != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("instance_id", instanceId)); + } + + 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 listOrganizationSpacesSpacesOrganizationsOrganizationIdGetValidateBeforeCall(UUID organizationId, UUID instanceId, String authorization, final ApiCallback _callback) throws ApiException { + // verify the required parameter 'organizationId' is set + if (organizationId == null) { + throw new ApiException("Missing the required parameter 'organizationId' when calling listOrganizationSpacesSpacesOrganizationsOrganizationIdGet(Async)"); + } + + return listOrganizationSpacesSpacesOrganizationsOrganizationIdGetCall(organizationId, instanceId, authorization, _callback); + + } + + /** + * List Organization Spaces + * List all spaces in an organization. Parameters: - **organization_id**: UUID of the organization to list spaces for Returns: - **200**: List of spaces retrieved successfully + * @param organizationId (required) + * @param instanceId (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 listOrganizationSpacesSpacesOrganizationsOrganizationIdGet(UUID organizationId, UUID instanceId, String authorization) throws ApiException { + ApiResponse localVarResp = listOrganizationSpacesSpacesOrganizationsOrganizationIdGetWithHttpInfo(organizationId, instanceId, authorization); + return localVarResp.getData(); + } + + /** + * List Organization Spaces + * List all spaces in an organization. Parameters: - **organization_id**: UUID of the organization to list spaces for Returns: - **200**: List of spaces retrieved successfully + * @param organizationId (required) + * @param instanceId (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 listOrganizationSpacesSpacesOrganizationsOrganizationIdGetWithHttpInfo(UUID organizationId, UUID instanceId, String authorization) throws ApiException { + okhttp3.Call localVarCall = listOrganizationSpacesSpacesOrganizationsOrganizationIdGetValidateBeforeCall(organizationId, instanceId, authorization, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * List Organization Spaces (asynchronously) + * List all spaces in an organization. Parameters: - **organization_id**: UUID of the organization to list spaces for Returns: - **200**: List of spaces retrieved successfully + * @param organizationId (required) + * @param instanceId (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 listOrganizationSpacesSpacesOrganizationsOrganizationIdGetAsync(UUID organizationId, UUID instanceId, String authorization, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = listOrganizationSpacesSpacesOrganizationsOrganizationIdGetValidateBeforeCall(organizationId, instanceId, authorization, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + /** + * Build call for listSpaceCollaboratorsSpacesSpaceIdCollaboratorsGet + * @param spaceId (required) + * @param instanceId (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 listSpaceCollaboratorsSpacesSpaceIdCollaboratorsGetCall(UUID spaceId, UUID instanceId, 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 = "/spaces/{space_id}/collaborators" + .replace("{" + "space_id" + "}", localVarApiClient.escapeString(spaceId.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + if (instanceId != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("instance_id", instanceId)); + } + + 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 listSpaceCollaboratorsSpacesSpaceIdCollaboratorsGetValidateBeforeCall(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 listSpaceCollaboratorsSpacesSpaceIdCollaboratorsGet(Async)"); + } + + return listSpaceCollaboratorsSpacesSpaceIdCollaboratorsGetCall(spaceId, instanceId, authorization, _callback); + + } + + /** + * List Space Collaborators + * List all collaborators of a space. Parameters: - **space_id**: ID of the space to list collaborators for Returns: - **200**: List of space collaborators retrieved successfully + * @param spaceId (required) + * @param instanceId (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 listSpaceCollaboratorsSpacesSpaceIdCollaboratorsGet(UUID spaceId, UUID instanceId, String authorization) throws ApiException { + ApiResponse localVarResp = listSpaceCollaboratorsSpacesSpaceIdCollaboratorsGetWithHttpInfo(spaceId, instanceId, authorization); + return localVarResp.getData(); + } + + /** + * List Space Collaborators + * List all collaborators of a space. Parameters: - **space_id**: ID of the space to list collaborators for Returns: - **200**: List of space collaborators retrieved successfully + * @param spaceId (required) + * @param instanceId (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 listSpaceCollaboratorsSpacesSpaceIdCollaboratorsGetWithHttpInfo(UUID spaceId, UUID instanceId, String authorization) throws ApiException { + okhttp3.Call localVarCall = listSpaceCollaboratorsSpacesSpaceIdCollaboratorsGetValidateBeforeCall(spaceId, instanceId, authorization, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * List Space Collaborators (asynchronously) + * List all collaborators of a space. Parameters: - **space_id**: ID of the space to list collaborators for Returns: - **200**: List of space collaborators retrieved successfully + * @param spaceId (required) + * @param instanceId (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 listSpaceCollaboratorsSpacesSpaceIdCollaboratorsGetAsync(UUID spaceId, UUID instanceId, String authorization, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = listSpaceCollaboratorsSpacesSpaceIdCollaboratorsGetValidateBeforeCall(spaceId, instanceId, authorization, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + /** + * Build call for moveRecordToSpaceSpacesSpaceIdRecordAttachmentsPut + * @param instanceDbSpaceId (required) + * @param attachSpaceToRecordRequestBody (required) + * @param instanceId (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 moveRecordToSpaceSpacesSpaceIdRecordAttachmentsPutCall(Integer instanceDbSpaceId, AttachSpaceToRecordRequestBody attachSpaceToRecordRequestBody, UUID instanceId, 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 = attachSpaceToRecordRequestBody; + + // create path and map variables + String localVarPath = "/spaces/{space_id}/record-attachments"; + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + 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)); + } + + 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, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call moveRecordToSpaceSpacesSpaceIdRecordAttachmentsPutValidateBeforeCall(Integer instanceDbSpaceId, AttachSpaceToRecordRequestBody attachSpaceToRecordRequestBody, UUID instanceId, 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 moveRecordToSpaceSpacesSpaceIdRecordAttachmentsPut(Async)"); + } + + // verify the required parameter 'attachSpaceToRecordRequestBody' is set + if (attachSpaceToRecordRequestBody == null) { + throw new ApiException("Missing the required parameter 'attachSpaceToRecordRequestBody' when calling moveRecordToSpaceSpacesSpaceIdRecordAttachmentsPut(Async)"); + } + + return moveRecordToSpaceSpacesSpaceIdRecordAttachmentsPutCall(instanceDbSpaceId, attachSpaceToRecordRequestBody, instanceId, 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 instanceDbSpaceId (required) + * @param attachSpaceToRecordRequestBody (required) + * @param instanceId (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 moveRecordToSpaceSpacesSpaceIdRecordAttachmentsPut(Integer instanceDbSpaceId, AttachSpaceToRecordRequestBody attachSpaceToRecordRequestBody, UUID instanceId, String authorization) throws ApiException { + ApiResponse localVarResp = moveRecordToSpaceSpacesSpaceIdRecordAttachmentsPutWithHttpInfo(instanceDbSpaceId, attachSpaceToRecordRequestBody, instanceId, 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 instanceDbSpaceId (required) + * @param attachSpaceToRecordRequestBody (required) + * @param instanceId (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 moveRecordToSpaceSpacesSpaceIdRecordAttachmentsPutWithHttpInfo(Integer instanceDbSpaceId, AttachSpaceToRecordRequestBody attachSpaceToRecordRequestBody, UUID instanceId, String authorization) throws ApiException { + okhttp3.Call localVarCall = moveRecordToSpaceSpacesSpaceIdRecordAttachmentsPutValidateBeforeCall(instanceDbSpaceId, attachSpaceToRecordRequestBody, instanceId, authorization, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * 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 instanceDbSpaceId (required) + * @param attachSpaceToRecordRequestBody (required) + * @param instanceId (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 moveRecordToSpaceSpacesSpaceIdRecordAttachmentsPutAsync(Integer instanceDbSpaceId, AttachSpaceToRecordRequestBody attachSpaceToRecordRequestBody, UUID instanceId, String authorization, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = moveRecordToSpaceSpacesSpaceIdRecordAttachmentsPutValidateBeforeCall(instanceDbSpaceId, attachSpaceToRecordRequestBody, instanceId, authorization, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + /** + * Build call for removeSpaceCollaboratorSpacesSpaceIdCollaboratorsDelete + * @param spaceId (required) + * @param accountId (optional) + * @param teamId (optional) + * @param instanceId (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 removeSpaceCollaboratorSpacesSpaceIdCollaboratorsDeleteCall(UUID spaceId, UUID accountId, UUID teamId, UUID instanceId, 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 = "/spaces/{space_id}/collaborators" + .replace("{" + "space_id" + "}", localVarApiClient.escapeString(spaceId.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + if (accountId != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("account_id", accountId)); + } + + if (teamId != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("team_id", teamId)); + } + + if (instanceId != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("instance_id", instanceId)); + } + + 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, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call removeSpaceCollaboratorSpacesSpaceIdCollaboratorsDeleteValidateBeforeCall(UUID spaceId, UUID accountId, UUID teamId, 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 removeSpaceCollaboratorSpacesSpaceIdCollaboratorsDelete(Async)"); + } + + return removeSpaceCollaboratorSpacesSpaceIdCollaboratorsDeleteCall(spaceId, accountId, teamId, instanceId, authorization, _callback); + + } + + /** + * Remove Space Collaborator + * Remove a collaborator (account or team) from a space. Parameters: - **space_id**: ID of the space to remove the collaborator from - **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 from space successfully - **400**: Invalid input (e.g., both account_id and team_id provided or neither provided) + * @param spaceId (required) + * @param accountId (optional) + * @param teamId (optional) + * @param instanceId (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 removeSpaceCollaboratorSpacesSpaceIdCollaboratorsDelete(UUID spaceId, UUID accountId, UUID teamId, UUID instanceId, String authorization) throws ApiException { + ApiResponse localVarResp = removeSpaceCollaboratorSpacesSpaceIdCollaboratorsDeleteWithHttpInfo(spaceId, accountId, teamId, instanceId, authorization); + return localVarResp.getData(); + } + + /** + * Remove Space Collaborator + * Remove a collaborator (account or team) from a space. Parameters: - **space_id**: ID of the space to remove the collaborator from - **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 from space successfully - **400**: Invalid input (e.g., both account_id and team_id provided or neither provided) + * @param spaceId (required) + * @param accountId (optional) + * @param teamId (optional) + * @param instanceId (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 removeSpaceCollaboratorSpacesSpaceIdCollaboratorsDeleteWithHttpInfo(UUID spaceId, UUID accountId, UUID teamId, UUID instanceId, String authorization) throws ApiException { + okhttp3.Call localVarCall = removeSpaceCollaboratorSpacesSpaceIdCollaboratorsDeleteValidateBeforeCall(spaceId, accountId, teamId, instanceId, authorization, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * Remove Space Collaborator (asynchronously) + * Remove a collaborator (account or team) from a space. Parameters: - **space_id**: ID of the space to remove the collaborator from - **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 from space successfully - **400**: Invalid input (e.g., both account_id and team_id provided or neither provided) + * @param spaceId (required) + * @param accountId (optional) + * @param teamId (optional) + * @param instanceId (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 removeSpaceCollaboratorSpacesSpaceIdCollaboratorsDeleteAsync(UUID spaceId, UUID accountId, UUID teamId, UUID instanceId, String authorization, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = removeSpaceCollaboratorSpacesSpaceIdCollaboratorsDeleteValidateBeforeCall(spaceId, accountId, teamId, instanceId, authorization, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + /** + * Build call for updateSpaceCollaboratorSpacesSpaceIdCollaboratorsPatch + * @param spaceId (required) + * @param updateSpaceCollaboratorRequestBody (required) + * @param instanceId (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 updateSpaceCollaboratorSpacesSpaceIdCollaboratorsPatchCall(UUID spaceId, UpdateSpaceCollaboratorRequestBody updateSpaceCollaboratorRequestBody, UUID instanceId, 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 = updateSpaceCollaboratorRequestBody; + + // create path and map variables + String localVarPath = "/spaces/{space_id}/collaborators" + .replace("{" + "space_id" + "}", localVarApiClient.escapeString(spaceId.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + if (instanceId != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("instance_id", instanceId)); + } + + 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, "PATCH", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call updateSpaceCollaboratorSpacesSpaceIdCollaboratorsPatchValidateBeforeCall(UUID spaceId, UpdateSpaceCollaboratorRequestBody updateSpaceCollaboratorRequestBody, 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 updateSpaceCollaboratorSpacesSpaceIdCollaboratorsPatch(Async)"); + } + + // verify the required parameter 'updateSpaceCollaboratorRequestBody' is set + if (updateSpaceCollaboratorRequestBody == null) { + throw new ApiException("Missing the required parameter 'updateSpaceCollaboratorRequestBody' when calling updateSpaceCollaboratorSpacesSpaceIdCollaboratorsPatch(Async)"); + } + + return updateSpaceCollaboratorSpacesSpaceIdCollaboratorsPatchCall(spaceId, updateSpaceCollaboratorRequestBody, instanceId, authorization, _callback); + + } + + /** + * Update Space Collaborator + * Update a collaborator's permissions in a space. Parameters: - **space_id**: ID of the space to update the collaborator in - **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 in space + * @param spaceId (required) + * @param updateSpaceCollaboratorRequestBody (required) + * @param instanceId (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 updateSpaceCollaboratorSpacesSpaceIdCollaboratorsPatch(UUID spaceId, UpdateSpaceCollaboratorRequestBody updateSpaceCollaboratorRequestBody, UUID instanceId, String authorization) throws ApiException { + ApiResponse localVarResp = updateSpaceCollaboratorSpacesSpaceIdCollaboratorsPatchWithHttpInfo(spaceId, updateSpaceCollaboratorRequestBody, instanceId, authorization); + return localVarResp.getData(); + } + + /** + * Update Space Collaborator + * Update a collaborator's permissions in a space. Parameters: - **space_id**: ID of the space to update the collaborator in - **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 in space + * @param spaceId (required) + * @param updateSpaceCollaboratorRequestBody (required) + * @param instanceId (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 updateSpaceCollaboratorSpacesSpaceIdCollaboratorsPatchWithHttpInfo(UUID spaceId, UpdateSpaceCollaboratorRequestBody updateSpaceCollaboratorRequestBody, UUID instanceId, String authorization) throws ApiException { + okhttp3.Call localVarCall = updateSpaceCollaboratorSpacesSpaceIdCollaboratorsPatchValidateBeforeCall(spaceId, updateSpaceCollaboratorRequestBody, instanceId, authorization, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * Update Space Collaborator (asynchronously) + * Update a collaborator's permissions in a space. Parameters: - **space_id**: ID of the space to update the collaborator in - **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 in space + * @param spaceId (required) + * @param updateSpaceCollaboratorRequestBody (required) + * @param instanceId (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 updateSpaceCollaboratorSpacesSpaceIdCollaboratorsPatchAsync(UUID spaceId, UpdateSpaceCollaboratorRequestBody updateSpaceCollaboratorRequestBody, UUID instanceId, String authorization, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = updateSpaceCollaboratorSpacesSpaceIdCollaboratorsPatchValidateBeforeCall(spaceId, updateSpaceCollaboratorRequestBody, instanceId, authorization, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + /** + * Build call for updateSpaceSpacesSpaceIdPatch + * @param spaceId (required) + * @param updateSpaceRequestBody (required) + * @param instanceId (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 updateSpaceSpacesSpaceIdPatchCall(UUID spaceId, UpdateSpaceRequestBody updateSpaceRequestBody, UUID instanceId, 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 = updateSpaceRequestBody; + + // create path and map variables + String localVarPath = "/spaces/{space_id}" + .replace("{" + "space_id" + "}", localVarApiClient.escapeString(spaceId.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + if (instanceId != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("instance_id", instanceId)); + } + + 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, "PATCH", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call updateSpaceSpacesSpaceIdPatchValidateBeforeCall(UUID spaceId, UpdateSpaceRequestBody updateSpaceRequestBody, 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 updateSpaceSpacesSpaceIdPatch(Async)"); + } + + // verify the required parameter 'updateSpaceRequestBody' is set + if (updateSpaceRequestBody == null) { + throw new ApiException("Missing the required parameter 'updateSpaceRequestBody' when calling updateSpaceSpacesSpaceIdPatch(Async)"); + } + + return updateSpaceSpacesSpaceIdPatchCall(spaceId, updateSpaceRequestBody, instanceId, authorization, _callback); + + } + + /** + * Update Space + * Update a space's details. Parameters: - **space_id**: ID of the space to update - **body**: Request body containing updated space details - **name**: Optional new name for the space - **description**: Optional new description for the space Returns: - **200**: Space updated successfully + * @param spaceId (required) + * @param updateSpaceRequestBody (required) + * @param instanceId (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 updateSpaceSpacesSpaceIdPatch(UUID spaceId, UpdateSpaceRequestBody updateSpaceRequestBody, UUID instanceId, String authorization) throws ApiException { + ApiResponse localVarResp = updateSpaceSpacesSpaceIdPatchWithHttpInfo(spaceId, updateSpaceRequestBody, instanceId, authorization); + return localVarResp.getData(); + } + + /** + * Update Space + * Update a space's details. Parameters: - **space_id**: ID of the space to update - **body**: Request body containing updated space details - **name**: Optional new name for the space - **description**: Optional new description for the space Returns: - **200**: Space updated successfully + * @param spaceId (required) + * @param updateSpaceRequestBody (required) + * @param instanceId (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 updateSpaceSpacesSpaceIdPatchWithHttpInfo(UUID spaceId, UpdateSpaceRequestBody updateSpaceRequestBody, UUID instanceId, String authorization) throws ApiException { + okhttp3.Call localVarCall = updateSpaceSpacesSpaceIdPatchValidateBeforeCall(spaceId, updateSpaceRequestBody, instanceId, authorization, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * Update Space (asynchronously) + * Update a space's details. Parameters: - **space_id**: ID of the space to update - **body**: Request body containing updated space details - **name**: Optional new name for the space - **description**: Optional new description for the space Returns: - **200**: Space updated successfully + * @param spaceId (required) + * @param updateSpaceRequestBody (required) + * @param instanceId (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 updateSpaceSpacesSpaceIdPatchAsync(UUID spaceId, UpdateSpaceRequestBody updateSpaceRequestBody, UUID instanceId, String authorization, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = updateSpaceSpacesSpaceIdPatchValidateBeforeCall(spaceId, updateSpaceRequestBody, instanceId, authorization, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } +} diff --git a/src/main/java/ai/lamin/lamin_api_client/api/StoragesApi.java b/src/main/java/ai/lamin/lamin_api_client/api/StoragesApi.java new file mode 100644 index 0000000..ddea98a --- /dev/null +++ b/src/main/java/ai/lamin/lamin_api_client/api/StoragesApi.java @@ -0,0 +1,251 @@ +/* + * 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.api; + +import ai.lamin.lamin_api_client.ApiCallback; +import ai.lamin.lamin_api_client.ApiClient; +import ai.lamin.lamin_api_client.ApiException; +import ai.lamin.lamin_api_client.ApiResponse; +import ai.lamin.lamin_api_client.Configuration; +import ai.lamin.lamin_api_client.Pair; +import ai.lamin.lamin_api_client.ProgressRequestBody; +import ai.lamin.lamin_api_client.ProgressResponseBody; + +import com.google.gson.reflect.TypeToken; + +import java.io.IOException; + + +import ai.lamin.lamin_api_client.model.HTTPValidationError; +import ai.lamin.lamin_api_client.model.S3PermissionsRequest; +import java.util.UUID; + +import java.lang.reflect.Type; +import java.util.ArrayList; +import java.util.HashMap; +import java.util.List; +import java.util.Map; + +public class StoragesApi { + private ApiClient localVarApiClient; + private int localHostIndex; + private String localCustomBaseUrl; + + public StoragesApi() { + this(Configuration.getDefaultApiClient()); + } + + public StoragesApi(ApiClient apiClient) { + this.localVarApiClient = apiClient; + } + + public ApiClient getApiClient() { + return localVarApiClient; + } + + public void setApiClient(ApiClient apiClient) { + this.localVarApiClient = apiClient; + } + + public int getHostIndex() { + return localHostIndex; + } + + public void setHostIndex(int hostIndex) { + this.localHostIndex = hostIndex; + } + + public String getCustomBaseUrl() { + return localCustomBaseUrl; + } + + public void setCustomBaseUrl(String customBaseUrl) { + this.localCustomBaseUrl = customBaseUrl; + } + + /** + * Build call for grantS3PermissionsStoragesS3BucketNamePermissionsPut + * @param bucketName (required) + * @param s3PermissionsRequest (required) + * @param awsAccountId (optional, default to 767398070972) + * @param awsUserName (optional, default to lamin-manager) + * @param instanceId (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 grantS3PermissionsStoragesS3BucketNamePermissionsPutCall(String bucketName, S3PermissionsRequest s3PermissionsRequest, String awsAccountId, String awsUserName, UUID instanceId, 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 = s3PermissionsRequest; + + // create path and map variables + String localVarPath = "/storages/s3/{bucket_name}/permissions" + .replace("{" + "bucket_name" + "}", localVarApiClient.escapeString(bucketName.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + if (awsAccountId != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("aws_account_id", awsAccountId)); + } + + if (awsUserName != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("aws_user_name", awsUserName)); + } + + if (instanceId != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("instance_id", instanceId)); + } + + 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, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call grantS3PermissionsStoragesS3BucketNamePermissionsPutValidateBeforeCall(String bucketName, S3PermissionsRequest s3PermissionsRequest, String awsAccountId, String awsUserName, UUID instanceId, String authorization, final ApiCallback _callback) throws ApiException { + // verify the required parameter 'bucketName' is set + if (bucketName == null) { + throw new ApiException("Missing the required parameter 'bucketName' when calling grantS3PermissionsStoragesS3BucketNamePermissionsPut(Async)"); + } + + // verify the required parameter 's3PermissionsRequest' is set + if (s3PermissionsRequest == null) { + throw new ApiException("Missing the required parameter 's3PermissionsRequest' when calling grantS3PermissionsStoragesS3BucketNamePermissionsPut(Async)"); + } + + return grantS3PermissionsStoragesS3BucketNamePermissionsPutCall(bucketName, s3PermissionsRequest, awsAccountId, awsUserName, instanceId, authorization, _callback); + + } + + /** + * Grant S3 Permissions + * + * @param bucketName (required) + * @param s3PermissionsRequest (required) + * @param awsAccountId (optional, default to 767398070972) + * @param awsUserName (optional, default to lamin-manager) + * @param instanceId (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 grantS3PermissionsStoragesS3BucketNamePermissionsPut(String bucketName, S3PermissionsRequest s3PermissionsRequest, String awsAccountId, String awsUserName, UUID instanceId, String authorization) throws ApiException { + ApiResponse localVarResp = grantS3PermissionsStoragesS3BucketNamePermissionsPutWithHttpInfo(bucketName, s3PermissionsRequest, awsAccountId, awsUserName, instanceId, authorization); + return localVarResp.getData(); + } + + /** + * Grant S3 Permissions + * + * @param bucketName (required) + * @param s3PermissionsRequest (required) + * @param awsAccountId (optional, default to 767398070972) + * @param awsUserName (optional, default to lamin-manager) + * @param instanceId (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 grantS3PermissionsStoragesS3BucketNamePermissionsPutWithHttpInfo(String bucketName, S3PermissionsRequest s3PermissionsRequest, String awsAccountId, String awsUserName, UUID instanceId, String authorization) throws ApiException { + okhttp3.Call localVarCall = grantS3PermissionsStoragesS3BucketNamePermissionsPutValidateBeforeCall(bucketName, s3PermissionsRequest, awsAccountId, awsUserName, instanceId, authorization, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * Grant S3 Permissions (asynchronously) + * + * @param bucketName (required) + * @param s3PermissionsRequest (required) + * @param awsAccountId (optional, default to 767398070972) + * @param awsUserName (optional, default to lamin-manager) + * @param instanceId (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 grantS3PermissionsStoragesS3BucketNamePermissionsPutAsync(String bucketName, S3PermissionsRequest s3PermissionsRequest, String awsAccountId, String awsUserName, UUID instanceId, String authorization, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = grantS3PermissionsStoragesS3BucketNamePermissionsPutValidateBeforeCall(bucketName, s3PermissionsRequest, awsAccountId, awsUserName, instanceId, authorization, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } +} diff --git a/src/main/java/ai/lamin/lamin_api_client/api/TeamsApi.java b/src/main/java/ai/lamin/lamin_api_client/api/TeamsApi.java new file mode 100644 index 0000000..1d08bbe --- /dev/null +++ b/src/main/java/ai/lamin/lamin_api_client/api/TeamsApi.java @@ -0,0 +1,1472 @@ +/* + * 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.api; + +import ai.lamin.lamin_api_client.ApiCallback; +import ai.lamin.lamin_api_client.ApiClient; +import ai.lamin.lamin_api_client.ApiException; +import ai.lamin.lamin_api_client.ApiResponse; +import ai.lamin.lamin_api_client.Configuration; +import ai.lamin.lamin_api_client.Pair; +import ai.lamin.lamin_api_client.ProgressRequestBody; +import ai.lamin.lamin_api_client.ProgressResponseBody; + +import com.google.gson.reflect.TypeToken; + +import java.io.IOException; + + +import ai.lamin.lamin_api_client.model.AddTeamMemberRequestBody; +import ai.lamin.lamin_api_client.model.CreateTeamRequestBody; +import ai.lamin.lamin_api_client.model.HTTPValidationError; +import java.util.UUID; +import ai.lamin.lamin_api_client.model.UpdateTeamMemberRequestBody; +import ai.lamin.lamin_api_client.model.UpdateTeamRequestBody; + +import java.lang.reflect.Type; +import java.util.ArrayList; +import java.util.HashMap; +import java.util.List; +import java.util.Map; + +public class TeamsApi { + private ApiClient localVarApiClient; + private int localHostIndex; + private String localCustomBaseUrl; + + public TeamsApi() { + this(Configuration.getDefaultApiClient()); + } + + public TeamsApi(ApiClient apiClient) { + this.localVarApiClient = apiClient; + } + + public ApiClient getApiClient() { + return localVarApiClient; + } + + public void setApiClient(ApiClient apiClient) { + this.localVarApiClient = apiClient; + } + + public int getHostIndex() { + return localHostIndex; + } + + public void setHostIndex(int hostIndex) { + this.localHostIndex = hostIndex; + } + + public String getCustomBaseUrl() { + return localCustomBaseUrl; + } + + public void setCustomBaseUrl(String customBaseUrl) { + this.localCustomBaseUrl = customBaseUrl; + } + + /** + * Build call for addTeamMemberTeamsTeamIdMembersAccountIdPut + * @param teamId (required) + * @param accountId (required) + * @param addTeamMemberRequestBody (required) + * @param instanceId (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 addTeamMemberTeamsTeamIdMembersAccountIdPutCall(UUID teamId, UUID accountId, AddTeamMemberRequestBody addTeamMemberRequestBody, UUID instanceId, 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 = addTeamMemberRequestBody; + + // create path and map variables + String localVarPath = "/teams/{team_id}/members/{account_id}" + .replace("{" + "team_id" + "}", localVarApiClient.escapeString(teamId.toString())) + .replace("{" + "account_id" + "}", localVarApiClient.escapeString(accountId.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + if (instanceId != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("instance_id", instanceId)); + } + + 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, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call addTeamMemberTeamsTeamIdMembersAccountIdPutValidateBeforeCall(UUID teamId, UUID accountId, AddTeamMemberRequestBody addTeamMemberRequestBody, UUID instanceId, String authorization, final ApiCallback _callback) throws ApiException { + // verify the required parameter 'teamId' is set + if (teamId == null) { + throw new ApiException("Missing the required parameter 'teamId' when calling addTeamMemberTeamsTeamIdMembersAccountIdPut(Async)"); + } + + // verify the required parameter 'accountId' is set + if (accountId == null) { + throw new ApiException("Missing the required parameter 'accountId' when calling addTeamMemberTeamsTeamIdMembersAccountIdPut(Async)"); + } + + // verify the required parameter 'addTeamMemberRequestBody' is set + if (addTeamMemberRequestBody == null) { + throw new ApiException("Missing the required parameter 'addTeamMemberRequestBody' when calling addTeamMemberTeamsTeamIdMembersAccountIdPut(Async)"); + } + + return addTeamMemberTeamsTeamIdMembersAccountIdPutCall(teamId, accountId, addTeamMemberRequestBody, instanceId, authorization, _callback); + + } + + /** + * Add Team Member + * Add a member to a team. Parameters: - **team_id**: UUID of the team to add the member to - **account_id**: UUID of the account to add as a member - **body**: Request body containing member details - **role**: Role of the member in the team Returns: - **201**: Team member added successfully + * @param teamId (required) + * @param accountId (required) + * @param addTeamMemberRequestBody (required) + * @param instanceId (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 addTeamMemberTeamsTeamIdMembersAccountIdPut(UUID teamId, UUID accountId, AddTeamMemberRequestBody addTeamMemberRequestBody, UUID instanceId, String authorization) throws ApiException { + ApiResponse localVarResp = addTeamMemberTeamsTeamIdMembersAccountIdPutWithHttpInfo(teamId, accountId, addTeamMemberRequestBody, instanceId, authorization); + return localVarResp.getData(); + } + + /** + * Add Team Member + * Add a member to a team. Parameters: - **team_id**: UUID of the team to add the member to - **account_id**: UUID of the account to add as a member - **body**: Request body containing member details - **role**: Role of the member in the team Returns: - **201**: Team member added successfully + * @param teamId (required) + * @param accountId (required) + * @param addTeamMemberRequestBody (required) + * @param instanceId (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 addTeamMemberTeamsTeamIdMembersAccountIdPutWithHttpInfo(UUID teamId, UUID accountId, AddTeamMemberRequestBody addTeamMemberRequestBody, UUID instanceId, String authorization) throws ApiException { + okhttp3.Call localVarCall = addTeamMemberTeamsTeamIdMembersAccountIdPutValidateBeforeCall(teamId, accountId, addTeamMemberRequestBody, instanceId, authorization, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * Add Team Member (asynchronously) + * Add a member to a team. Parameters: - **team_id**: UUID of the team to add the member to - **account_id**: UUID of the account to add as a member - **body**: Request body containing member details - **role**: Role of the member in the team Returns: - **201**: Team member added successfully + * @param teamId (required) + * @param accountId (required) + * @param addTeamMemberRequestBody (required) + * @param instanceId (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 addTeamMemberTeamsTeamIdMembersAccountIdPutAsync(UUID teamId, UUID accountId, AddTeamMemberRequestBody addTeamMemberRequestBody, UUID instanceId, String authorization, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = addTeamMemberTeamsTeamIdMembersAccountIdPutValidateBeforeCall(teamId, accountId, addTeamMemberRequestBody, instanceId, authorization, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + /** + * Build call for createTeamTeamsPut + * @param createTeamRequestBody (required) + * @param instanceId (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 createTeamTeamsPutCall(CreateTeamRequestBody createTeamRequestBody, UUID instanceId, 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 = createTeamRequestBody; + + // create path and map variables + String localVarPath = "/teams"; + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + if (instanceId != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("instance_id", instanceId)); + } + + 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, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call createTeamTeamsPutValidateBeforeCall(CreateTeamRequestBody createTeamRequestBody, UUID instanceId, String authorization, final ApiCallback _callback) throws ApiException { + // verify the required parameter 'createTeamRequestBody' is set + if (createTeamRequestBody == null) { + throw new ApiException("Missing the required parameter 'createTeamRequestBody' when calling createTeamTeamsPut(Async)"); + } + + return createTeamTeamsPutCall(createTeamRequestBody, instanceId, authorization, _callback); + + } + + /** + * Create Team + * Create a new team. Parameters: - **body**: Request body containing team details - **name**: Name of the team - **organization_id**: UUID of the organization - **description**: Optional description of the team Returns: - **201**: Team created successfully + * @param createTeamRequestBody (required) + * @param instanceId (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 createTeamTeamsPut(CreateTeamRequestBody createTeamRequestBody, UUID instanceId, String authorization) throws ApiException { + ApiResponse localVarResp = createTeamTeamsPutWithHttpInfo(createTeamRequestBody, instanceId, authorization); + return localVarResp.getData(); + } + + /** + * Create Team + * Create a new team. Parameters: - **body**: Request body containing team details - **name**: Name of the team - **organization_id**: UUID of the organization - **description**: Optional description of the team Returns: - **201**: Team created successfully + * @param createTeamRequestBody (required) + * @param instanceId (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 createTeamTeamsPutWithHttpInfo(CreateTeamRequestBody createTeamRequestBody, UUID instanceId, String authorization) throws ApiException { + okhttp3.Call localVarCall = createTeamTeamsPutValidateBeforeCall(createTeamRequestBody, instanceId, authorization, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * Create Team (asynchronously) + * Create a new team. Parameters: - **body**: Request body containing team details - **name**: Name of the team - **organization_id**: UUID of the organization - **description**: Optional description of the team Returns: - **201**: Team created successfully + * @param createTeamRequestBody (required) + * @param instanceId (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 createTeamTeamsPutAsync(CreateTeamRequestBody createTeamRequestBody, UUID instanceId, String authorization, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = createTeamTeamsPutValidateBeforeCall(createTeamRequestBody, instanceId, authorization, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + /** + * Build call for deleteTeamTeamsTeamIdDelete + * @param teamId (required) + * @param instanceId (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 deleteTeamTeamsTeamIdDeleteCall(UUID teamId, UUID instanceId, 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 = "/teams/{team_id}" + .replace("{" + "team_id" + "}", localVarApiClient.escapeString(teamId.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + if (instanceId != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("instance_id", instanceId)); + } + + 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, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call deleteTeamTeamsTeamIdDeleteValidateBeforeCall(UUID teamId, UUID instanceId, String authorization, final ApiCallback _callback) throws ApiException { + // verify the required parameter 'teamId' is set + if (teamId == null) { + throw new ApiException("Missing the required parameter 'teamId' when calling deleteTeamTeamsTeamIdDelete(Async)"); + } + + return deleteTeamTeamsTeamIdDeleteCall(teamId, instanceId, authorization, _callback); + + } + + /** + * Delete Team + * Delete a team. Parameters: - **team_id**: UUID of the team to delete Returns: - **200**: Team deleted successfully + * @param teamId (required) + * @param instanceId (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 deleteTeamTeamsTeamIdDelete(UUID teamId, UUID instanceId, String authorization) throws ApiException { + ApiResponse localVarResp = deleteTeamTeamsTeamIdDeleteWithHttpInfo(teamId, instanceId, authorization); + return localVarResp.getData(); + } + + /** + * Delete Team + * Delete a team. Parameters: - **team_id**: UUID of the team to delete Returns: - **200**: Team deleted successfully + * @param teamId (required) + * @param instanceId (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 deleteTeamTeamsTeamIdDeleteWithHttpInfo(UUID teamId, UUID instanceId, String authorization) throws ApiException { + okhttp3.Call localVarCall = deleteTeamTeamsTeamIdDeleteValidateBeforeCall(teamId, instanceId, authorization, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * Delete Team (asynchronously) + * Delete a team. Parameters: - **team_id**: UUID of the team to delete Returns: - **200**: Team deleted successfully + * @param teamId (required) + * @param instanceId (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 deleteTeamTeamsTeamIdDeleteAsync(UUID teamId, UUID instanceId, String authorization, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = deleteTeamTeamsTeamIdDeleteValidateBeforeCall(teamId, instanceId, authorization, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + /** + * Build call for getTeamTeamsTeamIdGet + * @param teamId (required) + * @param instanceId (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 getTeamTeamsTeamIdGetCall(UUID teamId, UUID instanceId, 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 = "/teams/{team_id}" + .replace("{" + "team_id" + "}", localVarApiClient.escapeString(teamId.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + if (instanceId != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("instance_id", instanceId)); + } + + 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 getTeamTeamsTeamIdGetValidateBeforeCall(UUID teamId, UUID instanceId, String authorization, final ApiCallback _callback) throws ApiException { + // verify the required parameter 'teamId' is set + if (teamId == null) { + throw new ApiException("Missing the required parameter 'teamId' when calling getTeamTeamsTeamIdGet(Async)"); + } + + return getTeamTeamsTeamIdGetCall(teamId, instanceId, authorization, _callback); + + } + + /** + * Get Team + * Get details of a specific team. Parameters: - **team_id**: UUID of the team to retrieve Returns: - **200**: Team details retrieved successfully - **404**: Team not found + * @param teamId (required) + * @param instanceId (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 getTeamTeamsTeamIdGet(UUID teamId, UUID instanceId, String authorization) throws ApiException { + ApiResponse localVarResp = getTeamTeamsTeamIdGetWithHttpInfo(teamId, instanceId, authorization); + return localVarResp.getData(); + } + + /** + * Get Team + * Get details of a specific team. Parameters: - **team_id**: UUID of the team to retrieve Returns: - **200**: Team details retrieved successfully - **404**: Team not found + * @param teamId (required) + * @param instanceId (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 getTeamTeamsTeamIdGetWithHttpInfo(UUID teamId, UUID instanceId, String authorization) throws ApiException { + okhttp3.Call localVarCall = getTeamTeamsTeamIdGetValidateBeforeCall(teamId, instanceId, authorization, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * Get Team (asynchronously) + * Get details of a specific team. Parameters: - **team_id**: UUID of the team to retrieve Returns: - **200**: Team details retrieved successfully - **404**: Team not found + * @param teamId (required) + * @param instanceId (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 getTeamTeamsTeamIdGetAsync(UUID teamId, UUID instanceId, String authorization, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = getTeamTeamsTeamIdGetValidateBeforeCall(teamId, instanceId, authorization, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + /** + * Build call for listOrganizationTeamsTeamsOrganizationsOrganizationIdGet + * @param organizationId (required) + * @param instanceId (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 listOrganizationTeamsTeamsOrganizationsOrganizationIdGetCall(UUID organizationId, UUID instanceId, 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 = "/teams/organizations/{organization_id}" + .replace("{" + "organization_id" + "}", localVarApiClient.escapeString(organizationId.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + if (instanceId != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("instance_id", instanceId)); + } + + 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 listOrganizationTeamsTeamsOrganizationsOrganizationIdGetValidateBeforeCall(UUID organizationId, UUID instanceId, String authorization, final ApiCallback _callback) throws ApiException { + // verify the required parameter 'organizationId' is set + if (organizationId == null) { + throw new ApiException("Missing the required parameter 'organizationId' when calling listOrganizationTeamsTeamsOrganizationsOrganizationIdGet(Async)"); + } + + return listOrganizationTeamsTeamsOrganizationsOrganizationIdGetCall(organizationId, instanceId, authorization, _callback); + + } + + /** + * List Organization Teams + * List all teams in an organization. Parameters: - **organization_id**: UUID of the organization to list teams for Returns: - **200**: List of teams retrieved successfully + * @param organizationId (required) + * @param instanceId (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 listOrganizationTeamsTeamsOrganizationsOrganizationIdGet(UUID organizationId, UUID instanceId, String authorization) throws ApiException { + ApiResponse localVarResp = listOrganizationTeamsTeamsOrganizationsOrganizationIdGetWithHttpInfo(organizationId, instanceId, authorization); + return localVarResp.getData(); + } + + /** + * List Organization Teams + * List all teams in an organization. Parameters: - **organization_id**: UUID of the organization to list teams for Returns: - **200**: List of teams retrieved successfully + * @param organizationId (required) + * @param instanceId (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 listOrganizationTeamsTeamsOrganizationsOrganizationIdGetWithHttpInfo(UUID organizationId, UUID instanceId, String authorization) throws ApiException { + okhttp3.Call localVarCall = listOrganizationTeamsTeamsOrganizationsOrganizationIdGetValidateBeforeCall(organizationId, instanceId, authorization, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * List Organization Teams (asynchronously) + * List all teams in an organization. Parameters: - **organization_id**: UUID of the organization to list teams for Returns: - **200**: List of teams retrieved successfully + * @param organizationId (required) + * @param instanceId (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 listOrganizationTeamsTeamsOrganizationsOrganizationIdGetAsync(UUID organizationId, UUID instanceId, String authorization, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = listOrganizationTeamsTeamsOrganizationsOrganizationIdGetValidateBeforeCall(organizationId, instanceId, authorization, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + /** + * Build call for listTeamMembersTeamsTeamIdMembersGet + * @param teamId (required) + * @param instanceId (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 listTeamMembersTeamsTeamIdMembersGetCall(UUID teamId, UUID instanceId, 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 = "/teams/{team_id}/members" + .replace("{" + "team_id" + "}", localVarApiClient.escapeString(teamId.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + if (instanceId != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("instance_id", instanceId)); + } + + 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 listTeamMembersTeamsTeamIdMembersGetValidateBeforeCall(UUID teamId, UUID instanceId, String authorization, final ApiCallback _callback) throws ApiException { + // verify the required parameter 'teamId' is set + if (teamId == null) { + throw new ApiException("Missing the required parameter 'teamId' when calling listTeamMembersTeamsTeamIdMembersGet(Async)"); + } + + return listTeamMembersTeamsTeamIdMembersGetCall(teamId, instanceId, authorization, _callback); + + } + + /** + * List Team Members + * List all members of a team. Parameters: - **team_id**: UUID of the team to list members for Returns: - **200**: List of team members retrieved successfully + * @param teamId (required) + * @param instanceId (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 listTeamMembersTeamsTeamIdMembersGet(UUID teamId, UUID instanceId, String authorization) throws ApiException { + ApiResponse localVarResp = listTeamMembersTeamsTeamIdMembersGetWithHttpInfo(teamId, instanceId, authorization); + return localVarResp.getData(); + } + + /** + * List Team Members + * List all members of a team. Parameters: - **team_id**: UUID of the team to list members for Returns: - **200**: List of team members retrieved successfully + * @param teamId (required) + * @param instanceId (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 listTeamMembersTeamsTeamIdMembersGetWithHttpInfo(UUID teamId, UUID instanceId, String authorization) throws ApiException { + okhttp3.Call localVarCall = listTeamMembersTeamsTeamIdMembersGetValidateBeforeCall(teamId, instanceId, authorization, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * List Team Members (asynchronously) + * List all members of a team. Parameters: - **team_id**: UUID of the team to list members for Returns: - **200**: List of team members retrieved successfully + * @param teamId (required) + * @param instanceId (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 listTeamMembersTeamsTeamIdMembersGetAsync(UUID teamId, UUID instanceId, String authorization, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = listTeamMembersTeamsTeamIdMembersGetValidateBeforeCall(teamId, instanceId, authorization, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + /** + * Build call for removeTeamMemberTeamsTeamIdMembersAccountIdDelete + * @param teamId (required) + * @param accountId (required) + * @param instanceId (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 removeTeamMemberTeamsTeamIdMembersAccountIdDeleteCall(UUID teamId, UUID accountId, UUID instanceId, 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 = "/teams/{team_id}/members/{account_id}" + .replace("{" + "team_id" + "}", localVarApiClient.escapeString(teamId.toString())) + .replace("{" + "account_id" + "}", localVarApiClient.escapeString(accountId.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + if (instanceId != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("instance_id", instanceId)); + } + + 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, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call removeTeamMemberTeamsTeamIdMembersAccountIdDeleteValidateBeforeCall(UUID teamId, UUID accountId, UUID instanceId, String authorization, final ApiCallback _callback) throws ApiException { + // verify the required parameter 'teamId' is set + if (teamId == null) { + throw new ApiException("Missing the required parameter 'teamId' when calling removeTeamMemberTeamsTeamIdMembersAccountIdDelete(Async)"); + } + + // verify the required parameter 'accountId' is set + if (accountId == null) { + throw new ApiException("Missing the required parameter 'accountId' when calling removeTeamMemberTeamsTeamIdMembersAccountIdDelete(Async)"); + } + + return removeTeamMemberTeamsTeamIdMembersAccountIdDeleteCall(teamId, accountId, instanceId, authorization, _callback); + + } + + /** + * Remove Team Member + * Remove a member from a team. Parameters: - **team_id**: UUID of the team to remove the member from - **account_id**: UUID of the account to remove from the team Returns: - **200**: Team member removed successfully - **404**: Member not found in team + * @param teamId (required) + * @param accountId (required) + * @param instanceId (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 removeTeamMemberTeamsTeamIdMembersAccountIdDelete(UUID teamId, UUID accountId, UUID instanceId, String authorization) throws ApiException { + ApiResponse localVarResp = removeTeamMemberTeamsTeamIdMembersAccountIdDeleteWithHttpInfo(teamId, accountId, instanceId, authorization); + return localVarResp.getData(); + } + + /** + * Remove Team Member + * Remove a member from a team. Parameters: - **team_id**: UUID of the team to remove the member from - **account_id**: UUID of the account to remove from the team Returns: - **200**: Team member removed successfully - **404**: Member not found in team + * @param teamId (required) + * @param accountId (required) + * @param instanceId (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 removeTeamMemberTeamsTeamIdMembersAccountIdDeleteWithHttpInfo(UUID teamId, UUID accountId, UUID instanceId, String authorization) throws ApiException { + okhttp3.Call localVarCall = removeTeamMemberTeamsTeamIdMembersAccountIdDeleteValidateBeforeCall(teamId, accountId, instanceId, authorization, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * Remove Team Member (asynchronously) + * Remove a member from a team. Parameters: - **team_id**: UUID of the team to remove the member from - **account_id**: UUID of the account to remove from the team Returns: - **200**: Team member removed successfully - **404**: Member not found in team + * @param teamId (required) + * @param accountId (required) + * @param instanceId (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 removeTeamMemberTeamsTeamIdMembersAccountIdDeleteAsync(UUID teamId, UUID accountId, UUID instanceId, String authorization, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = removeTeamMemberTeamsTeamIdMembersAccountIdDeleteValidateBeforeCall(teamId, accountId, instanceId, authorization, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + /** + * Build call for updateTeamMemberTeamsTeamIdMembersAccountIdPatch + * @param teamId (required) + * @param accountId (required) + * @param updateTeamMemberRequestBody (required) + * @param instanceId (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 updateTeamMemberTeamsTeamIdMembersAccountIdPatchCall(UUID teamId, UUID accountId, UpdateTeamMemberRequestBody updateTeamMemberRequestBody, UUID instanceId, 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 = updateTeamMemberRequestBody; + + // create path and map variables + String localVarPath = "/teams/{team_id}/members/{account_id}" + .replace("{" + "team_id" + "}", localVarApiClient.escapeString(teamId.toString())) + .replace("{" + "account_id" + "}", localVarApiClient.escapeString(accountId.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + if (instanceId != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("instance_id", instanceId)); + } + + 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, "PATCH", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call updateTeamMemberTeamsTeamIdMembersAccountIdPatchValidateBeforeCall(UUID teamId, UUID accountId, UpdateTeamMemberRequestBody updateTeamMemberRequestBody, UUID instanceId, String authorization, final ApiCallback _callback) throws ApiException { + // verify the required parameter 'teamId' is set + if (teamId == null) { + throw new ApiException("Missing the required parameter 'teamId' when calling updateTeamMemberTeamsTeamIdMembersAccountIdPatch(Async)"); + } + + // verify the required parameter 'accountId' is set + if (accountId == null) { + throw new ApiException("Missing the required parameter 'accountId' when calling updateTeamMemberTeamsTeamIdMembersAccountIdPatch(Async)"); + } + + // verify the required parameter 'updateTeamMemberRequestBody' is set + if (updateTeamMemberRequestBody == null) { + throw new ApiException("Missing the required parameter 'updateTeamMemberRequestBody' when calling updateTeamMemberTeamsTeamIdMembersAccountIdPatch(Async)"); + } + + return updateTeamMemberTeamsTeamIdMembersAccountIdPatchCall(teamId, accountId, updateTeamMemberRequestBody, instanceId, authorization, _callback); + + } + + /** + * Update Team Member + * Update a team member's details. Parameters: - **team_id**: UUID of the team the member belongs to - **account_id**: UUID of the account to update - **body**: Request body containing updated member details - **role**: Role of the member in the team Returns: - **200**: Team member updated successfully - **404**: Member not found in team + * @param teamId (required) + * @param accountId (required) + * @param updateTeamMemberRequestBody (required) + * @param instanceId (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 updateTeamMemberTeamsTeamIdMembersAccountIdPatch(UUID teamId, UUID accountId, UpdateTeamMemberRequestBody updateTeamMemberRequestBody, UUID instanceId, String authorization) throws ApiException { + ApiResponse localVarResp = updateTeamMemberTeamsTeamIdMembersAccountIdPatchWithHttpInfo(teamId, accountId, updateTeamMemberRequestBody, instanceId, authorization); + return localVarResp.getData(); + } + + /** + * Update Team Member + * Update a team member's details. Parameters: - **team_id**: UUID of the team the member belongs to - **account_id**: UUID of the account to update - **body**: Request body containing updated member details - **role**: Role of the member in the team Returns: - **200**: Team member updated successfully - **404**: Member not found in team + * @param teamId (required) + * @param accountId (required) + * @param updateTeamMemberRequestBody (required) + * @param instanceId (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 updateTeamMemberTeamsTeamIdMembersAccountIdPatchWithHttpInfo(UUID teamId, UUID accountId, UpdateTeamMemberRequestBody updateTeamMemberRequestBody, UUID instanceId, String authorization) throws ApiException { + okhttp3.Call localVarCall = updateTeamMemberTeamsTeamIdMembersAccountIdPatchValidateBeforeCall(teamId, accountId, updateTeamMemberRequestBody, instanceId, authorization, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * Update Team Member (asynchronously) + * Update a team member's details. Parameters: - **team_id**: UUID of the team the member belongs to - **account_id**: UUID of the account to update - **body**: Request body containing updated member details - **role**: Role of the member in the team Returns: - **200**: Team member updated successfully - **404**: Member not found in team + * @param teamId (required) + * @param accountId (required) + * @param updateTeamMemberRequestBody (required) + * @param instanceId (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 updateTeamMemberTeamsTeamIdMembersAccountIdPatchAsync(UUID teamId, UUID accountId, UpdateTeamMemberRequestBody updateTeamMemberRequestBody, UUID instanceId, String authorization, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = updateTeamMemberTeamsTeamIdMembersAccountIdPatchValidateBeforeCall(teamId, accountId, updateTeamMemberRequestBody, instanceId, authorization, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + /** + * Build call for updateTeamTeamsTeamIdPatch + * @param teamId (required) + * @param updateTeamRequestBody (required) + * @param instanceId (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 updateTeamTeamsTeamIdPatchCall(UUID teamId, UpdateTeamRequestBody updateTeamRequestBody, UUID instanceId, 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 = updateTeamRequestBody; + + // create path and map variables + String localVarPath = "/teams/{team_id}" + .replace("{" + "team_id" + "}", localVarApiClient.escapeString(teamId.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + if (instanceId != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("instance_id", instanceId)); + } + + 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, "PATCH", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call updateTeamTeamsTeamIdPatchValidateBeforeCall(UUID teamId, UpdateTeamRequestBody updateTeamRequestBody, UUID instanceId, String authorization, final ApiCallback _callback) throws ApiException { + // verify the required parameter 'teamId' is set + if (teamId == null) { + throw new ApiException("Missing the required parameter 'teamId' when calling updateTeamTeamsTeamIdPatch(Async)"); + } + + // verify the required parameter 'updateTeamRequestBody' is set + if (updateTeamRequestBody == null) { + throw new ApiException("Missing the required parameter 'updateTeamRequestBody' when calling updateTeamTeamsTeamIdPatch(Async)"); + } + + return updateTeamTeamsTeamIdPatchCall(teamId, updateTeamRequestBody, instanceId, authorization, _callback); + + } + + /** + * Update Team + * Update a team's details. Parameters: - **team_id**: UUID of the team to update - **body**: Request body containing updated team details - **name**: Optional new name for the team - **description**: Optional new description for the team Returns: - **200**: Team updated successfully + * @param teamId (required) + * @param updateTeamRequestBody (required) + * @param instanceId (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 updateTeamTeamsTeamIdPatch(UUID teamId, UpdateTeamRequestBody updateTeamRequestBody, UUID instanceId, String authorization) throws ApiException { + ApiResponse localVarResp = updateTeamTeamsTeamIdPatchWithHttpInfo(teamId, updateTeamRequestBody, instanceId, authorization); + return localVarResp.getData(); + } + + /** + * Update Team + * Update a team's details. Parameters: - **team_id**: UUID of the team to update - **body**: Request body containing updated team details - **name**: Optional new name for the team - **description**: Optional new description for the team Returns: - **200**: Team updated successfully + * @param teamId (required) + * @param updateTeamRequestBody (required) + * @param instanceId (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 updateTeamTeamsTeamIdPatchWithHttpInfo(UUID teamId, UpdateTeamRequestBody updateTeamRequestBody, UUID instanceId, String authorization) throws ApiException { + okhttp3.Call localVarCall = updateTeamTeamsTeamIdPatchValidateBeforeCall(teamId, updateTeamRequestBody, instanceId, authorization, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * Update Team (asynchronously) + * Update a team's details. Parameters: - **team_id**: UUID of the team to update - **body**: Request body containing updated team details - **name**: Optional new name for the team - **description**: Optional new description for the team Returns: - **200**: Team updated successfully + * @param teamId (required) + * @param updateTeamRequestBody (required) + * @param instanceId (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 updateTeamTeamsTeamIdPatchAsync(UUID teamId, UpdateTeamRequestBody updateTeamRequestBody, UUID instanceId, String authorization, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = updateTeamTeamsTeamIdPatchValidateBeforeCall(teamId, updateTeamRequestBody, instanceId, authorization, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } +} 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 1f4af3f..38ae95b 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-06-17T13:08:14.011869776+02:00[Europe/Brussels]", comments = "Generator version: 7.12.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-01-08T15:17:29.048390180+01: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 7088e02..ba92891 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-06-17T13:08:14.011869776+02:00[Europe/Brussels]", comments = "Generator version: 7.12.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-01-08T15:17:29.048390180+01: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 16788a0..f3fa7b9 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-06-17T13:08:14.011869776+02:00[Europe/Brussels]", comments = "Generator version: 7.12.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-01-08T15:17:29.048390180+01: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 a6aaf94..899c555 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-06-17T13:08:14.011869776+02:00[Europe/Brussels]", comments = "Generator version: 7.12.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-01-08T15:17:29.048390180+01: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/AddOrganizationMemberRequestBody.java b/src/main/java/ai/lamin/lamin_api_client/model/AddOrganizationMemberRequestBody.java index 9aca7da..fa1d32e 100644 --- a/src/main/java/ai/lamin/lamin_api_client/model/AddOrganizationMemberRequestBody.java +++ b/src/main/java/ai/lamin/lamin_api_client/model/AddOrganizationMemberRequestBody.java @@ -48,7 +48,7 @@ /** * AddOrganizationMemberRequestBody */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-06-17T13:08:14.011869776+02:00[Europe/Brussels]", comments = "Generator version: 7.12.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-01-08T15:17:29.048390180+01:00[Europe/Brussels]", comments = "Generator version: 7.12.0") public class AddOrganizationMemberRequestBody { /** * Gets or Sets role @@ -57,9 +57,11 @@ public class AddOrganizationMemberRequestBody { public enum RoleEnum { ADMIN("admin"), + MANAGER("manager"), + MEMBER("member"), - MANAGER("manager"); + GUEST("guest"); private String value; 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 e02f3e8..05cfc6d 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-06-17T13:08:14.011869776+02:00[Europe/Brussels]", comments = "Generator version: 7.12.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-01-08T15:17:29.048390180+01: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 90e9b63..5aad761 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 @@ -49,7 +49,7 @@ /** * AddTeamMemberRequestBody */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-06-17T13:08:14.011869776+02:00[Europe/Brussels]", comments = "Generator version: 7.12.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-01-08T15:17:29.048390180+01:00[Europe/Brussels]", comments = "Generator version: 7.12.0") public class AddTeamMemberRequestBody { public static final String SERIALIZED_NAME_ROLE = "role"; @SerializedName(SERIALIZED_NAME_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 1580612..2ddeb7e 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-06-17T13:08:14.011869776+02:00[Europe/Brussels]", comments = "Generator version: 7.12.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-01-08T15:17:29.048390180+01: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/BatchDeleteBody.java b/src/main/java/ai/lamin/lamin_api_client/model/BatchDeleteBody.java new file mode 100644 index 0000000..13ac71e --- /dev/null +++ b/src/main/java/ai/lamin/lamin_api_client/model/BatchDeleteBody.java @@ -0,0 +1,228 @@ +/* + * 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.ArrayList; +import java.util.Arrays; +import java.util.List; +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; + +/** + * BatchDeleteBody + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-01-08T15:17:29.048390180+01:00[Europe/Brussels]", comments = "Generator version: 7.12.0") +public class BatchDeleteBody { + public static final String SERIALIZED_NAME_RECORDS = "records"; + @SerializedName(SERIALIZED_NAME_RECORDS) + @javax.annotation.Nonnull + private List> records = new ArrayList<>(); + + public BatchDeleteBody() { + } + + public BatchDeleteBody records(@javax.annotation.Nonnull List> records) { + this.records = records; + return this; + } + + public BatchDeleteBody addRecordsItem(Map recordsItem) { + if (this.records == null) { + this.records = new ArrayList<>(); + } + this.records.add(recordsItem); + return this; + } + + /** + * A list of dictionaries, where each dictionary contains the key(s) identifying a record to delete. + * @return records + */ + @javax.annotation.Nonnull + public List> getRecords() { + return records; + } + + public void setRecords(@javax.annotation.Nonnull List> records) { + this.records = records; + } + + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + BatchDeleteBody batchDeleteBody = (BatchDeleteBody) o; + return Objects.equals(this.records, batchDeleteBody.records); + } + + @Override + public int hashCode() { + return Objects.hash(records); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class BatchDeleteBody {\n"); + sb.append(" records: ").append(toIndentedString(records)).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("records"); + + // a set of required properties/fields (JSON key names) + openapiRequiredFields = new HashSet(); + openapiRequiredFields.add("records"); + } + + /** + * 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 BatchDeleteBody + */ + public static void validateJsonElement(JsonElement jsonElement) throws IOException { + if (jsonElement == null) { + if (!BatchDeleteBody.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null + throw new IllegalArgumentException(String.format("The required field(s) %s in BatchDeleteBody is not found in the empty JSON string", BatchDeleteBody.openapiRequiredFields.toString())); + } + } + + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!BatchDeleteBody.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `BatchDeleteBody` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + } + } + + // check to make sure all required properties/fields are present in the JSON string + for (String requiredField : BatchDeleteBody.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(); + // ensure the required json array is present + if (jsonObj.get("records") == null) { + throw new IllegalArgumentException("Expected the field `linkedContent` to be an array in the JSON string but got `null`"); + } else if (!jsonObj.get("records").isJsonArray()) { + throw new IllegalArgumentException(String.format("Expected the field `records` to be an array in the JSON string but got `%s`", jsonObj.get("records").toString())); + } + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!BatchDeleteBody.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'BatchDeleteBody' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(BatchDeleteBody.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, BatchDeleteBody value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public BatchDeleteBody read(JsonReader in) throws IOException { + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + return thisAdapter.fromJsonTree(jsonElement); + } + + }.nullSafe(); + } + } + + /** + * Create an instance of BatchDeleteBody given an JSON string + * + * @param jsonString JSON string + * @return An instance of BatchDeleteBody + * @throws IOException if the JSON string is invalid with respect to BatchDeleteBody + */ + public static BatchDeleteBody fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, BatchDeleteBody.class); + } + + /** + * Convert an instance of BatchDeleteBody 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/BatchDeleteResponse.java b/src/main/java/ai/lamin/lamin_api_client/model/BatchDeleteResponse.java new file mode 100644 index 0000000..caa2483 --- /dev/null +++ b/src/main/java/ai/lamin/lamin_api_client/model/BatchDeleteResponse.java @@ -0,0 +1,211 @@ +/* + * 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; + +/** + * BatchDeleteResponse + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-01-08T15:17:29.048390180+01:00[Europe/Brussels]", comments = "Generator version: 7.12.0") +public class BatchDeleteResponse { + public static final String SERIALIZED_NAME_DELETED_COUNT = "deleted_count"; + @SerializedName(SERIALIZED_NAME_DELETED_COUNT) + @javax.annotation.Nonnull + private Integer deletedCount; + + public BatchDeleteResponse() { + } + + public BatchDeleteResponse deletedCount(@javax.annotation.Nonnull Integer deletedCount) { + this.deletedCount = deletedCount; + return this; + } + + /** + * Get deletedCount + * @return deletedCount + */ + @javax.annotation.Nonnull + public Integer getDeletedCount() { + return deletedCount; + } + + public void setDeletedCount(@javax.annotation.Nonnull Integer deletedCount) { + this.deletedCount = deletedCount; + } + + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + BatchDeleteResponse batchDeleteResponse = (BatchDeleteResponse) o; + return Objects.equals(this.deletedCount, batchDeleteResponse.deletedCount); + } + + @Override + public int hashCode() { + return Objects.hash(deletedCount); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class BatchDeleteResponse {\n"); + sb.append(" deletedCount: ").append(toIndentedString(deletedCount)).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("deleted_count"); + + // a set of required properties/fields (JSON key names) + openapiRequiredFields = new HashSet(); + openapiRequiredFields.add("deleted_count"); + } + + /** + * 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 BatchDeleteResponse + */ + public static void validateJsonElement(JsonElement jsonElement) throws IOException { + if (jsonElement == null) { + if (!BatchDeleteResponse.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null + throw new IllegalArgumentException(String.format("The required field(s) %s in BatchDeleteResponse is not found in the empty JSON string", BatchDeleteResponse.openapiRequiredFields.toString())); + } + } + + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!BatchDeleteResponse.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `BatchDeleteResponse` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + } + } + + // check to make sure all required properties/fields are present in the JSON string + for (String requiredField : BatchDeleteResponse.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(); + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!BatchDeleteResponse.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'BatchDeleteResponse' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(BatchDeleteResponse.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, BatchDeleteResponse value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public BatchDeleteResponse read(JsonReader in) throws IOException { + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + return thisAdapter.fromJsonTree(jsonElement); + } + + }.nullSafe(); + } + } + + /** + * Create an instance of BatchDeleteResponse given an JSON string + * + * @param jsonString JSON string + * @return An instance of BatchDeleteResponse + * @throws IOException if the JSON string is invalid with respect to BatchDeleteResponse + */ + public static BatchDeleteResponse fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, BatchDeleteResponse.class); + } + + /** + * Convert an instance of BatchDeleteResponse 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/BatchSyncLinksBody.java b/src/main/java/ai/lamin/lamin_api_client/model/BatchSyncLinksBody.java new file mode 100644 index 0000000..b6df020 --- /dev/null +++ b/src/main/java/ai/lamin/lamin_api_client/model/BatchSyncLinksBody.java @@ -0,0 +1,263 @@ +/* + * 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 ai.lamin.lamin_api_client.model.SyncInstruction; +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.ArrayList; +import java.util.Arrays; +import java.util.List; + +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; + +/** + * The request body for the batch synchronization endpoint. + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-01-08T15:17:29.048390180+01:00[Europe/Brussels]", comments = "Generator version: 7.12.0") +public class BatchSyncLinksBody { + public static final String SERIALIZED_NAME_INSTRUCTIONS = "instructions"; + @SerializedName(SERIALIZED_NAME_INSTRUCTIONS) + @javax.annotation.Nonnull + private List instructions = new ArrayList<>(); + + public static final String SERIALIZED_NAME_LIST_KEY = "list_key"; + @SerializedName(SERIALIZED_NAME_LIST_KEY) + @javax.annotation.Nonnull + private String listKey; + + public BatchSyncLinksBody() { + } + + public BatchSyncLinksBody instructions(@javax.annotation.Nonnull List instructions) { + this.instructions = instructions; + return this; + } + + public BatchSyncLinksBody addInstructionsItem(SyncInstruction instructionsItem) { + if (this.instructions == null) { + this.instructions = new ArrayList<>(); + } + this.instructions.add(instructionsItem); + return this; + } + + /** + * A list of synchronization instructions to be processed in a single batch. + * @return instructions + */ + @javax.annotation.Nonnull + public List getInstructions() { + return instructions; + } + + public void setInstructions(@javax.annotation.Nonnull List instructions) { + this.instructions = instructions; + } + + + public BatchSyncLinksBody listKey(@javax.annotation.Nonnull String listKey) { + this.listKey = listKey; + return this; + } + + /** + * The name of the column whose values are being synchronized (e.g., 'ulabel_id'). This must be the same for all instructions in the batch. + * @return listKey + */ + @javax.annotation.Nonnull + public String getListKey() { + return listKey; + } + + public void setListKey(@javax.annotation.Nonnull String listKey) { + this.listKey = listKey; + } + + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + BatchSyncLinksBody batchSyncLinksBody = (BatchSyncLinksBody) o; + return Objects.equals(this.instructions, batchSyncLinksBody.instructions) && + Objects.equals(this.listKey, batchSyncLinksBody.listKey); + } + + @Override + public int hashCode() { + return Objects.hash(instructions, listKey); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class BatchSyncLinksBody {\n"); + sb.append(" instructions: ").append(toIndentedString(instructions)).append("\n"); + sb.append(" listKey: ").append(toIndentedString(listKey)).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("instructions"); + openapiFields.add("list_key"); + + // a set of required properties/fields (JSON key names) + openapiRequiredFields = new HashSet(); + openapiRequiredFields.add("instructions"); + openapiRequiredFields.add("list_key"); + } + + /** + * 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 BatchSyncLinksBody + */ + public static void validateJsonElement(JsonElement jsonElement) throws IOException { + if (jsonElement == null) { + if (!BatchSyncLinksBody.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null + throw new IllegalArgumentException(String.format("The required field(s) %s in BatchSyncLinksBody is not found in the empty JSON string", BatchSyncLinksBody.openapiRequiredFields.toString())); + } + } + + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!BatchSyncLinksBody.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `BatchSyncLinksBody` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + } + } + + // check to make sure all required properties/fields are present in the JSON string + for (String requiredField : BatchSyncLinksBody.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(); + // ensure the json data is an array + if (!jsonObj.get("instructions").isJsonArray()) { + throw new IllegalArgumentException(String.format("Expected the field `instructions` to be an array in the JSON string but got `%s`", jsonObj.get("instructions").toString())); + } + + JsonArray jsonArrayinstructions = jsonObj.getAsJsonArray("instructions"); + // validate the required field `instructions` (array) + for (int i = 0; i < jsonArrayinstructions.size(); i++) { + SyncInstruction.validateJsonElement(jsonArrayinstructions.get(i)); + }; + if (!jsonObj.get("list_key").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `list_key` to be a primitive type in the JSON string but got `%s`", jsonObj.get("list_key").toString())); + } + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!BatchSyncLinksBody.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'BatchSyncLinksBody' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(BatchSyncLinksBody.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, BatchSyncLinksBody value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public BatchSyncLinksBody read(JsonReader in) throws IOException { + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + return thisAdapter.fromJsonTree(jsonElement); + } + + }.nullSafe(); + } + } + + /** + * Create an instance of BatchSyncLinksBody given an JSON string + * + * @param jsonString JSON string + * @return An instance of BatchSyncLinksBody + * @throws IOException if the JSON string is invalid with respect to BatchSyncLinksBody + */ + public static BatchSyncLinksBody fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, BatchSyncLinksBody.class); + } + + /** + * Convert an instance of BatchSyncLinksBody 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/BatchSyncResponse.java b/src/main/java/ai/lamin/lamin_api_client/model/BatchSyncResponse.java new file mode 100644 index 0000000..b38ac12 --- /dev/null +++ b/src/main/java/ai/lamin/lamin_api_client/model/BatchSyncResponse.java @@ -0,0 +1,329 @@ +/* + * 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.ArrayList; +import java.util.Arrays; +import java.util.List; +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; + +/** + * The detailed response model for a batch synchronization operation, including the lists of records that were processed. + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-01-08T15:17:29.048390180+01:00[Europe/Brussels]", comments = "Generator version: 7.12.0") +public class BatchSyncResponse { + public static final String SERIALIZED_NAME_STATUS = "status"; + @SerializedName(SERIALIZED_NAME_STATUS) + @javax.annotation.Nonnull + private String status; + + public static final String SERIALIZED_NAME_DELETED = "deleted"; + @SerializedName(SERIALIZED_NAME_DELETED) + @javax.annotation.Nonnull + private List> deleted = new ArrayList<>(); + + public static final String SERIALIZED_NAME_INSERTED = "inserted"; + @SerializedName(SERIALIZED_NAME_INSERTED) + @javax.annotation.Nonnull + private List> inserted = new ArrayList<>(); + + public static final String SERIALIZED_NAME_KEPT = "kept"; + @SerializedName(SERIALIZED_NAME_KEPT) + @javax.annotation.Nonnull + private Integer kept; + + public BatchSyncResponse() { + } + + public BatchSyncResponse status(@javax.annotation.Nonnull String status) { + this.status = status; + return this; + } + + /** + * Get status + * @return status + */ + @javax.annotation.Nonnull + public String getStatus() { + return status; + } + + public void setStatus(@javax.annotation.Nonnull String status) { + this.status = status; + } + + + public BatchSyncResponse deleted(@javax.annotation.Nonnull List> deleted) { + this.deleted = deleted; + return this; + } + + public BatchSyncResponse addDeletedItem(Map deletedItem) { + if (this.deleted == null) { + this.deleted = new ArrayList<>(); + } + this.deleted.add(deletedItem); + return this; + } + + /** + * A list of the records that were deleted. + * @return deleted + */ + @javax.annotation.Nonnull + public List> getDeleted() { + return deleted; + } + + public void setDeleted(@javax.annotation.Nonnull List> deleted) { + this.deleted = deleted; + } + + + public BatchSyncResponse inserted(@javax.annotation.Nonnull List> inserted) { + this.inserted = inserted; + return this; + } + + public BatchSyncResponse addInsertedItem(Map insertedItem) { + if (this.inserted == null) { + this.inserted = new ArrayList<>(); + } + this.inserted.add(insertedItem); + return this; + } + + /** + * A list of the records that were inserted, including server-added audit fields. + * @return inserted + */ + @javax.annotation.Nonnull + public List> getInserted() { + return inserted; + } + + public void setInserted(@javax.annotation.Nonnull List> inserted) { + this.inserted = inserted; + } + + + public BatchSyncResponse kept(@javax.annotation.Nonnull Integer kept) { + this.kept = kept; + return this; + } + + /** + * The number of records that already existed and were kept. + * @return kept + */ + @javax.annotation.Nonnull + public Integer getKept() { + return kept; + } + + public void setKept(@javax.annotation.Nonnull Integer kept) { + this.kept = kept; + } + + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + BatchSyncResponse batchSyncResponse = (BatchSyncResponse) o; + return Objects.equals(this.status, batchSyncResponse.status) && + Objects.equals(this.deleted, batchSyncResponse.deleted) && + Objects.equals(this.inserted, batchSyncResponse.inserted) && + Objects.equals(this.kept, batchSyncResponse.kept); + } + + @Override + public int hashCode() { + return Objects.hash(status, deleted, inserted, kept); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class BatchSyncResponse {\n"); + sb.append(" status: ").append(toIndentedString(status)).append("\n"); + sb.append(" deleted: ").append(toIndentedString(deleted)).append("\n"); + sb.append(" inserted: ").append(toIndentedString(inserted)).append("\n"); + sb.append(" kept: ").append(toIndentedString(kept)).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("status"); + openapiFields.add("deleted"); + openapiFields.add("inserted"); + openapiFields.add("kept"); + + // a set of required properties/fields (JSON key names) + openapiRequiredFields = new HashSet(); + openapiRequiredFields.add("status"); + openapiRequiredFields.add("deleted"); + openapiRequiredFields.add("inserted"); + openapiRequiredFields.add("kept"); + } + + /** + * 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 BatchSyncResponse + */ + public static void validateJsonElement(JsonElement jsonElement) throws IOException { + if (jsonElement == null) { + if (!BatchSyncResponse.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null + throw new IllegalArgumentException(String.format("The required field(s) %s in BatchSyncResponse is not found in the empty JSON string", BatchSyncResponse.openapiRequiredFields.toString())); + } + } + + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!BatchSyncResponse.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `BatchSyncResponse` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + } + } + + // check to make sure all required properties/fields are present in the JSON string + for (String requiredField : BatchSyncResponse.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("status").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `status` to be a primitive type in the JSON string but got `%s`", jsonObj.get("status").toString())); + } + // ensure the required json array is present + if (jsonObj.get("deleted") == null) { + throw new IllegalArgumentException("Expected the field `linkedContent` to be an array in the JSON string but got `null`"); + } else if (!jsonObj.get("deleted").isJsonArray()) { + throw new IllegalArgumentException(String.format("Expected the field `deleted` to be an array in the JSON string but got `%s`", jsonObj.get("deleted").toString())); + } + // ensure the required json array is present + if (jsonObj.get("inserted") == null) { + throw new IllegalArgumentException("Expected the field `linkedContent` to be an array in the JSON string but got `null`"); + } else if (!jsonObj.get("inserted").isJsonArray()) { + throw new IllegalArgumentException(String.format("Expected the field `inserted` to be an array in the JSON string but got `%s`", jsonObj.get("inserted").toString())); + } + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!BatchSyncResponse.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'BatchSyncResponse' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(BatchSyncResponse.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, BatchSyncResponse value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public BatchSyncResponse read(JsonReader in) throws IOException { + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + return thisAdapter.fromJsonTree(jsonElement); + } + + }.nullSafe(); + } + } + + /** + * Create an instance of BatchSyncResponse given an JSON string + * + * @param jsonString JSON string + * @return An instance of BatchSyncResponse + * @throws IOException if the JSON string is invalid with respect to BatchSyncResponse + */ + public static BatchSyncResponse fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, BatchSyncResponse.class); + } + + /** + * Convert an instance of BatchSyncResponse 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/BatchUpdateBody.java b/src/main/java/ai/lamin/lamin_api_client/model/BatchUpdateBody.java new file mode 100644 index 0000000..9af3f52 --- /dev/null +++ b/src/main/java/ai/lamin/lamin_api_client/model/BatchUpdateBody.java @@ -0,0 +1,270 @@ +/* + * 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.ArrayList; +import java.util.Arrays; +import java.util.List; +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; + +/** + * BatchUpdateBody + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-01-08T15:17:29.048390180+01:00[Europe/Brussels]", comments = "Generator version: 7.12.0") +public class BatchUpdateBody { + public static final String SERIALIZED_NAME_RECORDS = "records"; + @SerializedName(SERIALIZED_NAME_RECORDS) + @javax.annotation.Nonnull + private List> records = new ArrayList<>(); + + public static final String SERIALIZED_NAME_INDEX_COLUMNS = "index_columns"; + @SerializedName(SERIALIZED_NAME_INDEX_COLUMNS) + @javax.annotation.Nonnull + private List indexColumns = new ArrayList<>(); + + public BatchUpdateBody() { + } + + public BatchUpdateBody records(@javax.annotation.Nonnull List> records) { + this.records = records; + return this; + } + + public BatchUpdateBody addRecordsItem(Map recordsItem) { + if (this.records == null) { + this.records = new ArrayList<>(); + } + this.records.add(recordsItem); + return this; + } + + /** + * A list of records to update. Each dictionary must contain the key(s) specified in `index_columns` and the fields to be updated. + * @return records + */ + @javax.annotation.Nonnull + public List> getRecords() { + return records; + } + + public void setRecords(@javax.annotation.Nonnull List> records) { + this.records = records; + } + + + public BatchUpdateBody indexColumns(@javax.annotation.Nonnull List indexColumns) { + this.indexColumns = indexColumns; + return this; + } + + public BatchUpdateBody addIndexColumnsItem(String indexColumnsItem) { + if (this.indexColumns == null) { + this.indexColumns = new ArrayList<>(); + } + this.indexColumns.add(indexColumnsItem); + return this; + } + + /** + * A list of column names to use as the identifier for matching records to update (e.g., ['uid']). + * @return indexColumns + */ + @javax.annotation.Nonnull + public List getIndexColumns() { + return indexColumns; + } + + public void setIndexColumns(@javax.annotation.Nonnull List indexColumns) { + this.indexColumns = indexColumns; + } + + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + BatchUpdateBody batchUpdateBody = (BatchUpdateBody) o; + return Objects.equals(this.records, batchUpdateBody.records) && + Objects.equals(this.indexColumns, batchUpdateBody.indexColumns); + } + + @Override + public int hashCode() { + return Objects.hash(records, indexColumns); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class BatchUpdateBody {\n"); + sb.append(" records: ").append(toIndentedString(records)).append("\n"); + sb.append(" indexColumns: ").append(toIndentedString(indexColumns)).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("records"); + openapiFields.add("index_columns"); + + // a set of required properties/fields (JSON key names) + openapiRequiredFields = new HashSet(); + openapiRequiredFields.add("records"); + openapiRequiredFields.add("index_columns"); + } + + /** + * 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 BatchUpdateBody + */ + public static void validateJsonElement(JsonElement jsonElement) throws IOException { + if (jsonElement == null) { + if (!BatchUpdateBody.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null + throw new IllegalArgumentException(String.format("The required field(s) %s in BatchUpdateBody is not found in the empty JSON string", BatchUpdateBody.openapiRequiredFields.toString())); + } + } + + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!BatchUpdateBody.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `BatchUpdateBody` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + } + } + + // check to make sure all required properties/fields are present in the JSON string + for (String requiredField : BatchUpdateBody.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(); + // ensure the required json array is present + if (jsonObj.get("records") == null) { + throw new IllegalArgumentException("Expected the field `linkedContent` to be an array in the JSON string but got `null`"); + } else if (!jsonObj.get("records").isJsonArray()) { + throw new IllegalArgumentException(String.format("Expected the field `records` to be an array in the JSON string but got `%s`", jsonObj.get("records").toString())); + } + // ensure the required json array is present + if (jsonObj.get("index_columns") == null) { + throw new IllegalArgumentException("Expected the field `linkedContent` to be an array in the JSON string but got `null`"); + } else if (!jsonObj.get("index_columns").isJsonArray()) { + throw new IllegalArgumentException(String.format("Expected the field `index_columns` to be an array in the JSON string but got `%s`", jsonObj.get("index_columns").toString())); + } + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!BatchUpdateBody.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'BatchUpdateBody' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(BatchUpdateBody.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, BatchUpdateBody value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public BatchUpdateBody read(JsonReader in) throws IOException { + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + return thisAdapter.fromJsonTree(jsonElement); + } + + }.nullSafe(); + } + } + + /** + * Create an instance of BatchUpdateBody given an JSON string + * + * @param jsonString JSON string + * @return An instance of BatchUpdateBody + * @throws IOException if the JSON string is invalid with respect to BatchUpdateBody + */ + public static BatchUpdateBody fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, BatchUpdateBody.class); + } + + /** + * Convert an instance of BatchUpdateBody 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/Body.java b/src/main/java/ai/lamin/lamin_api_client/model/Body.java new file mode 100644 index 0000000..f72d024 --- /dev/null +++ b/src/main/java/ai/lamin/lamin_api_client/model/Body.java @@ -0,0 +1,291 @@ +/* + * 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.util.List; +import java.util.Map; + + + +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 = "2026-01-08T15:17:29.048390180+01:00[Europe/Brussels]", comments = "Generator version: 7.12.0") +public class Body extends AbstractOpenApiSchema { + private static final Logger log = Logger.getLogger(Body.class.getName()); + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!Body.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'Body' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + + final Type typeInstanceListMapStringObject = new TypeToken>>(){}.getType(); + final TypeAdapter>> adapterListMapStringObject = (TypeAdapter>>) gson.getDelegateAdapter(this, TypeToken.get(typeInstanceListMapStringObject)); + final TypeAdapter> adapterMap = gson.getDelegateAdapter(this, TypeToken.get(Map.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, Body value) throws IOException { + if (value == null || value.getActualInstance() == null) { + elementAdapter.write(out, null); + return; + } + + // check if the actual instance is of the type `List>` + if (value.getActualInstance() instanceof List) { + List list = (List) value.getActualInstance(); + if (list.get(0) instanceof Map) { + JsonArray array = adapterListMapStringObject.toJsonTree((List>)value.getActualInstance()).getAsJsonArray(); + elementAdapter.write(out, array); + return; + } + } + // check if the actual instance is of the type `Map` + if (value.getActualInstance() instanceof Map) { + JsonPrimitive primitive = adapterMapStringObject.toJsonTree((Map)value.getActualInstance()).getAsJsonPrimitive(); + elementAdapter.write(out, primitive); + return; + } + throw new IOException("Failed to serialize as the type doesn't match anyOf schemas: List>, Map"); + } + + @Override + public Body read(JsonReader in) throws IOException { + Object deserialized = null; + JsonElement jsonElement = elementAdapter.read(in); + + ArrayList errorMessages = new ArrayList<>(); + TypeAdapter actualAdapter = elementAdapter; + + // deserialize List> + try { + // validate the JSON object to see if any exception is thrown + if (!jsonElement.isJsonArray()) { + throw new IllegalArgumentException(String.format("Expected json element to be a array type in the JSON string but got `%s`", jsonElement.toString())); + } + + JsonArray array = jsonElement.getAsJsonArray(); + // validate array items + for(JsonElement element : array) { + if (!element.getAsJsonPrimitive().isNumber()) { + throw new IllegalArgumentException(String.format("Expected array items to be of type Number in the JSON string but got `%s`", jsonElement.toString())); + } + } + actualAdapter = adapterListMapStringObject; + Body ret = new Body(); + ret.setActualInstance(actualAdapter.fromJsonTree(jsonElement)); + return ret; + } catch (Exception e) { + // deserialization failed, continue + errorMessages.add(String.format("Deserialization for List> failed with `%s`.", e.getMessage())); + log.log(Level.FINER, "Input data does not match schema 'List>'", e); + } + // deserialize Map + try { + // validate the JSON object to see if any exception is thrown + if (!jsonElement.getAsJsonPrimitive().isNumber()) { + throw new IllegalArgumentException(String.format("Expected json element to be of type Number in the JSON string but got `%s`", jsonElement.toString())); + } + actualAdapter = adapterMapStringObject; + Body ret = new Body(); + ret.setActualInstance(actualAdapter.fromJsonTree(jsonElement)); + return ret; + } catch (Exception e) { + // deserialization failed, continue + errorMessages.add(String.format("Deserialization for Map failed with `%s`.", e.getMessage())); + log.log(Level.FINER, "Input data does not match schema 'Map'", e); + } + + throw new IOException(String.format("Failed deserialization for Body: 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 Body() { + super("anyOf", Boolean.FALSE); + } + + public Body(Object o) { + super("anyOf", Boolean.FALSE); + setActualInstance(o); + } + + static { + schemas.put("List>", List.class); + schemas.put("Map", Map.class); + } + + @Override + public Map> getSchemas() { + return Body.schemas; + } + + /** + * Set the instance that matches the anyOf child schema, check + * the instance parameter is valid against the anyOf child schemas: + * List>, Map + * + * It could be an instance of the 'anyOf' schemas. + */ + @Override + public void setActualInstance(Object instance) { + if (instance instanceof List) { + List list = (List) instance; + if (list.get(0) instanceof Map) { + super.setActualInstance(instance); + return; + } + } + + if (instance instanceof Map) { + super.setActualInstance(instance); + return; + } + + throw new RuntimeException("Invalid instance type. Must be List>, Map"); + } + + /** + * Get the actual instance, which can be the following: + * List>, Map + * + * @return The actual instance (List>, Map) + */ + @SuppressWarnings("unchecked") + @Override + public Object getActualInstance() { + return super.getActualInstance(); + } + + /** + * Get the actual instance of `List>`. If the actual instance is not `List>`, + * the ClassCastException will be thrown. + * + * @return The actual instance of `List>` + * @throws ClassCastException if the instance is not `List>` + */ + public List> getListMapStringObject() throws ClassCastException { + return (List>)super.getActualInstance(); + } + + /** + * Get the actual instance of `Map`. If the actual instance is not `Map`, + * the ClassCastException will be thrown. + * + * @return The actual instance of `Map` + * @throws ClassCastException if the instance is not `Map` + */ + public Map getMapStringObject() throws ClassCastException { + return (Map)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 Body + */ + public static void validateJsonElement(JsonElement jsonElement) throws IOException { + // validate anyOf schemas one by one + ArrayList errorMessages = new ArrayList<>(); + // validate the json string with List> + try { + if (!jsonElement.isJsonArray()) { + throw new IllegalArgumentException(String.format("Expected json element to be a array type in the JSON string but got `%s`", jsonElement.toString())); + } + JsonArray array = jsonElement.getAsJsonArray(); + // validate array items + for(JsonElement element : array) { + if (!element.getAsJsonPrimitive().isNumber()) { + throw new IllegalArgumentException(String.format("Expected array items to be of type Number in the JSON string but got `%s`", jsonElement.toString())); + } + } + return; + } catch (Exception e) { + errorMessages.add(String.format("Deserialization for List> failed with `%s`.", e.getMessage())); + // continue to the next one + } + // validate the json string with Map + try { + if (!jsonElement.getAsJsonPrimitive().isNumber()) { + throw new IllegalArgumentException(String.format("Expected json element to be of type Number in the JSON string but got `%s`", jsonElement.toString())); + } + return; + } catch (Exception e) { + errorMessages.add(String.format("Deserialization for Map failed with `%s`.", e.getMessage())); + // continue to the next one + } + throw new IOException(String.format("The JSON string is invalid for Body with anyOf schemas: List>, Map. 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 Body given an JSON string + * + * @param jsonString JSON string + * @return An instance of Body + * @throws IOException if the JSON string is invalid with respect to Body + */ + public static Body fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, Body.class); + } + + /** + * Convert an instance of Body 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/CreateArtifactRequestBody.java b/src/main/java/ai/lamin/lamin_api_client/model/CreateArtifactRequestBody.java index bb29897..ddc877f 100644 --- a/src/main/java/ai/lamin/lamin_api_client/model/CreateArtifactRequestBody.java +++ b/src/main/java/ai/lamin/lamin_api_client/model/CreateArtifactRequestBody.java @@ -50,7 +50,7 @@ /** * CreateArtifactRequestBody */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-06-17T13:08:14.011869776+02:00[Europe/Brussels]", comments = "Generator version: 7.12.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-01-08T15:17:29.048390180+01:00[Europe/Brussels]", comments = "Generator version: 7.12.0") public class CreateArtifactRequestBody { public static final String SERIALIZED_NAME_PATH = "path"; @SerializedName(SERIALIZED_NAME_PATH) 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 6eb98fa..34059ec 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-06-17T13:08:14.011869776+02:00[Europe/Brussels]", comments = "Generator version: 7.12.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-01-08T15:17:29.048390180+01: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 63822d7..497fa24 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-06-17T13:08:14.011869776+02:00[Europe/Brussels]", comments = "Generator version: 7.12.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-01-08T15:17:29.048390180+01: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/CreateTransformRequestBody.java b/src/main/java/ai/lamin/lamin_api_client/model/CreateTransformRequestBody.java index 2891c19..48c2541 100644 --- a/src/main/java/ai/lamin/lamin_api_client/model/CreateTransformRequestBody.java +++ b/src/main/java/ai/lamin/lamin_api_client/model/CreateTransformRequestBody.java @@ -51,17 +51,17 @@ /** * CreateTransformRequestBody */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-06-17T13:08:14.011869776+02:00[Europe/Brussels]", comments = "Generator version: 7.12.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-01-08T15:17:29.048390180+01:00[Europe/Brussels]", comments = "Generator version: 7.12.0") public class CreateTransformRequestBody { public static final String SERIALIZED_NAME_KEY = "key"; @SerializedName(SERIALIZED_NAME_KEY) @javax.annotation.Nonnull private String key; - public static final String SERIALIZED_NAME_TYPE = "type"; - @SerializedName(SERIALIZED_NAME_TYPE) + public static final String SERIALIZED_NAME_KIND = "kind"; + @SerializedName(SERIALIZED_NAME_KIND) @javax.annotation.Nonnull - private String type; + private String kind; public static final String SERIALIZED_NAME_SOURCE_CODE = "source_code"; @SerializedName(SERIALIZED_NAME_SOURCE_CODE) @@ -95,22 +95,22 @@ public void setKey(@javax.annotation.Nonnull String key) { } - public CreateTransformRequestBody type(@javax.annotation.Nonnull String type) { - this.type = type; + public CreateTransformRequestBody kind(@javax.annotation.Nonnull String kind) { + this.kind = kind; return this; } /** - * Get type - * @return type + * Get kind + * @return kind */ @javax.annotation.Nonnull - public String getType() { - return type; + public String getKind() { + return kind; } - public void setType(@javax.annotation.Nonnull String type) { - this.type = type; + public void setKind(@javax.annotation.Nonnull String kind) { + this.kind = kind; } @@ -171,7 +171,7 @@ public boolean equals(Object o) { } CreateTransformRequestBody createTransformRequestBody = (CreateTransformRequestBody) o; return Objects.equals(this.key, createTransformRequestBody.key) && - Objects.equals(this.type, createTransformRequestBody.type) && + Objects.equals(this.kind, createTransformRequestBody.kind) && Objects.equals(this.sourceCode, createTransformRequestBody.sourceCode) && Objects.equals(this.kwargs, createTransformRequestBody.kwargs); } @@ -182,7 +182,7 @@ private static boolean equalsNullable(JsonNullable a, JsonNullable b) @Override public int hashCode() { - return Objects.hash(key, type, sourceCode, kwargs); + return Objects.hash(key, kind, sourceCode, kwargs); } private static int hashCodeNullable(JsonNullable a) { @@ -197,7 +197,7 @@ public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class CreateTransformRequestBody {\n"); sb.append(" key: ").append(toIndentedString(key)).append("\n"); - sb.append(" type: ").append(toIndentedString(type)).append("\n"); + sb.append(" kind: ").append(toIndentedString(kind)).append("\n"); sb.append(" sourceCode: ").append(toIndentedString(sourceCode)).append("\n"); sb.append(" kwargs: ").append(toIndentedString(kwargs)).append("\n"); sb.append("}"); @@ -223,14 +223,14 @@ private String toIndentedString(Object o) { // a set of all properties/fields (JSON key names) openapiFields = new HashSet(); openapiFields.add("key"); - openapiFields.add("type"); + openapiFields.add("kind"); openapiFields.add("source_code"); openapiFields.add("kwargs"); // a set of required properties/fields (JSON key names) openapiRequiredFields = new HashSet(); openapiRequiredFields.add("key"); - openapiRequiredFields.add("type"); + openapiRequiredFields.add("kind"); openapiRequiredFields.add("source_code"); } @@ -265,8 +265,8 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti 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("type").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `type` to be a primitive type in the JSON string but got `%s`", jsonObj.get("type").toString())); + if (!jsonObj.get("kind").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `kind` to be a primitive type in the JSON string but got `%s`", jsonObj.get("kind").toString())); } if (!jsonObj.get("source_code").isJsonPrimitive()) { throw new IllegalArgumentException(String.format("Expected the field `source_code` to be a primitive type in the JSON string but got `%s`", jsonObj.get("source_code").toString())); 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 ecc82d2..ee7af89 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-06-17T13:08:14.011869776+02:00[Europe/Brussels]", comments = "Generator version: 7.12.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-01-08T15:17:29.048390180+01: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/DbUrlRequest.java b/src/main/java/ai/lamin/lamin_api_client/model/ErrorDetail.java similarity index 66% rename from src/main/java/ai/lamin/lamin_api_client/model/DbUrlRequest.java rename to src/main/java/ai/lamin/lamin_api_client/model/ErrorDetail.java index aac6765..559b8f6 100644 --- a/src/main/java/ai/lamin/lamin_api_client/model/DbUrlRequest.java +++ b/src/main/java/ai/lamin/lamin_api_client/model/ErrorDetail.java @@ -46,34 +46,34 @@ import ai.lamin.lamin_api_client.JSON; /** - * DbUrlRequest + * ErrorDetail */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-06-17T13:08:14.011869776+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.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-01-08T15:17:29.048390180+01:00[Europe/Brussels]", comments = "Generator version: 7.12.0") +public class ErrorDetail { + public static final String SERIALIZED_NAME_DETAIL = "detail"; + @SerializedName(SERIALIZED_NAME_DETAIL) @javax.annotation.Nonnull - private String dbUrl; + private String detail; - public DbUrlRequest() { + public ErrorDetail() { } - public DbUrlRequest dbUrl(@javax.annotation.Nonnull String dbUrl) { - this.dbUrl = dbUrl; + public ErrorDetail detail(@javax.annotation.Nonnull String detail) { + this.detail = detail; return this; } /** - * Get dbUrl - * @return dbUrl + * Get detail + * @return detail */ @javax.annotation.Nonnull - public String getDbUrl() { - return dbUrl; + public String getDetail() { + return detail; } - public void setDbUrl(@javax.annotation.Nonnull String dbUrl) { - this.dbUrl = dbUrl; + public void setDetail(@javax.annotation.Nonnull String detail) { + this.detail = detail; } @@ -86,20 +86,20 @@ public boolean equals(Object o) { if (o == null || getClass() != o.getClass()) { return false; } - DbUrlRequest dbUrlRequest = (DbUrlRequest) o; - return Objects.equals(this.dbUrl, dbUrlRequest.dbUrl); + ErrorDetail errorDetail = (ErrorDetail) o; + return Objects.equals(this.detail, errorDetail.detail); } @Override public int hashCode() { - return Objects.hash(dbUrl); + return Objects.hash(detail); } @Override public String toString() { StringBuilder sb = new StringBuilder(); - sb.append("class DbUrlRequest {\n"); - sb.append(" dbUrl: ").append(toIndentedString(dbUrl)).append("\n"); + sb.append("class ErrorDetail {\n"); + sb.append(" detail: ").append(toIndentedString(detail)).append("\n"); sb.append("}"); return sb.toString(); } @@ -122,43 +122,43 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) openapiFields = new HashSet(); - openapiFields.add("db_url"); + openapiFields.add("detail"); // a set of required properties/fields (JSON key names) openapiRequiredFields = new HashSet(); - openapiRequiredFields.add("db_url"); + openapiRequiredFields.add("detail"); } /** * 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 + * @throws IOException if the JSON Element is invalid with respect to ErrorDetail */ 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())); + if (!ErrorDetail.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null + throw new IllegalArgumentException(String.format("The required field(s) %s in ErrorDetail is not found in the empty JSON string", ErrorDetail.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())); + if (!ErrorDetail.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `ErrorDetail` 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) { + for (String requiredField : ErrorDetail.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())); + if (!jsonObj.get("detail").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `detail` to be a primitive type in the JSON string but got `%s`", jsonObj.get("detail").toString())); } } @@ -166,22 +166,22 @@ 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 + if (!ErrorDetail.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'ErrorDetail' and its subtypes } final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter - = gson.getDelegateAdapter(this, TypeToken.get(DbUrlRequest.class)); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(ErrorDetail.class)); - return (TypeAdapter) new TypeAdapter() { + return (TypeAdapter) new TypeAdapter() { @Override - public void write(JsonWriter out, DbUrlRequest value) throws IOException { + public void write(JsonWriter out, ErrorDetail value) throws IOException { JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); elementAdapter.write(out, obj); } @Override - public DbUrlRequest read(JsonReader in) throws IOException { + public ErrorDetail read(JsonReader in) throws IOException { JsonElement jsonElement = elementAdapter.read(in); validateJsonElement(jsonElement); return thisAdapter.fromJsonTree(jsonElement); @@ -192,18 +192,18 @@ public DbUrlRequest read(JsonReader in) throws IOException { } /** - * Create an instance of DbUrlRequest given an JSON string + * Create an instance of ErrorDetail 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 + * @return An instance of ErrorDetail + * @throws IOException if the JSON string is invalid with respect to ErrorDetail */ - public static DbUrlRequest fromJson(String jsonString) throws IOException { - return JSON.getGson().fromJson(jsonString, DbUrlRequest.class); + public static ErrorDetail fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, ErrorDetail.class); } /** - * Convert an instance of DbUrlRequest to an JSON string + * Convert an instance of ErrorDetail to an JSON string * * @return JSON string */ diff --git a/src/main/java/ai/lamin/lamin_api_client/model/ExecuteFunctionRequestBody.java b/src/main/java/ai/lamin/lamin_api_client/model/ExecuteFunctionRequestBody.java new file mode 100644 index 0000000..6ddf912 --- /dev/null +++ b/src/main/java/ai/lamin/lamin_api_client/model/ExecuteFunctionRequestBody.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; + +/** + * ExecuteFunctionRequestBody + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-01-08T15:17:29.048390180+01:00[Europe/Brussels]", comments = "Generator version: 7.12.0") +public class ExecuteFunctionRequestBody { + public static final String SERIALIZED_NAME_TRANSFORM_UID = "transform_uid"; + @SerializedName(SERIALIZED_NAME_TRANSFORM_UID) + @javax.annotation.Nonnull + private String transformUid; + + public static final String SERIALIZED_NAME_FUNCTION_NAME = "function_name"; + @SerializedName(SERIALIZED_NAME_FUNCTION_NAME) + @javax.annotation.Nonnull + private String functionName; + + public static final String SERIALIZED_NAME_FUNCTION_KWARGS = "function_kwargs"; + @SerializedName(SERIALIZED_NAME_FUNCTION_KWARGS) + @javax.annotation.Nonnull + private Map functionKwargs = new HashMap<>(); + + public ExecuteFunctionRequestBody() { + } + + public ExecuteFunctionRequestBody transformUid(@javax.annotation.Nonnull String transformUid) { + this.transformUid = transformUid; + return this; + } + + /** + * Get transformUid + * @return transformUid + */ + @javax.annotation.Nonnull + public String getTransformUid() { + return transformUid; + } + + public void setTransformUid(@javax.annotation.Nonnull String transformUid) { + this.transformUid = transformUid; + } + + + public ExecuteFunctionRequestBody functionName(@javax.annotation.Nonnull String functionName) { + this.functionName = functionName; + return this; + } + + /** + * Get functionName + * @return functionName + */ + @javax.annotation.Nonnull + public String getFunctionName() { + return functionName; + } + + public void setFunctionName(@javax.annotation.Nonnull String functionName) { + this.functionName = functionName; + } + + + public ExecuteFunctionRequestBody functionKwargs(@javax.annotation.Nonnull Map functionKwargs) { + this.functionKwargs = functionKwargs; + return this; + } + + public ExecuteFunctionRequestBody putFunctionKwargsItem(String key, Object functionKwargsItem) { + if (this.functionKwargs == null) { + this.functionKwargs = new HashMap<>(); + } + this.functionKwargs.put(key, functionKwargsItem); + return this; + } + + /** + * Get functionKwargs + * @return functionKwargs + */ + @javax.annotation.Nonnull + public Map getFunctionKwargs() { + return functionKwargs; + } + + public void setFunctionKwargs(@javax.annotation.Nonnull Map functionKwargs) { + this.functionKwargs = functionKwargs; + } + + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + ExecuteFunctionRequestBody executeFunctionRequestBody = (ExecuteFunctionRequestBody) o; + return Objects.equals(this.transformUid, executeFunctionRequestBody.transformUid) && + Objects.equals(this.functionName, executeFunctionRequestBody.functionName) && + Objects.equals(this.functionKwargs, executeFunctionRequestBody.functionKwargs); + } + + @Override + public int hashCode() { + return Objects.hash(transformUid, functionName, functionKwargs); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ExecuteFunctionRequestBody {\n"); + sb.append(" transformUid: ").append(toIndentedString(transformUid)).append("\n"); + sb.append(" functionName: ").append(toIndentedString(functionName)).append("\n"); + sb.append(" functionKwargs: ").append(toIndentedString(functionKwargs)).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("transform_uid"); + openapiFields.add("function_name"); + openapiFields.add("function_kwargs"); + + // a set of required properties/fields (JSON key names) + openapiRequiredFields = new HashSet(); + openapiRequiredFields.add("transform_uid"); + openapiRequiredFields.add("function_name"); + openapiRequiredFields.add("function_kwargs"); + } + + /** + * 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 ExecuteFunctionRequestBody + */ + public static void validateJsonElement(JsonElement jsonElement) throws IOException { + if (jsonElement == null) { + if (!ExecuteFunctionRequestBody.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null + throw new IllegalArgumentException(String.format("The required field(s) %s in ExecuteFunctionRequestBody is not found in the empty JSON string", ExecuteFunctionRequestBody.openapiRequiredFields.toString())); + } + } + + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!ExecuteFunctionRequestBody.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `ExecuteFunctionRequestBody` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + } + } + + // check to make sure all required properties/fields are present in the JSON string + for (String requiredField : ExecuteFunctionRequestBody.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("transform_uid").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `transform_uid` to be a primitive type in the JSON string but got `%s`", jsonObj.get("transform_uid").toString())); + } + if (!jsonObj.get("function_name").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `function_name` to be a primitive type in the JSON string but got `%s`", jsonObj.get("function_name").toString())); + } + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!ExecuteFunctionRequestBody.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'ExecuteFunctionRequestBody' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(ExecuteFunctionRequestBody.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, ExecuteFunctionRequestBody value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public ExecuteFunctionRequestBody read(JsonReader in) throws IOException { + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + return thisAdapter.fromJsonTree(jsonElement); + } + + }.nullSafe(); + } + } + + /** + * Create an instance of ExecuteFunctionRequestBody given an JSON string + * + * @param jsonString JSON string + * @return An instance of ExecuteFunctionRequestBody + * @throws IOException if the JSON string is invalid with respect to ExecuteFunctionRequestBody + */ + public static ExecuteFunctionRequestBody fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, ExecuteFunctionRequestBody.class); + } + + /** + * Convert an instance of ExecuteFunctionRequestBody 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/ExportRecordsRequestBody.java b/src/main/java/ai/lamin/lamin_api_client/model/ExportRecordsRequestBody.java new file mode 100644 index 0000000..ca069c3 --- /dev/null +++ b/src/main/java/ai/lamin/lamin_api_client/model/ExportRecordsRequestBody.java @@ -0,0 +1,213 @@ +/* + * 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; + +/** + * ExportRecordsRequestBody + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-01-08T15:17:29.048390180+01:00[Europe/Brussels]", comments = "Generator version: 7.12.0") +public class ExportRecordsRequestBody { + public static final String SERIALIZED_NAME_KWARGS = "kwargs"; + @SerializedName(SERIALIZED_NAME_KWARGS) + @javax.annotation.Nullable + private Map kwargs = new HashMap<>(); + + public ExportRecordsRequestBody() { + } + + public ExportRecordsRequestBody kwargs(@javax.annotation.Nullable Map kwargs) { + this.kwargs = kwargs; + return this; + } + + public ExportRecordsRequestBody putKwargsItem(String key, Object kwargsItem) { + if (this.kwargs == null) { + this.kwargs = new HashMap<>(); + } + this.kwargs.put(key, kwargsItem); + return this; + } + + /** + * Get kwargs + * @return kwargs + */ + @javax.annotation.Nullable + public Map getKwargs() { + return kwargs; + } + + public void setKwargs(@javax.annotation.Nullable Map kwargs) { + this.kwargs = kwargs; + } + + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + ExportRecordsRequestBody exportRecordsRequestBody = (ExportRecordsRequestBody) o; + return Objects.equals(this.kwargs, exportRecordsRequestBody.kwargs); + } + + @Override + public int hashCode() { + return Objects.hash(kwargs); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ExportRecordsRequestBody {\n"); + sb.append(" kwargs: ").append(toIndentedString(kwargs)).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("kwargs"); + + // a set of required properties/fields (JSON key names) + openapiRequiredFields = new HashSet(); + } + + /** + * 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 ExportRecordsRequestBody + */ + public static void validateJsonElement(JsonElement jsonElement) throws IOException { + if (jsonElement == null) { + if (!ExportRecordsRequestBody.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null + throw new IllegalArgumentException(String.format("The required field(s) %s in ExportRecordsRequestBody is not found in the empty JSON string", ExportRecordsRequestBody.openapiRequiredFields.toString())); + } + } + + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!ExportRecordsRequestBody.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `ExportRecordsRequestBody` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + } + } + JsonObject jsonObj = jsonElement.getAsJsonObject(); + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!ExportRecordsRequestBody.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'ExportRecordsRequestBody' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(ExportRecordsRequestBody.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, ExportRecordsRequestBody value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public ExportRecordsRequestBody read(JsonReader in) throws IOException { + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + return thisAdapter.fromJsonTree(jsonElement); + } + + }.nullSafe(); + } + } + + /** + * Create an instance of ExportRecordsRequestBody given an JSON string + * + * @param jsonString JSON string + * @return An instance of ExportRecordsRequestBody + * @throws IOException if the JSON string is invalid with respect to ExportRecordsRequestBody + */ + public static ExportRecordsRequestBody fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, ExportRecordsRequestBody.class); + } + + /** + * Convert an instance of ExportRecordsRequestBody 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/GetRecordRequestBody.java b/src/main/java/ai/lamin/lamin_api_client/model/GetRecordRequestBody.java index 61170ad..cf1ec14 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-06-17T13:08:14.011869776+02:00[Europe/Brussels]", comments = "Generator version: 7.12.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-01-08T15:17:29.048390180+01: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 471c10b..dba0260 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-06-17T13:08:14.011869776+02:00[Europe/Brussels]", comments = "Generator version: 7.12.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-01-08T15:17:29.048390180+01:00[Europe/Brussels]", comments = "Generator version: 7.12.0") public class GetRecordsRequestBody { public static final String SERIALIZED_NAME_SELECT = "select"; @SerializedName(SERIALIZED_NAME_SELECT) @@ -76,6 +76,11 @@ public class GetRecordsRequestBody { @javax.annotation.Nullable private String search = ""; + public static final String SERIALIZED_NAME_SEARCH_IN = "search_in"; + @SerializedName(SERIALIZED_NAME_SEARCH_IN) + @javax.annotation.Nullable + private List searchIn; + public GetRecordsRequestBody() { } @@ -179,6 +184,33 @@ public void setSearch(@javax.annotation.Nullable String search) { } + public GetRecordsRequestBody searchIn(@javax.annotation.Nullable List searchIn) { + this.searchIn = searchIn; + return this; + } + + public GetRecordsRequestBody addSearchInItem(String searchInItem) { + if (this.searchIn == null) { + this.searchIn = new ArrayList<>(); + } + this.searchIn.add(searchInItem); + return this; + } + + /** + * Get searchIn + * @return searchIn + */ + @javax.annotation.Nullable + public List getSearchIn() { + return searchIn; + } + + public void setSearchIn(@javax.annotation.Nullable List searchIn) { + this.searchIn = searchIn; + } + + @Override public boolean equals(Object o) { @@ -192,7 +224,8 @@ public boolean equals(Object o) { return Objects.equals(this.select, getRecordsRequestBody.select) && Objects.equals(this.filter, getRecordsRequestBody.filter) && Objects.equals(this.orderBy, getRecordsRequestBody.orderBy) && - Objects.equals(this.search, getRecordsRequestBody.search); + Objects.equals(this.search, getRecordsRequestBody.search) && + Objects.equals(this.searchIn, getRecordsRequestBody.searchIn); } private static boolean equalsNullable(JsonNullable a, JsonNullable b) { @@ -201,7 +234,7 @@ private static boolean equalsNullable(JsonNullable a, JsonNullable b) @Override public int hashCode() { - return Objects.hash(select, filter, orderBy, search); + return Objects.hash(select, filter, orderBy, search, searchIn); } private static int hashCodeNullable(JsonNullable a) { @@ -219,6 +252,7 @@ public String toString() { sb.append(" filter: ").append(toIndentedString(filter)).append("\n"); sb.append(" orderBy: ").append(toIndentedString(orderBy)).append("\n"); sb.append(" search: ").append(toIndentedString(search)).append("\n"); + sb.append(" searchIn: ").append(toIndentedString(searchIn)).append("\n"); sb.append("}"); return sb.toString(); } @@ -245,6 +279,7 @@ private String toIndentedString(Object o) { openapiFields.add("filter"); openapiFields.add("order_by"); openapiFields.add("search"); + openapiFields.add("search_in"); // a set of required properties/fields (JSON key names) openapiRequiredFields = new HashSet(); @@ -292,6 +327,10 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti if ((jsonObj.get("search") != null && !jsonObj.get("search").isJsonNull()) && !jsonObj.get("search").isJsonPrimitive()) { throw new IllegalArgumentException(String.format("Expected the field `search` to be a primitive type in the JSON string but got `%s`", jsonObj.get("search").toString())); } + // ensure the optional json data is an array if present + if (jsonObj.get("search_in") != null && !jsonObj.get("search_in").isJsonNull() && !jsonObj.get("search_in").isJsonArray()) { + throw new IllegalArgumentException(String.format("Expected the field `search_in` to be an array in the JSON string but got `%s`", jsonObj.get("search_in").toString())); + } } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { 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 1f96414..c78b528 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-06-17T13:08:14.011869776+02:00[Europe/Brussels]", comments = "Generator version: 7.12.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-01-08T15:17:29.048390180+01:00[Europe/Brussels]", comments = "Generator version: 7.12.0") public class GetValuesRequestBody { public static final String SERIALIZED_NAME_FILTER = "filter"; @SerializedName(SERIALIZED_NAME_FILTER) @@ -71,6 +71,11 @@ public class GetValuesRequestBody { @javax.annotation.Nullable private String search = ""; + public static final String SERIALIZED_NAME_SEARCH_IN = "search_in"; + @SerializedName(SERIALIZED_NAME_SEARCH_IN) + @javax.annotation.Nullable + private List searchIn; + public GetValuesRequestBody() { } @@ -147,6 +152,33 @@ public void setSearch(@javax.annotation.Nullable String search) { } + public GetValuesRequestBody searchIn(@javax.annotation.Nullable List searchIn) { + this.searchIn = searchIn; + return this; + } + + public GetValuesRequestBody addSearchInItem(String searchInItem) { + if (this.searchIn == null) { + this.searchIn = new ArrayList<>(); + } + this.searchIn.add(searchInItem); + return this; + } + + /** + * Get searchIn + * @return searchIn + */ + @javax.annotation.Nullable + public List getSearchIn() { + return searchIn; + } + + public void setSearchIn(@javax.annotation.Nullable List searchIn) { + this.searchIn = searchIn; + } + + @Override public boolean equals(Object o) { @@ -159,7 +191,8 @@ public boolean equals(Object o) { GetValuesRequestBody getValuesRequestBody = (GetValuesRequestBody) o; return Objects.equals(this.filter, getValuesRequestBody.filter) && Objects.equals(this.orderBy, getValuesRequestBody.orderBy) && - Objects.equals(this.search, getValuesRequestBody.search); + Objects.equals(this.search, getValuesRequestBody.search) && + Objects.equals(this.searchIn, getValuesRequestBody.searchIn); } private static boolean equalsNullable(JsonNullable a, JsonNullable b) { @@ -168,7 +201,7 @@ private static boolean equalsNullable(JsonNullable a, JsonNullable b) @Override public int hashCode() { - return Objects.hash(filter, orderBy, search); + return Objects.hash(filter, orderBy, search, searchIn); } private static int hashCodeNullable(JsonNullable a) { @@ -185,6 +218,7 @@ public String toString() { sb.append(" filter: ").append(toIndentedString(filter)).append("\n"); sb.append(" orderBy: ").append(toIndentedString(orderBy)).append("\n"); sb.append(" search: ").append(toIndentedString(search)).append("\n"); + sb.append(" searchIn: ").append(toIndentedString(searchIn)).append("\n"); sb.append("}"); return sb.toString(); } @@ -210,6 +244,7 @@ private String toIndentedString(Object o) { openapiFields.add("filter"); openapiFields.add("order_by"); openapiFields.add("search"); + openapiFields.add("search_in"); // a set of required properties/fields (JSON key names) openapiRequiredFields = new HashSet(); @@ -253,6 +288,10 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti if ((jsonObj.get("search") != null && !jsonObj.get("search").isJsonNull()) && !jsonObj.get("search").isJsonPrimitive()) { throw new IllegalArgumentException(String.format("Expected the field `search` to be a primitive type in the JSON string but got `%s`", jsonObj.get("search").toString())); } + // ensure the optional json data is an array if present + if (jsonObj.get("search_in") != null && !jsonObj.get("search_in").isJsonNull() && !jsonObj.get("search_in").isJsonArray()) { + throw new IllegalArgumentException(String.format("Expected the field `search_in` to be an array in the JSON string but got `%s`", jsonObj.get("search_in").toString())); + } } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { 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 702ae89..033edae 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-06-17T13:08:14.011869776+02:00[Europe/Brussels]", comments = "Generator version: 7.12.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-01-08T15:17:29.048390180+01: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 6d1524c..5e8c595 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-06-17T13:08:14.011869776+02:00[Europe/Brussels]", comments = "Generator version: 7.12.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-01-08T15:17:29.048390180+01: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 e810c20..cd2610e 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-06-17T13:08:14.011869776+02:00[Europe/Brussels]", comments = "Generator version: 7.12.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-01-08T15:17:29.048390180+01: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/NonEmptyTablesResponse.java b/src/main/java/ai/lamin/lamin_api_client/model/NonEmptyTablesResponse.java new file mode 100644 index 0000000..d5e8afc --- /dev/null +++ b/src/main/java/ai/lamin/lamin_api_client/model/NonEmptyTablesResponse.java @@ -0,0 +1,222 @@ +/* + * 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.List; +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; + +/** + * NonEmptyTablesResponse + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-01-08T15:17:29.048390180+01:00[Europe/Brussels]", comments = "Generator version: 7.12.0") +public class NonEmptyTablesResponse { + public static final String SERIALIZED_NAME_NON_EMPTY_TABLES = "non_empty_tables"; + @SerializedName(SERIALIZED_NAME_NON_EMPTY_TABLES) + @javax.annotation.Nonnull + private Map> nonEmptyTables = new HashMap<>(); + + public NonEmptyTablesResponse() { + } + + public NonEmptyTablesResponse nonEmptyTables(@javax.annotation.Nonnull Map> nonEmptyTables) { + this.nonEmptyTables = nonEmptyTables; + return this; + } + + public NonEmptyTablesResponse putNonEmptyTablesItem(String key, List nonEmptyTablesItem) { + if (this.nonEmptyTables == null) { + this.nonEmptyTables = new HashMap<>(); + } + this.nonEmptyTables.put(key, nonEmptyTablesItem); + return this; + } + + /** + * A dictionary where keys are module names and values are lists of class names representing non-empty tables. + * @return nonEmptyTables + */ + @javax.annotation.Nonnull + public Map> getNonEmptyTables() { + return nonEmptyTables; + } + + public void setNonEmptyTables(@javax.annotation.Nonnull Map> nonEmptyTables) { + this.nonEmptyTables = nonEmptyTables; + } + + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + NonEmptyTablesResponse nonEmptyTablesResponse = (NonEmptyTablesResponse) o; + return Objects.equals(this.nonEmptyTables, nonEmptyTablesResponse.nonEmptyTables); + } + + @Override + public int hashCode() { + return Objects.hash(nonEmptyTables); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class NonEmptyTablesResponse {\n"); + sb.append(" nonEmptyTables: ").append(toIndentedString(nonEmptyTables)).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("non_empty_tables"); + + // a set of required properties/fields (JSON key names) + openapiRequiredFields = new HashSet(); + openapiRequiredFields.add("non_empty_tables"); + } + + /** + * 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 NonEmptyTablesResponse + */ + public static void validateJsonElement(JsonElement jsonElement) throws IOException { + if (jsonElement == null) { + if (!NonEmptyTablesResponse.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null + throw new IllegalArgumentException(String.format("The required field(s) %s in NonEmptyTablesResponse is not found in the empty JSON string", NonEmptyTablesResponse.openapiRequiredFields.toString())); + } + } + + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!NonEmptyTablesResponse.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `NonEmptyTablesResponse` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + } + } + + // check to make sure all required properties/fields are present in the JSON string + for (String requiredField : NonEmptyTablesResponse.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(); + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!NonEmptyTablesResponse.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'NonEmptyTablesResponse' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(NonEmptyTablesResponse.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, NonEmptyTablesResponse value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public NonEmptyTablesResponse read(JsonReader in) throws IOException { + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + return thisAdapter.fromJsonTree(jsonElement); + } + + }.nullSafe(); + } + } + + /** + * Create an instance of NonEmptyTablesResponse given an JSON string + * + * @param jsonString JSON string + * @return An instance of NonEmptyTablesResponse + * @throws IOException if the JSON string is invalid with respect to NonEmptyTablesResponse + */ + public static NonEmptyTablesResponse fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, NonEmptyTablesResponse.class); + } + + /** + * Convert an instance of NonEmptyTablesResponse 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/OrderByColumn.java b/src/main/java/ai/lamin/lamin_api_client/model/OrderByColumn.java index 10c5e6e..0484858 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-06-17T13:08:14.011869776+02:00[Europe/Brussels]", comments = "Generator version: 7.12.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-01-08T15:17:29.048390180+01: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 index f7207b0..0731bf0 100644 --- a/src/main/java/ai/lamin/lamin_api_client/model/RegisterDbServerBody.java +++ b/src/main/java/ai/lamin/lamin_api_client/model/RegisterDbServerBody.java @@ -21,6 +21,7 @@ import com.google.gson.stream.JsonWriter; import java.io.IOException; import java.util.Arrays; +import java.util.UUID; import com.google.gson.Gson; import com.google.gson.GsonBuilder; @@ -48,7 +49,7 @@ /** * RegisterDbServerBody */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-06-17T13:08:14.011869776+02:00[Europe/Brussels]", comments = "Generator version: 7.12.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-01-08T15:17:29.048390180+01:00[Europe/Brussels]", comments = "Generator version: 7.12.0") public class RegisterDbServerBody { public static final String SERIALIZED_NAME_NAME = "name"; @SerializedName(SERIALIZED_NAME_NAME) @@ -65,6 +66,11 @@ public class RegisterDbServerBody { @javax.annotation.Nonnull private String apiServerName; + public static final String SERIALIZED_NAME_ORGANIZATION_ID = "organization_id"; + @SerializedName(SERIALIZED_NAME_ORGANIZATION_ID) + @javax.annotation.Nonnull + private UUID organizationId; + public RegisterDbServerBody() { } @@ -125,6 +131,25 @@ public void setApiServerName(@javax.annotation.Nonnull String apiServerName) { } + public RegisterDbServerBody organizationId(@javax.annotation.Nonnull UUID organizationId) { + this.organizationId = organizationId; + return this; + } + + /** + * Get organizationId + * @return organizationId + */ + @javax.annotation.Nonnull + public UUID getOrganizationId() { + return organizationId; + } + + public void setOrganizationId(@javax.annotation.Nonnull UUID organizationId) { + this.organizationId = organizationId; + } + + @Override public boolean equals(Object o) { @@ -137,12 +162,13 @@ public boolean equals(Object o) { RegisterDbServerBody registerDbServerBody = (RegisterDbServerBody) o; return Objects.equals(this.name, registerDbServerBody.name) && Objects.equals(this.url, registerDbServerBody.url) && - Objects.equals(this.apiServerName, registerDbServerBody.apiServerName); + Objects.equals(this.apiServerName, registerDbServerBody.apiServerName) && + Objects.equals(this.organizationId, registerDbServerBody.organizationId); } @Override public int hashCode() { - return Objects.hash(name, url, apiServerName); + return Objects.hash(name, url, apiServerName, organizationId); } @Override @@ -152,6 +178,7 @@ public String toString() { 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(" organizationId: ").append(toIndentedString(organizationId)).append("\n"); sb.append("}"); return sb.toString(); } @@ -177,12 +204,14 @@ private String toIndentedString(Object o) { openapiFields.add("name"); openapiFields.add("url"); openapiFields.add("api_server_name"); + openapiFields.add("organization_id"); // a set of required properties/fields (JSON key names) openapiRequiredFields = new HashSet(); openapiRequiredFields.add("name"); openapiRequiredFields.add("url"); openapiRequiredFields.add("api_server_name"); + openapiRequiredFields.add("organization_id"); } /** @@ -222,6 +251,9 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti 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())); } + if (!jsonObj.get("organization_id").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `organization_id` to be a primitive type in the JSON string but got `%s`", jsonObj.get("organization_id").toString())); + } } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { 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 index b1b7ec6..e698213 100644 --- a/src/main/java/ai/lamin/lamin_api_client/model/RegisterFormRequest.java +++ b/src/main/java/ai/lamin/lamin_api_client/model/RegisterFormRequest.java @@ -50,7 +50,7 @@ /** * RegisterFormRequest */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-06-17T13:08:14.011869776+02:00[Europe/Brussels]", comments = "Generator version: 7.12.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-01-08T15:17:29.048390180+01:00[Europe/Brussels]", comments = "Generator version: 7.12.0") public class RegisterFormRequest { public static final String SERIALIZED_NAME_KEY = "key"; @SerializedName(SERIALIZED_NAME_KEY) diff --git a/src/main/java/ai/lamin/lamin_api_client/model/Request.java b/src/main/java/ai/lamin/lamin_api_client/model/Request.java new file mode 100644 index 0000000..ed9efd5 --- /dev/null +++ b/src/main/java/ai/lamin/lamin_api_client/model/Request.java @@ -0,0 +1,423 @@ +/* + * 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 ai.lamin.lamin_api_client.model.OrderByColumn; +import ai.lamin.lamin_api_client.model.TraversalParams; +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.ArrayList; +import java.util.Arrays; +import java.util.HashMap; +import java.util.List; +import java.util.Map; +import org.openapitools.jackson.nullable.JsonNullable; + +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; + +/** + * Request + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-01-08T15:17:29.048390180+01:00[Europe/Brussels]", comments = "Generator version: 7.12.0") +public class Request { + public static final String SERIALIZED_NAME_RELATIVES = "relatives"; + @SerializedName(SERIALIZED_NAME_RELATIVES) + @javax.annotation.Nonnull + private TraversalParams relatives; + + public static final String SERIALIZED_NAME_SELECT = "select"; + @SerializedName(SERIALIZED_NAME_SELECT) + @javax.annotation.Nullable + private List select; + + public static final String SERIALIZED_NAME_FILTER = "filter"; + @SerializedName(SERIALIZED_NAME_FILTER) + @javax.annotation.Nullable + private Map filter; + + public static final String SERIALIZED_NAME_ORDER_BY = "order_by"; + @SerializedName(SERIALIZED_NAME_ORDER_BY) + @javax.annotation.Nullable + private List orderBy; + + public static final String SERIALIZED_NAME_SEARCH = "search"; + @SerializedName(SERIALIZED_NAME_SEARCH) + @javax.annotation.Nullable + private String search = ""; + + public static final String SERIALIZED_NAME_SEARCH_IN = "search_in"; + @SerializedName(SERIALIZED_NAME_SEARCH_IN) + @javax.annotation.Nullable + private List searchIn; + + public Request() { + } + + public Request relatives(@javax.annotation.Nonnull TraversalParams relatives) { + this.relatives = relatives; + return this; + } + + /** + * The parameters defining the relationship traversal. + * @return relatives + */ + @javax.annotation.Nonnull + public TraversalParams getRelatives() { + return relatives; + } + + public void setRelatives(@javax.annotation.Nonnull TraversalParams relatives) { + this.relatives = relatives; + } + + + public Request select(@javax.annotation.Nullable List select) { + this.select = select; + return this; + } + + public Request addSelectItem(String selectItem) { + if (this.select == null) { + this.select = new ArrayList<>(); + } + this.select.add(selectItem); + return this; + } + + /** + * Get select + * @return select + */ + @javax.annotation.Nullable + public List getSelect() { + return select; + } + + public void setSelect(@javax.annotation.Nullable List select) { + this.select = select; + } + + + public Request filter(@javax.annotation.Nullable Map filter) { + this.filter = filter; + return this; + } + + public Request putFilterItem(String key, Object filterItem) { + if (this.filter == null) { + this.filter = new HashMap<>(); + } + this.filter.put(key, filterItem); + return this; + } + + /** + * Get filter + * @return filter + */ + @javax.annotation.Nullable + public Map getFilter() { + return filter; + } + + public void setFilter(@javax.annotation.Nullable Map filter) { + this.filter = filter; + } + + + public Request orderBy(@javax.annotation.Nullable List orderBy) { + this.orderBy = orderBy; + return this; + } + + public Request addOrderByItem(OrderByColumn orderByItem) { + if (this.orderBy == null) { + this.orderBy = new ArrayList<>(); + } + this.orderBy.add(orderByItem); + return this; + } + + /** + * Get orderBy + * @return orderBy + */ + @javax.annotation.Nullable + public List getOrderBy() { + return orderBy; + } + + public void setOrderBy(@javax.annotation.Nullable List orderBy) { + this.orderBy = orderBy; + } + + + public Request search(@javax.annotation.Nullable String search) { + this.search = search; + return this; + } + + /** + * Get search + * @return search + */ + @javax.annotation.Nullable + public String getSearch() { + return search; + } + + public void setSearch(@javax.annotation.Nullable String search) { + this.search = search; + } + + + public Request searchIn(@javax.annotation.Nullable List searchIn) { + this.searchIn = searchIn; + return this; + } + + public Request addSearchInItem(String searchInItem) { + if (this.searchIn == null) { + this.searchIn = new ArrayList<>(); + } + this.searchIn.add(searchInItem); + return this; + } + + /** + * Get searchIn + * @return searchIn + */ + @javax.annotation.Nullable + public List getSearchIn() { + return searchIn; + } + + public void setSearchIn(@javax.annotation.Nullable List searchIn) { + this.searchIn = searchIn; + } + + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + Request request = (Request) o; + return Objects.equals(this.relatives, request.relatives) && + Objects.equals(this.select, request.select) && + Objects.equals(this.filter, request.filter) && + Objects.equals(this.orderBy, request.orderBy) && + Objects.equals(this.search, request.search) && + Objects.equals(this.searchIn, request.searchIn); + } + + private static boolean equalsNullable(JsonNullable a, JsonNullable b) { + return a == b || (a != null && b != null && a.isPresent() && b.isPresent() && Objects.deepEquals(a.get(), b.get())); + } + + @Override + public int hashCode() { + return Objects.hash(relatives, select, filter, orderBy, search, searchIn); + } + + private static int hashCodeNullable(JsonNullable a) { + if (a == null) { + return 1; + } + return a.isPresent() ? Arrays.deepHashCode(new Object[]{a.get()}) : 31; + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class Request {\n"); + sb.append(" relatives: ").append(toIndentedString(relatives)).append("\n"); + sb.append(" select: ").append(toIndentedString(select)).append("\n"); + sb.append(" filter: ").append(toIndentedString(filter)).append("\n"); + sb.append(" orderBy: ").append(toIndentedString(orderBy)).append("\n"); + sb.append(" search: ").append(toIndentedString(search)).append("\n"); + sb.append(" searchIn: ").append(toIndentedString(searchIn)).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("relatives"); + openapiFields.add("select"); + openapiFields.add("filter"); + openapiFields.add("order_by"); + openapiFields.add("search"); + openapiFields.add("search_in"); + + // a set of required properties/fields (JSON key names) + openapiRequiredFields = new HashSet(); + openapiRequiredFields.add("relatives"); + } + + /** + * 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 Request + */ + public static void validateJsonElement(JsonElement jsonElement) throws IOException { + if (jsonElement == null) { + if (!Request.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null + throw new IllegalArgumentException(String.format("The required field(s) %s in Request is not found in the empty JSON string", Request.openapiRequiredFields.toString())); + } + } + + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!Request.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `Request` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + } + } + + // check to make sure all required properties/fields are present in the JSON string + for (String requiredField : Request.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(); + // validate the required field `relatives` + TraversalParams.validateJsonElement(jsonObj.get("relatives")); + // ensure the optional json data is an array if present + if (jsonObj.get("select") != null && !jsonObj.get("select").isJsonNull() && !jsonObj.get("select").isJsonArray()) { + throw new IllegalArgumentException(String.format("Expected the field `select` to be an array in the JSON string but got `%s`", jsonObj.get("select").toString())); + } + if (jsonObj.get("order_by") != null && !jsonObj.get("order_by").isJsonNull()) { + JsonArray jsonArrayorderBy = jsonObj.getAsJsonArray("order_by"); + if (jsonArrayorderBy != null) { + // ensure the json data is an array + if (!jsonObj.get("order_by").isJsonArray()) { + throw new IllegalArgumentException(String.format("Expected the field `order_by` to be an array in the JSON string but got `%s`", jsonObj.get("order_by").toString())); + } + + // validate the optional field `order_by` (array) + for (int i = 0; i < jsonArrayorderBy.size(); i++) { + OrderByColumn.validateJsonElement(jsonArrayorderBy.get(i)); + }; + } + } + if ((jsonObj.get("search") != null && !jsonObj.get("search").isJsonNull()) && !jsonObj.get("search").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `search` to be a primitive type in the JSON string but got `%s`", jsonObj.get("search").toString())); + } + // ensure the optional json data is an array if present + if (jsonObj.get("search_in") != null && !jsonObj.get("search_in").isJsonNull() && !jsonObj.get("search_in").isJsonArray()) { + throw new IllegalArgumentException(String.format("Expected the field `search_in` to be an array in the JSON string but got `%s`", jsonObj.get("search_in").toString())); + } + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!Request.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'Request' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(Request.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, Request value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public Request read(JsonReader in) throws IOException { + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + return thisAdapter.fromJsonTree(jsonElement); + } + + }.nullSafe(); + } + } + + /** + * Create an instance of Request given an JSON string + * + * @param jsonString JSON string + * @return An instance of Request + * @throws IOException if the JSON string is invalid with respect to Request + */ + public static Request fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, Request.class); + } + + /** + * Convert an instance of Request 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 index 4ea0bab..df2edce 100644 --- a/src/main/java/ai/lamin/lamin_api_client/model/Role.java +++ b/src/main/java/ai/lamin/lamin_api_client/model/Role.java @@ -50,7 +50,7 @@ import ai.lamin.lamin_api_client.JSON; -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-06-17T13:08:14.011869776+02:00[Europe/Brussels]", comments = "Generator version: 7.12.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-01-08T15:17:29.048390180+01:00[Europe/Brussels]", comments = "Generator version: 7.12.0") public class Role extends AbstractOpenApiSchema { private static final Logger log = Logger.getLogger(Role.class.getName()); 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 index 4d75ca9..fb4f197 100644 --- a/src/main/java/ai/lamin/lamin_api_client/model/Role1.java +++ b/src/main/java/ai/lamin/lamin_api_client/model/Role1.java @@ -50,7 +50,7 @@ import ai.lamin.lamin_api_client.JSON; -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-06-17T13:08:14.011869776+02:00[Europe/Brussels]", comments = "Generator version: 7.12.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-01-08T15:17:29.048390180+01:00[Europe/Brussels]", comments = "Generator version: 7.12.0") public class Role1 extends AbstractOpenApiSchema { private static final Logger log = Logger.getLogger(Role1.class.getName()); 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 aaf8930..0daddbd 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 @@ -21,6 +21,9 @@ import com.google.gson.stream.JsonWriter; import java.io.IOException; import java.util.Arrays; +import java.util.HashMap; +import java.util.Map; +import org.openapitools.jackson.nullable.JsonNullable; import com.google.gson.Gson; import com.google.gson.GsonBuilder; @@ -48,7 +51,7 @@ /** * S3PermissionsRequest */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-06-17T13:08:14.011869776+02:00[Europe/Brussels]", comments = "Generator version: 7.12.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-01-08T15:17:29.048390180+01: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) @@ -65,6 +68,16 @@ public class S3PermissionsRequest { @javax.annotation.Nonnull private String region; + public static final String SERIALIZED_NAME_AWS_SESSION_TOKEN = "aws_session_token"; + @SerializedName(SERIALIZED_NAME_AWS_SESSION_TOKEN) + @javax.annotation.Nullable + private String awsSessionToken; + + public static final String SERIALIZED_NAME_EXTRA_PARAMETERS = "extra_parameters"; + @SerializedName(SERIALIZED_NAME_EXTRA_PARAMETERS) + @javax.annotation.Nullable + private Map extraParameters; + public S3PermissionsRequest() { } @@ -125,6 +138,52 @@ public void setRegion(@javax.annotation.Nonnull String region) { } + public S3PermissionsRequest awsSessionToken(@javax.annotation.Nullable String awsSessionToken) { + this.awsSessionToken = awsSessionToken; + return this; + } + + /** + * Get awsSessionToken + * @return awsSessionToken + */ + @javax.annotation.Nullable + public String getAwsSessionToken() { + return awsSessionToken; + } + + public void setAwsSessionToken(@javax.annotation.Nullable String awsSessionToken) { + this.awsSessionToken = awsSessionToken; + } + + + public S3PermissionsRequest extraParameters(@javax.annotation.Nullable Map extraParameters) { + this.extraParameters = extraParameters; + return this; + } + + public S3PermissionsRequest putExtraParametersItem(String key, Object extraParametersItem) { + if (this.extraParameters == null) { + this.extraParameters = new HashMap<>(); + } + this.extraParameters.put(key, extraParametersItem); + return this; + } + + /** + * Get extraParameters + * @return extraParameters + */ + @javax.annotation.Nullable + public Map getExtraParameters() { + return extraParameters; + } + + public void setExtraParameters(@javax.annotation.Nullable Map extraParameters) { + this.extraParameters = extraParameters; + } + + @Override public boolean equals(Object o) { @@ -137,12 +196,25 @@ public boolean equals(Object o) { S3PermissionsRequest s3PermissionsRequest = (S3PermissionsRequest) o; return Objects.equals(this.awsAccessKeyId, s3PermissionsRequest.awsAccessKeyId) && Objects.equals(this.awsSecretAccessKey, s3PermissionsRequest.awsSecretAccessKey) && - Objects.equals(this.region, s3PermissionsRequest.region); + Objects.equals(this.region, s3PermissionsRequest.region) && + Objects.equals(this.awsSessionToken, s3PermissionsRequest.awsSessionToken) && + Objects.equals(this.extraParameters, s3PermissionsRequest.extraParameters); + } + + private static boolean equalsNullable(JsonNullable a, JsonNullable b) { + return a == b || (a != null && b != null && a.isPresent() && b.isPresent() && Objects.deepEquals(a.get(), b.get())); } @Override public int hashCode() { - return Objects.hash(awsAccessKeyId, awsSecretAccessKey, region); + return Objects.hash(awsAccessKeyId, awsSecretAccessKey, region, awsSessionToken, extraParameters); + } + + private static int hashCodeNullable(JsonNullable a) { + if (a == null) { + return 1; + } + return a.isPresent() ? Arrays.deepHashCode(new Object[]{a.get()}) : 31; } @Override @@ -152,6 +224,8 @@ public String toString() { sb.append(" awsAccessKeyId: ").append(toIndentedString(awsAccessKeyId)).append("\n"); sb.append(" awsSecretAccessKey: ").append(toIndentedString(awsSecretAccessKey)).append("\n"); sb.append(" region: ").append(toIndentedString(region)).append("\n"); + sb.append(" awsSessionToken: ").append(toIndentedString(awsSessionToken)).append("\n"); + sb.append(" extraParameters: ").append(toIndentedString(extraParameters)).append("\n"); sb.append("}"); return sb.toString(); } @@ -177,6 +251,8 @@ private String toIndentedString(Object o) { openapiFields.add("aws_access_key_id"); openapiFields.add("aws_secret_access_key"); openapiFields.add("region"); + openapiFields.add("aws_session_token"); + openapiFields.add("extra_parameters"); // a set of required properties/fields (JSON key names) openapiRequiredFields = new HashSet(); @@ -222,6 +298,9 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti if (!jsonObj.get("region").isJsonPrimitive()) { throw new IllegalArgumentException(String.format("Expected the field `region` to be a primitive type in the JSON string but got `%s`", jsonObj.get("region").toString())); } + if ((jsonObj.get("aws_session_token") != null && !jsonObj.get("aws_session_token").isJsonNull()) && !jsonObj.get("aws_session_token").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `aws_session_token` to be a primitive type in the JSON string but got `%s`", jsonObj.get("aws_session_token").toString())); + } } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { diff --git a/src/main/java/ai/lamin/lamin_api_client/model/StatisticsResponse.java b/src/main/java/ai/lamin/lamin_api_client/model/StatisticsResponse.java new file mode 100644 index 0000000..f666c1b --- /dev/null +++ b/src/main/java/ai/lamin/lamin_api_client/model/StatisticsResponse.java @@ -0,0 +1,249 @@ +/* + * 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; + +/** + * Defines the response for the instance statistics endpoint. + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-01-08T15:17:29.048390180+01:00[Europe/Brussels]", comments = "Generator version: 7.12.0") +public class StatisticsResponse { + public static final String SERIALIZED_NAME_INSTANCE_SIZE = "instance_size"; + @SerializedName(SERIALIZED_NAME_INSTANCE_SIZE) + @javax.annotation.Nonnull + private Integer instanceSize; + + public static final String SERIALIZED_NAME_COUNTS = "counts"; + @SerializedName(SERIALIZED_NAME_COUNTS) + @javax.annotation.Nonnull + private Map> counts = new HashMap<>(); + + public StatisticsResponse() { + } + + public StatisticsResponse instanceSize(@javax.annotation.Nonnull Integer instanceSize) { + this.instanceSize = instanceSize; + return this; + } + + /** + * Total size in bytes of all artifacts, calculated precisely in real-time. + * @return instanceSize + */ + @javax.annotation.Nonnull + public Integer getInstanceSize() { + return instanceSize; + } + + public void setInstanceSize(@javax.annotation.Nonnull Integer instanceSize) { + this.instanceSize = instanceSize; + } + + + public StatisticsResponse counts(@javax.annotation.Nonnull Map> counts) { + this.counts = counts; + return this; + } + + public StatisticsResponse putCountsItem(String key, Map countsItem) { + if (this.counts == null) { + this.counts = new HashMap<>(); + } + this.counts.put(key, countsItem); + return this; + } + + /** + * A nested dictionary containing approximate row counts for tables. Keys are module names, and values are dictionaries mapping class names to their estimated row count. + * @return counts + */ + @javax.annotation.Nonnull + public Map> getCounts() { + return counts; + } + + public void setCounts(@javax.annotation.Nonnull Map> counts) { + this.counts = counts; + } + + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + StatisticsResponse statisticsResponse = (StatisticsResponse) o; + return Objects.equals(this.instanceSize, statisticsResponse.instanceSize) && + Objects.equals(this.counts, statisticsResponse.counts); + } + + @Override + public int hashCode() { + return Objects.hash(instanceSize, counts); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class StatisticsResponse {\n"); + sb.append(" instanceSize: ").append(toIndentedString(instanceSize)).append("\n"); + sb.append(" counts: ").append(toIndentedString(counts)).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("instance_size"); + openapiFields.add("counts"); + + // a set of required properties/fields (JSON key names) + openapiRequiredFields = new HashSet(); + openapiRequiredFields.add("instance_size"); + openapiRequiredFields.add("counts"); + } + + /** + * 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 StatisticsResponse + */ + public static void validateJsonElement(JsonElement jsonElement) throws IOException { + if (jsonElement == null) { + if (!StatisticsResponse.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null + throw new IllegalArgumentException(String.format("The required field(s) %s in StatisticsResponse is not found in the empty JSON string", StatisticsResponse.openapiRequiredFields.toString())); + } + } + + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!StatisticsResponse.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `StatisticsResponse` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + } + } + + // check to make sure all required properties/fields are present in the JSON string + for (String requiredField : StatisticsResponse.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(); + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!StatisticsResponse.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'StatisticsResponse' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(StatisticsResponse.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, StatisticsResponse value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public StatisticsResponse read(JsonReader in) throws IOException { + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + return thisAdapter.fromJsonTree(jsonElement); + } + + }.nullSafe(); + } + } + + /** + * Create an instance of StatisticsResponse given an JSON string + * + * @param jsonString JSON string + * @return An instance of StatisticsResponse + * @throws IOException if the JSON string is invalid with respect to StatisticsResponse + */ + public static StatisticsResponse fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, StatisticsResponse.class); + } + + /** + * Convert an instance of StatisticsResponse 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/SyncInstruction.java b/src/main/java/ai/lamin/lamin_api_client/model/SyncInstruction.java new file mode 100644 index 0000000..2850fae --- /dev/null +++ b/src/main/java/ai/lamin/lamin_api_client/model/SyncInstruction.java @@ -0,0 +1,265 @@ +/* + * 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.ArrayList; +import java.util.Arrays; +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.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; + +/** + * Defines a single synchronization instruction, containing the scope and the desired state for that scope. + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-01-08T15:17:29.048390180+01:00[Europe/Brussels]", comments = "Generator version: 7.12.0") +public class SyncInstruction { + public static final String SERIALIZED_NAME_SCOPE = "scope"; + @SerializedName(SERIALIZED_NAME_SCOPE) + @javax.annotation.Nonnull + private Map scope = new HashMap<>(); + + public static final String SERIALIZED_NAME_DESIRED_IDS = "desired_ids"; + @SerializedName(SERIALIZED_NAME_DESIRED_IDS) + @javax.annotation.Nonnull + private List desiredIds = new ArrayList<>(); + + public SyncInstruction() { + } + + public SyncInstruction scope(@javax.annotation.Nonnull Map scope) { + this.scope = scope; + return this; + } + + public SyncInstruction putScopeItem(String key, Object scopeItem) { + if (this.scope == null) { + this.scope = new HashMap<>(); + } + this.scope.put(key, scopeItem); + return this; + } + + /** + * Key-value pairs defining the constant scope for this specific synchronization operation (e.g., {'artifact_id': 1, 'feature_id': 10}). + * @return scope + */ + @javax.annotation.Nonnull + public Map getScope() { + return scope; + } + + public void setScope(@javax.annotation.Nonnull Map scope) { + this.scope = scope; + } + + + public SyncInstruction desiredIds(@javax.annotation.Nonnull List desiredIds) { + this.desiredIds = desiredIds; + return this; + } + + public SyncInstruction addDesiredIdsItem(Object desiredIdsItem) { + if (this.desiredIds == null) { + this.desiredIds = new ArrayList<>(); + } + this.desiredIds.add(desiredIdsItem); + return this; + } + + /** + * The complete list of desired IDs for the list_key within this scope. + * @return desiredIds + */ + @javax.annotation.Nonnull + public List getDesiredIds() { + return desiredIds; + } + + public void setDesiredIds(@javax.annotation.Nonnull List desiredIds) { + this.desiredIds = desiredIds; + } + + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + SyncInstruction syncInstruction = (SyncInstruction) o; + return Objects.equals(this.scope, syncInstruction.scope) && + Objects.equals(this.desiredIds, syncInstruction.desiredIds); + } + + @Override + public int hashCode() { + return Objects.hash(scope, desiredIds); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class SyncInstruction {\n"); + sb.append(" scope: ").append(toIndentedString(scope)).append("\n"); + sb.append(" desiredIds: ").append(toIndentedString(desiredIds)).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("scope"); + openapiFields.add("desired_ids"); + + // a set of required properties/fields (JSON key names) + openapiRequiredFields = new HashSet(); + openapiRequiredFields.add("scope"); + openapiRequiredFields.add("desired_ids"); + } + + /** + * 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 SyncInstruction + */ + public static void validateJsonElement(JsonElement jsonElement) throws IOException { + if (jsonElement == null) { + if (!SyncInstruction.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null + throw new IllegalArgumentException(String.format("The required field(s) %s in SyncInstruction is not found in the empty JSON string", SyncInstruction.openapiRequiredFields.toString())); + } + } + + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!SyncInstruction.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `SyncInstruction` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + } + } + + // check to make sure all required properties/fields are present in the JSON string + for (String requiredField : SyncInstruction.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(); + // ensure the required json array is present + if (jsonObj.get("desired_ids") == null) { + throw new IllegalArgumentException("Expected the field `linkedContent` to be an array in the JSON string but got `null`"); + } else if (!jsonObj.get("desired_ids").isJsonArray()) { + throw new IllegalArgumentException(String.format("Expected the field `desired_ids` to be an array in the JSON string but got `%s`", jsonObj.get("desired_ids").toString())); + } + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!SyncInstruction.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'SyncInstruction' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(SyncInstruction.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, SyncInstruction value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public SyncInstruction read(JsonReader in) throws IOException { + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + return thisAdapter.fromJsonTree(jsonElement); + } + + }.nullSafe(); + } + } + + /** + * Create an instance of SyncInstruction given an JSON string + * + * @param jsonString JSON string + * @return An instance of SyncInstruction + * @throws IOException if the JSON string is invalid with respect to SyncInstruction + */ + public static SyncInstruction fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, SyncInstruction.class); + } + + /** + * Convert an instance of SyncInstruction 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/TraversalParams.java b/src/main/java/ai/lamin/lamin_api_client/model/TraversalParams.java new file mode 100644 index 0000000..886b76d --- /dev/null +++ b/src/main/java/ai/lamin/lamin_api_client/model/TraversalParams.java @@ -0,0 +1,386 @@ +/* + * 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 ai.lamin.lamin_api_client.model.TraversalParamsValuesInner; +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.ArrayList; +import java.util.Arrays; +import java.util.List; +import org.openapitools.jackson.nullable.JsonNullable; + +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; + +/** + * Parameters that define the hierarchical traversal. + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-01-08T15:17:29.048390180+01:00[Europe/Brussels]", comments = "Generator version: 7.12.0") +public class TraversalParams { + public static final String SERIALIZED_NAME_VALUES = "values"; + @SerializedName(SERIALIZED_NAME_VALUES) + @javax.annotation.Nonnull + private List values = new ArrayList<>(); + + /** + * The direction of traversal + */ + @JsonAdapter(KindEnum.Adapter.class) + public enum KindEnum { + ANCESTORS("ancestors"), + + DESCENDANTS("descendants"); + + private String value; + + KindEnum(String value) { + this.value = value; + } + + public String getValue() { + return value; + } + + @Override + public String toString() { + return String.valueOf(value); + } + + public static KindEnum fromValue(String value) { + for (KindEnum b : KindEnum.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 KindEnum enumeration) throws IOException { + jsonWriter.value(enumeration.getValue()); + } + + @Override + public KindEnum read(final JsonReader jsonReader) throws IOException { + String value = jsonReader.nextString(); + return KindEnum.fromValue(value); + } + } + + public static void validateJsonElement(JsonElement jsonElement) throws IOException { + String value = jsonElement.getAsString(); + KindEnum.fromValue(value); + } + } + + public static final String SERIALIZED_NAME_KIND = "kind"; + @SerializedName(SERIALIZED_NAME_KIND) + @javax.annotation.Nonnull + private KindEnum kind; + + public static final String SERIALIZED_NAME_FIELD = "field"; + @SerializedName(SERIALIZED_NAME_FIELD) + @javax.annotation.Nullable + private String field = "id"; + + public static final String SERIALIZED_NAME_DEPTH = "depth"; + @SerializedName(SERIALIZED_NAME_DEPTH) + @javax.annotation.Nullable + private Integer depth; + + public TraversalParams() { + } + + public TraversalParams values(@javax.annotation.Nonnull List values) { + this.values = values; + return this; + } + + public TraversalParams addValuesItem(TraversalParamsValuesInner valuesItem) { + if (this.values == null) { + this.values = new ArrayList<>(); + } + this.values.add(valuesItem); + return this; + } + + /** + * A list of values for the specified 'field' to begin the traversal from. + * @return values + */ + @javax.annotation.Nonnull + public List getValues() { + return values; + } + + public void setValues(@javax.annotation.Nonnull List values) { + this.values = values; + } + + + public TraversalParams kind(@javax.annotation.Nonnull KindEnum kind) { + this.kind = kind; + return this; + } + + /** + * The direction of traversal + * @return kind + */ + @javax.annotation.Nonnull + public KindEnum getKind() { + return kind; + } + + public void setKind(@javax.annotation.Nonnull KindEnum kind) { + this.kind = kind; + } + + + public TraversalParams field(@javax.annotation.Nullable String field) { + this.field = field; + return this; + } + + /** + * The field on the model to use for identifying starting records (e.g., 'id', 'uid'). + * @return field + */ + @javax.annotation.Nullable + public String getField() { + return field; + } + + public void setField(@javax.annotation.Nullable String field) { + this.field = field; + } + + + public TraversalParams depth(@javax.annotation.Nullable Integer depth) { + this.depth = depth; + return this; + } + + /** + * Get depth + * @return depth + */ + @javax.annotation.Nullable + public Integer getDepth() { + return depth; + } + + public void setDepth(@javax.annotation.Nullable Integer depth) { + this.depth = depth; + } + + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + TraversalParams traversalParams = (TraversalParams) o; + return Objects.equals(this.values, traversalParams.values) && + Objects.equals(this.kind, traversalParams.kind) && + Objects.equals(this.field, traversalParams.field) && + Objects.equals(this.depth, traversalParams.depth); + } + + private static boolean equalsNullable(JsonNullable a, JsonNullable b) { + return a == b || (a != null && b != null && a.isPresent() && b.isPresent() && Objects.deepEquals(a.get(), b.get())); + } + + @Override + public int hashCode() { + return Objects.hash(values, kind, field, depth); + } + + private static int hashCodeNullable(JsonNullable a) { + if (a == null) { + return 1; + } + return a.isPresent() ? Arrays.deepHashCode(new Object[]{a.get()}) : 31; + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class TraversalParams {\n"); + sb.append(" values: ").append(toIndentedString(values)).append("\n"); + sb.append(" kind: ").append(toIndentedString(kind)).append("\n"); + sb.append(" field: ").append(toIndentedString(field)).append("\n"); + sb.append(" depth: ").append(toIndentedString(depth)).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("values"); + openapiFields.add("kind"); + openapiFields.add("field"); + openapiFields.add("depth"); + + // a set of required properties/fields (JSON key names) + openapiRequiredFields = new HashSet(); + openapiRequiredFields.add("values"); + openapiRequiredFields.add("kind"); + } + + /** + * 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 TraversalParams + */ + public static void validateJsonElement(JsonElement jsonElement) throws IOException { + if (jsonElement == null) { + if (!TraversalParams.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null + throw new IllegalArgumentException(String.format("The required field(s) %s in TraversalParams is not found in the empty JSON string", TraversalParams.openapiRequiredFields.toString())); + } + } + + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!TraversalParams.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `TraversalParams` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + } + } + + // check to make sure all required properties/fields are present in the JSON string + for (String requiredField : TraversalParams.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(); + // ensure the json data is an array + if (!jsonObj.get("values").isJsonArray()) { + throw new IllegalArgumentException(String.format("Expected the field `values` to be an array in the JSON string but got `%s`", jsonObj.get("values").toString())); + } + + JsonArray jsonArrayvalues = jsonObj.getAsJsonArray("values"); + // validate the required field `values` (array) + for (int i = 0; i < jsonArrayvalues.size(); i++) { + TraversalParamsValuesInner.validateJsonElement(jsonArrayvalues.get(i)); + }; + if (!jsonObj.get("kind").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `kind` to be a primitive type in the JSON string but got `%s`", jsonObj.get("kind").toString())); + } + // validate the required field `kind` + KindEnum.validateJsonElement(jsonObj.get("kind")); + if ((jsonObj.get("field") != null && !jsonObj.get("field").isJsonNull()) && !jsonObj.get("field").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `field` to be a primitive type in the JSON string but got `%s`", jsonObj.get("field").toString())); + } + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!TraversalParams.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'TraversalParams' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(TraversalParams.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, TraversalParams value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public TraversalParams read(JsonReader in) throws IOException { + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + return thisAdapter.fromJsonTree(jsonElement); + } + + }.nullSafe(); + } + } + + /** + * Create an instance of TraversalParams given an JSON string + * + * @param jsonString JSON string + * @return An instance of TraversalParams + * @throws IOException if the JSON string is invalid with respect to TraversalParams + */ + public static TraversalParams fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, TraversalParams.class); + } + + /** + * Convert an instance of TraversalParams 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/TraversalParamsValuesInner.java b/src/main/java/ai/lamin/lamin_api_client/model/TraversalParamsValuesInner.java new file mode 100644 index 0000000..eca18cc --- /dev/null +++ b/src/main/java/ai/lamin/lamin_api_client/model/TraversalParamsValuesInner.java @@ -0,0 +1,315 @@ +/* + * 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 = "2026-01-08T15:17:29.048390180+01:00[Europe/Brussels]", comments = "Generator version: 7.12.0") +public class TraversalParamsValuesInner extends AbstractOpenApiSchema { + private static final Logger log = Logger.getLogger(TraversalParamsValuesInner.class.getName()); + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!TraversalParamsValuesInner.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'TraversalParamsValuesInner' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter adapterInteger = gson.getDelegateAdapter(this, TypeToken.get(Integer.class)); + final TypeAdapter adapterString = gson.getDelegateAdapter(this, TypeToken.get(String.class)); + final TypeAdapter adapterBoolean = gson.getDelegateAdapter(this, TypeToken.get(Boolean.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, TraversalParamsValuesInner value) throws IOException { + if (value == null || value.getActualInstance() == null) { + elementAdapter.write(out, null); + return; + } + + // check if the actual instance is of the type `Integer` + if (value.getActualInstance() instanceof Integer) { + JsonPrimitive primitive = adapterInteger.toJsonTree((Integer)value.getActualInstance()).getAsJsonPrimitive(); + elementAdapter.write(out, primitive); + 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; + } + // check if the actual instance is of the type `Boolean` + if (value.getActualInstance() instanceof Boolean) { + JsonPrimitive primitive = adapterBoolean.toJsonTree((Boolean)value.getActualInstance()).getAsJsonPrimitive(); + elementAdapter.write(out, primitive); + return; + } + throw new IOException("Failed to serialize as the type doesn't match anyOf schemas: Boolean, Integer, String"); + } + + @Override + public TraversalParamsValuesInner read(JsonReader in) throws IOException { + Object deserialized = null; + JsonElement jsonElement = elementAdapter.read(in); + + ArrayList errorMessages = new ArrayList<>(); + TypeAdapter actualAdapter = elementAdapter; + + // deserialize Integer + try { + // validate the JSON object to see if any exception is thrown + if (!jsonElement.getAsJsonPrimitive().isNumber()) { + throw new IllegalArgumentException(String.format("Expected json element to be of type Number in the JSON string but got `%s`", jsonElement.toString())); + } + actualAdapter = adapterInteger; + TraversalParamsValuesInner ret = new TraversalParamsValuesInner(); + ret.setActualInstance(actualAdapter.fromJsonTree(jsonElement)); + return ret; + } catch (Exception e) { + // deserialization failed, continue + errorMessages.add(String.format("Deserialization for Integer failed with `%s`.", e.getMessage())); + log.log(Level.FINER, "Input data does not match schema 'Integer'", e); + } + // 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; + TraversalParamsValuesInner ret = new TraversalParamsValuesInner(); + 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); + } + // deserialize Boolean + try { + // validate the JSON object to see if any exception is thrown + if (!jsonElement.getAsJsonPrimitive().isBoolean()) { + throw new IllegalArgumentException(String.format("Expected json element to be of type Boolean in the JSON string but got `%s`", jsonElement.toString())); + } + actualAdapter = adapterBoolean; + TraversalParamsValuesInner ret = new TraversalParamsValuesInner(); + ret.setActualInstance(actualAdapter.fromJsonTree(jsonElement)); + return ret; + } catch (Exception e) { + // deserialization failed, continue + errorMessages.add(String.format("Deserialization for Boolean failed with `%s`.", e.getMessage())); + log.log(Level.FINER, "Input data does not match schema 'Boolean'", e); + } + + throw new IOException(String.format("Failed deserialization for TraversalParamsValuesInner: 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 TraversalParamsValuesInner() { + super("anyOf", Boolean.FALSE); + } + + public TraversalParamsValuesInner(Object o) { + super("anyOf", Boolean.FALSE); + setActualInstance(o); + } + + static { + schemas.put("Integer", Integer.class); + schemas.put("String", String.class); + schemas.put("Boolean", Boolean.class); + } + + @Override + public Map> getSchemas() { + return TraversalParamsValuesInner.schemas; + } + + /** + * Set the instance that matches the anyOf child schema, check + * the instance parameter is valid against the anyOf child schemas: + * Boolean, Integer, String + * + * It could be an instance of the 'anyOf' schemas. + */ + @Override + public void setActualInstance(Object instance) { + if (instance instanceof Integer) { + super.setActualInstance(instance); + return; + } + + if (instance instanceof String) { + super.setActualInstance(instance); + return; + } + + if (instance instanceof Boolean) { + super.setActualInstance(instance); + return; + } + + throw new RuntimeException("Invalid instance type. Must be Boolean, Integer, String"); + } + + /** + * Get the actual instance, which can be the following: + * Boolean, Integer, String + * + * @return The actual instance (Boolean, Integer, String) + */ + @SuppressWarnings("unchecked") + @Override + public Object getActualInstance() { + return super.getActualInstance(); + } + + /** + * Get the actual instance of `Integer`. If the actual instance is not `Integer`, + * the ClassCastException will be thrown. + * + * @return The actual instance of `Integer` + * @throws ClassCastException if the instance is not `Integer` + */ + public Integer getInteger() throws ClassCastException { + return (Integer)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(); + } + + /** + * Get the actual instance of `Boolean`. If the actual instance is not `Boolean`, + * the ClassCastException will be thrown. + * + * @return The actual instance of `Boolean` + * @throws ClassCastException if the instance is not `Boolean` + */ + public Boolean getBoolean() throws ClassCastException { + return (Boolean)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 TraversalParamsValuesInner + */ + public static void validateJsonElement(JsonElement jsonElement) throws IOException { + // validate anyOf schemas one by one + ArrayList errorMessages = new ArrayList<>(); + // validate the json string with Integer + try { + if (!jsonElement.getAsJsonPrimitive().isNumber()) { + throw new IllegalArgumentException(String.format("Expected json element to be of type Number in the JSON string but got `%s`", jsonElement.toString())); + } + return; + } catch (Exception e) { + errorMessages.add(String.format("Deserialization for Integer failed with `%s`.", e.getMessage())); + // continue to the next one + } + // 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 + } + // validate the json string with Boolean + try { + if (!jsonElement.getAsJsonPrimitive().isBoolean()) { + throw new IllegalArgumentException(String.format("Expected json element to be of type Boolean in the JSON string but got `%s`", jsonElement.toString())); + } + return; + } catch (Exception e) { + errorMessages.add(String.format("Deserialization for Boolean failed with `%s`.", e.getMessage())); + // continue to the next one + } + throw new IOException(String.format("The JSON string is invalid for TraversalParamsValuesInner with anyOf schemas: Boolean, Integer, 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 TraversalParamsValuesInner given an JSON string + * + * @param jsonString JSON string + * @return An instance of TraversalParamsValuesInner + * @throws IOException if the JSON string is invalid with respect to TraversalParamsValuesInner + */ + public static TraversalParamsValuesInner fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, TraversalParamsValuesInner.class); + } + + /** + * Convert an instance of TraversalParamsValuesInner 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/UpdateCollaboratorRequestBody.java b/src/main/java/ai/lamin/lamin_api_client/model/UpdateCollaboratorRequestBody.java index 69414bf..8d2fd88 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-06-17T13:08:14.011869776+02:00[Europe/Brussels]", comments = "Generator version: 7.12.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-01-08T15:17:29.048390180+01: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/UpdateOrganizationMemberRequestBody.java b/src/main/java/ai/lamin/lamin_api_client/model/UpdateOrganizationMemberRequestBody.java index 6f09895..c71e63d 100644 --- a/src/main/java/ai/lamin/lamin_api_client/model/UpdateOrganizationMemberRequestBody.java +++ b/src/main/java/ai/lamin/lamin_api_client/model/UpdateOrganizationMemberRequestBody.java @@ -48,7 +48,7 @@ /** * UpdateOrganizationMemberRequestBody */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-06-17T13:08:14.011869776+02:00[Europe/Brussels]", comments = "Generator version: 7.12.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-01-08T15:17:29.048390180+01:00[Europe/Brussels]", comments = "Generator version: 7.12.0") public class UpdateOrganizationMemberRequestBody { /** * Gets or Sets role @@ -57,9 +57,11 @@ public class UpdateOrganizationMemberRequestBody { public enum RoleEnum { ADMIN("admin"), + MANAGER("manager"), + MEMBER("member"), - MANAGER("manager"); + GUEST("guest"); private String value; 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 2126542..fb5b849 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-06-17T13:08:14.011869776+02:00[Europe/Brussels]", comments = "Generator version: 7.12.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-01-08T15:17:29.048390180+01: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 673c321..2de4ee4 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-06-17T13:08:14.011869776+02:00[Europe/Brussels]", comments = "Generator version: 7.12.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-01-08T15:17:29.048390180+01: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 81e9e2d..69ef6a5 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 @@ -49,7 +49,7 @@ /** * UpdateTeamMemberRequestBody */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-06-17T13:08:14.011869776+02:00[Europe/Brussels]", comments = "Generator version: 7.12.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-01-08T15:17:29.048390180+01:00[Europe/Brussels]", comments = "Generator version: 7.12.0") public class UpdateTeamMemberRequestBody { public static final String SERIALIZED_NAME_ROLE = "role"; @SerializedName(SERIALIZED_NAME_ROLE) 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 327476a..e426336 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-06-17T13:08:14.011869776+02:00[Europe/Brussels]", comments = "Generator version: 7.12.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-01-08T15:17:29.048390180+01: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 5ca6ce0..e97a6bf 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-06-17T13:08:14.011869776+02:00[Europe/Brussels]", comments = "Generator version: 7.12.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-01-08T15:17:29.048390180+01: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 dd1b1b3..694d49f 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-06-17T13:08:14.011869776+02:00[Europe/Brussels]", comments = "Generator version: 7.12.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-01-08T15:17:29.048390180+01: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/AccountsApiTest.java b/src/test/src/test/java/ai/lamin/lamin_api_client/api/AccountsApiTest.java new file mode 100644 index 0000000..adf82bc --- /dev/null +++ b/src/test/src/test/java/ai/lamin/lamin_api_client/api/AccountsApiTest.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.api; + +import ai.lamin.lamin_api_client.ApiException; +import ai.lamin.lamin_api_client.model.HTTPValidationError; +import java.util.UUID; +import org.junit.jupiter.api.Disabled; +import org.junit.jupiter.api.Test; + +import java.util.ArrayList; +import java.util.HashMap; +import java.util.List; +import java.util.Map; + +/** + * API tests for AccountsApi + */ +@Disabled +public class AccountsApiTest { + + private final AccountsApi api = new AccountsApi(); + + /** + * Get Caller Account + * + * @throws ApiException if the Api call fails + */ + @Test + public void getCallerAccountAccountGetTest() throws ApiException { + UUID instanceId = null; + String authorization = null; + Object response = api.getCallerAccountAccountGet(instanceId, authorization); + // TODO: test validations + } + +} diff --git a/src/test/src/test/java/ai/lamin/lamin_api_client/api/BackwardCompatibleEndpointsApiTest.java b/src/test/src/test/java/ai/lamin/lamin_api_client/api/BackwardCompatibleEndpointsApiTest.java new file mode 100644 index 0000000..0675ef5 --- /dev/null +++ b/src/test/src/test/java/ai/lamin/lamin_api_client/api/BackwardCompatibleEndpointsApiTest.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.api; + +import ai.lamin.lamin_api_client.ApiException; +import ai.lamin.lamin_api_client.model.HTTPValidationError; +import java.util.UUID; +import org.junit.jupiter.api.Disabled; +import org.junit.jupiter.api.Test; + +import java.util.ArrayList; +import java.util.HashMap; +import java.util.List; +import java.util.Map; + +/** + * API tests for BackwardCompatibleEndpointsApi + */ +@Disabled +public class BackwardCompatibleEndpointsApiTest { + + private final BackwardCompatibleEndpointsApi api = new BackwardCompatibleEndpointsApi(); + + /** + * Get Db Token Backward Compatible + * + * @throws ApiException if the Api call fails + */ + @Test + public void getDbTokenBackwardCompatibleAccessV2InstancesInstanceIdDbTokenGetTest() throws ApiException { + UUID instanceId = null; + String authorization = null; + Object response = api.getDbTokenBackwardCompatibleAccessV2InstancesInstanceIdDbTokenGet(instanceId, authorization); + // TODO: test validations + } + +} diff --git a/src/test/src/test/java/ai/lamin/lamin_api_client/api/CacheApiTest.java b/src/test/src/test/java/ai/lamin/lamin_api_client/api/CacheApiTest.java new file mode 100644 index 0000000..2affd52 --- /dev/null +++ b/src/test/src/test/java/ai/lamin/lamin_api_client/api/CacheApiTest.java @@ -0,0 +1,61 @@ +/* + * 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.api; + +import ai.lamin.lamin_api_client.ApiException; +import ai.lamin.lamin_api_client.model.HTTPValidationError; +import java.util.UUID; +import org.junit.jupiter.api.Disabled; +import org.junit.jupiter.api.Test; + +import java.util.ArrayList; +import java.util.HashMap; +import java.util.List; +import java.util.Map; + +/** + * API tests for CacheApi + */ +@Disabled +public class CacheApiTest { + + private final CacheApi api = new CacheApi(); + + /** + * Get Instance Cache + * + * @throws ApiException if the Api call fails + */ + @Test + public void getInstanceCacheCacheInstancesInstanceIdGetTest() throws ApiException { + UUID instanceId = null; + String authorization = null; + Object response = api.getInstanceCacheCacheInstancesInstanceIdGet(instanceId, authorization); + // TODO: test validations + } + + /** + * Invalidate Instance Cache + * + * @throws ApiException if the Api call fails + */ + @Test + public void invalidateInstanceCacheCacheInstancesInstanceIdDeleteTest() throws ApiException { + UUID instanceId = null; + String authorization = null; + Object response = api.invalidateInstanceCacheCacheInstancesInstanceIdDelete(instanceId, authorization); + // TODO: test validations + } + +} diff --git a/src/test/src/test/java/ai/lamin/lamin_api_client/api/DbServerApiTest.java b/src/test/src/test/java/ai/lamin/lamin_api_client/api/DbServerApiTest.java new file mode 100644 index 0000000..29d7080 --- /dev/null +++ b/src/test/src/test/java/ai/lamin/lamin_api_client/api/DbServerApiTest.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.api; + +import ai.lamin.lamin_api_client.ApiException; +import ai.lamin.lamin_api_client.model.HTTPValidationError; +import ai.lamin.lamin_api_client.model.RegisterDbServerBody; +import java.util.UUID; +import org.junit.jupiter.api.Disabled; +import org.junit.jupiter.api.Test; + +import java.util.ArrayList; +import java.util.HashMap; +import java.util.List; +import java.util.Map; + +/** + * API tests for DbServerApi + */ +@Disabled +public class DbServerApiTest { + + private final DbServerApi api = new DbServerApi(); + + /** + * Check Db Server Access + * + * @throws ApiException if the Api call fails + */ + @Test + public void checkDbServerAccessDbServerCheckAccessPostTest() throws ApiException { + String name = null; + UUID instanceId = null; + String authorization = null; + Object response = api.checkDbServerAccessDbServerCheckAccessPost(name, instanceId, authorization); + // TODO: test validations + } + + /** + * Register Db Server + * + * @throws ApiException if the Api call fails + */ + @Test + public void registerDbServerDbServerRegisterPostTest() throws ApiException { + RegisterDbServerBody registerDbServerBody = null; + UUID instanceId = null; + String authorization = null; + Object response = api.registerDbServerDbServerRegisterPost(registerDbServerBody, instanceId, authorization); + // TODO: test validations + } + +} 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 deleted file mode 100644 index 917f0ab..0000000 --- a/src/test/src/test/java/ai/lamin/lamin_api_client/api/DefaultApiTest.java +++ /dev/null @@ -1,998 +0,0 @@ -/* - * 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.api; - -import ai.lamin.lamin_api_client.ApiException; -import ai.lamin.lamin_api_client.model.AddCollaboratorRequestBody; -import ai.lamin.lamin_api_client.model.AddSpaceCollaboratorRequestBody; -import ai.lamin.lamin_api_client.model.AddTeamMemberRequestBody; -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; -import ai.lamin.lamin_api_client.model.UpdateSpaceCollaboratorRequestBody; -import ai.lamin.lamin_api_client.model.UpdateSpaceRequestBody; -import ai.lamin.lamin_api_client.model.UpdateTeamMemberRequestBody; -import ai.lamin.lamin_api_client.model.UpdateTeamRequestBody; -import org.junit.jupiter.api.Disabled; -import org.junit.jupiter.api.Test; - -import java.util.ArrayList; -import java.util.HashMap; -import java.util.List; -import java.util.Map; - -/** - * API tests for DefaultApi - */ -@Disabled -public class DefaultApiTest { - - private final DefaultApi api = new DefaultApi(); - - /** - * Add Collaborator - * - * Add a collaborator (account or team) to an instance. Parameters: - **instance_id**: UUID of the instance to add the collaborator to (from URL path) - **body**: Request body containing collaborator details - **account_id**: UUID of the account to add (mutually exclusive with team_id) - **team_id**: UUID of the team to add (mutually exclusive with account_id) - **role**: Role of the collaborator Returns: - **201**: Collaborator added successfully - **400**: Invalid input (e.g., both account_id and team_id provided) - **409**: Collaborator was already added Requires admin access to the instance - * - * @throws ApiException if the Api call fails - */ - @Test - public void addCollaboratorAccessV2InstancesInstanceIdCollaboratorsPutTest() throws ApiException { - UUID instanceId = null; - AddCollaboratorRequestBody addCollaboratorRequestBody = null; - String authorization = null; - Object response = api.addCollaboratorAccessV2InstancesInstanceIdCollaboratorsPut(instanceId, addCollaboratorRequestBody, authorization); - // TODO: test validations - } - - /** - * Add Collaborator - * - * @throws ApiException if the Api call fails - */ - @Test - public void addCollaboratorInstancesInstanceIdCollaboratorsAccountIdPutTest() throws ApiException { - UUID instanceId = null; - UUID accountId = null; - UUID schemaId = null; - String role = null; - String authorization = null; - Object response = api.addCollaboratorInstancesInstanceIdCollaboratorsAccountIdPut(instanceId, accountId, schemaId, role, authorization); - // TODO: test validations - } - - /** - * Add Space Collaborator - * - * Add a collaborator (account or team) to a space. Parameters: - **space_id**: ID of the space to add the collaborator to - **body**: Request body containing collaborator details - **account_id**: UUID of the account to add (mutually exclusive with team_id) - **team_id**: UUID of the team to add (mutually exclusive with account_id) - **role**: Role of the collaborator Returns: - **201**: Collaborator added to space successfully - **400**: Invalid input (e.g., both account_id and team_id provided) - * - * @throws ApiException if the Api call fails - */ - @Test - public void addSpaceCollaboratorAccessV2SpacesSpaceIdCollaboratorsPutTest() throws ApiException { - UUID spaceId = null; - AddSpaceCollaboratorRequestBody addSpaceCollaboratorRequestBody = null; - String authorization = null; - Object response = api.addSpaceCollaboratorAccessV2SpacesSpaceIdCollaboratorsPut(spaceId, addSpaceCollaboratorRequestBody, authorization); - // TODO: test validations - } - - /** - * Add Team Member - * - * Add a member to a team. Parameters: - **team_id**: UUID of the team to add the member to - **account_id**: UUID of the account to add as a member - **body**: Request body containing member details - **role**: Role of the member in the team Returns: - **201**: Team member added successfully - * - * @throws ApiException if the Api call fails - */ - @Test - public void addTeamMemberAccessV2TeamsTeamIdMembersAccountIdPutTest() throws ApiException { - UUID teamId = null; - UUID accountId = null; - AddTeamMemberRequestBody addTeamMemberRequestBody = null; - String authorization = null; - Object response = api.addTeamMemberAccessV2TeamsTeamIdMembersAccountIdPut(teamId, accountId, addTeamMemberRequestBody, authorization); - // TODO: test validations - } - - /** - * Attach Label - * - * @throws ApiException if the Api call fails - */ - @Test - public void attachLabelInstancesInstanceIdModulesModuleNameModelNameIdLabelFieldLabelIdPutTest() throws ApiException { - String moduleName = null; - String modelName = null; - Integer id = null; - String labelField = null; - Integer labelId = null; - UUID instanceId = null; - UUID schemaId = null; - String authorization = null; - Object response = api.attachLabelInstancesInstanceIdModulesModuleNameModelNameIdLabelFieldLabelIdPut(moduleName, modelName, id, labelField, labelId, instanceId, schemaId, authorization); - // TODO: test validations - } - - /** - * Attach Space To Instance - * - * Attach a space to a specific instance. Parameters: - **space_id**: ID of the space to attach - **instance_id**: UUID of the instance to attach the space to (from URL path) Returns: - **200**: Space attached to instance successfully Requires admin access to the instance - * - * @throws ApiException if the Api call fails - */ - @Test - public void attachSpaceToInstanceAccessV2SpacesSpaceIdInstancesInstanceIdPutTest() throws ApiException { - 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 - * - * @throws ApiException if the Api call fails - */ - @Test - public void createInstanceInstancesPutTest() throws ApiException { - String name = null; - String storage = null; - String schemaStr = null; - String dbServerKey = null; - String authorization = null; - Object response = api.createInstanceInstancesPut(name, storage, schemaStr, dbServerKey, authorization); - // TODO: test validations - } - - /** - * Create Record - * - * @throws ApiException if the Api call fails - */ - @Test - public void createRecordInstancesInstanceIdModulesModuleNameModelNamePutTest() throws ApiException { - String moduleName = null; - String modelName = null; - UUID instanceId = null; - Object body = null; - UUID schemaId = null; - String authorization = null; - Object response = api.createRecordInstancesInstanceIdModulesModuleNameModelNamePut(moduleName, modelName, instanceId, body, schemaId, authorization); - // TODO: test validations - } - - /** - * Create Space - * - * Create a new space. Parameters: - **body**: Request body containing space details - **name**: Name of the space - **organization_id**: UUID of the organization - **description**: Optional description of the space Returns: - **201**: Space created successfully - * - * @throws ApiException if the Api call fails - */ - @Test - public void createSpaceAccessV2SpacesPutTest() throws ApiException { - CreateSpaceRequestBody createSpaceRequestBody = null; - String authorization = null; - Object response = api.createSpaceAccessV2SpacesPut(createSpaceRequestBody, authorization); - // TODO: test validations - } - - /** - * Create Team - * - * Create a new team. Parameters: - **body**: Request body containing team details - **name**: Name of the team - **organization_id**: UUID of the organization - **description**: Optional description of the team Returns: - **201**: Team created successfully - * - * @throws ApiException if the Api call fails - */ - @Test - public void createTeamAccessV2TeamsPutTest() throws ApiException { - CreateTeamRequestBody createTeamRequestBody = null; - String authorization = null; - Object response = api.createTeamAccessV2TeamsPut(createTeamRequestBody, authorization); - // TODO: test validations - } - - /** - * Delete Collaborator - * - * @throws ApiException if the Api call fails - */ - @Test - public void deleteCollaboratorInstancesInstanceIdCollaboratorsAccountIdDeleteTest() throws ApiException { - UUID instanceId = null; - UUID accountId = null; - String authorization = null; - Object response = api.deleteCollaboratorInstancesInstanceIdCollaboratorsAccountIdDelete(instanceId, accountId, authorization); - // TODO: test validations - } - - /** - * Delete Instance - * - * @throws ApiException if the Api call fails - */ - @Test - public void deleteInstanceInstancesInstanceIdDeleteTest() throws ApiException { - UUID instanceId = null; - String instanceName = null; - String authorization = null; - Object response = api.deleteInstanceInstancesInstanceIdDelete(instanceId, instanceName, authorization); - // TODO: test validations - } - - /** - * Delete Record - * - * @throws ApiException if the Api call fails - */ - @Test - public void deleteRecordInstancesInstanceIdModulesModuleNameModelNameUidDeleteTest() throws ApiException { - String moduleName = null; - String modelName = null; - String uid = null; - UUID instanceId = null; - UUID schemaId = null; - String authorization = null; - Object response = api.deleteRecordInstancesInstanceIdModulesModuleNameModelNameUidDelete(moduleName, modelName, uid, instanceId, schemaId, authorization); - // TODO: test validations - } - - /** - * Delete Space - * - * Delete a space and detach it from the instance. Parameters: - **space_id**: ID of the space to delete Returns: - **200**: Space deleted successfully - **404**: Space not found - * - * @throws ApiException if the Api call fails - */ - @Test - public void deleteSpaceAccessV2SpacesSpaceIdDeleteTest() throws ApiException { - UUID spaceId = null; - String authorization = null; - Object response = api.deleteSpaceAccessV2SpacesSpaceIdDelete(spaceId, authorization); - // TODO: test validations - } - - /** - * Delete Team - * - * Delete a team. Parameters: - **team_id**: UUID of the team to delete Returns: - **200**: Team deleted successfully - * - * @throws ApiException if the Api call fails - */ - @Test - public void deleteTeamAccessV2TeamsTeamIdDeleteTest() throws ApiException { - UUID teamId = null; - String authorization = null; - Object response = api.deleteTeamAccessV2TeamsTeamIdDelete(teamId, authorization); - // TODO: test validations - } - - /** - * Detach Label - * - * @throws ApiException if the Api call fails - */ - @Test - public void detachLabelInstancesInstanceIdModulesModuleNameModelNameIdLabelFieldLabelIdDeleteTest() throws ApiException { - String moduleName = null; - String modelName = null; - Integer id = null; - String labelField = null; - Integer labelId = null; - UUID instanceId = null; - UUID schemaId = null; - String authorization = null; - Object response = api.detachLabelInstancesInstanceIdModulesModuleNameModelNameIdLabelFieldLabelIdDelete(moduleName, modelName, id, labelField, labelId, instanceId, schemaId, authorization); - // TODO: test validations - } - - /** - * Detach Space From Instance - * - * Detach a space from a specific instance. Parameters: - **space_id**: ID of the space to detach - **instance_id**: UUID of the instance to detach the space from (from URL path) Returns: - **200**: Space detached from instance successfully Requires admin access to the instance - * - * @throws ApiException if the Api call fails - */ - @Test - public void detachSpaceFromInstanceAccessV2SpacesSpaceIdInstancesInstanceIdDeleteTest() throws ApiException { - UUID spaceId = null; - UUID instanceId = null; - String authorization = null; - Object response = api.detachSpaceFromInstanceAccessV2SpacesSpaceIdInstancesInstanceIdDelete(spaceId, instanceId, authorization); - // TODO: test validations - } - - /** - * Get Db Token - * - * Get a database token for the specified instance. This token can be used to authenticate with the instance's database. Parameters: - **instance_id**: UUID of the instance to get the token for (from URL path) Returns: - **200**: Database token retrieved successfully - **token**: The database token - **401**: Unauthorized - * - * @throws ApiException if the Api call fails - */ - @Test - public void getDbTokenAccessV2InstancesInstanceIdDbTokenGetTest() throws ApiException { - UUID instanceId = null; - String authorization = null; - Object response = api.getDbTokenAccessV2InstancesInstanceIdDbTokenGet(instanceId, authorization); - // TODO: test validations - } - - /** - * Get Instance Statistics - * - * @throws ApiException if the Api call fails - */ - @Test - public void getInstanceStatisticsInstancesInstanceIdStatisticsGetTest() throws ApiException { - UUID instanceId = null; - List q = null; - UUID schemaId = null; - String authorization = null; - Object response = api.getInstanceStatisticsInstancesInstanceIdStatisticsGet(instanceId, q, schemaId, authorization); - // 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 - * - * @throws ApiException if the Api call fails - */ - @Test - public void getNonEmptyTablesInstancesInstanceIdNonEmptyTablesGetTest() throws ApiException { - UUID instanceId = null; - UUID schemaId = null; - String authorization = null; - Object response = api.getNonEmptyTablesInstancesInstanceIdNonEmptyTablesGet(instanceId, schemaId, authorization); - // TODO: test validations - } - - /** - * Get Record - * - * @throws ApiException if the Api call fails - */ - @Test - public void getRecordInstancesInstanceIdModulesModuleNameModelNameIdOrUidPostTest() throws ApiException { - String moduleName = null; - String modelName = null; - String idOrUid = null; - UUID instanceId = null; - Integer limitToMany = null; - Boolean includeForeignKeys = null; - UUID schemaId = null; - String authorization = null; - GetRecordRequestBody getRecordRequestBody = null; - Object response = api.getRecordInstancesInstanceIdModulesModuleNameModelNameIdOrUidPost(moduleName, modelName, idOrUid, instanceId, limitToMany, includeForeignKeys, schemaId, authorization, getRecordRequestBody); - // TODO: test validations - } - - /** - * Get Records - * - * @throws ApiException if the Api call fails - */ - @Test - public void getRecordsInstancesInstanceIdModulesModuleNameModelNamePostTest() throws ApiException { - String moduleName = null; - String modelName = null; - UUID instanceId = null; - Integer limit = null; - Integer offset = null; - Integer limitToMany = null; - Boolean includeForeignKeys = null; - UUID schemaId = null; - String authorization = null; - GetRecordsRequestBody getRecordsRequestBody = null; - Object response = api.getRecordsInstancesInstanceIdModulesModuleNameModelNamePost(moduleName, modelName, instanceId, limit, offset, limitToMany, includeForeignKeys, schemaId, authorization, getRecordsRequestBody); - // TODO: test validations - } - - /** - * Get Relation Counts - * - * @throws ApiException if the Api call fails - */ - @Test - public void getRelationCountsInstancesInstanceIdModulesModuleNameModelNameIdCountsGetTest() throws ApiException { - String moduleName = null; - String modelName = null; - Integer id = null; - UUID instanceId = null; - UUID schemaId = null; - String authorization = null; - Object response = api.getRelationCountsInstancesInstanceIdModulesModuleNameModelNameIdCountsGet(moduleName, modelName, id, instanceId, schemaId, authorization); - // TODO: test validations - } - - /** - * Get Relations - * - * @throws ApiException if the Api call fails - */ - @Test - public void getRelationsInstancesInstanceIdSchemaModuleNameModelNameGetTest() throws ApiException { - String moduleName = null; - String modelName = null; - UUID instanceId = null; - String authorization = null; - Object response = api.getRelationsInstancesInstanceIdSchemaModuleNameModelNameGet(moduleName, modelName, instanceId, authorization); - // TODO: test validations - } - - /** - * Get Schema - * - * @throws ApiException if the Api call fails - */ - @Test - public void getSchemaInstancesInstanceIdSchemaGetTest() throws ApiException { - UUID instanceId = null; - String authorization = null; - Object response = api.getSchemaInstancesInstanceIdSchemaGet(instanceId, authorization); - // TODO: test validations - } - - /** - * Get Space - * - * Get details of a specific space. Parameters: - **space_id**: ID of the space to retrieve Returns: - **200**: Space details retrieved successfully - **404**: Space not found - * - * @throws ApiException if the Api call fails - */ - @Test - public void getSpaceAccessV2SpacesSpaceIdGetTest() throws ApiException { - UUID spaceId = null; - String authorization = null; - Object response = api.getSpaceAccessV2SpacesSpaceIdGet(spaceId, authorization); - // TODO: test validations - } - - /** - * Get Team - * - * Get details of a specific team. Parameters: - **team_id**: UUID of the team to retrieve Returns: - **200**: Team details retrieved successfully - **404**: Team not found - * - * @throws ApiException if the Api call fails - */ - @Test - public void getTeamAccessV2TeamsTeamIdGetTest() throws ApiException { - UUID teamId = null; - String authorization = null; - Object response = api.getTeamAccessV2TeamsTeamIdGet(teamId, authorization); - // 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 - * - * @throws ApiException if the Api call fails - */ - @Test - public void getValuesInstancesInstanceIdModulesModuleNameModelNameFieldsFieldPathPostTest() throws ApiException { - String moduleName = null; - String modelName = null; - String fieldPath = null; - UUID instanceId = null; - Integer limit = null; - Integer offset = null; - UUID schemaId = null; - String authorization = null; - GetValuesRequestBody getValuesRequestBody = null; - Object response = api.getValuesInstancesInstanceIdModulesModuleNameModelNameFieldsFieldPathPost(moduleName, modelName, fieldPath, instanceId, limit, offset, schemaId, authorization, getValuesRequestBody); - // TODO: test validations - } - - /** - * Grant S3 Permissions - * - * @throws ApiException if the Api call fails - */ - @Test - public void grantS3PermissionsStoragesS3BucketNamePermissionsPutTest() throws ApiException { - String bucketName = null; - S3PermissionsRequest s3PermissionsRequest = null; - String awsAccountId = null; - String awsUserName = null; - String authorization = null; - Object response = api.grantS3PermissionsStoragesS3BucketNamePermissionsPut(bucketName, s3PermissionsRequest, awsAccountId, awsUserName, authorization); - // TODO: test validations - } - - /** - * Group By - * - * @throws ApiException if the Api call fails - */ - @Test - public void groupByInstancesInstanceIdModulesModuleNameModelNameGroupByPostTest() throws ApiException { - String moduleName = null; - String modelName = null; - UUID instanceId = null; - GroupByRequestBody groupByRequestBody = null; - UUID schemaId = null; - String authorization = null; - Object response = api.groupByInstancesInstanceIdModulesModuleNameModelNameGroupByPost(moduleName, modelName, instanceId, groupByRequestBody, schemaId, authorization); - // TODO: test validations - } - - /** - * 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 Requires read access to the instance - * - * @throws ApiException if the Api call fails - */ - @Test - public void listCollaboratorsAccessV2InstancesInstanceIdCollaboratorsGetTest() throws ApiException { - UUID instanceId = null; - String authorization = null; - Object response = api.listCollaboratorsAccessV2InstancesInstanceIdCollaboratorsGet(instanceId, authorization); - // 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 - * - * List all spaces attached to an instance. Parameters: - **instance_id**: UUID of the instance to list spaces for (from URL path) Returns: - **200**: List of spaces attached to the instance retrieved successfully - * - * @throws ApiException if the Api call fails - */ - @Test - public void listInstanceSpacesAccessV2SpacesInstancesInstanceIdGetTest() throws ApiException { - UUID instanceId = null; - String authorization = null; - Object response = api.listInstanceSpacesAccessV2SpacesInstancesInstanceIdGet(instanceId, authorization); - // TODO: test validations - } - - /** - * List Instances Using Space - * - * List all instances that have this space attached. Parameters: - **space_id**: ID of the space to check Returns: - **200**: List of instances using the space retrieved successfully - * - * @throws ApiException if the Api call fails - */ - @Test - public void listInstancesUsingSpaceAccessV2SpacesSpaceIdInstancesGetTest() throws ApiException { - UUID spaceId = null; - String authorization = null; - Object response = api.listInstancesUsingSpaceAccessV2SpacesSpaceIdInstancesGet(spaceId, authorization); - // TODO: test validations - } - - /** - * List Organization Spaces - * - * List all spaces in an organization. Parameters: - **organization_id**: UUID of the organization to list spaces for Returns: - **200**: List of spaces retrieved successfully - * - * @throws ApiException if the Api call fails - */ - @Test - public void listOrganizationSpacesAccessV2SpacesOrganizationsOrganizationIdGetTest() throws ApiException { - UUID organizationId = null; - String authorization = null; - Object response = api.listOrganizationSpacesAccessV2SpacesOrganizationsOrganizationIdGet(organizationId, authorization); - // TODO: test validations - } - - /** - * List Organization Teams - * - * List all teams in an organization. Parameters: - **organization_id**: UUID of the organization to list teams for Returns: - **200**: List of teams retrieved successfully - * - * @throws ApiException if the Api call fails - */ - @Test - public void listOrganizationTeamsAccessV2TeamsOrganizationsOrganizationIdGetTest() throws ApiException { - UUID organizationId = null; - String authorization = null; - Object response = api.listOrganizationTeamsAccessV2TeamsOrganizationsOrganizationIdGet(organizationId, authorization); - // TODO: test validations - } - - /** - * List Space Collaborators - * - * List all collaborators of a space. Parameters: - **space_id**: ID of the space to list collaborators for Returns: - **200**: List of space collaborators retrieved successfully - * - * @throws ApiException if the Api call fails - */ - @Test - public void listSpaceCollaboratorsAccessV2SpacesSpaceIdCollaboratorsGetTest() throws ApiException { - UUID spaceId = null; - String authorization = null; - Object response = api.listSpaceCollaboratorsAccessV2SpacesSpaceIdCollaboratorsGet(spaceId, authorization); - // TODO: test validations - } - - /** - * List Team Members - * - * List all members of a team. Parameters: - **team_id**: UUID of the team to list members for Returns: - **200**: List of team members retrieved successfully - * - * @throws ApiException if the Api call fails - */ - @Test - public void listTeamMembersAccessV2TeamsTeamIdMembersGetTest() throws ApiException { - UUID teamId = null; - String authorization = null; - Object response = api.listTeamMembersAccessV2TeamsTeamIdMembersGet(teamId, authorization); - // TODO: test validations - } - - /** - * 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 - * - * @throws ApiException if the Api call fails - */ - @Test - public void moveRecordToSpaceAccessV2SpacesSpaceIdRecordAttachmentsPutTest() throws ApiException { - Integer instanceDbSpaceId = null; - AttachSpaceToRecordRequestBody attachSpaceToRecordRequestBody = null; - UUID instanceId = null; - UUID schemaId = null; - String authorization = null; - Object response = api.moveRecordToSpaceAccessV2SpacesSpaceIdRecordAttachmentsPut(instanceDbSpaceId, attachSpaceToRecordRequestBody, instanceId, schemaId, authorization); - // TODO: test validations - } - - /** - * Proxy S3 - * - * @throws ApiException if the Api call fails - */ - @Test - public void proxyS3S3PathGetTest() throws ApiException { - String path = null; - Object response = api.proxyS3S3PathGet(path); - // TODO: test validations - } - - /** - * Proxy S3 - * - * @throws ApiException if the Api call fails - */ - @Test - public void proxyS3S3PathGet_0Test() throws ApiException { - String path = null; - Object response = api.proxyS3S3PathGet_0(path); - // TODO: test validations - } - - /** - * Proxy S3 - * - * @throws ApiException if the Api call fails - */ - @Test - public void proxyS3S3PathGet_1Test() throws ApiException { - String path = null; - Object response = api.proxyS3S3PathGet_1(path); - // TODO: test validations - } - - /** - * Proxy S3 - * - * @throws ApiException if the Api call fails - */ - @Test - public void proxyS3S3PathGet_2Test() throws ApiException { - String path = null; - Object response = api.proxyS3S3PathGet_2(path); - // TODO: test validations - } - - /** - * Proxy S3 - * - * @throws ApiException if the Api call fails - */ - @Test - public void proxyS3S3PathGet_3Test() throws ApiException { - String path = null; - Object response = api.proxyS3S3PathGet_3(path); - // 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) Requires admin access to the instance - * - * @throws ApiException if the Api call fails - */ - @Test - public void removeCollaboratorAccessV2InstancesInstanceIdCollaboratorsDeleteTest() throws ApiException { - UUID instanceId = null; - UUID accountId = null; - UUID teamId = null; - String authorization = null; - Object response = api.removeCollaboratorAccessV2InstancesInstanceIdCollaboratorsDelete(instanceId, accountId, teamId, authorization); - // TODO: test validations - } - - /** - * Remove Space Collaborator - * - * Remove a collaborator (account or team) from a space. Parameters: - **space_id**: ID of the space to remove the collaborator from - **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 from space successfully - **400**: Invalid input (e.g., both account_id and team_id provided or neither provided) - * - * @throws ApiException if the Api call fails - */ - @Test - public void removeSpaceCollaboratorAccessV2SpacesSpaceIdCollaboratorsDeleteTest() throws ApiException { - UUID spaceId = null; - UUID accountId = null; - UUID teamId = null; - String authorization = null; - Object response = api.removeSpaceCollaboratorAccessV2SpacesSpaceIdCollaboratorsDelete(spaceId, accountId, teamId, authorization); - // TODO: test validations - } - - /** - * Remove Team Member - * - * Remove a member from a team. Parameters: - **team_id**: UUID of the team to remove the member from - **account_id**: UUID of the account to remove from the team Returns: - **200**: Team member removed successfully - **404**: Member not found in team - * - * @throws ApiException if the Api call fails - */ - @Test - public void removeTeamMemberAccessV2TeamsTeamIdMembersAccountIdDeleteTest() throws ApiException { - UUID teamId = null; - UUID accountId = null; - String authorization = null; - Object response = api.removeTeamMemberAccessV2TeamsTeamIdMembersAccountIdDelete(teamId, accountId, authorization); - // TODO: test validations - } - - /** - * Transfer Ownership - * - * @throws ApiException if the Api call fails - */ - @Test - public void transferOwnershipInstancesInstanceIdOwnerHandlePatchTest() throws ApiException { - String handle = null; - UUID instanceId = null; - UUID schemaId = null; - String authorization = null; - Object response = api.transferOwnershipInstancesInstanceIdOwnerHandlePatch(handle, instanceId, schemaId, authorization); - // TODO: test validations - } - - /** - * 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) Requires admin access to the instance - * - * @throws ApiException if the Api call fails - */ - @Test - public void updateCollaboratorAccessV2InstancesInstanceIdCollaboratorsPatchTest() throws ApiException { - UUID instanceId = null; - UpdateCollaboratorRequestBody updateCollaboratorRequestBody = null; - String authorization = null; - Object response = api.updateCollaboratorAccessV2InstancesInstanceIdCollaboratorsPatch(instanceId, updateCollaboratorRequestBody, authorization); - // TODO: test validations - } - - /** - * Update Collaborator - * - * @throws ApiException if the Api call fails - */ - @Test - public void updateCollaboratorInstancesInstanceIdCollaboratorsAccountIdPatchTest() throws ApiException { - UUID instanceId = null; - UUID accountId = null; - String role = null; - String authorization = null; - Object response = api.updateCollaboratorInstancesInstanceIdCollaboratorsAccountIdPatch(instanceId, accountId, role, authorization); - // TODO: test validations - } - - /** - * Update Record - * - * @throws ApiException if the Api call fails - */ - @Test - public void updateRecordInstancesInstanceIdModulesModuleNameModelNameUidPatchTest() throws ApiException { - String moduleName = null; - String modelName = null; - String uid = null; - UUID instanceId = null; - Object body = null; - UUID schemaId = null; - String authorization = null; - Object response = api.updateRecordInstancesInstanceIdModulesModuleNameModelNameUidPatch(moduleName, modelName, uid, instanceId, body, schemaId, authorization); - // TODO: test validations - } - - /** - * Update Space - * - * Update a space's details. Parameters: - **space_id**: ID of the space to update - **body**: Request body containing updated space details - **name**: Optional new name for the space - **description**: Optional new description for the space Returns: - **200**: Space updated successfully - * - * @throws ApiException if the Api call fails - */ - @Test - public void updateSpaceAccessV2SpacesSpaceIdPatchTest() throws ApiException { - UUID spaceId = null; - UpdateSpaceRequestBody updateSpaceRequestBody = null; - String authorization = null; - Object response = api.updateSpaceAccessV2SpacesSpaceIdPatch(spaceId, updateSpaceRequestBody, authorization); - // TODO: test validations - } - - /** - * Update Space Collaborator - * - * Update a collaborator's permissions in a space. Parameters: - **space_id**: ID of the space to update the collaborator in - **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 in space - * - * @throws ApiException if the Api call fails - */ - @Test - public void updateSpaceCollaboratorAccessV2SpacesSpaceIdCollaboratorsPatchTest() throws ApiException { - UUID spaceId = null; - UpdateSpaceCollaboratorRequestBody updateSpaceCollaboratorRequestBody = null; - String authorization = null; - Object response = api.updateSpaceCollaboratorAccessV2SpacesSpaceIdCollaboratorsPatch(spaceId, updateSpaceCollaboratorRequestBody, authorization); - // TODO: test validations - } - - /** - * Update Team - * - * Update a team's details. Parameters: - **team_id**: UUID of the team to update - **body**: Request body containing updated team details - **name**: Optional new name for the team - **description**: Optional new description for the team Returns: - **200**: Team updated successfully - * - * @throws ApiException if the Api call fails - */ - @Test - public void updateTeamAccessV2TeamsTeamIdPatchTest() throws ApiException { - UUID teamId = null; - UpdateTeamRequestBody updateTeamRequestBody = null; - String authorization = null; - Object response = api.updateTeamAccessV2TeamsTeamIdPatch(teamId, updateTeamRequestBody, authorization); - // TODO: test validations - } - - /** - * Update Team Member - * - * Update a team member's details. Parameters: - **team_id**: UUID of the team the member belongs to - **account_id**: UUID of the account to update - **body**: Request body containing updated member details - **role**: Role of the member in the team Returns: - **200**: Team member updated successfully - **404**: Member not found in team - * - * @throws ApiException if the Api call fails - */ - @Test - public void updateTeamMemberAccessV2TeamsTeamIdMembersAccountIdPatchTest() throws ApiException { - UUID teamId = null; - UUID accountId = null; - UpdateTeamMemberRequestBody updateTeamMemberRequestBody = null; - String authorization = null; - Object response = api.updateTeamMemberAccessV2TeamsTeamIdMembersAccountIdPatch(teamId, accountId, updateTeamMemberRequestBody, authorization); - // TODO: test validations - } - -} diff --git a/src/test/src/test/java/ai/lamin/lamin_api_client/api/HealthChecksApiTest.java b/src/test/src/test/java/ai/lamin/lamin_api_client/api/HealthChecksApiTest.java new file mode 100644 index 0000000..27c677d --- /dev/null +++ b/src/test/src/test/java/ai/lamin/lamin_api_client/api/HealthChecksApiTest.java @@ -0,0 +1,44 @@ +/* + * 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.api; + +import ai.lamin.lamin_api_client.ApiException; +import org.junit.jupiter.api.Disabled; +import org.junit.jupiter.api.Test; + +import java.util.ArrayList; +import java.util.HashMap; +import java.util.List; +import java.util.Map; + +/** + * API tests for HealthChecksApi + */ +@Disabled +public class HealthChecksApiTest { + + private final HealthChecksApi api = new HealthChecksApi(); + + /** + * Health Check + * + * @throws ApiException if the Api call fails + */ + @Test + public void healthCheckHealthGetTest() throws ApiException { + Object response = api.healthCheckHealthGet(); + // TODO: test validations + } + +} diff --git a/src/test/src/test/java/ai/lamin/lamin_api_client/api/InstanceArtifactsApiTest.java b/src/test/src/test/java/ai/lamin/lamin_api_client/api/InstanceArtifactsApiTest.java new file mode 100644 index 0000000..9794e0f --- /dev/null +++ b/src/test/src/test/java/ai/lamin/lamin_api_client/api/InstanceArtifactsApiTest.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.api; + +import ai.lamin.lamin_api_client.ApiException; +import ai.lamin.lamin_api_client.model.CreateArtifactRequestBody; +import java.io.File; +import ai.lamin.lamin_api_client.model.HTTPValidationError; +import java.util.UUID; +import org.junit.jupiter.api.Disabled; +import org.junit.jupiter.api.Test; + +import java.util.ArrayList; +import java.util.HashMap; +import java.util.List; +import java.util.Map; + +/** + * API tests for InstanceArtifactsApi + */ +@Disabled +public class InstanceArtifactsApiTest { + + private final InstanceArtifactsApi api = new InstanceArtifactsApi(); + + /** + * Create Artifact + * + * @throws ApiException if the Api call fails + */ + @Test + public void createArtifactInstancesInstanceIdArtifactsCreatePostTest() throws ApiException { + UUID instanceId = null; + CreateArtifactRequestBody createArtifactRequestBody = null; + String authorization = null; + Object response = api.createArtifactInstancesInstanceIdArtifactsCreatePost(instanceId, createArtifactRequestBody, authorization); + // TODO: test validations + } + + /** + * Upload Artifact + * + * @throws ApiException if the Api call fails + */ + @Test + public void uploadArtifactInstancesInstanceIdArtifactsUploadPostTest() throws ApiException { + UUID instanceId = null; + File _file = null; + String authorization = null; + String kwargs = null; + Object response = api.uploadArtifactInstancesInstanceIdArtifactsUploadPost(instanceId, _file, authorization, kwargs); + // TODO: test validations + } + +} diff --git a/src/test/src/test/java/ai/lamin/lamin_api_client/api/InstanceDbTokenApiTest.java b/src/test/src/test/java/ai/lamin/lamin_api_client/api/InstanceDbTokenApiTest.java new file mode 100644 index 0000000..98b3523 --- /dev/null +++ b/src/test/src/test/java/ai/lamin/lamin_api_client/api/InstanceDbTokenApiTest.java @@ -0,0 +1,50 @@ +/* + * 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.api; + +import ai.lamin.lamin_api_client.ApiException; +import ai.lamin.lamin_api_client.model.HTTPValidationError; +import java.util.UUID; +import org.junit.jupiter.api.Disabled; +import org.junit.jupiter.api.Test; + +import java.util.ArrayList; +import java.util.HashMap; +import java.util.List; +import java.util.Map; + +/** + * API tests for InstanceDbTokenApi + */ +@Disabled +public class InstanceDbTokenApiTest { + + private final InstanceDbTokenApi api = new InstanceDbTokenApi(); + + /** + * Get Db Token + * + * Get a database token for the specified instance. This token can be used to authenticate with the instance's database. Parameters: - **instance_id**: UUID of the instance to get the token for (from URL path) Returns: - **200**: Database token retrieved successfully - **token**: The database token - **401**: Unauthorized + * + * @throws ApiException if the Api call fails + */ + @Test + public void getDbTokenInstancesInstanceIdDbTokenGetTest() throws ApiException { + UUID instanceId = null; + String authorization = null; + Object response = api.getDbTokenInstancesInstanceIdDbTokenGet(instanceId, authorization); + // TODO: test validations + } + +} diff --git a/src/test/src/test/java/ai/lamin/lamin_api_client/api/InstanceFeaturesApiTest.java b/src/test/src/test/java/ai/lamin/lamin_api_client/api/InstanceFeaturesApiTest.java new file mode 100644 index 0000000..8044913 --- /dev/null +++ b/src/test/src/test/java/ai/lamin/lamin_api_client/api/InstanceFeaturesApiTest.java @@ -0,0 +1,56 @@ +/* + * 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.api; + +import ai.lamin.lamin_api_client.ApiException; +import ai.lamin.lamin_api_client.model.GetRecordsRequestBody; +import ai.lamin.lamin_api_client.model.HTTPValidationError; +import java.util.UUID; +import org.junit.jupiter.api.Disabled; +import org.junit.jupiter.api.Test; + +import java.util.ArrayList; +import java.util.HashMap; +import java.util.List; +import java.util.Map; + +/** + * API tests for InstanceFeaturesApi + */ +@Disabled +public class InstanceFeaturesApiTest { + + private final InstanceFeaturesApi api = new InstanceFeaturesApi(); + + /** + * Query Linked Features + * + * Queries and returns a flat list of all unique Feature records associated with a set of filtered primary model records. + * + * @throws ApiException if the Api call fails + */ + @Test + public void queryLinkedFeaturesInstancesInstanceIdModulesModuleNameModelNameQueryFeaturesPostTest() throws ApiException { + String moduleName = null; + String modelName = null; + UUID instanceId = null; + Integer limit = null; + Integer offset = null; + String authorization = null; + GetRecordsRequestBody getRecordsRequestBody = null; + Object response = api.queryLinkedFeaturesInstancesInstanceIdModulesModuleNameModelNameQueryFeaturesPost(moduleName, modelName, instanceId, limit, offset, authorization, getRecordsRequestBody); + // TODO: test validations + } + +} diff --git a/src/test/src/test/java/ai/lamin/lamin_api_client/api/InstanceFileExplorerApiTest.java b/src/test/src/test/java/ai/lamin/lamin_api_client/api/InstanceFileExplorerApiTest.java new file mode 100644 index 0000000..26b8182 --- /dev/null +++ b/src/test/src/test/java/ai/lamin/lamin_api_client/api/InstanceFileExplorerApiTest.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.api; + +import ai.lamin.lamin_api_client.ApiException; +import ai.lamin.lamin_api_client.model.HTTPValidationError; +import java.util.UUID; +import org.junit.jupiter.api.Disabled; +import org.junit.jupiter.api.Test; + +import java.util.ArrayList; +import java.util.HashMap; +import java.util.List; +import java.util.Map; + +/** + * API tests for InstanceFileExplorerApi + */ +@Disabled +public class InstanceFileExplorerApiTest { + + private final InstanceFileExplorerApi api = new InstanceFileExplorerApi(); + + /** + * Get Tree + * + * @throws ApiException if the Api call fails + */ + @Test + public void getTreeInstancesInstanceIdFilesTreeGetTest() throws ApiException { + UUID instanceId = null; + String entityType = null; + String authorization = null; + Object response = api.getTreeInstancesInstanceIdFilesTreeGet(instanceId, entityType, authorization); + // TODO: test validations + } + + /** + * List Directory + * + * @throws ApiException if the Api call fails + */ + @Test + public void listDirectoryInstancesInstanceIdFilesEntityTypeGetTest() throws ApiException { + String entityType = null; + UUID instanceId = null; + String path = null; + String authorization = null; + Object response = api.listDirectoryInstancesInstanceIdFilesEntityTypeGet(entityType, instanceId, path, authorization); + // TODO: test validations + } + +} diff --git a/src/test/src/test/java/ai/lamin/lamin_api_client/api/InstanceFormsApiTest.java b/src/test/src/test/java/ai/lamin/lamin_api_client/api/InstanceFormsApiTest.java new file mode 100644 index 0000000..c77999e --- /dev/null +++ b/src/test/src/test/java/ai/lamin/lamin_api_client/api/InstanceFormsApiTest.java @@ -0,0 +1,52 @@ +/* + * 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.api; + +import ai.lamin.lamin_api_client.ApiException; +import ai.lamin.lamin_api_client.model.HTTPValidationError; +import ai.lamin.lamin_api_client.model.RegisterFormRequest; +import java.util.UUID; +import org.junit.jupiter.api.Disabled; +import org.junit.jupiter.api.Test; + +import java.util.ArrayList; +import java.util.HashMap; +import java.util.List; +import java.util.Map; + +/** + * API tests for InstanceFormsApi + */ +@Disabled +public class InstanceFormsApiTest { + + private final InstanceFormsApi api = new InstanceFormsApi(); + + /** + * 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: - **200**: 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 + } + +} diff --git a/src/test/src/test/java/ai/lamin/lamin_api_client/api/InstanceFunctionsApiTest.java b/src/test/src/test/java/ai/lamin/lamin_api_client/api/InstanceFunctionsApiTest.java new file mode 100644 index 0000000..b01da59 --- /dev/null +++ b/src/test/src/test/java/ai/lamin/lamin_api_client/api/InstanceFunctionsApiTest.java @@ -0,0 +1,50 @@ +/* + * 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.api; + +import ai.lamin.lamin_api_client.ApiException; +import ai.lamin.lamin_api_client.model.ExecuteFunctionRequestBody; +import ai.lamin.lamin_api_client.model.HTTPValidationError; +import java.util.UUID; +import org.junit.jupiter.api.Disabled; +import org.junit.jupiter.api.Test; + +import java.util.ArrayList; +import java.util.HashMap; +import java.util.List; +import java.util.Map; + +/** + * API tests for InstanceFunctionsApi + */ +@Disabled +public class InstanceFunctionsApiTest { + + private final InstanceFunctionsApi api = new InstanceFunctionsApi(); + + /** + * Execute Function + * + * @throws ApiException if the Api call fails + */ + @Test + public void executeFunctionInstancesInstanceIdFunctionExecutePostTest() throws ApiException { + UUID instanceId = null; + ExecuteFunctionRequestBody executeFunctionRequestBody = null; + String authorization = null; + Object response = api.executeFunctionInstancesInstanceIdFunctionExecutePost(instanceId, executeFunctionRequestBody, authorization); + // TODO: test validations + } + +} diff --git a/src/test/src/test/java/ai/lamin/lamin_api_client/api/InstanceLabelsApiTest.java b/src/test/src/test/java/ai/lamin/lamin_api_client/api/InstanceLabelsApiTest.java new file mode 100644 index 0000000..267883c --- /dev/null +++ b/src/test/src/test/java/ai/lamin/lamin_api_client/api/InstanceLabelsApiTest.java @@ -0,0 +1,71 @@ +/* + * 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.api; + +import ai.lamin.lamin_api_client.ApiException; +import ai.lamin.lamin_api_client.model.HTTPValidationError; +import java.util.UUID; +import org.junit.jupiter.api.Disabled; +import org.junit.jupiter.api.Test; + +import java.util.ArrayList; +import java.util.HashMap; +import java.util.List; +import java.util.Map; + +/** + * API tests for InstanceLabelsApi + */ +@Disabled +public class InstanceLabelsApiTest { + + private final InstanceLabelsApi api = new InstanceLabelsApi(); + + /** + * Attach Label + * + * @throws ApiException if the Api call fails + */ + @Test + public void attachLabelInstancesInstanceIdModulesModuleNameModelNameIdLabelFieldLabelIdPutTest() throws ApiException { + String moduleName = null; + String modelName = null; + Integer id = null; + String labelField = null; + Integer labelId = null; + UUID instanceId = null; + String authorization = null; + Object response = api.attachLabelInstancesInstanceIdModulesModuleNameModelNameIdLabelFieldLabelIdPut(moduleName, modelName, id, labelField, labelId, instanceId, authorization); + // TODO: test validations + } + + /** + * Detach Label + * + * @throws ApiException if the Api call fails + */ + @Test + public void detachLabelInstancesInstanceIdModulesModuleNameModelNameIdLabelFieldLabelIdDeleteTest() throws ApiException { + String moduleName = null; + String modelName = null; + Integer id = null; + String labelField = null; + Integer labelId = null; + UUID instanceId = null; + String authorization = null; + Object response = api.detachLabelInstancesInstanceIdModulesModuleNameModelNameIdLabelFieldLabelIdDelete(moduleName, modelName, id, labelField, labelId, instanceId, authorization); + // TODO: test validations + } + +} diff --git a/src/test/src/test/java/ai/lamin/lamin_api_client/api/InstanceRecordsApiTest.java b/src/test/src/test/java/ai/lamin/lamin_api_client/api/InstanceRecordsApiTest.java new file mode 100644 index 0000000..d39f723 --- /dev/null +++ b/src/test/src/test/java/ai/lamin/lamin_api_client/api/InstanceRecordsApiTest.java @@ -0,0 +1,257 @@ +/* + * 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.api; + +import ai.lamin.lamin_api_client.ApiException; +import ai.lamin.lamin_api_client.model.BatchDeleteBody; +import ai.lamin.lamin_api_client.model.BatchDeleteResponse; +import ai.lamin.lamin_api_client.model.BatchSyncLinksBody; +import ai.lamin.lamin_api_client.model.BatchSyncResponse; +import ai.lamin.lamin_api_client.model.BatchUpdateBody; +import ai.lamin.lamin_api_client.model.Body; +import ai.lamin.lamin_api_client.model.ExportRecordsRequestBody; +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.HTTPValidationError; +import ai.lamin.lamin_api_client.model.Request; +import java.util.UUID; +import org.junit.jupiter.api.Disabled; +import org.junit.jupiter.api.Test; + +import java.util.ArrayList; +import java.util.HashMap; +import java.util.List; +import java.util.Map; + +/** + * API tests for InstanceRecordsApi + */ +@Disabled +public class InstanceRecordsApiTest { + + private final InstanceRecordsApi api = new InstanceRecordsApi(); + + /** + * Batch Delete Records + * + * @throws ApiException if the Api call fails + */ + @Test + public void batchDeleteRecordsInstancesInstanceIdModulesModuleNameModelNameBatchDeletePostTest() throws ApiException { + String moduleName = null; + String modelName = null; + UUID instanceId = null; + BatchDeleteBody batchDeleteBody = null; + String authorization = null; + BatchDeleteResponse response = api.batchDeleteRecordsInstancesInstanceIdModulesModuleNameModelNameBatchDeletePost(moduleName, modelName, instanceId, batchDeleteBody, authorization); + // TODO: test validations + } + + /** + * Synchronize sets of links for multiple scopes in a single call + * + * @throws ApiException if the Api call fails + */ + @Test + public void batchSyncLinksInstancesInstanceIdModulesModuleNameModelNameBatchSyncLinksPutTest() throws ApiException { + String moduleName = null; + String modelName = null; + UUID instanceId = null; + BatchSyncLinksBody batchSyncLinksBody = null; + String authorization = null; + BatchSyncResponse response = api.batchSyncLinksInstancesInstanceIdModulesModuleNameModelNameBatchSyncLinksPut(moduleName, modelName, instanceId, batchSyncLinksBody, authorization); + // TODO: test validations + } + + /** + * Update one or more records in a batch + * + * Partially updates multiple records in a single request. This endpoint processes a list of records, updating each one in the database. It is designed to handle heterogeneous partial updates, meaning each record in the batch can update a different set of fields. + * + * @throws ApiException if the Api call fails + */ + @Test + public void batchUpdateRecordsInstancesInstanceIdModulesModuleNameModelNameBatchUpdatePatchTest() throws ApiException { + String moduleName = null; + String modelName = null; + UUID instanceId = null; + BatchUpdateBody batchUpdateBody = null; + String authorization = null; + List> response = api.batchUpdateRecordsInstancesInstanceIdModulesModuleNameModelNameBatchUpdatePatch(moduleName, modelName, instanceId, batchUpdateBody, authorization); + // TODO: test validations + } + + /** + * Create Records + * + * @throws ApiException if the Api call fails + */ + @Test + public void createRecordsInstancesInstanceIdModulesModuleNameModelNamePutTest() throws ApiException { + String moduleName = null; + String modelName = null; + UUID instanceId = null; + Object body = null; + String authorization = null; + Object response = api.createRecordsInstancesInstanceIdModulesModuleNameModelNamePut(moduleName, modelName, instanceId, body, authorization); + // TODO: test validations + } + + /** + * Delete Record + * + * @throws ApiException if the Api call fails + */ + @Test + public void deleteRecordInstancesInstanceIdModulesModuleNameModelNameUidDeleteTest() throws ApiException { + String moduleName = null; + String modelName = null; + String uid = null; + UUID instanceId = null; + String authorization = null; + Object response = api.deleteRecordInstancesInstanceIdModulesModuleNameModelNameUidDelete(moduleName, modelName, uid, instanceId, authorization); + // TODO: test validations + } + + /** + * Export Records + * + * @throws ApiException if the Api call fails + */ + @Test + public void exportRecordsInstancesInstanceIdRecordsUidExportPostTest() throws ApiException { + String uid = null; + UUID instanceId = null; + String authorization = null; + ExportRecordsRequestBody exportRecordsRequestBody = null; + Object response = api.exportRecordsInstancesInstanceIdRecordsUidExportPost(uid, instanceId, authorization, exportRecordsRequestBody); + // TODO: test validations + } + + /** + * Get Record + * + * @throws ApiException if the Api call fails + */ + @Test + public void getRecordInstancesInstanceIdModulesModuleNameModelNameIdOrUidPostTest() throws ApiException { + String moduleName = null; + String modelName = null; + String idOrUid = null; + UUID instanceId = null; + Integer limitToMany = null; + Boolean includeForeignKeys = null; + String authorization = null; + GetRecordRequestBody getRecordRequestBody = null; + Object response = api.getRecordInstancesInstanceIdModulesModuleNameModelNameIdOrUidPost(moduleName, modelName, idOrUid, instanceId, limitToMany, includeForeignKeys, authorization, getRecordRequestBody); + // TODO: test validations + } + + /** + * Get Records + * + * @throws ApiException if the Api call fails + */ + @Test + public void getRecordsInstancesInstanceIdModulesModuleNameModelNamePostTest() throws ApiException { + String moduleName = null; + String modelName = null; + UUID instanceId = null; + Integer limit = null; + Integer offset = null; + Integer limitToMany = null; + Boolean includeForeignKeys = null; + String authorization = null; + GetRecordsRequestBody getRecordsRequestBody = null; + Object response = api.getRecordsInstancesInstanceIdModulesModuleNameModelNamePost(moduleName, modelName, instanceId, limit, offset, limitToMany, includeForeignKeys, authorization, getRecordsRequestBody); + // TODO: test validations + } + + /** + * Get and query hierarchical relatives of records + * + * Finds and queries all relatives (ancestors or descendants) for a given set of records. This endpoint first performs a recursive traversal to identify a complete set of related records. It then applies standard query parameters (filter, sort, search, select, etc.) to that set. **Traversal Strategies:** The endpoint intelligently discovers the relationship structure from the schema: 1. **ManyToMany Graph:** It first looks for an explicit `parents` or `children` relationship field, which is assumed to be a Directed Acyclic Graph (DAG). 2. **ForeignKey Tree:** If a ManyToMany field is not found, it falls back to traversing a self-referential `type` field, which is assumed to represent a parent-pointer tree. + * + * @throws ApiException if the Api call fails + */ + @Test + public void getRelativesInstancesInstanceIdModulesModuleNameModelNameRelativesPostTest() throws ApiException { + String moduleName = null; + String modelName = null; + UUID instanceId = null; + Request request = null; + Integer limit = null; + Integer offset = null; + String authorization = null; + Object response = api.getRelativesInstancesInstanceIdModulesModuleNameModelNameRelativesPost(moduleName, modelName, instanceId, request, limit, offset, authorization); + // TODO: test validations + } + + /** + * Get Values + * + * @throws ApiException if the Api call fails + */ + @Test + public void getValuesInstancesInstanceIdModulesModuleNameModelNameFieldsFieldPathPostTest() throws ApiException { + String moduleName = null; + String modelName = null; + String fieldPath = null; + UUID instanceId = null; + Integer limit = null; + Integer offset = null; + String authorization = null; + GetValuesRequestBody getValuesRequestBody = null; + Object response = api.getValuesInstancesInstanceIdModulesModuleNameModelNameFieldsFieldPathPost(moduleName, modelName, fieldPath, instanceId, limit, offset, authorization, getValuesRequestBody); + // TODO: test validations + } + + /** + * Update Record + * + * @throws ApiException if the Api call fails + */ + @Test + public void updateRecordInstancesInstanceIdModulesModuleNameModelNameUidPatchTest() throws ApiException { + String moduleName = null; + String modelName = null; + String uid = null; + UUID instanceId = null; + Object body = null; + String authorization = null; + Object response = api.updateRecordInstancesInstanceIdModulesModuleNameModelNameUidPatch(moduleName, modelName, uid, instanceId, body, authorization); + // TODO: test validations + } + + /** + * Upsert one or more records + * + * Insert new records or update existing ones based on a conflict key. + * + * @throws ApiException if the Api call fails + */ + @Test + public void upsertRecordsInstancesInstanceIdModulesModuleNameModelNameUpsertPutTest() throws ApiException { + String moduleName = null; + String modelName = null; + UUID instanceId = null; + List conflictColumns = null; + Body body = null; + String authorization = null; + Object response = api.upsertRecordsInstancesInstanceIdModulesModuleNameModelNameUpsertPut(moduleName, modelName, instanceId, conflictColumns, body, authorization); + // TODO: test validations + } + +} diff --git a/src/test/src/test/java/ai/lamin/lamin_api_client/api/InstanceSchemaApiTest.java b/src/test/src/test/java/ai/lamin/lamin_api_client/api/InstanceSchemaApiTest.java new file mode 100644 index 0000000..30f285c --- /dev/null +++ b/src/test/src/test/java/ai/lamin/lamin_api_client/api/InstanceSchemaApiTest.java @@ -0,0 +1,63 @@ +/* + * 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.api; + +import ai.lamin.lamin_api_client.ApiException; +import ai.lamin.lamin_api_client.model.HTTPValidationError; +import java.util.UUID; +import org.junit.jupiter.api.Disabled; +import org.junit.jupiter.api.Test; + +import java.util.ArrayList; +import java.util.HashMap; +import java.util.List; +import java.util.Map; + +/** + * API tests for InstanceSchemaApi + */ +@Disabled +public class InstanceSchemaApiTest { + + private final InstanceSchemaApi api = new InstanceSchemaApi(); + + /** + * Get Relations + * + * @throws ApiException if the Api call fails + */ + @Test + public void getRelationsInstancesInstanceIdSchemaModuleNameModelNameGetTest() throws ApiException { + String moduleName = null; + String modelName = null; + UUID instanceId = null; + String authorization = null; + Object response = api.getRelationsInstancesInstanceIdSchemaModuleNameModelNameGet(moduleName, modelName, instanceId, authorization); + // TODO: test validations + } + + /** + * Get Schema + * + * @throws ApiException if the Api call fails + */ + @Test + public void getSchemaInstancesInstanceIdSchemaGetTest() throws ApiException { + UUID instanceId = null; + String authorization = null; + Object response = api.getSchemaInstancesInstanceIdSchemaGet(instanceId, authorization); + // TODO: test validations + } + +} diff --git a/src/test/src/test/java/ai/lamin/lamin_api_client/api/InstanceSearchApiTest.java b/src/test/src/test/java/ai/lamin/lamin_api_client/api/InstanceSearchApiTest.java new file mode 100644 index 0000000..a670dc7 --- /dev/null +++ b/src/test/src/test/java/ai/lamin/lamin_api_client/api/InstanceSearchApiTest.java @@ -0,0 +1,49 @@ +/* + * 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.api; + +import ai.lamin.lamin_api_client.ApiException; +import ai.lamin.lamin_api_client.model.HTTPValidationError; +import java.util.UUID; +import org.junit.jupiter.api.Disabled; +import org.junit.jupiter.api.Test; + +import java.util.ArrayList; +import java.util.HashMap; +import java.util.List; +import java.util.Map; + +/** + * API tests for InstanceSearchApi + */ +@Disabled +public class InstanceSearchApiTest { + + private final InstanceSearchApi api = new InstanceSearchApi(); + + /** + * Global Search + * + * @throws ApiException if the Api call fails + */ + @Test + public void globalSearchInstancesInstanceIdSearchGetTest() throws ApiException { + UUID instanceId = null; + String searchTerm = null; + String authorization = null; + Object response = api.globalSearchInstancesInstanceIdSearchGet(instanceId, searchTerm, authorization); + // TODO: test validations + } + +} diff --git a/src/test/src/test/java/ai/lamin/lamin_api_client/api/InstanceStatisticsApiTest.java b/src/test/src/test/java/ai/lamin/lamin_api_client/api/InstanceStatisticsApiTest.java new file mode 100644 index 0000000..9ac7815 --- /dev/null +++ b/src/test/src/test/java/ai/lamin/lamin_api_client/api/InstanceStatisticsApiTest.java @@ -0,0 +1,102 @@ +/* + * 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.api; + +import ai.lamin.lamin_api_client.ApiException; +import ai.lamin.lamin_api_client.model.ErrorDetail; +import ai.lamin.lamin_api_client.model.GroupByRequestBody; +import ai.lamin.lamin_api_client.model.HTTPValidationError; +import ai.lamin.lamin_api_client.model.NonEmptyTablesResponse; +import ai.lamin.lamin_api_client.model.StatisticsResponse; +import java.util.UUID; +import org.junit.jupiter.api.Disabled; +import org.junit.jupiter.api.Test; + +import java.util.ArrayList; +import java.util.HashMap; +import java.util.List; +import java.util.Map; + +/** + * API tests for InstanceStatisticsApi + */ +@Disabled +public class InstanceStatisticsApiTest { + + private final InstanceStatisticsApi api = new InstanceStatisticsApi(); + + /** + * Get Approximate Table Row Counts and Artifact Size + * + * Retrieves instance statistics, including artifact size and table row counts. This endpoint uses a hybrid approach optimized for both accuracy and performance: - **Row Counts (`counts`)**: Uses a hybrid counting strategy: - For small tables (≤ 2000 estimated rows): **Exact counts** using `COUNT(*)` to ensure accuracy for small datasets. - For larger tables: **Fast approximations** based on PostgreSQL statistics catalog (`pg_class.reltuples`) for near-instant retrieval. These stats are updated periodically by database operations like `ANALYZE` and `AUTOVACUUM`. - **Artifact Size (`instance_size`)**: This is an **exact** real-time calculation, derived by performing a `SUM(size)` on the artifact table. + * + * @throws ApiException if the Api call fails + */ + @Test + public void getInstanceStatisticsInstancesInstanceIdStatisticsGetTest() throws ApiException { + UUID instanceId = null; + List q = null; + String authorization = null; + StatisticsResponse response = api.getInstanceStatisticsInstancesInstanceIdStatisticsGet(instanceId, q, authorization); + // TODO: test validations + } + + /** + * List Non-Empty Data Tables by Module + * + * Analyzes the instance's database schema to identify all tables that contain data. This endpoint uses a hybrid approach optimized for both accuracy and performance: - **For small tables (≤ 2000 estimated rows)**: **Exact non-empty check** using `COUNT(*) > 0` to ensure accuracy for small datasets. - **For larger tables (> 2000 estimated rows)**: **Fast approximation** based on PostgreSQL statistics catalog (`pg_class.reltuples > 0`) for near-instant retrieval. These stats are updated periodically by database operations like `ANALYZE` and `AUTOVACUUM`. **Accuracy Note**: - Small tables: Guaranteed accurate non-empty detection - Large tables: May have acceptable false positives if all rows are deleted but space hasn't been reclaimed until `VACUUM FULL` or `TRUNCATE` is run. + * + * @throws ApiException if the Api call fails + */ + @Test + public void getNonEmptyTablesInstancesInstanceIdNonEmptyTablesGetTest() throws ApiException { + UUID instanceId = null; + String authorization = null; + NonEmptyTablesResponse response = api.getNonEmptyTablesInstancesInstanceIdNonEmptyTablesGet(instanceId, authorization); + // TODO: test validations + } + + /** + * Get Relation Counts + * + * @throws ApiException if the Api call fails + */ + @Test + public void getRelationCountsInstancesInstanceIdModulesModuleNameModelNameIdCountsGetTest() throws ApiException { + String moduleName = null; + String modelName = null; + Integer id = null; + UUID instanceId = null; + String authorization = null; + Object response = api.getRelationCountsInstancesInstanceIdModulesModuleNameModelNameIdCountsGet(moduleName, modelName, id, instanceId, authorization); + // TODO: test validations + } + + /** + * Group By + * + * @throws ApiException if the Api call fails + */ + @Test + public void groupByInstancesInstanceIdModulesModuleNameModelNameGroupByPostTest() throws ApiException { + String moduleName = null; + String modelName = null; + UUID instanceId = null; + GroupByRequestBody groupByRequestBody = null; + String authorization = null; + Object response = api.groupByInstancesInstanceIdModulesModuleNameModelNameGroupByPost(moduleName, modelName, instanceId, groupByRequestBody, authorization); + // TODO: test validations + } + +} diff --git a/src/test/src/test/java/ai/lamin/lamin_api_client/api/InstanceTransformsApiTest.java b/src/test/src/test/java/ai/lamin/lamin_api_client/api/InstanceTransformsApiTest.java new file mode 100644 index 0000000..3b90ea7 --- /dev/null +++ b/src/test/src/test/java/ai/lamin/lamin_api_client/api/InstanceTransformsApiTest.java @@ -0,0 +1,50 @@ +/* + * 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.api; + +import ai.lamin.lamin_api_client.ApiException; +import ai.lamin.lamin_api_client.model.CreateTransformRequestBody; +import ai.lamin.lamin_api_client.model.HTTPValidationError; +import java.util.UUID; +import org.junit.jupiter.api.Disabled; +import org.junit.jupiter.api.Test; + +import java.util.ArrayList; +import java.util.HashMap; +import java.util.List; +import java.util.Map; + +/** + * API tests for InstanceTransformsApi + */ +@Disabled +public class InstanceTransformsApiTest { + + private final InstanceTransformsApi api = new InstanceTransformsApi(); + + /** + * Create Transform + * + * @throws ApiException if the Api call fails + */ + @Test + public void createTransformInstancesInstanceIdTransformsPostTest() throws ApiException { + UUID instanceId = null; + CreateTransformRequestBody createTransformRequestBody = null; + String authorization = null; + Object response = api.createTransformInstancesInstanceIdTransformsPost(instanceId, createTransformRequestBody, authorization); + // TODO: test validations + } + +} diff --git a/src/test/src/test/java/ai/lamin/lamin_api_client/api/InstancesApiTest.java b/src/test/src/test/java/ai/lamin/lamin_api_client/api/InstancesApiTest.java new file mode 100644 index 0000000..c3600cb --- /dev/null +++ b/src/test/src/test/java/ai/lamin/lamin_api_client/api/InstancesApiTest.java @@ -0,0 +1,162 @@ +/* + * 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.api; + +import ai.lamin.lamin_api_client.ApiException; +import ai.lamin.lamin_api_client.model.AddCollaboratorRequestBody; +import ai.lamin.lamin_api_client.model.HTTPValidationError; +import java.util.UUID; +import ai.lamin.lamin_api_client.model.UpdateCollaboratorRequestBody; +import org.junit.jupiter.api.Disabled; +import org.junit.jupiter.api.Test; + +import java.util.ArrayList; +import java.util.HashMap; +import java.util.List; +import java.util.Map; + +/** + * API tests for InstancesApi + */ +@Disabled +public class InstancesApiTest { + + private final InstancesApi api = new InstancesApi(); + + /** + * Add Collaborator + * + * Add a collaborator (account or team) to an instance. Parameters: - **instance_id**: UUID of the instance to add the collaborator to (from URL path) - **body**: Request body containing collaborator details - **account_id**: UUID of the account to add (mutually exclusive with team_id) - **team_id**: UUID of the team to add (mutually exclusive with account_id) - **role**: Role of the collaborator Returns: - **201**: Collaborator added successfully - **400**: Invalid input (e.g., both account_id and team_id provided) - **409**: Collaborator was already added Requires admin access to the instance + * + * @throws ApiException if the Api call fails + */ + @Test + public void addCollaboratorInstancesInstanceIdCollaboratorsPutTest() throws ApiException { + UUID instanceId = null; + AddCollaboratorRequestBody addCollaboratorRequestBody = null; + String authorization = null; + Object response = api.addCollaboratorInstancesInstanceIdCollaboratorsPut(instanceId, addCollaboratorRequestBody, authorization); + // TODO: test validations + } + + /** + * Create Instance + * + * @throws ApiException if the Api call fails + */ + @Test + public void createInstanceInstancesPutTest() throws ApiException { + String name = null; + String storage = null; + String schemaStr = null; + String dbServerName = null; + String storageUid = null; + UUID accountId = null; + UUID instanceId = null; + String authorization = null; + Map requestBody = null; + Object response = api.createInstanceInstancesPut(name, storage, schemaStr, dbServerName, storageUid, accountId, instanceId, authorization, requestBody); + // TODO: test validations + } + + /** + * Delete Instance + * + * @throws ApiException if the Api call fails + */ + @Test + public void deleteInstanceInstancesInstanceIdDeleteTest() throws ApiException { + UUID instanceId = null; + String instanceName = null; + String authorization = null; + Object response = api.deleteInstanceInstancesInstanceIdDelete(instanceId, instanceName, authorization); + // TODO: test validations + } + + /** + * 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 Requires read access to the instance + * + * @throws ApiException if the Api call fails + */ + @Test + public void listCollaboratorsInstancesInstanceIdCollaboratorsGetTest() throws ApiException { + UUID instanceId = null; + String authorization = null; + Object response = api.listCollaboratorsInstancesInstanceIdCollaboratorsGet(instanceId, authorization); + // TODO: test validations + } + + /** + * Migrate Instance + * + * @throws ApiException if the Api call fails + */ + @Test + public void migrateInstanceInstancesInstanceIdMigratePostTest() throws ApiException { + UUID instanceId = null; + String authorization = null; + Object response = api.migrateInstanceInstancesInstanceIdMigratePost(instanceId, 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) Requires admin access to the instance + * + * @throws ApiException if the Api call fails + */ + @Test + public void removeCollaboratorInstancesInstanceIdCollaboratorsDeleteTest() throws ApiException { + UUID instanceId = null; + UUID accountId = null; + UUID teamId = null; + String authorization = null; + Object response = api.removeCollaboratorInstancesInstanceIdCollaboratorsDelete(instanceId, accountId, teamId, authorization); + // TODO: test validations + } + + /** + * Transfer Ownership + * + * @throws ApiException if the Api call fails + */ + @Test + public void transferOwnershipInstancesInstanceIdOwnerHandlePatchTest() throws ApiException { + String handle = null; + UUID instanceId = null; + String authorization = null; + Object response = api.transferOwnershipInstancesInstanceIdOwnerHandlePatch(handle, instanceId, authorization); + // TODO: test validations + } + + /** + * 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) Requires admin access to the instance + * + * @throws ApiException if the Api call fails + */ + @Test + public void updateCollaboratorInstancesInstanceIdCollaboratorsPatchTest() throws ApiException { + UUID instanceId = null; + UpdateCollaboratorRequestBody updateCollaboratorRequestBody = null; + String authorization = null; + Object response = api.updateCollaboratorInstancesInstanceIdCollaboratorsPatch(instanceId, updateCollaboratorRequestBody, authorization); + // TODO: test validations + } + +} diff --git a/src/test/src/test/java/ai/lamin/lamin_api_client/api/OrganizationsApiTest.java b/src/test/src/test/java/ai/lamin/lamin_api_client/api/OrganizationsApiTest.java new file mode 100644 index 0000000..e231d4d --- /dev/null +++ b/src/test/src/test/java/ai/lamin/lamin_api_client/api/OrganizationsApiTest.java @@ -0,0 +1,122 @@ +/* + * 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.api; + +import ai.lamin.lamin_api_client.ApiException; +import ai.lamin.lamin_api_client.model.AddOrganizationMemberRequestBody; +import ai.lamin.lamin_api_client.model.HTTPValidationError; +import java.util.UUID; +import ai.lamin.lamin_api_client.model.UpdateOrganizationMemberRequestBody; +import org.junit.jupiter.api.Disabled; +import org.junit.jupiter.api.Test; + +import java.util.ArrayList; +import java.util.HashMap; +import java.util.List; +import java.util.Map; + +/** + * API tests for OrganizationsApi + */ +@Disabled +public class OrganizationsApiTest { + + private final OrganizationsApi api = new OrganizationsApi(); + + /** + * Add Organization Member + * + * Add a member to an organization. Parameters: - **organization_id**: UUID of the organization to add the member to - **account_id**: UUID of the account to add as a member - **body**: Request body containing member details - **role**: Role of the member in the organization Returns: - **201**: Organization member added successfully + * + * @throws ApiException if the Api call fails + */ + @Test + public void addOrganizationMemberOrganizationsOrganizationIdMembersAccountIdPutTest() throws ApiException { + UUID organizationId = null; + UUID accountId = null; + AddOrganizationMemberRequestBody addOrganizationMemberRequestBody = null; + UUID instanceId = null; + String authorization = null; + Object response = api.addOrganizationMemberOrganizationsOrganizationIdMembersAccountIdPut(organizationId, accountId, addOrganizationMemberRequestBody, instanceId, authorization); + // TODO: test validations + } + + /** + * Get Organization + * + * Get details of a specific organization. Parameters: - **organization_id**: UUID of the organization to retrieve Returns: - **200**: Organization details retrieved successfully - **404**: Organization not found + * + * @throws ApiException if the Api call fails + */ + @Test + public void getOrganizationOrganizationsOrganizationIdGetTest() throws ApiException { + UUID organizationId = null; + UUID instanceId = null; + String authorization = null; + Object response = api.getOrganizationOrganizationsOrganizationIdGet(organizationId, instanceId, authorization); + // TODO: test validations + } + + /** + * List Organization Members + * + * List all members of an organization. Parameters: - **organization_id**: UUID of the organization to list members for Returns: - **200**: List of organization members retrieved successfully + * + * @throws ApiException if the Api call fails + */ + @Test + public void listOrganizationMembersOrganizationsOrganizationIdMembersGetTest() throws ApiException { + UUID organizationId = null; + UUID instanceId = null; + String authorization = null; + Object response = api.listOrganizationMembersOrganizationsOrganizationIdMembersGet(organizationId, instanceId, authorization); + // TODO: test validations + } + + /** + * Remove Organization Member + * + * Remove a member from an organization. Parameters: - **organization_id**: UUID of the organization to remove the member from - **account_id**: UUID of the account to remove from the organization Returns: - **200**: Organization member removed successfully - **404**: Member not found in organization + * + * @throws ApiException if the Api call fails + */ + @Test + public void removeOrganizationMemberOrganizationsOrganizationIdMembersAccountIdDeleteTest() throws ApiException { + UUID organizationId = null; + UUID accountId = null; + UUID instanceId = null; + String authorization = null; + Object response = api.removeOrganizationMemberOrganizationsOrganizationIdMembersAccountIdDelete(organizationId, accountId, instanceId, authorization); + // TODO: test validations + } + + /** + * Update Organization Member + * + * Update an organization member's details. Parameters: - **organization_id**: UUID of the organization the member belongs to - **account_id**: UUID of the account to update - **body**: Request body containing updated member details - **role**: Role of the member in the organization Returns: - **200**: Organization member updated successfully - **404**: Member not found in organization + * + * @throws ApiException if the Api call fails + */ + @Test + public void updateOrganizationMemberOrganizationsOrganizationIdMembersAccountIdPatchTest() throws ApiException { + UUID organizationId = null; + UUID accountId = null; + UpdateOrganizationMemberRequestBody updateOrganizationMemberRequestBody = null; + UUID instanceId = null; + String authorization = null; + Object response = api.updateOrganizationMemberOrganizationsOrganizationIdMembersAccountIdPatch(organizationId, accountId, updateOrganizationMemberRequestBody, instanceId, authorization); + // TODO: test validations + } + +} diff --git a/src/test/src/test/java/ai/lamin/lamin_api_client/api/SpacesApiTest.java b/src/test/src/test/java/ai/lamin/lamin_api_client/api/SpacesApiTest.java new file mode 100644 index 0000000..baeac9f --- /dev/null +++ b/src/test/src/test/java/ai/lamin/lamin_api_client/api/SpacesApiTest.java @@ -0,0 +1,269 @@ +/* + * 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.api; + +import ai.lamin.lamin_api_client.ApiException; +import ai.lamin.lamin_api_client.model.AddSpaceCollaboratorRequestBody; +import ai.lamin.lamin_api_client.model.AttachSpaceToRecordRequestBody; +import ai.lamin.lamin_api_client.model.CreateSpaceRequestBody; +import ai.lamin.lamin_api_client.model.HTTPValidationError; +import java.util.UUID; +import ai.lamin.lamin_api_client.model.UpdateSpaceCollaboratorRequestBody; +import ai.lamin.lamin_api_client.model.UpdateSpaceRequestBody; +import org.junit.jupiter.api.Disabled; +import org.junit.jupiter.api.Test; + +import java.util.ArrayList; +import java.util.HashMap; +import java.util.List; +import java.util.Map; + +/** + * API tests for SpacesApi + */ +@Disabled +public class SpacesApiTest { + + private final SpacesApi api = new SpacesApi(); + + /** + * Add Space Collaborator + * + * Add a collaborator (account or team) to a space. Parameters: - **space_id**: ID of the space to add the collaborator to - **body**: Request body containing collaborator details - **account_id**: UUID of the account to add (mutually exclusive with team_id) - **team_id**: UUID of the team to add (mutually exclusive with account_id) - **role**: Role of the collaborator Returns: - **201**: Collaborator added to space successfully - **400**: Invalid input (e.g., both account_id and team_id provided) + * + * @throws ApiException if the Api call fails + */ + @Test + public void addSpaceCollaboratorSpacesSpaceIdCollaboratorsPutTest() throws ApiException { + UUID spaceId = null; + AddSpaceCollaboratorRequestBody addSpaceCollaboratorRequestBody = null; + UUID instanceId = null; + String authorization = null; + Object response = api.addSpaceCollaboratorSpacesSpaceIdCollaboratorsPut(spaceId, addSpaceCollaboratorRequestBody, instanceId, authorization); + // TODO: test validations + } + + /** + * Attach Space To Instance + * + * Attach a space to a specific instance. Parameters: - **space_id**: ID of the space to attach - **instance_id**: UUID of the instance to attach the space to (from URL path) Returns: - **200**: Space attached to instance successfully Requires admin access to the instance + * + * @throws ApiException if the Api call fails + */ + @Test + public void attachSpaceToInstanceSpacesSpaceIdInstancesInstanceIdPutTest() throws ApiException { + UUID spaceId = null; + UUID instanceId = null; + String authorization = null; + Object response = api.attachSpaceToInstanceSpacesSpaceIdInstancesInstanceIdPut(spaceId, instanceId, authorization); + // TODO: test validations + } + + /** + * Create Space + * + * Create a new space. Parameters: - **body**: Request body containing space details - **name**: Name of the space - **organization_id**: UUID of the organization - **description**: Optional description of the space Returns: - **201**: Space created successfully + * + * @throws ApiException if the Api call fails + */ + @Test + public void createSpaceSpacesPutTest() throws ApiException { + CreateSpaceRequestBody createSpaceRequestBody = null; + UUID instanceId = null; + String authorization = null; + Object response = api.createSpaceSpacesPut(createSpaceRequestBody, instanceId, authorization); + // TODO: test validations + } + + /** + * Delete Space + * + * Delete a space and detach it from the instance. Parameters: - **space_id**: ID of the space to delete Returns: - **200**: Space deleted successfully - **404**: Space not found + * + * @throws ApiException if the Api call fails + */ + @Test + public void deleteSpaceSpacesSpaceIdDeleteTest() throws ApiException { + UUID spaceId = null; + UUID instanceId = null; + String authorization = null; + Object response = api.deleteSpaceSpacesSpaceIdDelete(spaceId, instanceId, authorization); + // TODO: test validations + } + + /** + * Detach Space From Instance + * + * Detach a space from a specific instance. Parameters: - **space_id**: ID of the space to detach - **instance_id**: UUID of the instance to detach the space from (from URL path) Returns: - **200**: Space detached from instance successfully Requires admin access to the instance + * + * @throws ApiException if the Api call fails + */ + @Test + public void detachSpaceFromInstanceSpacesSpaceIdInstancesInstanceIdDeleteTest() throws ApiException { + UUID spaceId = null; + UUID instanceId = null; + String authorization = null; + Object response = api.detachSpaceFromInstanceSpacesSpaceIdInstancesInstanceIdDelete(spaceId, instanceId, authorization); + // TODO: test validations + } + + /** + * Get Space + * + * Get details of a specific space. Parameters: - **space_id**: ID of the space to retrieve Returns: - **200**: Space details retrieved successfully - **404**: Space not found + * + * @throws ApiException if the Api call fails + */ + @Test + public void getSpaceSpacesSpaceIdGetTest() throws ApiException { + UUID spaceId = null; + UUID instanceId = null; + String authorization = null; + Object response = api.getSpaceSpacesSpaceIdGet(spaceId, instanceId, authorization); + // TODO: test validations + } + + /** + * List Instance Spaces + * + * List all spaces attached to an instance. Parameters: - **instance_id**: UUID of the instance to list spaces for (from URL path) Returns: - **200**: List of spaces attached to the instance retrieved successfully + * + * @throws ApiException if the Api call fails + */ + @Test + public void listInstanceSpacesSpacesInstancesInstanceIdGetTest() throws ApiException { + UUID instanceId = null; + String authorization = null; + Object response = api.listInstanceSpacesSpacesInstancesInstanceIdGet(instanceId, authorization); + // TODO: test validations + } + + /** + * List Instances Using Space + * + * List all instances that have this space attached. Parameters: - **space_id**: ID of the space to check Returns: - **200**: List of instances using the space retrieved successfully + * + * @throws ApiException if the Api call fails + */ + @Test + public void listInstancesUsingSpaceSpacesSpaceIdInstancesGetTest() throws ApiException { + UUID spaceId = null; + UUID instanceId = null; + String authorization = null; + Object response = api.listInstancesUsingSpaceSpacesSpaceIdInstancesGet(spaceId, instanceId, authorization); + // TODO: test validations + } + + /** + * List Organization Spaces + * + * List all spaces in an organization. Parameters: - **organization_id**: UUID of the organization to list spaces for Returns: - **200**: List of spaces retrieved successfully + * + * @throws ApiException if the Api call fails + */ + @Test + public void listOrganizationSpacesSpacesOrganizationsOrganizationIdGetTest() throws ApiException { + UUID organizationId = null; + UUID instanceId = null; + String authorization = null; + Object response = api.listOrganizationSpacesSpacesOrganizationsOrganizationIdGet(organizationId, instanceId, authorization); + // TODO: test validations + } + + /** + * List Space Collaborators + * + * List all collaborators of a space. Parameters: - **space_id**: ID of the space to list collaborators for Returns: - **200**: List of space collaborators retrieved successfully + * + * @throws ApiException if the Api call fails + */ + @Test + public void listSpaceCollaboratorsSpacesSpaceIdCollaboratorsGetTest() throws ApiException { + UUID spaceId = null; + UUID instanceId = null; + String authorization = null; + Object response = api.listSpaceCollaboratorsSpacesSpaceIdCollaboratorsGet(spaceId, instanceId, authorization); + // TODO: test validations + } + + /** + * 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 + * + * @throws ApiException if the Api call fails + */ + @Test + public void moveRecordToSpaceSpacesSpaceIdRecordAttachmentsPutTest() throws ApiException { + Integer instanceDbSpaceId = null; + AttachSpaceToRecordRequestBody attachSpaceToRecordRequestBody = null; + UUID instanceId = null; + String authorization = null; + Object response = api.moveRecordToSpaceSpacesSpaceIdRecordAttachmentsPut(instanceDbSpaceId, attachSpaceToRecordRequestBody, instanceId, authorization); + // TODO: test validations + } + + /** + * Remove Space Collaborator + * + * Remove a collaborator (account or team) from a space. Parameters: - **space_id**: ID of the space to remove the collaborator from - **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 from space successfully - **400**: Invalid input (e.g., both account_id and team_id provided or neither provided) + * + * @throws ApiException if the Api call fails + */ + @Test + public void removeSpaceCollaboratorSpacesSpaceIdCollaboratorsDeleteTest() throws ApiException { + UUID spaceId = null; + UUID accountId = null; + UUID teamId = null; + UUID instanceId = null; + String authorization = null; + Object response = api.removeSpaceCollaboratorSpacesSpaceIdCollaboratorsDelete(spaceId, accountId, teamId, instanceId, authorization); + // TODO: test validations + } + + /** + * Update Space Collaborator + * + * Update a collaborator's permissions in a space. Parameters: - **space_id**: ID of the space to update the collaborator in - **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 in space + * + * @throws ApiException if the Api call fails + */ + @Test + public void updateSpaceCollaboratorSpacesSpaceIdCollaboratorsPatchTest() throws ApiException { + UUID spaceId = null; + UpdateSpaceCollaboratorRequestBody updateSpaceCollaboratorRequestBody = null; + UUID instanceId = null; + String authorization = null; + Object response = api.updateSpaceCollaboratorSpacesSpaceIdCollaboratorsPatch(spaceId, updateSpaceCollaboratorRequestBody, instanceId, authorization); + // TODO: test validations + } + + /** + * Update Space + * + * Update a space's details. Parameters: - **space_id**: ID of the space to update - **body**: Request body containing updated space details - **name**: Optional new name for the space - **description**: Optional new description for the space Returns: - **200**: Space updated successfully + * + * @throws ApiException if the Api call fails + */ + @Test + public void updateSpaceSpacesSpaceIdPatchTest() throws ApiException { + UUID spaceId = null; + UpdateSpaceRequestBody updateSpaceRequestBody = null; + UUID instanceId = null; + String authorization = null; + Object response = api.updateSpaceSpacesSpaceIdPatch(spaceId, updateSpaceRequestBody, instanceId, authorization); + // TODO: test validations + } + +} diff --git a/src/test/src/test/java/ai/lamin/lamin_api_client/api/StoragesApiTest.java b/src/test/src/test/java/ai/lamin/lamin_api_client/api/StoragesApiTest.java new file mode 100644 index 0000000..081e229 --- /dev/null +++ b/src/test/src/test/java/ai/lamin/lamin_api_client/api/StoragesApiTest.java @@ -0,0 +1,53 @@ +/* + * 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.api; + +import ai.lamin.lamin_api_client.ApiException; +import ai.lamin.lamin_api_client.model.HTTPValidationError; +import ai.lamin.lamin_api_client.model.S3PermissionsRequest; +import java.util.UUID; +import org.junit.jupiter.api.Disabled; +import org.junit.jupiter.api.Test; + +import java.util.ArrayList; +import java.util.HashMap; +import java.util.List; +import java.util.Map; + +/** + * API tests for StoragesApi + */ +@Disabled +public class StoragesApiTest { + + private final StoragesApi api = new StoragesApi(); + + /** + * Grant S3 Permissions + * + * @throws ApiException if the Api call fails + */ + @Test + public void grantS3PermissionsStoragesS3BucketNamePermissionsPutTest() throws ApiException { + String bucketName = null; + S3PermissionsRequest s3PermissionsRequest = null; + String awsAccountId = null; + String awsUserName = null; + UUID instanceId = null; + String authorization = null; + Object response = api.grantS3PermissionsStoragesS3BucketNamePermissionsPut(bucketName, s3PermissionsRequest, awsAccountId, awsUserName, instanceId, authorization); + // TODO: test validations + } + +} diff --git a/src/test/src/test/java/ai/lamin/lamin_api_client/api/TeamsApiTest.java b/src/test/src/test/java/ai/lamin/lamin_api_client/api/TeamsApiTest.java new file mode 100644 index 0000000..a6917af --- /dev/null +++ b/src/test/src/test/java/ai/lamin/lamin_api_client/api/TeamsApiTest.java @@ -0,0 +1,189 @@ +/* + * 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.api; + +import ai.lamin.lamin_api_client.ApiException; +import ai.lamin.lamin_api_client.model.AddTeamMemberRequestBody; +import ai.lamin.lamin_api_client.model.CreateTeamRequestBody; +import ai.lamin.lamin_api_client.model.HTTPValidationError; +import java.util.UUID; +import ai.lamin.lamin_api_client.model.UpdateTeamMemberRequestBody; +import ai.lamin.lamin_api_client.model.UpdateTeamRequestBody; +import org.junit.jupiter.api.Disabled; +import org.junit.jupiter.api.Test; + +import java.util.ArrayList; +import java.util.HashMap; +import java.util.List; +import java.util.Map; + +/** + * API tests for TeamsApi + */ +@Disabled +public class TeamsApiTest { + + private final TeamsApi api = new TeamsApi(); + + /** + * Add Team Member + * + * Add a member to a team. Parameters: - **team_id**: UUID of the team to add the member to - **account_id**: UUID of the account to add as a member - **body**: Request body containing member details - **role**: Role of the member in the team Returns: - **201**: Team member added successfully + * + * @throws ApiException if the Api call fails + */ + @Test + public void addTeamMemberTeamsTeamIdMembersAccountIdPutTest() throws ApiException { + UUID teamId = null; + UUID accountId = null; + AddTeamMemberRequestBody addTeamMemberRequestBody = null; + UUID instanceId = null; + String authorization = null; + Object response = api.addTeamMemberTeamsTeamIdMembersAccountIdPut(teamId, accountId, addTeamMemberRequestBody, instanceId, authorization); + // TODO: test validations + } + + /** + * Create Team + * + * Create a new team. Parameters: - **body**: Request body containing team details - **name**: Name of the team - **organization_id**: UUID of the organization - **description**: Optional description of the team Returns: - **201**: Team created successfully + * + * @throws ApiException if the Api call fails + */ + @Test + public void createTeamTeamsPutTest() throws ApiException { + CreateTeamRequestBody createTeamRequestBody = null; + UUID instanceId = null; + String authorization = null; + Object response = api.createTeamTeamsPut(createTeamRequestBody, instanceId, authorization); + // TODO: test validations + } + + /** + * Delete Team + * + * Delete a team. Parameters: - **team_id**: UUID of the team to delete Returns: - **200**: Team deleted successfully + * + * @throws ApiException if the Api call fails + */ + @Test + public void deleteTeamTeamsTeamIdDeleteTest() throws ApiException { + UUID teamId = null; + UUID instanceId = null; + String authorization = null; + Object response = api.deleteTeamTeamsTeamIdDelete(teamId, instanceId, authorization); + // TODO: test validations + } + + /** + * Get Team + * + * Get details of a specific team. Parameters: - **team_id**: UUID of the team to retrieve Returns: - **200**: Team details retrieved successfully - **404**: Team not found + * + * @throws ApiException if the Api call fails + */ + @Test + public void getTeamTeamsTeamIdGetTest() throws ApiException { + UUID teamId = null; + UUID instanceId = null; + String authorization = null; + Object response = api.getTeamTeamsTeamIdGet(teamId, instanceId, authorization); + // TODO: test validations + } + + /** + * List Organization Teams + * + * List all teams in an organization. Parameters: - **organization_id**: UUID of the organization to list teams for Returns: - **200**: List of teams retrieved successfully + * + * @throws ApiException if the Api call fails + */ + @Test + public void listOrganizationTeamsTeamsOrganizationsOrganizationIdGetTest() throws ApiException { + UUID organizationId = null; + UUID instanceId = null; + String authorization = null; + Object response = api.listOrganizationTeamsTeamsOrganizationsOrganizationIdGet(organizationId, instanceId, authorization); + // TODO: test validations + } + + /** + * List Team Members + * + * List all members of a team. Parameters: - **team_id**: UUID of the team to list members for Returns: - **200**: List of team members retrieved successfully + * + * @throws ApiException if the Api call fails + */ + @Test + public void listTeamMembersTeamsTeamIdMembersGetTest() throws ApiException { + UUID teamId = null; + UUID instanceId = null; + String authorization = null; + Object response = api.listTeamMembersTeamsTeamIdMembersGet(teamId, instanceId, authorization); + // TODO: test validations + } + + /** + * Remove Team Member + * + * Remove a member from a team. Parameters: - **team_id**: UUID of the team to remove the member from - **account_id**: UUID of the account to remove from the team Returns: - **200**: Team member removed successfully - **404**: Member not found in team + * + * @throws ApiException if the Api call fails + */ + @Test + public void removeTeamMemberTeamsTeamIdMembersAccountIdDeleteTest() throws ApiException { + UUID teamId = null; + UUID accountId = null; + UUID instanceId = null; + String authorization = null; + Object response = api.removeTeamMemberTeamsTeamIdMembersAccountIdDelete(teamId, accountId, instanceId, authorization); + // TODO: test validations + } + + /** + * Update Team Member + * + * Update a team member's details. Parameters: - **team_id**: UUID of the team the member belongs to - **account_id**: UUID of the account to update - **body**: Request body containing updated member details - **role**: Role of the member in the team Returns: - **200**: Team member updated successfully - **404**: Member not found in team + * + * @throws ApiException if the Api call fails + */ + @Test + public void updateTeamMemberTeamsTeamIdMembersAccountIdPatchTest() throws ApiException { + UUID teamId = null; + UUID accountId = null; + UpdateTeamMemberRequestBody updateTeamMemberRequestBody = null; + UUID instanceId = null; + String authorization = null; + Object response = api.updateTeamMemberTeamsTeamIdMembersAccountIdPatch(teamId, accountId, updateTeamMemberRequestBody, instanceId, authorization); + // TODO: test validations + } + + /** + * Update Team + * + * Update a team's details. Parameters: - **team_id**: UUID of the team to update - **body**: Request body containing updated team details - **name**: Optional new name for the team - **description**: Optional new description for the team Returns: - **200**: Team updated successfully + * + * @throws ApiException if the Api call fails + */ + @Test + public void updateTeamTeamsTeamIdPatchTest() throws ApiException { + UUID teamId = null; + UpdateTeamRequestBody updateTeamRequestBody = null; + UUID instanceId = null; + String authorization = null; + Object response = api.updateTeamTeamsTeamIdPatch(teamId, updateTeamRequestBody, instanceId, authorization); + // TODO: test validations + } + +} diff --git a/src/test/src/test/java/ai/lamin/lamin_api_client/model/BatchDeleteBodyTest.java b/src/test/src/test/java/ai/lamin/lamin_api_client/model/BatchDeleteBodyTest.java new file mode 100644 index 0000000..0931d99 --- /dev/null +++ b/src/test/src/test/java/ai/lamin/lamin_api_client/model/BatchDeleteBodyTest.java @@ -0,0 +1,51 @@ +/* + * 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.ArrayList; +import java.util.Arrays; +import java.util.List; +import java.util.Map; +import org.junit.jupiter.api.Disabled; +import org.junit.jupiter.api.Test; + +/** + * Model tests for BatchDeleteBody + */ +public class BatchDeleteBodyTest { + private final BatchDeleteBody model = new BatchDeleteBody(); + + /** + * Model tests for BatchDeleteBody + */ + @Test + public void testBatchDeleteBody() { + // TODO: test BatchDeleteBody + } + + /** + * Test the property 'records' + */ + @Test + public void recordsTest() { + // TODO: test records + } + +} diff --git a/src/test/src/test/java/ai/lamin/lamin_api_client/model/BatchDeleteResponseTest.java b/src/test/src/test/java/ai/lamin/lamin_api_client/model/BatchDeleteResponseTest.java new file mode 100644 index 0000000..85ab5b7 --- /dev/null +++ b/src/test/src/test/java/ai/lamin/lamin_api_client/model/BatchDeleteResponseTest.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 BatchDeleteResponse + */ +public class BatchDeleteResponseTest { + private final BatchDeleteResponse model = new BatchDeleteResponse(); + + /** + * Model tests for BatchDeleteResponse + */ + @Test + public void testBatchDeleteResponse() { + // TODO: test BatchDeleteResponse + } + + /** + * Test the property 'deletedCount' + */ + @Test + public void deletedCountTest() { + // TODO: test deletedCount + } + +} diff --git a/src/test/src/test/java/ai/lamin/lamin_api_client/model/BatchSyncLinksBodyTest.java b/src/test/src/test/java/ai/lamin/lamin_api_client/model/BatchSyncLinksBodyTest.java new file mode 100644 index 0000000..718cc66 --- /dev/null +++ b/src/test/src/test/java/ai/lamin/lamin_api_client/model/BatchSyncLinksBodyTest.java @@ -0,0 +1,59 @@ +/* + * 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 ai.lamin.lamin_api_client.model.SyncInstruction; +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.ArrayList; +import java.util.Arrays; +import java.util.List; +import org.junit.jupiter.api.Disabled; +import org.junit.jupiter.api.Test; + +/** + * Model tests for BatchSyncLinksBody + */ +public class BatchSyncLinksBodyTest { + private final BatchSyncLinksBody model = new BatchSyncLinksBody(); + + /** + * Model tests for BatchSyncLinksBody + */ + @Test + public void testBatchSyncLinksBody() { + // TODO: test BatchSyncLinksBody + } + + /** + * Test the property 'instructions' + */ + @Test + public void instructionsTest() { + // TODO: test instructions + } + + /** + * Test the property 'listKey' + */ + @Test + public void listKeyTest() { + // TODO: test listKey + } + +} diff --git a/src/test/src/test/java/ai/lamin/lamin_api_client/model/BatchSyncResponseTest.java b/src/test/src/test/java/ai/lamin/lamin_api_client/model/BatchSyncResponseTest.java new file mode 100644 index 0000000..885ba7c --- /dev/null +++ b/src/test/src/test/java/ai/lamin/lamin_api_client/model/BatchSyncResponseTest.java @@ -0,0 +1,75 @@ +/* + * 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.ArrayList; +import java.util.Arrays; +import java.util.List; +import java.util.Map; +import org.junit.jupiter.api.Disabled; +import org.junit.jupiter.api.Test; + +/** + * Model tests for BatchSyncResponse + */ +public class BatchSyncResponseTest { + private final BatchSyncResponse model = new BatchSyncResponse(); + + /** + * Model tests for BatchSyncResponse + */ + @Test + public void testBatchSyncResponse() { + // TODO: test BatchSyncResponse + } + + /** + * Test the property 'status' + */ + @Test + public void statusTest() { + // TODO: test status + } + + /** + * Test the property 'deleted' + */ + @Test + public void deletedTest() { + // TODO: test deleted + } + + /** + * Test the property 'inserted' + */ + @Test + public void insertedTest() { + // TODO: test inserted + } + + /** + * Test the property 'kept' + */ + @Test + public void keptTest() { + // TODO: test kept + } + +} diff --git a/src/test/src/test/java/ai/lamin/lamin_api_client/model/BatchUpdateBodyTest.java b/src/test/src/test/java/ai/lamin/lamin_api_client/model/BatchUpdateBodyTest.java new file mode 100644 index 0000000..3983b8b --- /dev/null +++ b/src/test/src/test/java/ai/lamin/lamin_api_client/model/BatchUpdateBodyTest.java @@ -0,0 +1,59 @@ +/* + * 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.ArrayList; +import java.util.Arrays; +import java.util.List; +import java.util.Map; +import org.junit.jupiter.api.Disabled; +import org.junit.jupiter.api.Test; + +/** + * Model tests for BatchUpdateBody + */ +public class BatchUpdateBodyTest { + private final BatchUpdateBody model = new BatchUpdateBody(); + + /** + * Model tests for BatchUpdateBody + */ + @Test + public void testBatchUpdateBody() { + // TODO: test BatchUpdateBody + } + + /** + * Test the property 'records' + */ + @Test + public void recordsTest() { + // TODO: test records + } + + /** + * Test the property 'indexColumns' + */ + @Test + public void indexColumnsTest() { + // TODO: test indexColumns + } + +} diff --git a/src/test/src/test/java/ai/lamin/lamin_api_client/model/BodyTest.java b/src/test/src/test/java/ai/lamin/lamin_api_client/model/BodyTest.java new file mode 100644 index 0000000..3d8fc5e --- /dev/null +++ b/src/test/src/test/java/ai/lamin/lamin_api_client/model/BodyTest.java @@ -0,0 +1,35 @@ +/* + * 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.List; +import java.util.Map; +import org.junit.jupiter.api.Disabled; +import org.junit.jupiter.api.Test; + +/** + * Model tests for Body + */ +public class BodyTest { + private final Body model = new Body(); + + /** + * Model tests for Body + */ + @Test + public void testBody() { + // TODO: test Body + } + +} diff --git a/src/test/src/test/java/ai/lamin/lamin_api_client/model/CreateTransformRequestBodyTest.java b/src/test/src/test/java/ai/lamin/lamin_api_client/model/CreateTransformRequestBodyTest.java index eed57aa..0874ee4 100644 --- a/src/test/src/test/java/ai/lamin/lamin_api_client/model/CreateTransformRequestBodyTest.java +++ b/src/test/src/test/java/ai/lamin/lamin_api_client/model/CreateTransformRequestBodyTest.java @@ -20,6 +20,9 @@ import com.google.gson.stream.JsonWriter; import java.io.IOException; import java.util.Arrays; +import java.util.HashMap; +import java.util.Map; +import org.openapitools.jackson.nullable.JsonNullable; import org.junit.jupiter.api.Disabled; import org.junit.jupiter.api.Test; @@ -46,11 +49,11 @@ public void keyTest() { } /** - * Test the property 'type' + * Test the property 'kind' */ @Test - public void typeTest() { - // TODO: test type + public void kindTest() { + // TODO: test kind } /** @@ -61,4 +64,12 @@ public void sourceCodeTest() { // TODO: test sourceCode } + /** + * Test the property 'kwargs' + */ + @Test + public void kwargsTest() { + // TODO: test kwargs + } + } 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/ErrorDetailTest.java similarity index 71% rename from src/test/src/test/java/ai/lamin/lamin_api_client/model/DbUrlRequestTest.java rename to src/test/src/test/java/ai/lamin/lamin_api_client/model/ErrorDetailTest.java index 1498570..bf3e2d3 100644 --- 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/ErrorDetailTest.java @@ -24,25 +24,25 @@ import org.junit.jupiter.api.Test; /** - * Model tests for DbUrlRequest + * Model tests for ErrorDetail */ -public class DbUrlRequestTest { - private final DbUrlRequest model = new DbUrlRequest(); +public class ErrorDetailTest { + private final ErrorDetail model = new ErrorDetail(); /** - * Model tests for DbUrlRequest + * Model tests for ErrorDetail */ @Test - public void testDbUrlRequest() { - // TODO: test DbUrlRequest + public void testErrorDetail() { + // TODO: test ErrorDetail } /** - * Test the property 'dbUrl' + * Test the property 'detail' */ @Test - public void dbUrlTest() { - // TODO: test dbUrl + public void detailTest() { + // TODO: test detail } } diff --git a/src/test/src/test/java/ai/lamin/lamin_api_client/model/ExecuteFunctionRequestBodyTest.java b/src/test/src/test/java/ai/lamin/lamin_api_client/model/ExecuteFunctionRequestBodyTest.java new file mode 100644 index 0000000..0a103dc --- /dev/null +++ b/src/test/src/test/java/ai/lamin/lamin_api_client/model/ExecuteFunctionRequestBodyTest.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 ExecuteFunctionRequestBody + */ +public class ExecuteFunctionRequestBodyTest { + private final ExecuteFunctionRequestBody model = new ExecuteFunctionRequestBody(); + + /** + * Model tests for ExecuteFunctionRequestBody + */ + @Test + public void testExecuteFunctionRequestBody() { + // TODO: test ExecuteFunctionRequestBody + } + + /** + * Test the property 'transformUid' + */ + @Test + public void transformUidTest() { + // TODO: test transformUid + } + + /** + * Test the property 'functionName' + */ + @Test + public void functionNameTest() { + // TODO: test functionName + } + + /** + * Test the property 'functionKwargs' + */ + @Test + public void functionKwargsTest() { + // TODO: test functionKwargs + } + +} diff --git a/src/test/src/test/java/ai/lamin/lamin_api_client/model/ExportRecordsRequestBodyTest.java b/src/test/src/test/java/ai/lamin/lamin_api_client/model/ExportRecordsRequestBodyTest.java new file mode 100644 index 0000000..8d7442b --- /dev/null +++ b/src/test/src/test/java/ai/lamin/lamin_api_client/model/ExportRecordsRequestBodyTest.java @@ -0,0 +1,50 @@ +/* + * 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 ExportRecordsRequestBody + */ +public class ExportRecordsRequestBodyTest { + private final ExportRecordsRequestBody model = new ExportRecordsRequestBody(); + + /** + * Model tests for ExportRecordsRequestBody + */ + @Test + public void testExportRecordsRequestBody() { + // TODO: test ExportRecordsRequestBody + } + + /** + * Test the property 'kwargs' + */ + @Test + public void kwargsTest() { + // TODO: test kwargs + } + +} diff --git a/src/test/src/test/java/ai/lamin/lamin_api_client/model/GetRecordsRequestBodyTest.java b/src/test/src/test/java/ai/lamin/lamin_api_client/model/GetRecordsRequestBodyTest.java index dcd56d0..4743be6 100644 --- a/src/test/src/test/java/ai/lamin/lamin_api_client/model/GetRecordsRequestBodyTest.java +++ b/src/test/src/test/java/ai/lamin/lamin_api_client/model/GetRecordsRequestBodyTest.java @@ -75,4 +75,12 @@ public void searchTest() { // TODO: test search } + /** + * Test the property 'searchIn' + */ + @Test + public void searchInTest() { + // TODO: test searchIn + } + } diff --git a/src/test/src/test/java/ai/lamin/lamin_api_client/model/GetValuesRequestBodyTest.java b/src/test/src/test/java/ai/lamin/lamin_api_client/model/GetValuesRequestBodyTest.java index 8e634de..8d00b11 100644 --- a/src/test/src/test/java/ai/lamin/lamin_api_client/model/GetValuesRequestBodyTest.java +++ b/src/test/src/test/java/ai/lamin/lamin_api_client/model/GetValuesRequestBodyTest.java @@ -67,4 +67,12 @@ public void searchTest() { // TODO: test search } + /** + * Test the property 'searchIn' + */ + @Test + public void searchInTest() { + // TODO: test searchIn + } + } diff --git a/src/test/src/test/java/ai/lamin/lamin_api_client/model/NonEmptyTablesResponseTest.java b/src/test/src/test/java/ai/lamin/lamin_api_client/model/NonEmptyTablesResponseTest.java new file mode 100644 index 0000000..779726c --- /dev/null +++ b/src/test/src/test/java/ai/lamin/lamin_api_client/model/NonEmptyTablesResponseTest.java @@ -0,0 +1,51 @@ +/* + * 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.List; +import java.util.Map; +import org.junit.jupiter.api.Disabled; +import org.junit.jupiter.api.Test; + +/** + * Model tests for NonEmptyTablesResponse + */ +public class NonEmptyTablesResponseTest { + private final NonEmptyTablesResponse model = new NonEmptyTablesResponse(); + + /** + * Model tests for NonEmptyTablesResponse + */ + @Test + public void testNonEmptyTablesResponse() { + // TODO: test NonEmptyTablesResponse + } + + /** + * Test the property 'nonEmptyTables' + */ + @Test + public void nonEmptyTablesTest() { + // TODO: test nonEmptyTables + } + +} 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 index a9288bb..97225fe 100644 --- 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 @@ -20,6 +20,7 @@ import com.google.gson.stream.JsonWriter; import java.io.IOException; import java.util.Arrays; +import java.util.UUID; import org.junit.jupiter.api.Disabled; import org.junit.jupiter.api.Test; @@ -61,4 +62,12 @@ public void apiServerNameTest() { // TODO: test apiServerName } + /** + * Test the property 'organizationId' + */ + @Test + public void organizationIdTest() { + // TODO: test organizationId + } + } diff --git a/src/test/src/test/java/ai/lamin/lamin_api_client/model/RequestTest.java b/src/test/src/test/java/ai/lamin/lamin_api_client/model/RequestTest.java new file mode 100644 index 0000000..9f8c60c --- /dev/null +++ b/src/test/src/test/java/ai/lamin/lamin_api_client/model/RequestTest.java @@ -0,0 +1,95 @@ +/* + * 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 ai.lamin.lamin_api_client.model.OrderByColumn; +import ai.lamin.lamin_api_client.model.TraversalParams; +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.ArrayList; +import java.util.Arrays; +import java.util.HashMap; +import java.util.List; +import java.util.Map; +import org.openapitools.jackson.nullable.JsonNullable; +import org.junit.jupiter.api.Disabled; +import org.junit.jupiter.api.Test; + +/** + * Model tests for Request + */ +public class RequestTest { + private final Request model = new Request(); + + /** + * Model tests for Request + */ + @Test + public void testRequest() { + // TODO: test Request + } + + /** + * Test the property 'relatives' + */ + @Test + public void relativesTest() { + // TODO: test relatives + } + + /** + * Test the property 'select' + */ + @Test + public void selectTest() { + // TODO: test select + } + + /** + * Test the property 'filter' + */ + @Test + public void filterTest() { + // TODO: test filter + } + + /** + * Test the property 'orderBy' + */ + @Test + public void orderByTest() { + // TODO: test orderBy + } + + /** + * Test the property 'search' + */ + @Test + public void searchTest() { + // TODO: test search + } + + /** + * Test the property 'searchIn' + */ + @Test + public void searchInTest() { + // TODO: test searchIn + } + +} diff --git a/src/test/src/test/java/ai/lamin/lamin_api_client/model/S3PermissionsRequestTest.java b/src/test/src/test/java/ai/lamin/lamin_api_client/model/S3PermissionsRequestTest.java index 79c2d01..d4152c3 100644 --- a/src/test/src/test/java/ai/lamin/lamin_api_client/model/S3PermissionsRequestTest.java +++ b/src/test/src/test/java/ai/lamin/lamin_api_client/model/S3PermissionsRequestTest.java @@ -20,6 +20,9 @@ import com.google.gson.stream.JsonWriter; import java.io.IOException; import java.util.Arrays; +import java.util.HashMap; +import java.util.Map; +import org.openapitools.jackson.nullable.JsonNullable; import org.junit.jupiter.api.Disabled; import org.junit.jupiter.api.Test; @@ -61,4 +64,20 @@ public void regionTest() { // TODO: test region } + /** + * Test the property 'awsSessionToken' + */ + @Test + public void awsSessionTokenTest() { + // TODO: test awsSessionToken + } + + /** + * Test the property 'extraParameters' + */ + @Test + public void extraParametersTest() { + // TODO: test extraParameters + } + } diff --git a/src/test/src/test/java/ai/lamin/lamin_api_client/model/StatisticsResponseTest.java b/src/test/src/test/java/ai/lamin/lamin_api_client/model/StatisticsResponseTest.java new file mode 100644 index 0000000..2fbdcf9 --- /dev/null +++ b/src/test/src/test/java/ai/lamin/lamin_api_client/model/StatisticsResponseTest.java @@ -0,0 +1,58 @@ +/* + * 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 StatisticsResponse + */ +public class StatisticsResponseTest { + private final StatisticsResponse model = new StatisticsResponse(); + + /** + * Model tests for StatisticsResponse + */ + @Test + public void testStatisticsResponse() { + // TODO: test StatisticsResponse + } + + /** + * Test the property 'instanceSize' + */ + @Test + public void instanceSizeTest() { + // TODO: test instanceSize + } + + /** + * Test the property 'counts' + */ + @Test + public void countsTest() { + // TODO: test counts + } + +} diff --git a/src/test/src/test/java/ai/lamin/lamin_api_client/model/SyncInstructionTest.java b/src/test/src/test/java/ai/lamin/lamin_api_client/model/SyncInstructionTest.java new file mode 100644 index 0000000..9d4941d --- /dev/null +++ b/src/test/src/test/java/ai/lamin/lamin_api_client/model/SyncInstructionTest.java @@ -0,0 +1,60 @@ +/* + * 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.ArrayList; +import java.util.Arrays; +import java.util.HashMap; +import java.util.List; +import java.util.Map; +import org.junit.jupiter.api.Disabled; +import org.junit.jupiter.api.Test; + +/** + * Model tests for SyncInstruction + */ +public class SyncInstructionTest { + private final SyncInstruction model = new SyncInstruction(); + + /** + * Model tests for SyncInstruction + */ + @Test + public void testSyncInstruction() { + // TODO: test SyncInstruction + } + + /** + * Test the property 'scope' + */ + @Test + public void scopeTest() { + // TODO: test scope + } + + /** + * Test the property 'desiredIds' + */ + @Test + public void desiredIdsTest() { + // TODO: test desiredIds + } + +} diff --git a/src/test/src/test/java/ai/lamin/lamin_api_client/model/TraversalParamsTest.java b/src/test/src/test/java/ai/lamin/lamin_api_client/model/TraversalParamsTest.java new file mode 100644 index 0000000..f53d715 --- /dev/null +++ b/src/test/src/test/java/ai/lamin/lamin_api_client/model/TraversalParamsTest.java @@ -0,0 +1,76 @@ +/* + * 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 ai.lamin.lamin_api_client.model.TraversalParamsValuesInner; +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.ArrayList; +import java.util.Arrays; +import java.util.List; +import org.openapitools.jackson.nullable.JsonNullable; +import org.junit.jupiter.api.Disabled; +import org.junit.jupiter.api.Test; + +/** + * Model tests for TraversalParams + */ +public class TraversalParamsTest { + private final TraversalParams model = new TraversalParams(); + + /** + * Model tests for TraversalParams + */ + @Test + public void testTraversalParams() { + // TODO: test TraversalParams + } + + /** + * Test the property 'values' + */ + @Test + public void valuesTest() { + // TODO: test values + } + + /** + * Test the property 'kind' + */ + @Test + public void kindTest() { + // TODO: test kind + } + + /** + * Test the property 'field' + */ + @Test + public void fieldTest() { + // TODO: test field + } + + /** + * Test the property 'depth' + */ + @Test + public void depthTest() { + // TODO: test depth + } + +} diff --git a/src/test/src/test/java/ai/lamin/lamin_api_client/model/TraversalParamsValuesInnerTest.java b/src/test/src/test/java/ai/lamin/lamin_api_client/model/TraversalParamsValuesInnerTest.java new file mode 100644 index 0000000..2ef3d33 --- /dev/null +++ b/src/test/src/test/java/ai/lamin/lamin_api_client/model/TraversalParamsValuesInnerTest.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 TraversalParamsValuesInner + */ +public class TraversalParamsValuesInnerTest { + private final TraversalParamsValuesInner model = new TraversalParamsValuesInner(); + + /** + * Model tests for TraversalParamsValuesInner + */ + @Test + public void testTraversalParamsValuesInner() { + // TODO: test TraversalParamsValuesInner + } + +} From e5dbb007c65a19c9559fec89eead351ff01f432c Mon Sep 17 00:00:00 2001 From: Robrecht Cannoodt Date: Thu, 8 Jan 2026 15:35:13 +0100 Subject: [PATCH 2/5] fix compilation issue --- generate.sh | 7 +++++++ .../java/ai/lamin/lamin_api_client/model/Body.java | 11 ++++++----- 2 files changed, 13 insertions(+), 5 deletions(-) diff --git a/generate.sh b/generate.sh index b6df64a..de3b062 100755 --- a/generate.sh +++ b/generate.sh @@ -20,6 +20,13 @@ sed -i "$SED_CMD1;$SED_CMD2" README.md # postfix generated file sed -i 's#private Role role = member;#private Role role;#' src/main/java/ai/lamin/lamin_api_client/model/AddTeamMemberRequestBody.java +# fix Body.java compilation errors +BODY_FILE="src/main/java/ai/lamin/lamin_api_client/model/Body.java" +# fix malformed variable declaration +sed -i 's#final TypeAdapter> adapterMap = gson.getDelegateAdapter(this, TypeToken.get(Map.class));#final Type typeInstanceMapStringObject = new TypeToken>(){}.getType();\n final TypeAdapter> adapterMapStringObject = (TypeAdapter>) gson.getDelegateAdapter(this, TypeToken.get(typeInstanceMapStringObject));#' "$BODY_FILE" +# fix instanceof with parameterized types (cannot use Map with instanceof) +sed -i 's#instanceof Map#instanceof Map#g' "$BODY_FILE" + # update pom.xml with artifact version VERSION=$(yq -r '.artifactVersion' config.yaml) sed -i "s/^ [^<]*<\/version>$/ $VERSION<\/version>/" pom.xml diff --git a/src/main/java/ai/lamin/lamin_api_client/model/Body.java b/src/main/java/ai/lamin/lamin_api_client/model/Body.java index f72d024..40185c2 100644 --- a/src/main/java/ai/lamin/lamin_api_client/model/Body.java +++ b/src/main/java/ai/lamin/lamin_api_client/model/Body.java @@ -67,7 +67,8 @@ public TypeAdapter create(Gson gson, TypeToken type) { final Type typeInstanceListMapStringObject = new TypeToken>>(){}.getType(); final TypeAdapter>> adapterListMapStringObject = (TypeAdapter>>) gson.getDelegateAdapter(this, TypeToken.get(typeInstanceListMapStringObject)); - final TypeAdapter> adapterMap = gson.getDelegateAdapter(this, TypeToken.get(Map.class)); + final Type typeInstanceMapStringObject = new TypeToken>(){}.getType(); + final TypeAdapter> adapterMapStringObject = (TypeAdapter>) gson.getDelegateAdapter(this, TypeToken.get(typeInstanceMapStringObject)); return (TypeAdapter) new TypeAdapter() { @Override @@ -80,14 +81,14 @@ public void write(JsonWriter out, Body value) throws IOException { // check if the actual instance is of the type `List>` if (value.getActualInstance() instanceof List) { List list = (List) value.getActualInstance(); - if (list.get(0) instanceof Map) { + if (list.get(0) instanceof Map) { JsonArray array = adapterListMapStringObject.toJsonTree((List>)value.getActualInstance()).getAsJsonArray(); elementAdapter.write(out, array); return; } } // check if the actual instance is of the type `Map` - if (value.getActualInstance() instanceof Map) { + if (value.getActualInstance() instanceof Map) { JsonPrimitive primitive = adapterMapStringObject.toJsonTree((Map)value.getActualInstance()).getAsJsonPrimitive(); elementAdapter.write(out, primitive); return; @@ -181,13 +182,13 @@ public Map> getSchemas() { public void setActualInstance(Object instance) { if (instance instanceof List) { List list = (List) instance; - if (list.get(0) instanceof Map) { + if (list.get(0) instanceof Map) { super.setActualInstance(instance); return; } } - if (instance instanceof Map) { + if (instance instanceof Map) { super.setActualInstance(instance); return; } From 5fd8c59290644d52223538081e780bde8e72b08c Mon Sep 17 00:00:00 2001 From: Robrecht Cannoodt Date: Fri, 9 Jan 2026 08:29:02 +0100 Subject: [PATCH 3/5] set version to 0.4.0-rc1 --- .openapi-generator/FILES | 67 ------------------- .vscode/settings.json | 5 ++ README.md | 8 +-- config.yaml | 2 +- pom.xml | 2 +- .../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/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/auth/ApiKeyAuth.java | 2 +- .../lamin_api_client/auth/HttpBearerAuth.java | 2 +- .../model/AbstractOpenApiSchema.java | 2 +- .../model/AddCollaboratorRequestBody.java | 2 +- .../AddOrganizationMemberRequestBody.java | 2 +- .../AddSpaceCollaboratorRequestBody.java | 2 +- .../model/AddTeamMemberRequestBody.java | 2 +- .../model/AttachSpaceToRecordRequestBody.java | 2 +- .../model/BatchDeleteBody.java | 2 +- .../model/BatchDeleteResponse.java | 2 +- .../model/BatchSyncLinksBody.java | 2 +- .../model/BatchSyncResponse.java | 2 +- .../model/BatchUpdateBody.java | 2 +- .../ai/lamin/lamin_api_client/model/Body.java | 2 +- .../model/CreateArtifactRequestBody.java | 2 +- .../model/CreateSpaceRequestBody.java | 2 +- .../model/CreateTeamRequestBody.java | 2 +- .../model/CreateTransformRequestBody.java | 2 +- .../lamin_api_client/model/Dimension.java | 2 +- .../lamin_api_client/model/ErrorDetail.java | 2 +- .../model/ExecuteFunctionRequestBody.java | 2 +- .../model/ExportRecordsRequestBody.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 +- .../model/NonEmptyTablesResponse.java | 2 +- .../lamin_api_client/model/OrderByColumn.java | 2 +- .../model/RegisterDbServerBody.java | 2 +- .../model/RegisterFormRequest.java | 2 +- .../lamin/lamin_api_client/model/Request.java | 2 +- .../ai/lamin/lamin_api_client/model/Role.java | 2 +- .../lamin/lamin_api_client/model/Role1.java | 2 +- .../model/S3PermissionsRequest.java | 2 +- .../model/StatisticsResponse.java | 2 +- .../model/SyncInstruction.java | 2 +- .../model/TraversalParams.java | 2 +- .../model/TraversalParamsValuesInner.java | 2 +- .../model/UpdateCollaboratorRequestBody.java | 2 +- .../UpdateOrganizationMemberRequestBody.java | 2 +- .../UpdateSpaceCollaboratorRequestBody.java | 2 +- .../model/UpdateSpaceRequestBody.java | 2 +- .../model/UpdateTeamMemberRequestBody.java | 2 +- .../model/UpdateTeamRequestBody.java | 2 +- .../model/ValidationError.java | 2 +- .../model/ValidationErrorLocInner.java | 2 +- 60 files changed, 67 insertions(+), 129 deletions(-) create mode 100644 .vscode/settings.json diff --git a/.openapi-generator/FILES b/.openapi-generator/FILES index c2f14f0..6b0e666 100644 --- a/.openapi-generator/FILES +++ b/.openapi-generator/FILES @@ -157,70 +157,3 @@ src/main/java/ai/lamin/lamin_api_client/model/UpdateTeamMemberRequestBody.java src/main/java/ai/lamin/lamin_api_client/model/UpdateTeamRequestBody.java src/main/java/ai/lamin/lamin_api_client/model/ValidationError.java src/main/java/ai/lamin/lamin_api_client/model/ValidationErrorLocInner.java -src/test/src/test/java/ai/lamin/lamin_api_client/api/AccountsApiTest.java -src/test/src/test/java/ai/lamin/lamin_api_client/api/BackwardCompatibleEndpointsApiTest.java -src/test/src/test/java/ai/lamin/lamin_api_client/api/CacheApiTest.java -src/test/src/test/java/ai/lamin/lamin_api_client/api/DbServerApiTest.java -src/test/src/test/java/ai/lamin/lamin_api_client/api/HealthChecksApiTest.java -src/test/src/test/java/ai/lamin/lamin_api_client/api/InstanceArtifactsApiTest.java -src/test/src/test/java/ai/lamin/lamin_api_client/api/InstanceDbTokenApiTest.java -src/test/src/test/java/ai/lamin/lamin_api_client/api/InstanceFeaturesApiTest.java -src/test/src/test/java/ai/lamin/lamin_api_client/api/InstanceFileExplorerApiTest.java -src/test/src/test/java/ai/lamin/lamin_api_client/api/InstanceFormsApiTest.java -src/test/src/test/java/ai/lamin/lamin_api_client/api/InstanceFunctionsApiTest.java -src/test/src/test/java/ai/lamin/lamin_api_client/api/InstanceLabelsApiTest.java -src/test/src/test/java/ai/lamin/lamin_api_client/api/InstanceRecordsApiTest.java -src/test/src/test/java/ai/lamin/lamin_api_client/api/InstanceSchemaApiTest.java -src/test/src/test/java/ai/lamin/lamin_api_client/api/InstanceSearchApiTest.java -src/test/src/test/java/ai/lamin/lamin_api_client/api/InstanceStatisticsApiTest.java -src/test/src/test/java/ai/lamin/lamin_api_client/api/InstanceTransformsApiTest.java -src/test/src/test/java/ai/lamin/lamin_api_client/api/InstancesApiTest.java -src/test/src/test/java/ai/lamin/lamin_api_client/api/OrganizationsApiTest.java -src/test/src/test/java/ai/lamin/lamin_api_client/api/SpacesApiTest.java -src/test/src/test/java/ai/lamin/lamin_api_client/api/StoragesApiTest.java -src/test/src/test/java/ai/lamin/lamin_api_client/api/TeamsApiTest.java -src/test/src/test/java/ai/lamin/lamin_api_client/model/AddCollaboratorRequestBodyTest.java -src/test/src/test/java/ai/lamin/lamin_api_client/model/AddOrganizationMemberRequestBodyTest.java -src/test/src/test/java/ai/lamin/lamin_api_client/model/AddSpaceCollaboratorRequestBodyTest.java -src/test/src/test/java/ai/lamin/lamin_api_client/model/AddTeamMemberRequestBodyTest.java -src/test/src/test/java/ai/lamin/lamin_api_client/model/AttachSpaceToRecordRequestBodyTest.java -src/test/src/test/java/ai/lamin/lamin_api_client/model/BatchDeleteBodyTest.java -src/test/src/test/java/ai/lamin/lamin_api_client/model/BatchDeleteResponseTest.java -src/test/src/test/java/ai/lamin/lamin_api_client/model/BatchSyncLinksBodyTest.java -src/test/src/test/java/ai/lamin/lamin_api_client/model/BatchSyncResponseTest.java -src/test/src/test/java/ai/lamin/lamin_api_client/model/BatchUpdateBodyTest.java -src/test/src/test/java/ai/lamin/lamin_api_client/model/BodyTest.java -src/test/src/test/java/ai/lamin/lamin_api_client/model/CreateArtifactRequestBodyTest.java -src/test/src/test/java/ai/lamin/lamin_api_client/model/CreateSpaceRequestBodyTest.java -src/test/src/test/java/ai/lamin/lamin_api_client/model/CreateTeamRequestBodyTest.java -src/test/src/test/java/ai/lamin/lamin_api_client/model/CreateTransformRequestBodyTest.java -src/test/src/test/java/ai/lamin/lamin_api_client/model/DimensionTest.java -src/test/src/test/java/ai/lamin/lamin_api_client/model/ErrorDetailTest.java -src/test/src/test/java/ai/lamin/lamin_api_client/model/ExecuteFunctionRequestBodyTest.java -src/test/src/test/java/ai/lamin/lamin_api_client/model/ExportRecordsRequestBodyTest.java -src/test/src/test/java/ai/lamin/lamin_api_client/model/GetRecordRequestBodyTest.java -src/test/src/test/java/ai/lamin/lamin_api_client/model/GetRecordsRequestBodyTest.java -src/test/src/test/java/ai/lamin/lamin_api_client/model/GetValuesRequestBodyTest.java -src/test/src/test/java/ai/lamin/lamin_api_client/model/GroupByRequestBodyTest.java -src/test/src/test/java/ai/lamin/lamin_api_client/model/HTTPValidationErrorTest.java -src/test/src/test/java/ai/lamin/lamin_api_client/model/MeasureTest.java -src/test/src/test/java/ai/lamin/lamin_api_client/model/NonEmptyTablesResponseTest.java -src/test/src/test/java/ai/lamin/lamin_api_client/model/OrderByColumnTest.java -src/test/src/test/java/ai/lamin/lamin_api_client/model/RegisterDbServerBodyTest.java -src/test/src/test/java/ai/lamin/lamin_api_client/model/RegisterFormRequestTest.java -src/test/src/test/java/ai/lamin/lamin_api_client/model/RequestTest.java -src/test/src/test/java/ai/lamin/lamin_api_client/model/Role1Test.java -src/test/src/test/java/ai/lamin/lamin_api_client/model/RoleTest.java -src/test/src/test/java/ai/lamin/lamin_api_client/model/S3PermissionsRequestTest.java -src/test/src/test/java/ai/lamin/lamin_api_client/model/StatisticsResponseTest.java -src/test/src/test/java/ai/lamin/lamin_api_client/model/SyncInstructionTest.java -src/test/src/test/java/ai/lamin/lamin_api_client/model/TraversalParamsTest.java -src/test/src/test/java/ai/lamin/lamin_api_client/model/TraversalParamsValuesInnerTest.java -src/test/src/test/java/ai/lamin/lamin_api_client/model/UpdateCollaboratorRequestBodyTest.java -src/test/src/test/java/ai/lamin/lamin_api_client/model/UpdateOrganizationMemberRequestBodyTest.java -src/test/src/test/java/ai/lamin/lamin_api_client/model/UpdateSpaceCollaboratorRequestBodyTest.java -src/test/src/test/java/ai/lamin/lamin_api_client/model/UpdateSpaceRequestBodyTest.java -src/test/src/test/java/ai/lamin/lamin_api_client/model/UpdateTeamMemberRequestBodyTest.java -src/test/src/test/java/ai/lamin/lamin_api_client/model/UpdateTeamRequestBodyTest.java -src/test/src/test/java/ai/lamin/lamin_api_client/model/ValidationErrorLocInnerTest.java -src/test/src/test/java/ai/lamin/lamin_api_client/model/ValidationErrorTest.java diff --git a/.vscode/settings.json b/.vscode/settings.json new file mode 100644 index 0000000..e72490f --- /dev/null +++ b/.vscode/settings.json @@ -0,0 +1,5 @@ +{ + "files.watcherExclude": { + "**/target": true + } +} \ No newline at end of file diff --git a/README.md b/README.md index 9cb7e36..9f4bab1 100644 --- a/README.md +++ b/README.md @@ -5,7 +5,7 @@ Lamin API - API version: 0.1.0 - - Build date: 2026-01-08T15:17:29.048390180+01:00[Europe/Brussels] + - Build date: 2026-01-09T08:28:28.643201106+01:00[Europe/Brussels] - Generator version: 7.12.0 No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) @@ -44,7 +44,7 @@ Add this dependency to your project's POM: ai.lamin lamin-api-client - 0.0.4 + 0.0.4-rc1 compile ``` @@ -60,7 +60,7 @@ Add this dependency to your project's build file: } dependencies { - implementation "ai.lamin:lamin-api-client:0.0.4" + implementation "ai.lamin:lamin-api-client:0.0.4-rc1" } ``` @@ -74,7 +74,7 @@ mvn clean package Then manually install the following JARs: -* `target/lamin-api-client-0.0.4.jar` +* `target/lamin-api-client-0.0.4-rc1.jar` * `target/lib/*.jar` ## Getting Started diff --git a/config.yaml b/config.yaml index 174daf3..d86f49e 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.4 +artifactVersion: 0.0.4-rc1 # Description: artifact URL in generated pom.xml artifactUrl: https://github.com/laminlabs/lamin-api-client-java diff --git a/pom.xml b/pom.xml index b94dddf..ea41fd0 100644 --- a/pom.xml +++ b/pom.xml @@ -6,7 +6,7 @@ lamin-api-client jar lamin-api-client - 0.0.4 + 0.0.4-rc1 https://github.com/laminlabs/lamin-api-client-java Java client for the Lamin API 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 a88f052..008d514 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.4/java"); + setUserAgent("OpenAPI-Generator/0.0.4-rc1/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 e704210..99dbf93 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 = "2026-01-08T15:17:29.048390180+01:00[Europe/Brussels]", comments = "Generator version: 7.12.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-01-09T08:28:28.643201106+01: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 968036a..bf21ec0 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 = "2026-01-08T15:17:29.048390180+01:00[Europe/Brussels]", comments = "Generator version: 7.12.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-01-09T08:28:28.643201106+01:00[Europe/Brussels]", comments = "Generator version: 7.12.0") public class Configuration { - public static final String VERSION = "0.0.4"; + public static final String VERSION = "0.0.4-rc1"; private static volatile ApiClient defaultApiClient = new ApiClient(); 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 682b6d9..2c6ecdf 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 = "2026-01-08T15:17:29.048390180+01:00[Europe/Brussels]", comments = "Generator version: 7.12.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-01-09T08:28:28.643201106+01: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 c4459d2..97d78b4 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 = "2026-01-08T15:17:29.048390180+01:00[Europe/Brussels]", comments = "Generator version: 7.12.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-01-09T08:28:28.643201106+01: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 02e9a1a..a8b0e48 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 = "2026-01-08T15:17:29.048390180+01:00[Europe/Brussels]", comments = "Generator version: 7.12.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-01-09T08:28:28.643201106+01: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 183ba81..c07df7c 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 = "2026-01-08T15:17:29.048390180+01:00[Europe/Brussels]", comments = "Generator version: 7.12.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-01-09T08:28:28.643201106+01: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/auth/ApiKeyAuth.java b/src/main/java/ai/lamin/lamin_api_client/auth/ApiKeyAuth.java index 38ae95b..94b373c 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 = "2026-01-08T15:17:29.048390180+01:00[Europe/Brussels]", comments = "Generator version: 7.12.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-01-09T08:28:28.643201106+01: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 ba92891..a3c356a 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 = "2026-01-08T15:17:29.048390180+01:00[Europe/Brussels]", comments = "Generator version: 7.12.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-01-09T08:28:28.643201106+01: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 f3fa7b9..340379e 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 = "2026-01-08T15:17:29.048390180+01:00[Europe/Brussels]", comments = "Generator version: 7.12.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-01-09T08:28:28.643201106+01: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 899c555..da095d3 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 = "2026-01-08T15:17:29.048390180+01:00[Europe/Brussels]", comments = "Generator version: 7.12.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-01-09T08:28:28.643201106+01: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/AddOrganizationMemberRequestBody.java b/src/main/java/ai/lamin/lamin_api_client/model/AddOrganizationMemberRequestBody.java index fa1d32e..8933b2b 100644 --- a/src/main/java/ai/lamin/lamin_api_client/model/AddOrganizationMemberRequestBody.java +++ b/src/main/java/ai/lamin/lamin_api_client/model/AddOrganizationMemberRequestBody.java @@ -48,7 +48,7 @@ /** * AddOrganizationMemberRequestBody */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-01-08T15:17:29.048390180+01:00[Europe/Brussels]", comments = "Generator version: 7.12.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-01-09T08:28:28.643201106+01:00[Europe/Brussels]", comments = "Generator version: 7.12.0") public class AddOrganizationMemberRequestBody { /** * Gets or Sets role 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 05cfc6d..a5eacb7 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 = "2026-01-08T15:17:29.048390180+01:00[Europe/Brussels]", comments = "Generator version: 7.12.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-01-09T08:28:28.643201106+01: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 5aad761..6dcdb8e 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 @@ -49,7 +49,7 @@ /** * AddTeamMemberRequestBody */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-01-08T15:17:29.048390180+01:00[Europe/Brussels]", comments = "Generator version: 7.12.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-01-09T08:28:28.643201106+01:00[Europe/Brussels]", comments = "Generator version: 7.12.0") public class AddTeamMemberRequestBody { public static final String SERIALIZED_NAME_ROLE = "role"; @SerializedName(SERIALIZED_NAME_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 2ddeb7e..7fc8ff7 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 = "2026-01-08T15:17:29.048390180+01:00[Europe/Brussels]", comments = "Generator version: 7.12.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-01-09T08:28:28.643201106+01: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/BatchDeleteBody.java b/src/main/java/ai/lamin/lamin_api_client/model/BatchDeleteBody.java index 13ac71e..601f3e0 100644 --- a/src/main/java/ai/lamin/lamin_api_client/model/BatchDeleteBody.java +++ b/src/main/java/ai/lamin/lamin_api_client/model/BatchDeleteBody.java @@ -51,7 +51,7 @@ /** * BatchDeleteBody */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-01-08T15:17:29.048390180+01:00[Europe/Brussels]", comments = "Generator version: 7.12.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-01-09T08:28:28.643201106+01:00[Europe/Brussels]", comments = "Generator version: 7.12.0") public class BatchDeleteBody { public static final String SERIALIZED_NAME_RECORDS = "records"; @SerializedName(SERIALIZED_NAME_RECORDS) diff --git a/src/main/java/ai/lamin/lamin_api_client/model/BatchDeleteResponse.java b/src/main/java/ai/lamin/lamin_api_client/model/BatchDeleteResponse.java index caa2483..9f5b3fc 100644 --- a/src/main/java/ai/lamin/lamin_api_client/model/BatchDeleteResponse.java +++ b/src/main/java/ai/lamin/lamin_api_client/model/BatchDeleteResponse.java @@ -48,7 +48,7 @@ /** * BatchDeleteResponse */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-01-08T15:17:29.048390180+01:00[Europe/Brussels]", comments = "Generator version: 7.12.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-01-09T08:28:28.643201106+01:00[Europe/Brussels]", comments = "Generator version: 7.12.0") public class BatchDeleteResponse { public static final String SERIALIZED_NAME_DELETED_COUNT = "deleted_count"; @SerializedName(SERIALIZED_NAME_DELETED_COUNT) diff --git a/src/main/java/ai/lamin/lamin_api_client/model/BatchSyncLinksBody.java b/src/main/java/ai/lamin/lamin_api_client/model/BatchSyncLinksBody.java index b6df020..9504810 100644 --- a/src/main/java/ai/lamin/lamin_api_client/model/BatchSyncLinksBody.java +++ b/src/main/java/ai/lamin/lamin_api_client/model/BatchSyncLinksBody.java @@ -51,7 +51,7 @@ /** * The request body for the batch synchronization endpoint. */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-01-08T15:17:29.048390180+01:00[Europe/Brussels]", comments = "Generator version: 7.12.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-01-09T08:28:28.643201106+01:00[Europe/Brussels]", comments = "Generator version: 7.12.0") public class BatchSyncLinksBody { public static final String SERIALIZED_NAME_INSTRUCTIONS = "instructions"; @SerializedName(SERIALIZED_NAME_INSTRUCTIONS) diff --git a/src/main/java/ai/lamin/lamin_api_client/model/BatchSyncResponse.java b/src/main/java/ai/lamin/lamin_api_client/model/BatchSyncResponse.java index b38ac12..031f0c1 100644 --- a/src/main/java/ai/lamin/lamin_api_client/model/BatchSyncResponse.java +++ b/src/main/java/ai/lamin/lamin_api_client/model/BatchSyncResponse.java @@ -51,7 +51,7 @@ /** * The detailed response model for a batch synchronization operation, including the lists of records that were processed. */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-01-08T15:17:29.048390180+01:00[Europe/Brussels]", comments = "Generator version: 7.12.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-01-09T08:28:28.643201106+01:00[Europe/Brussels]", comments = "Generator version: 7.12.0") public class BatchSyncResponse { public static final String SERIALIZED_NAME_STATUS = "status"; @SerializedName(SERIALIZED_NAME_STATUS) diff --git a/src/main/java/ai/lamin/lamin_api_client/model/BatchUpdateBody.java b/src/main/java/ai/lamin/lamin_api_client/model/BatchUpdateBody.java index 9af3f52..f952fc4 100644 --- a/src/main/java/ai/lamin/lamin_api_client/model/BatchUpdateBody.java +++ b/src/main/java/ai/lamin/lamin_api_client/model/BatchUpdateBody.java @@ -51,7 +51,7 @@ /** * BatchUpdateBody */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-01-08T15:17:29.048390180+01:00[Europe/Brussels]", comments = "Generator version: 7.12.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-01-09T08:28:28.643201106+01:00[Europe/Brussels]", comments = "Generator version: 7.12.0") public class BatchUpdateBody { public static final String SERIALIZED_NAME_RECORDS = "records"; @SerializedName(SERIALIZED_NAME_RECORDS) diff --git a/src/main/java/ai/lamin/lamin_api_client/model/Body.java b/src/main/java/ai/lamin/lamin_api_client/model/Body.java index 40185c2..e65cbe5 100644 --- a/src/main/java/ai/lamin/lamin_api_client/model/Body.java +++ b/src/main/java/ai/lamin/lamin_api_client/model/Body.java @@ -52,7 +52,7 @@ import ai.lamin.lamin_api_client.JSON; -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-01-08T15:17:29.048390180+01:00[Europe/Brussels]", comments = "Generator version: 7.12.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-01-09T08:28:28.643201106+01:00[Europe/Brussels]", comments = "Generator version: 7.12.0") public class Body extends AbstractOpenApiSchema { private static final Logger log = Logger.getLogger(Body.class.getName()); diff --git a/src/main/java/ai/lamin/lamin_api_client/model/CreateArtifactRequestBody.java b/src/main/java/ai/lamin/lamin_api_client/model/CreateArtifactRequestBody.java index ddc877f..31ec8fd 100644 --- a/src/main/java/ai/lamin/lamin_api_client/model/CreateArtifactRequestBody.java +++ b/src/main/java/ai/lamin/lamin_api_client/model/CreateArtifactRequestBody.java @@ -50,7 +50,7 @@ /** * CreateArtifactRequestBody */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-01-08T15:17:29.048390180+01:00[Europe/Brussels]", comments = "Generator version: 7.12.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-01-09T08:28:28.643201106+01:00[Europe/Brussels]", comments = "Generator version: 7.12.0") public class CreateArtifactRequestBody { public static final String SERIALIZED_NAME_PATH = "path"; @SerializedName(SERIALIZED_NAME_PATH) 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 34059ec..2e43d7c 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 = "2026-01-08T15:17:29.048390180+01:00[Europe/Brussels]", comments = "Generator version: 7.12.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-01-09T08:28:28.643201106+01: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 497fa24..965961f 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 = "2026-01-08T15:17:29.048390180+01:00[Europe/Brussels]", comments = "Generator version: 7.12.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-01-09T08:28:28.643201106+01: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/CreateTransformRequestBody.java b/src/main/java/ai/lamin/lamin_api_client/model/CreateTransformRequestBody.java index 48c2541..7296189 100644 --- a/src/main/java/ai/lamin/lamin_api_client/model/CreateTransformRequestBody.java +++ b/src/main/java/ai/lamin/lamin_api_client/model/CreateTransformRequestBody.java @@ -51,7 +51,7 @@ /** * CreateTransformRequestBody */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-01-08T15:17:29.048390180+01:00[Europe/Brussels]", comments = "Generator version: 7.12.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-01-09T08:28:28.643201106+01:00[Europe/Brussels]", comments = "Generator version: 7.12.0") public class CreateTransformRequestBody { public static final String SERIALIZED_NAME_KEY = "key"; @SerializedName(SERIALIZED_NAME_KEY) 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 ee7af89..2556bdf 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 = "2026-01-08T15:17:29.048390180+01:00[Europe/Brussels]", comments = "Generator version: 7.12.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-01-09T08:28:28.643201106+01: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/ErrorDetail.java b/src/main/java/ai/lamin/lamin_api_client/model/ErrorDetail.java index 559b8f6..ad18eed 100644 --- a/src/main/java/ai/lamin/lamin_api_client/model/ErrorDetail.java +++ b/src/main/java/ai/lamin/lamin_api_client/model/ErrorDetail.java @@ -48,7 +48,7 @@ /** * ErrorDetail */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-01-08T15:17:29.048390180+01:00[Europe/Brussels]", comments = "Generator version: 7.12.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-01-09T08:28:28.643201106+01:00[Europe/Brussels]", comments = "Generator version: 7.12.0") public class ErrorDetail { public static final String SERIALIZED_NAME_DETAIL = "detail"; @SerializedName(SERIALIZED_NAME_DETAIL) diff --git a/src/main/java/ai/lamin/lamin_api_client/model/ExecuteFunctionRequestBody.java b/src/main/java/ai/lamin/lamin_api_client/model/ExecuteFunctionRequestBody.java index 6ddf912..d807958 100644 --- a/src/main/java/ai/lamin/lamin_api_client/model/ExecuteFunctionRequestBody.java +++ b/src/main/java/ai/lamin/lamin_api_client/model/ExecuteFunctionRequestBody.java @@ -50,7 +50,7 @@ /** * ExecuteFunctionRequestBody */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-01-08T15:17:29.048390180+01:00[Europe/Brussels]", comments = "Generator version: 7.12.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-01-09T08:28:28.643201106+01:00[Europe/Brussels]", comments = "Generator version: 7.12.0") public class ExecuteFunctionRequestBody { public static final String SERIALIZED_NAME_TRANSFORM_UID = "transform_uid"; @SerializedName(SERIALIZED_NAME_TRANSFORM_UID) diff --git a/src/main/java/ai/lamin/lamin_api_client/model/ExportRecordsRequestBody.java b/src/main/java/ai/lamin/lamin_api_client/model/ExportRecordsRequestBody.java index ca069c3..0ec74e1 100644 --- a/src/main/java/ai/lamin/lamin_api_client/model/ExportRecordsRequestBody.java +++ b/src/main/java/ai/lamin/lamin_api_client/model/ExportRecordsRequestBody.java @@ -50,7 +50,7 @@ /** * ExportRecordsRequestBody */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-01-08T15:17:29.048390180+01:00[Europe/Brussels]", comments = "Generator version: 7.12.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-01-09T08:28:28.643201106+01:00[Europe/Brussels]", comments = "Generator version: 7.12.0") public class ExportRecordsRequestBody { public static final String SERIALIZED_NAME_KWARGS = "kwargs"; @SerializedName(SERIALIZED_NAME_KWARGS) 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 cf1ec14..8c6bf69 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 = "2026-01-08T15:17:29.048390180+01:00[Europe/Brussels]", comments = "Generator version: 7.12.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-01-09T08:28:28.643201106+01: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 dba0260..8a8a49f 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 = "2026-01-08T15:17:29.048390180+01:00[Europe/Brussels]", comments = "Generator version: 7.12.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-01-09T08:28:28.643201106+01: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 c78b528..c29133b 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 = "2026-01-08T15:17:29.048390180+01:00[Europe/Brussels]", comments = "Generator version: 7.12.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-01-09T08:28:28.643201106+01: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 033edae..ed73e88 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 = "2026-01-08T15:17:29.048390180+01:00[Europe/Brussels]", comments = "Generator version: 7.12.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-01-09T08:28:28.643201106+01: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 5e8c595..ea38f0f 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 = "2026-01-08T15:17:29.048390180+01:00[Europe/Brussels]", comments = "Generator version: 7.12.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-01-09T08:28:28.643201106+01: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 cd2610e..9bc61d8 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 = "2026-01-08T15:17:29.048390180+01:00[Europe/Brussels]", comments = "Generator version: 7.12.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-01-09T08:28:28.643201106+01: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/NonEmptyTablesResponse.java b/src/main/java/ai/lamin/lamin_api_client/model/NonEmptyTablesResponse.java index d5e8afc..f149f21 100644 --- a/src/main/java/ai/lamin/lamin_api_client/model/NonEmptyTablesResponse.java +++ b/src/main/java/ai/lamin/lamin_api_client/model/NonEmptyTablesResponse.java @@ -51,7 +51,7 @@ /** * NonEmptyTablesResponse */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-01-08T15:17:29.048390180+01:00[Europe/Brussels]", comments = "Generator version: 7.12.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-01-09T08:28:28.643201106+01:00[Europe/Brussels]", comments = "Generator version: 7.12.0") public class NonEmptyTablesResponse { public static final String SERIALIZED_NAME_NON_EMPTY_TABLES = "non_empty_tables"; @SerializedName(SERIALIZED_NAME_NON_EMPTY_TABLES) 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 0484858..cd2fe45 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 = "2026-01-08T15:17:29.048390180+01:00[Europe/Brussels]", comments = "Generator version: 7.12.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-01-09T08:28:28.643201106+01: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 index 0731bf0..5931020 100644 --- a/src/main/java/ai/lamin/lamin_api_client/model/RegisterDbServerBody.java +++ b/src/main/java/ai/lamin/lamin_api_client/model/RegisterDbServerBody.java @@ -49,7 +49,7 @@ /** * RegisterDbServerBody */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-01-08T15:17:29.048390180+01:00[Europe/Brussels]", comments = "Generator version: 7.12.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-01-09T08:28:28.643201106+01:00[Europe/Brussels]", comments = "Generator version: 7.12.0") public class RegisterDbServerBody { public static final String SERIALIZED_NAME_NAME = "name"; @SerializedName(SERIALIZED_NAME_NAME) 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 index e698213..8f9b8dc 100644 --- a/src/main/java/ai/lamin/lamin_api_client/model/RegisterFormRequest.java +++ b/src/main/java/ai/lamin/lamin_api_client/model/RegisterFormRequest.java @@ -50,7 +50,7 @@ /** * RegisterFormRequest */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-01-08T15:17:29.048390180+01:00[Europe/Brussels]", comments = "Generator version: 7.12.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-01-09T08:28:28.643201106+01:00[Europe/Brussels]", comments = "Generator version: 7.12.0") public class RegisterFormRequest { public static final String SERIALIZED_NAME_KEY = "key"; @SerializedName(SERIALIZED_NAME_KEY) diff --git a/src/main/java/ai/lamin/lamin_api_client/model/Request.java b/src/main/java/ai/lamin/lamin_api_client/model/Request.java index ed9efd5..6b610d3 100644 --- a/src/main/java/ai/lamin/lamin_api_client/model/Request.java +++ b/src/main/java/ai/lamin/lamin_api_client/model/Request.java @@ -55,7 +55,7 @@ /** * Request */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-01-08T15:17:29.048390180+01:00[Europe/Brussels]", comments = "Generator version: 7.12.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-01-09T08:28:28.643201106+01:00[Europe/Brussels]", comments = "Generator version: 7.12.0") public class Request { public static final String SERIALIZED_NAME_RELATIVES = "relatives"; @SerializedName(SERIALIZED_NAME_RELATIVES) 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 index df2edce..63f38fe 100644 --- a/src/main/java/ai/lamin/lamin_api_client/model/Role.java +++ b/src/main/java/ai/lamin/lamin_api_client/model/Role.java @@ -50,7 +50,7 @@ import ai.lamin.lamin_api_client.JSON; -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-01-08T15:17:29.048390180+01:00[Europe/Brussels]", comments = "Generator version: 7.12.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-01-09T08:28:28.643201106+01:00[Europe/Brussels]", comments = "Generator version: 7.12.0") public class Role extends AbstractOpenApiSchema { private static final Logger log = Logger.getLogger(Role.class.getName()); 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 index fb4f197..2e91e38 100644 --- a/src/main/java/ai/lamin/lamin_api_client/model/Role1.java +++ b/src/main/java/ai/lamin/lamin_api_client/model/Role1.java @@ -50,7 +50,7 @@ import ai.lamin.lamin_api_client.JSON; -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-01-08T15:17:29.048390180+01:00[Europe/Brussels]", comments = "Generator version: 7.12.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-01-09T08:28:28.643201106+01:00[Europe/Brussels]", comments = "Generator version: 7.12.0") public class Role1 extends AbstractOpenApiSchema { private static final Logger log = Logger.getLogger(Role1.class.getName()); 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 0daddbd..f69c548 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 @@ -51,7 +51,7 @@ /** * S3PermissionsRequest */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-01-08T15:17:29.048390180+01:00[Europe/Brussels]", comments = "Generator version: 7.12.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-01-09T08:28:28.643201106+01: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/StatisticsResponse.java b/src/main/java/ai/lamin/lamin_api_client/model/StatisticsResponse.java index f666c1b..5c13575 100644 --- a/src/main/java/ai/lamin/lamin_api_client/model/StatisticsResponse.java +++ b/src/main/java/ai/lamin/lamin_api_client/model/StatisticsResponse.java @@ -50,7 +50,7 @@ /** * Defines the response for the instance statistics endpoint. */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-01-08T15:17:29.048390180+01:00[Europe/Brussels]", comments = "Generator version: 7.12.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-01-09T08:28:28.643201106+01:00[Europe/Brussels]", comments = "Generator version: 7.12.0") public class StatisticsResponse { public static final String SERIALIZED_NAME_INSTANCE_SIZE = "instance_size"; @SerializedName(SERIALIZED_NAME_INSTANCE_SIZE) diff --git a/src/main/java/ai/lamin/lamin_api_client/model/SyncInstruction.java b/src/main/java/ai/lamin/lamin_api_client/model/SyncInstruction.java index 2850fae..0e494a9 100644 --- a/src/main/java/ai/lamin/lamin_api_client/model/SyncInstruction.java +++ b/src/main/java/ai/lamin/lamin_api_client/model/SyncInstruction.java @@ -52,7 +52,7 @@ /** * Defines a single synchronization instruction, containing the scope and the desired state for that scope. */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-01-08T15:17:29.048390180+01:00[Europe/Brussels]", comments = "Generator version: 7.12.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-01-09T08:28:28.643201106+01:00[Europe/Brussels]", comments = "Generator version: 7.12.0") public class SyncInstruction { public static final String SERIALIZED_NAME_SCOPE = "scope"; @SerializedName(SERIALIZED_NAME_SCOPE) diff --git a/src/main/java/ai/lamin/lamin_api_client/model/TraversalParams.java b/src/main/java/ai/lamin/lamin_api_client/model/TraversalParams.java index 886b76d..d233b62 100644 --- a/src/main/java/ai/lamin/lamin_api_client/model/TraversalParams.java +++ b/src/main/java/ai/lamin/lamin_api_client/model/TraversalParams.java @@ -52,7 +52,7 @@ /** * Parameters that define the hierarchical traversal. */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-01-08T15:17:29.048390180+01:00[Europe/Brussels]", comments = "Generator version: 7.12.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-01-09T08:28:28.643201106+01:00[Europe/Brussels]", comments = "Generator version: 7.12.0") public class TraversalParams { public static final String SERIALIZED_NAME_VALUES = "values"; @SerializedName(SERIALIZED_NAME_VALUES) diff --git a/src/main/java/ai/lamin/lamin_api_client/model/TraversalParamsValuesInner.java b/src/main/java/ai/lamin/lamin_api_client/model/TraversalParamsValuesInner.java index eca18cc..a33eb4b 100644 --- a/src/main/java/ai/lamin/lamin_api_client/model/TraversalParamsValuesInner.java +++ b/src/main/java/ai/lamin/lamin_api_client/model/TraversalParamsValuesInner.java @@ -50,7 +50,7 @@ import ai.lamin.lamin_api_client.JSON; -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-01-08T15:17:29.048390180+01:00[Europe/Brussels]", comments = "Generator version: 7.12.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-01-09T08:28:28.643201106+01:00[Europe/Brussels]", comments = "Generator version: 7.12.0") public class TraversalParamsValuesInner extends AbstractOpenApiSchema { private static final Logger log = Logger.getLogger(TraversalParamsValuesInner.class.getName()); 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 8d2fd88..c586411 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 = "2026-01-08T15:17:29.048390180+01:00[Europe/Brussels]", comments = "Generator version: 7.12.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-01-09T08:28:28.643201106+01: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/UpdateOrganizationMemberRequestBody.java b/src/main/java/ai/lamin/lamin_api_client/model/UpdateOrganizationMemberRequestBody.java index c71e63d..35e56e4 100644 --- a/src/main/java/ai/lamin/lamin_api_client/model/UpdateOrganizationMemberRequestBody.java +++ b/src/main/java/ai/lamin/lamin_api_client/model/UpdateOrganizationMemberRequestBody.java @@ -48,7 +48,7 @@ /** * UpdateOrganizationMemberRequestBody */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-01-08T15:17:29.048390180+01:00[Europe/Brussels]", comments = "Generator version: 7.12.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-01-09T08:28:28.643201106+01:00[Europe/Brussels]", comments = "Generator version: 7.12.0") public class UpdateOrganizationMemberRequestBody { /** * 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 fb5b849..9342975 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 = "2026-01-08T15:17:29.048390180+01:00[Europe/Brussels]", comments = "Generator version: 7.12.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-01-09T08:28:28.643201106+01: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 2de4ee4..8206416 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 = "2026-01-08T15:17:29.048390180+01:00[Europe/Brussels]", comments = "Generator version: 7.12.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-01-09T08:28:28.643201106+01: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 69ef6a5..d31377c 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 @@ -49,7 +49,7 @@ /** * UpdateTeamMemberRequestBody */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-01-08T15:17:29.048390180+01:00[Europe/Brussels]", comments = "Generator version: 7.12.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-01-09T08:28:28.643201106+01:00[Europe/Brussels]", comments = "Generator version: 7.12.0") public class UpdateTeamMemberRequestBody { public static final String SERIALIZED_NAME_ROLE = "role"; @SerializedName(SERIALIZED_NAME_ROLE) 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 e426336..a90b5a7 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 = "2026-01-08T15:17:29.048390180+01:00[Europe/Brussels]", comments = "Generator version: 7.12.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-01-09T08:28:28.643201106+01: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 e97a6bf..3657fbf 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 = "2026-01-08T15:17:29.048390180+01:00[Europe/Brussels]", comments = "Generator version: 7.12.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-01-09T08:28:28.643201106+01: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 694d49f..7973b4c 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 = "2026-01-08T15:17:29.048390180+01:00[Europe/Brussels]", comments = "Generator version: 7.12.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-01-09T08:28:28.643201106+01:00[Europe/Brussels]", comments = "Generator version: 7.12.0") public class ValidationErrorLocInner extends AbstractOpenApiSchema { private static final Logger log = Logger.getLogger(ValidationErrorLocInner.class.getName()); From 24a96d55f6a15a63c8c78676d3eba82ae940d4c5 Mon Sep 17 00:00:00 2001 From: Robrecht Cannoodt Date: Fri, 9 Jan 2026 08:32:29 +0100 Subject: [PATCH 4/5] change email address --- pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pom.xml b/pom.xml index ea41fd0..7c2c1d9 100644 --- a/pom.xml +++ b/pom.xml @@ -26,7 +26,7 @@ Robrecht Cannoodt - robrecht@data-intuitive.com + rcannood@gmail.com Data Intuitive https://data-intuitive.com/ From e2128121983576e9abe007a437ac569c0c63f687 Mon Sep 17 00:00:00 2001 From: Robrecht Cannoodt Date: Mon, 12 Jan 2026 11:16:52 +0100 Subject: [PATCH 5/5] bump to v0.0.4 --- README.md | 8 ++++---- config.yaml | 2 +- pom.xml | 2 +- src/main/java/ai/lamin/lamin_api_client/ApiClient.java | 2 +- src/main/java/ai/lamin/lamin_api_client/ApiException.java | 2 +- .../java/ai/lamin/lamin_api_client/Configuration.java | 4 ++-- src/main/java/ai/lamin/lamin_api_client/Pair.java | 2 +- .../ai/lamin/lamin_api_client/ServerConfiguration.java | 2 +- .../java/ai/lamin/lamin_api_client/ServerVariable.java | 2 +- src/main/java/ai/lamin/lamin_api_client/StringUtil.java | 2 +- .../java/ai/lamin/lamin_api_client/auth/ApiKeyAuth.java | 2 +- .../ai/lamin/lamin_api_client/auth/HttpBearerAuth.java | 2 +- .../lamin_api_client/model/AbstractOpenApiSchema.java | 2 +- .../model/AddCollaboratorRequestBody.java | 2 +- .../model/AddOrganizationMemberRequestBody.java | 2 +- .../model/AddSpaceCollaboratorRequestBody.java | 2 +- .../lamin_api_client/model/AddTeamMemberRequestBody.java | 2 +- .../model/AttachSpaceToRecordRequestBody.java | 2 +- .../ai/lamin/lamin_api_client/model/BatchDeleteBody.java | 2 +- .../lamin/lamin_api_client/model/BatchDeleteResponse.java | 2 +- .../lamin/lamin_api_client/model/BatchSyncLinksBody.java | 2 +- .../lamin/lamin_api_client/model/BatchSyncResponse.java | 2 +- .../ai/lamin/lamin_api_client/model/BatchUpdateBody.java | 2 +- src/main/java/ai/lamin/lamin_api_client/model/Body.java | 2 +- .../lamin_api_client/model/CreateArtifactRequestBody.java | 2 +- .../lamin_api_client/model/CreateSpaceRequestBody.java | 2 +- .../lamin_api_client/model/CreateTeamRequestBody.java | 2 +- .../model/CreateTransformRequestBody.java | 2 +- .../java/ai/lamin/lamin_api_client/model/Dimension.java | 2 +- .../java/ai/lamin/lamin_api_client/model/ErrorDetail.java | 2 +- .../model/ExecuteFunctionRequestBody.java | 2 +- .../lamin_api_client/model/ExportRecordsRequestBody.java | 2 +- .../lamin_api_client/model/GetRecordRequestBody.java | 2 +- .../lamin_api_client/model/GetRecordsRequestBody.java | 2 +- .../lamin_api_client/model/GetValuesRequestBody.java | 2 +- .../lamin/lamin_api_client/model/GroupByRequestBody.java | 2 +- .../lamin/lamin_api_client/model/HTTPValidationError.java | 2 +- .../java/ai/lamin/lamin_api_client/model/Measure.java | 2 +- .../lamin_api_client/model/NonEmptyTablesResponse.java | 2 +- .../ai/lamin/lamin_api_client/model/OrderByColumn.java | 2 +- .../lamin_api_client/model/RegisterDbServerBody.java | 2 +- .../lamin/lamin_api_client/model/RegisterFormRequest.java | 2 +- .../java/ai/lamin/lamin_api_client/model/Request.java | 2 +- src/main/java/ai/lamin/lamin_api_client/model/Role.java | 2 +- src/main/java/ai/lamin/lamin_api_client/model/Role1.java | 2 +- .../lamin_api_client/model/S3PermissionsRequest.java | 2 +- .../lamin/lamin_api_client/model/StatisticsResponse.java | 2 +- .../ai/lamin/lamin_api_client/model/SyncInstruction.java | 2 +- .../ai/lamin/lamin_api_client/model/TraversalParams.java | 2 +- .../model/TraversalParamsValuesInner.java | 2 +- .../model/UpdateCollaboratorRequestBody.java | 2 +- .../model/UpdateOrganizationMemberRequestBody.java | 2 +- .../model/UpdateSpaceCollaboratorRequestBody.java | 2 +- .../lamin_api_client/model/UpdateSpaceRequestBody.java | 2 +- .../model/UpdateTeamMemberRequestBody.java | 2 +- .../lamin_api_client/model/UpdateTeamRequestBody.java | 2 +- .../ai/lamin/lamin_api_client/model/ValidationError.java | 2 +- .../lamin_api_client/model/ValidationErrorLocInner.java | 2 +- 58 files changed, 62 insertions(+), 62 deletions(-) diff --git a/README.md b/README.md index 9f4bab1..bf9d2b6 100644 --- a/README.md +++ b/README.md @@ -5,7 +5,7 @@ Lamin API - API version: 0.1.0 - - Build date: 2026-01-09T08:28:28.643201106+01:00[Europe/Brussels] + - Build date: 2026-01-12T11:16:27.287169544+01:00[Europe/Brussels] - Generator version: 7.12.0 No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) @@ -44,7 +44,7 @@ Add this dependency to your project's POM: ai.lamin lamin-api-client - 0.0.4-rc1 + 0.0.4 compile ``` @@ -60,7 +60,7 @@ Add this dependency to your project's build file: } dependencies { - implementation "ai.lamin:lamin-api-client:0.0.4-rc1" + implementation "ai.lamin:lamin-api-client:0.0.4" } ``` @@ -74,7 +74,7 @@ mvn clean package Then manually install the following JARs: -* `target/lamin-api-client-0.0.4-rc1.jar` +* `target/lamin-api-client-0.0.4.jar` * `target/lib/*.jar` ## Getting Started diff --git a/config.yaml b/config.yaml index d86f49e..174daf3 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.4-rc1 +artifactVersion: 0.0.4 # Description: artifact URL in generated pom.xml artifactUrl: https://github.com/laminlabs/lamin-api-client-java diff --git a/pom.xml b/pom.xml index 7c2c1d9..d6aadc6 100644 --- a/pom.xml +++ b/pom.xml @@ -6,7 +6,7 @@ lamin-api-client jar lamin-api-client - 0.0.4-rc1 + 0.0.4 https://github.com/laminlabs/lamin-api-client-java Java client for the Lamin API 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 008d514..a88f052 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.4-rc1/java"); + setUserAgent("OpenAPI-Generator/0.0.4/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 99dbf93..7fa3e49 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 = "2026-01-09T08:28:28.643201106+01:00[Europe/Brussels]", comments = "Generator version: 7.12.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-01-12T11:16:27.287169544+01: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 bf21ec0..71c37ff 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 = "2026-01-09T08:28:28.643201106+01:00[Europe/Brussels]", comments = "Generator version: 7.12.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-01-12T11:16:27.287169544+01:00[Europe/Brussels]", comments = "Generator version: 7.12.0") public class Configuration { - public static final String VERSION = "0.0.4-rc1"; + public static final String VERSION = "0.0.4"; private static volatile ApiClient defaultApiClient = new ApiClient(); 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 2c6ecdf..b14ca7d 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 = "2026-01-09T08:28:28.643201106+01:00[Europe/Brussels]", comments = "Generator version: 7.12.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-01-12T11:16:27.287169544+01: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 97d78b4..eb50feb 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 = "2026-01-09T08:28:28.643201106+01:00[Europe/Brussels]", comments = "Generator version: 7.12.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-01-12T11:16:27.287169544+01: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 a8b0e48..9b2e44b 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 = "2026-01-09T08:28:28.643201106+01:00[Europe/Brussels]", comments = "Generator version: 7.12.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-01-12T11:16:27.287169544+01: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 c07df7c..207e9f2 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 = "2026-01-09T08:28:28.643201106+01:00[Europe/Brussels]", comments = "Generator version: 7.12.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-01-12T11:16:27.287169544+01: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/auth/ApiKeyAuth.java b/src/main/java/ai/lamin/lamin_api_client/auth/ApiKeyAuth.java index 94b373c..1abc0c7 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 = "2026-01-09T08:28:28.643201106+01:00[Europe/Brussels]", comments = "Generator version: 7.12.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-01-12T11:16:27.287169544+01: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 a3c356a..10549de 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 = "2026-01-09T08:28:28.643201106+01:00[Europe/Brussels]", comments = "Generator version: 7.12.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-01-12T11:16:27.287169544+01: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 340379e..965da0d 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 = "2026-01-09T08:28:28.643201106+01:00[Europe/Brussels]", comments = "Generator version: 7.12.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-01-12T11:16:27.287169544+01: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 da095d3..10fed2b 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 = "2026-01-09T08:28:28.643201106+01:00[Europe/Brussels]", comments = "Generator version: 7.12.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-01-12T11:16:27.287169544+01: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/AddOrganizationMemberRequestBody.java b/src/main/java/ai/lamin/lamin_api_client/model/AddOrganizationMemberRequestBody.java index 8933b2b..c637c20 100644 --- a/src/main/java/ai/lamin/lamin_api_client/model/AddOrganizationMemberRequestBody.java +++ b/src/main/java/ai/lamin/lamin_api_client/model/AddOrganizationMemberRequestBody.java @@ -48,7 +48,7 @@ /** * AddOrganizationMemberRequestBody */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-01-09T08:28:28.643201106+01:00[Europe/Brussels]", comments = "Generator version: 7.12.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-01-12T11:16:27.287169544+01:00[Europe/Brussels]", comments = "Generator version: 7.12.0") public class AddOrganizationMemberRequestBody { /** * Gets or Sets role 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 a5eacb7..8ca4a41 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 = "2026-01-09T08:28:28.643201106+01:00[Europe/Brussels]", comments = "Generator version: 7.12.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-01-12T11:16:27.287169544+01: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 6dcdb8e..e29ac65 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 @@ -49,7 +49,7 @@ /** * AddTeamMemberRequestBody */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-01-09T08:28:28.643201106+01:00[Europe/Brussels]", comments = "Generator version: 7.12.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-01-12T11:16:27.287169544+01:00[Europe/Brussels]", comments = "Generator version: 7.12.0") public class AddTeamMemberRequestBody { public static final String SERIALIZED_NAME_ROLE = "role"; @SerializedName(SERIALIZED_NAME_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 7fc8ff7..b7ed061 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 = "2026-01-09T08:28:28.643201106+01:00[Europe/Brussels]", comments = "Generator version: 7.12.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-01-12T11:16:27.287169544+01: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/BatchDeleteBody.java b/src/main/java/ai/lamin/lamin_api_client/model/BatchDeleteBody.java index 601f3e0..d999f0e 100644 --- a/src/main/java/ai/lamin/lamin_api_client/model/BatchDeleteBody.java +++ b/src/main/java/ai/lamin/lamin_api_client/model/BatchDeleteBody.java @@ -51,7 +51,7 @@ /** * BatchDeleteBody */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-01-09T08:28:28.643201106+01:00[Europe/Brussels]", comments = "Generator version: 7.12.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-01-12T11:16:27.287169544+01:00[Europe/Brussels]", comments = "Generator version: 7.12.0") public class BatchDeleteBody { public static final String SERIALIZED_NAME_RECORDS = "records"; @SerializedName(SERIALIZED_NAME_RECORDS) diff --git a/src/main/java/ai/lamin/lamin_api_client/model/BatchDeleteResponse.java b/src/main/java/ai/lamin/lamin_api_client/model/BatchDeleteResponse.java index 9f5b3fc..c710246 100644 --- a/src/main/java/ai/lamin/lamin_api_client/model/BatchDeleteResponse.java +++ b/src/main/java/ai/lamin/lamin_api_client/model/BatchDeleteResponse.java @@ -48,7 +48,7 @@ /** * BatchDeleteResponse */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-01-09T08:28:28.643201106+01:00[Europe/Brussels]", comments = "Generator version: 7.12.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-01-12T11:16:27.287169544+01:00[Europe/Brussels]", comments = "Generator version: 7.12.0") public class BatchDeleteResponse { public static final String SERIALIZED_NAME_DELETED_COUNT = "deleted_count"; @SerializedName(SERIALIZED_NAME_DELETED_COUNT) diff --git a/src/main/java/ai/lamin/lamin_api_client/model/BatchSyncLinksBody.java b/src/main/java/ai/lamin/lamin_api_client/model/BatchSyncLinksBody.java index 9504810..625136c 100644 --- a/src/main/java/ai/lamin/lamin_api_client/model/BatchSyncLinksBody.java +++ b/src/main/java/ai/lamin/lamin_api_client/model/BatchSyncLinksBody.java @@ -51,7 +51,7 @@ /** * The request body for the batch synchronization endpoint. */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-01-09T08:28:28.643201106+01:00[Europe/Brussels]", comments = "Generator version: 7.12.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-01-12T11:16:27.287169544+01:00[Europe/Brussels]", comments = "Generator version: 7.12.0") public class BatchSyncLinksBody { public static final String SERIALIZED_NAME_INSTRUCTIONS = "instructions"; @SerializedName(SERIALIZED_NAME_INSTRUCTIONS) diff --git a/src/main/java/ai/lamin/lamin_api_client/model/BatchSyncResponse.java b/src/main/java/ai/lamin/lamin_api_client/model/BatchSyncResponse.java index 031f0c1..68746bd 100644 --- a/src/main/java/ai/lamin/lamin_api_client/model/BatchSyncResponse.java +++ b/src/main/java/ai/lamin/lamin_api_client/model/BatchSyncResponse.java @@ -51,7 +51,7 @@ /** * The detailed response model for a batch synchronization operation, including the lists of records that were processed. */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-01-09T08:28:28.643201106+01:00[Europe/Brussels]", comments = "Generator version: 7.12.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-01-12T11:16:27.287169544+01:00[Europe/Brussels]", comments = "Generator version: 7.12.0") public class BatchSyncResponse { public static final String SERIALIZED_NAME_STATUS = "status"; @SerializedName(SERIALIZED_NAME_STATUS) diff --git a/src/main/java/ai/lamin/lamin_api_client/model/BatchUpdateBody.java b/src/main/java/ai/lamin/lamin_api_client/model/BatchUpdateBody.java index f952fc4..d822d3a 100644 --- a/src/main/java/ai/lamin/lamin_api_client/model/BatchUpdateBody.java +++ b/src/main/java/ai/lamin/lamin_api_client/model/BatchUpdateBody.java @@ -51,7 +51,7 @@ /** * BatchUpdateBody */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-01-09T08:28:28.643201106+01:00[Europe/Brussels]", comments = "Generator version: 7.12.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-01-12T11:16:27.287169544+01:00[Europe/Brussels]", comments = "Generator version: 7.12.0") public class BatchUpdateBody { public static final String SERIALIZED_NAME_RECORDS = "records"; @SerializedName(SERIALIZED_NAME_RECORDS) diff --git a/src/main/java/ai/lamin/lamin_api_client/model/Body.java b/src/main/java/ai/lamin/lamin_api_client/model/Body.java index e65cbe5..eeab449 100644 --- a/src/main/java/ai/lamin/lamin_api_client/model/Body.java +++ b/src/main/java/ai/lamin/lamin_api_client/model/Body.java @@ -52,7 +52,7 @@ import ai.lamin.lamin_api_client.JSON; -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-01-09T08:28:28.643201106+01:00[Europe/Brussels]", comments = "Generator version: 7.12.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-01-12T11:16:27.287169544+01:00[Europe/Brussels]", comments = "Generator version: 7.12.0") public class Body extends AbstractOpenApiSchema { private static final Logger log = Logger.getLogger(Body.class.getName()); diff --git a/src/main/java/ai/lamin/lamin_api_client/model/CreateArtifactRequestBody.java b/src/main/java/ai/lamin/lamin_api_client/model/CreateArtifactRequestBody.java index 31ec8fd..1124d28 100644 --- a/src/main/java/ai/lamin/lamin_api_client/model/CreateArtifactRequestBody.java +++ b/src/main/java/ai/lamin/lamin_api_client/model/CreateArtifactRequestBody.java @@ -50,7 +50,7 @@ /** * CreateArtifactRequestBody */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-01-09T08:28:28.643201106+01:00[Europe/Brussels]", comments = "Generator version: 7.12.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-01-12T11:16:27.287169544+01:00[Europe/Brussels]", comments = "Generator version: 7.12.0") public class CreateArtifactRequestBody { public static final String SERIALIZED_NAME_PATH = "path"; @SerializedName(SERIALIZED_NAME_PATH) 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 2e43d7c..0a3b966 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 = "2026-01-09T08:28:28.643201106+01:00[Europe/Brussels]", comments = "Generator version: 7.12.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-01-12T11:16:27.287169544+01: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 965961f..90b718b 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 = "2026-01-09T08:28:28.643201106+01:00[Europe/Brussels]", comments = "Generator version: 7.12.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-01-12T11:16:27.287169544+01: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/CreateTransformRequestBody.java b/src/main/java/ai/lamin/lamin_api_client/model/CreateTransformRequestBody.java index 7296189..921719b 100644 --- a/src/main/java/ai/lamin/lamin_api_client/model/CreateTransformRequestBody.java +++ b/src/main/java/ai/lamin/lamin_api_client/model/CreateTransformRequestBody.java @@ -51,7 +51,7 @@ /** * CreateTransformRequestBody */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-01-09T08:28:28.643201106+01:00[Europe/Brussels]", comments = "Generator version: 7.12.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-01-12T11:16:27.287169544+01:00[Europe/Brussels]", comments = "Generator version: 7.12.0") public class CreateTransformRequestBody { public static final String SERIALIZED_NAME_KEY = "key"; @SerializedName(SERIALIZED_NAME_KEY) 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 2556bdf..d6d8caa 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 = "2026-01-09T08:28:28.643201106+01:00[Europe/Brussels]", comments = "Generator version: 7.12.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-01-12T11:16:27.287169544+01: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/ErrorDetail.java b/src/main/java/ai/lamin/lamin_api_client/model/ErrorDetail.java index ad18eed..e92489b 100644 --- a/src/main/java/ai/lamin/lamin_api_client/model/ErrorDetail.java +++ b/src/main/java/ai/lamin/lamin_api_client/model/ErrorDetail.java @@ -48,7 +48,7 @@ /** * ErrorDetail */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-01-09T08:28:28.643201106+01:00[Europe/Brussels]", comments = "Generator version: 7.12.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-01-12T11:16:27.287169544+01:00[Europe/Brussels]", comments = "Generator version: 7.12.0") public class ErrorDetail { public static final String SERIALIZED_NAME_DETAIL = "detail"; @SerializedName(SERIALIZED_NAME_DETAIL) diff --git a/src/main/java/ai/lamin/lamin_api_client/model/ExecuteFunctionRequestBody.java b/src/main/java/ai/lamin/lamin_api_client/model/ExecuteFunctionRequestBody.java index d807958..5d04ee0 100644 --- a/src/main/java/ai/lamin/lamin_api_client/model/ExecuteFunctionRequestBody.java +++ b/src/main/java/ai/lamin/lamin_api_client/model/ExecuteFunctionRequestBody.java @@ -50,7 +50,7 @@ /** * ExecuteFunctionRequestBody */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-01-09T08:28:28.643201106+01:00[Europe/Brussels]", comments = "Generator version: 7.12.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-01-12T11:16:27.287169544+01:00[Europe/Brussels]", comments = "Generator version: 7.12.0") public class ExecuteFunctionRequestBody { public static final String SERIALIZED_NAME_TRANSFORM_UID = "transform_uid"; @SerializedName(SERIALIZED_NAME_TRANSFORM_UID) diff --git a/src/main/java/ai/lamin/lamin_api_client/model/ExportRecordsRequestBody.java b/src/main/java/ai/lamin/lamin_api_client/model/ExportRecordsRequestBody.java index 0ec74e1..d4adfce 100644 --- a/src/main/java/ai/lamin/lamin_api_client/model/ExportRecordsRequestBody.java +++ b/src/main/java/ai/lamin/lamin_api_client/model/ExportRecordsRequestBody.java @@ -50,7 +50,7 @@ /** * ExportRecordsRequestBody */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-01-09T08:28:28.643201106+01:00[Europe/Brussels]", comments = "Generator version: 7.12.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-01-12T11:16:27.287169544+01:00[Europe/Brussels]", comments = "Generator version: 7.12.0") public class ExportRecordsRequestBody { public static final String SERIALIZED_NAME_KWARGS = "kwargs"; @SerializedName(SERIALIZED_NAME_KWARGS) 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 8c6bf69..2516ce4 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 = "2026-01-09T08:28:28.643201106+01:00[Europe/Brussels]", comments = "Generator version: 7.12.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-01-12T11:16:27.287169544+01: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 8a8a49f..4964353 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 = "2026-01-09T08:28:28.643201106+01:00[Europe/Brussels]", comments = "Generator version: 7.12.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-01-12T11:16:27.287169544+01: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 c29133b..5a106b0 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 = "2026-01-09T08:28:28.643201106+01:00[Europe/Brussels]", comments = "Generator version: 7.12.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-01-12T11:16:27.287169544+01: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 ed73e88..5f84329 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 = "2026-01-09T08:28:28.643201106+01:00[Europe/Brussels]", comments = "Generator version: 7.12.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-01-12T11:16:27.287169544+01: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 ea38f0f..47377e6 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 = "2026-01-09T08:28:28.643201106+01:00[Europe/Brussels]", comments = "Generator version: 7.12.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-01-12T11:16:27.287169544+01: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 9bc61d8..81d5a5a 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 = "2026-01-09T08:28:28.643201106+01:00[Europe/Brussels]", comments = "Generator version: 7.12.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-01-12T11:16:27.287169544+01: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/NonEmptyTablesResponse.java b/src/main/java/ai/lamin/lamin_api_client/model/NonEmptyTablesResponse.java index f149f21..eb3ae2b 100644 --- a/src/main/java/ai/lamin/lamin_api_client/model/NonEmptyTablesResponse.java +++ b/src/main/java/ai/lamin/lamin_api_client/model/NonEmptyTablesResponse.java @@ -51,7 +51,7 @@ /** * NonEmptyTablesResponse */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-01-09T08:28:28.643201106+01:00[Europe/Brussels]", comments = "Generator version: 7.12.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-01-12T11:16:27.287169544+01:00[Europe/Brussels]", comments = "Generator version: 7.12.0") public class NonEmptyTablesResponse { public static final String SERIALIZED_NAME_NON_EMPTY_TABLES = "non_empty_tables"; @SerializedName(SERIALIZED_NAME_NON_EMPTY_TABLES) 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 cd2fe45..ed9af89 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 = "2026-01-09T08:28:28.643201106+01:00[Europe/Brussels]", comments = "Generator version: 7.12.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-01-12T11:16:27.287169544+01: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 index 5931020..e3bb71b 100644 --- a/src/main/java/ai/lamin/lamin_api_client/model/RegisterDbServerBody.java +++ b/src/main/java/ai/lamin/lamin_api_client/model/RegisterDbServerBody.java @@ -49,7 +49,7 @@ /** * RegisterDbServerBody */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-01-09T08:28:28.643201106+01:00[Europe/Brussels]", comments = "Generator version: 7.12.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-01-12T11:16:27.287169544+01:00[Europe/Brussels]", comments = "Generator version: 7.12.0") public class RegisterDbServerBody { public static final String SERIALIZED_NAME_NAME = "name"; @SerializedName(SERIALIZED_NAME_NAME) 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 index 8f9b8dc..d7382fe 100644 --- a/src/main/java/ai/lamin/lamin_api_client/model/RegisterFormRequest.java +++ b/src/main/java/ai/lamin/lamin_api_client/model/RegisterFormRequest.java @@ -50,7 +50,7 @@ /** * RegisterFormRequest */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-01-09T08:28:28.643201106+01:00[Europe/Brussels]", comments = "Generator version: 7.12.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-01-12T11:16:27.287169544+01:00[Europe/Brussels]", comments = "Generator version: 7.12.0") public class RegisterFormRequest { public static final String SERIALIZED_NAME_KEY = "key"; @SerializedName(SERIALIZED_NAME_KEY) diff --git a/src/main/java/ai/lamin/lamin_api_client/model/Request.java b/src/main/java/ai/lamin/lamin_api_client/model/Request.java index 6b610d3..841d7d8 100644 --- a/src/main/java/ai/lamin/lamin_api_client/model/Request.java +++ b/src/main/java/ai/lamin/lamin_api_client/model/Request.java @@ -55,7 +55,7 @@ /** * Request */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-01-09T08:28:28.643201106+01:00[Europe/Brussels]", comments = "Generator version: 7.12.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-01-12T11:16:27.287169544+01:00[Europe/Brussels]", comments = "Generator version: 7.12.0") public class Request { public static final String SERIALIZED_NAME_RELATIVES = "relatives"; @SerializedName(SERIALIZED_NAME_RELATIVES) 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 index 63f38fe..477bc0e 100644 --- a/src/main/java/ai/lamin/lamin_api_client/model/Role.java +++ b/src/main/java/ai/lamin/lamin_api_client/model/Role.java @@ -50,7 +50,7 @@ import ai.lamin.lamin_api_client.JSON; -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-01-09T08:28:28.643201106+01:00[Europe/Brussels]", comments = "Generator version: 7.12.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-01-12T11:16:27.287169544+01:00[Europe/Brussels]", comments = "Generator version: 7.12.0") public class Role extends AbstractOpenApiSchema { private static final Logger log = Logger.getLogger(Role.class.getName()); 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 index 2e91e38..b8c15c6 100644 --- a/src/main/java/ai/lamin/lamin_api_client/model/Role1.java +++ b/src/main/java/ai/lamin/lamin_api_client/model/Role1.java @@ -50,7 +50,7 @@ import ai.lamin.lamin_api_client.JSON; -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-01-09T08:28:28.643201106+01:00[Europe/Brussels]", comments = "Generator version: 7.12.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-01-12T11:16:27.287169544+01:00[Europe/Brussels]", comments = "Generator version: 7.12.0") public class Role1 extends AbstractOpenApiSchema { private static final Logger log = Logger.getLogger(Role1.class.getName()); 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 f69c548..6910bd2 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 @@ -51,7 +51,7 @@ /** * S3PermissionsRequest */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-01-09T08:28:28.643201106+01:00[Europe/Brussels]", comments = "Generator version: 7.12.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-01-12T11:16:27.287169544+01: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/StatisticsResponse.java b/src/main/java/ai/lamin/lamin_api_client/model/StatisticsResponse.java index 5c13575..08c6d02 100644 --- a/src/main/java/ai/lamin/lamin_api_client/model/StatisticsResponse.java +++ b/src/main/java/ai/lamin/lamin_api_client/model/StatisticsResponse.java @@ -50,7 +50,7 @@ /** * Defines the response for the instance statistics endpoint. */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-01-09T08:28:28.643201106+01:00[Europe/Brussels]", comments = "Generator version: 7.12.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-01-12T11:16:27.287169544+01:00[Europe/Brussels]", comments = "Generator version: 7.12.0") public class StatisticsResponse { public static final String SERIALIZED_NAME_INSTANCE_SIZE = "instance_size"; @SerializedName(SERIALIZED_NAME_INSTANCE_SIZE) diff --git a/src/main/java/ai/lamin/lamin_api_client/model/SyncInstruction.java b/src/main/java/ai/lamin/lamin_api_client/model/SyncInstruction.java index 0e494a9..a3d0687 100644 --- a/src/main/java/ai/lamin/lamin_api_client/model/SyncInstruction.java +++ b/src/main/java/ai/lamin/lamin_api_client/model/SyncInstruction.java @@ -52,7 +52,7 @@ /** * Defines a single synchronization instruction, containing the scope and the desired state for that scope. */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-01-09T08:28:28.643201106+01:00[Europe/Brussels]", comments = "Generator version: 7.12.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-01-12T11:16:27.287169544+01:00[Europe/Brussels]", comments = "Generator version: 7.12.0") public class SyncInstruction { public static final String SERIALIZED_NAME_SCOPE = "scope"; @SerializedName(SERIALIZED_NAME_SCOPE) diff --git a/src/main/java/ai/lamin/lamin_api_client/model/TraversalParams.java b/src/main/java/ai/lamin/lamin_api_client/model/TraversalParams.java index d233b62..57b5c76 100644 --- a/src/main/java/ai/lamin/lamin_api_client/model/TraversalParams.java +++ b/src/main/java/ai/lamin/lamin_api_client/model/TraversalParams.java @@ -52,7 +52,7 @@ /** * Parameters that define the hierarchical traversal. */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-01-09T08:28:28.643201106+01:00[Europe/Brussels]", comments = "Generator version: 7.12.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-01-12T11:16:27.287169544+01:00[Europe/Brussels]", comments = "Generator version: 7.12.0") public class TraversalParams { public static final String SERIALIZED_NAME_VALUES = "values"; @SerializedName(SERIALIZED_NAME_VALUES) diff --git a/src/main/java/ai/lamin/lamin_api_client/model/TraversalParamsValuesInner.java b/src/main/java/ai/lamin/lamin_api_client/model/TraversalParamsValuesInner.java index a33eb4b..7a0f87e 100644 --- a/src/main/java/ai/lamin/lamin_api_client/model/TraversalParamsValuesInner.java +++ b/src/main/java/ai/lamin/lamin_api_client/model/TraversalParamsValuesInner.java @@ -50,7 +50,7 @@ import ai.lamin.lamin_api_client.JSON; -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-01-09T08:28:28.643201106+01:00[Europe/Brussels]", comments = "Generator version: 7.12.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-01-12T11:16:27.287169544+01:00[Europe/Brussels]", comments = "Generator version: 7.12.0") public class TraversalParamsValuesInner extends AbstractOpenApiSchema { private static final Logger log = Logger.getLogger(TraversalParamsValuesInner.class.getName()); 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 c586411..9ac540d 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 = "2026-01-09T08:28:28.643201106+01:00[Europe/Brussels]", comments = "Generator version: 7.12.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-01-12T11:16:27.287169544+01: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/UpdateOrganizationMemberRequestBody.java b/src/main/java/ai/lamin/lamin_api_client/model/UpdateOrganizationMemberRequestBody.java index 35e56e4..276add6 100644 --- a/src/main/java/ai/lamin/lamin_api_client/model/UpdateOrganizationMemberRequestBody.java +++ b/src/main/java/ai/lamin/lamin_api_client/model/UpdateOrganizationMemberRequestBody.java @@ -48,7 +48,7 @@ /** * UpdateOrganizationMemberRequestBody */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-01-09T08:28:28.643201106+01:00[Europe/Brussels]", comments = "Generator version: 7.12.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-01-12T11:16:27.287169544+01:00[Europe/Brussels]", comments = "Generator version: 7.12.0") public class UpdateOrganizationMemberRequestBody { /** * 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 9342975..e37afef 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 = "2026-01-09T08:28:28.643201106+01:00[Europe/Brussels]", comments = "Generator version: 7.12.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-01-12T11:16:27.287169544+01: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 8206416..bef6b17 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 = "2026-01-09T08:28:28.643201106+01:00[Europe/Brussels]", comments = "Generator version: 7.12.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-01-12T11:16:27.287169544+01: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 d31377c..16507e8 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 @@ -49,7 +49,7 @@ /** * UpdateTeamMemberRequestBody */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-01-09T08:28:28.643201106+01:00[Europe/Brussels]", comments = "Generator version: 7.12.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-01-12T11:16:27.287169544+01:00[Europe/Brussels]", comments = "Generator version: 7.12.0") public class UpdateTeamMemberRequestBody { public static final String SERIALIZED_NAME_ROLE = "role"; @SerializedName(SERIALIZED_NAME_ROLE) 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 a90b5a7..0206938 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 = "2026-01-09T08:28:28.643201106+01:00[Europe/Brussels]", comments = "Generator version: 7.12.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-01-12T11:16:27.287169544+01: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 3657fbf..3a6b426 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 = "2026-01-09T08:28:28.643201106+01:00[Europe/Brussels]", comments = "Generator version: 7.12.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-01-12T11:16:27.287169544+01: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 7973b4c..cbe883c 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 = "2026-01-09T08:28:28.643201106+01:00[Europe/Brussels]", comments = "Generator version: 7.12.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-01-12T11:16:27.287169544+01:00[Europe/Brussels]", comments = "Generator version: 7.12.0") public class ValidationErrorLocInner extends AbstractOpenApiSchema { private static final Logger log = Logger.getLogger(ValidationErrorLocInner.class.getName());